/* Les couleurs communes : ciel, papier, hamster, miel et cuivre. */
:root {
  color-scheme: light;
  --sky: #eaf5fa;
  --paper: #fffdf8;
  --cream: #fff5e4;
  --text: #352b25;
  --muted: #536974;
  --orange: #ee923d;
  --copper: #98501f;
  --honey: #8e611b;
  --teal: #246477;
  --line: #dedfda;
  --shadow: 0 8px 28px #54717d0a;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--text); background: linear-gradient(180deg, #e9f5fb 0%, #f1f8f8 65%, #fbf8ef 100%); font-size: 15px; line-height: 1.65; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.045em; }
h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 800; }
h1 em { color: var(--copper); font-family: Georgia, serif; font-weight: 500; }
h2 { font-size: 28px; font-weight: 750; }
h3 { font-size: 22px; font-weight: 750; }
p + p { margin-top: 12px; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.gold { color: var(--honey); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 100; background: var(--paper); color: var(--teal); padding: 12px 20px; border: 2px solid var(--teal); border-radius: 12px; }
.skip-link:focus { top: 12px; }

/* Navigation horizontale, logo et compte. */
.site-header { position: relative; z-index: 3; border-bottom: 1px solid #cddfe5; background: #fffdf8e8; }
.header-inner { max-width: 1280px; min-height: 104px; margin: auto; padding: 16px 32px; display: flex; align-items: center; gap: 26px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #d4a360; box-shadow: 0 3px 12px #745b3420; }
.brand > span { font-size: 27px; font-weight: 900; letter-spacing: -.055em; line-height: 1.15; }
.brand small { display: block; color: var(--copper); letter-spacing: .15em; font-size: 9px; margin-top: 6px; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 11px 13px; min-height: 45px; border-radius: 12px; color: #4c6069; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .18s, color .18s; }
.main-nav a .icon { width: 19px; height: 19px; }
.main-nav a:hover { background: #edf4f4; color: var(--teal); }
.main-nav a.active { color: #864519; background: #fff0db; box-shadow: inset 0 -2px #e5ac6b; }
.header-account { display: flex; align-items: center; gap: 9px; }
.header-account form { margin: 0; }
.account-pill { display: flex; align-items: center; gap: 9px; font-size: 13px; min-width: 0; }
.account-pill strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; }
.account-avatar { display: grid; place-items: center; background: #e6f1ed; color: #2a6557; border: 1px solid #c0d7ca; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid #cddcd9; border-radius: 12px; background: var(--paper); color: var(--teal); }
.icon-button:hover { background: #e9f2f2; }
.shell { position: relative; z-index: 1; max-width: 1240px; padding: 0 32px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb > span { margin: 0 10px; color: #7d9098; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: #58666b; background: #fffdf8c4; border: 1px solid #ccdce0; border-radius: 30px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #71838c; vertical-align: middle; margin-right: 5px; }
.status-pill .status-dot { margin: 0; }
.status-pill[data-state=online] { color: #246043; border-color: #bed9c8; background: #f0f9ef; }
.status-dot[data-state=online], .status-pill[data-state=online] .status-dot { background: #36805a; }
.status-dot[data-state=starting], .status-pill[data-state=starting] .status-dot { background: #af6e19; }
main { padding-bottom: 44px; }

/* Boutons, titres et cartes de papier. */
.eyebrow { color: var(--copper); letter-spacing: .16em; font-size: 10px; font-weight: 700; line-height: 1.7; }
.label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .11em; color: var(--muted); margin-bottom: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid #d47826; border-radius: 13px; background: var(--orange); color: #382414; font-size: 14px; line-height: 1.35; font-weight: 700; box-shadow: 0 3px 0 #bb661d22; transition: background .18s, transform .18s, box-shadow .18s; }
.button .icon { width: 19px; height: 19px; }
.button:hover:not(:disabled) { background: #f6a456; transform: translateY(-2px); box-shadow: 0 5px 12px #af6b2220; }
.button-ghost { background: #fffdf9; border-color: #c5d7db; color: #255b6a; box-shadow: none; }
.button-ghost:hover:not(:disabled) { background: #edf5f5; }
.button-cream { background: #fffaf0; color: #78461f; border-color: #d9c5a6; box-shadow: 0 3px 0 #c6ac8015; }
.button-cream:hover:not(:disabled) { background: #fff0d5; }
.button-small { font-size: 12px; min-height: 42px; padding: 10px 14px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.text-link { display: inline-block; color: #8a451b; font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.panel { background: var(--paper); border: 1px solid #d7e0dc; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 40px 0 21px; }
.section-heading h2 { margin-top: 7px; }
.section-aside { font-size: 13px; padding-bottom: 3px; }
.page-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 16px 0 20px; }
.page-heading h1 { margin: 10px 0 16px; }
.page-heading .muted { font-size: 14px; max-width: 600px; }

/* Skins : un atelier clair pour le personnage et sa collection. */
.quota-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; border: 1px solid #ddc49c; border-radius: 25px; background: #fff4df; color: #80501f; font-size: 13px; font-weight: 700; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin: 5px 0 24px; border: 1px solid #ceddde; background: #ffffffb8; border-radius: 15px; }
.tabs a { padding: 10px 19px; min-height: 44px; border-radius: 11px; color: #3f626c; font-size: 14px; }
.tabs a.selected { background: #f8e3c5; color: #784417; font-weight: 700; }
.tabs a span { font-size: 11px; border-radius: 20px; padding: 2px 7px; background: #fffcf7; margin-left: 6px; }
.skin-workspace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.viewer-panel { text-align: center; position: relative; overflow: hidden; background: #fffcf5; }
.viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subtle-tag { color: #356858; font-size: 9px; font-weight: 700; letter-spacing: .05em; padding: 5px 8px; border: 1px solid #c2d8cb; background: #edf6ee; border-radius: 6px; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 350px; margin: 18px 0 8px; overflow: hidden; border-radius: 150px 150px 24px 24px; background: radial-gradient(ellipse at 50% 40%, #fff4d9, transparent 72%), linear-gradient(180deg, #e8f5fa, #fdf9ed); }
.viewer-stage::after { content: ""; position: absolute; bottom: 26px; width: 155px; height: 24px; border-radius: 50%; background: #bdac8a26; pointer-events: none; }
#skin-viewer { position: relative; z-index: 1; max-width: 100%; touch-action: pan-y; }
.viewer-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #536b73; font-size: 13px; }
.empty-mascot { display: block; object-fit: contain; max-width: 100%; }
.viewer-empty .empty-mascot { width: 155px; height: 155px; }
#skin-fallback { position: relative; z-index: 2; max-width: 180px; image-rendering: pixelated; }
.viewer-controls { display: flex; justify-content: center; gap: 8px; margin: 8px 0 20px; }
.viewer-controls [aria-pressed=true] { background: #f9dfba; color: #754017; border-color: #c88a4a; }
.viewer-panel h2 { font-size: 24px; overflow-wrap: anywhere; }
.viewer-help { font-size: 12px; color: var(--muted); margin: 9px 0 17px; }
.upload-panel { position: relative; }
.upload-panel::after { content: ""; position: absolute; right: 17px; top: 17px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid #c29262; background: #edc992; pointer-events: none; }
.upload-panel h2 { margin: 12px 0; }
.upload-panel > .muted { font-size: 14px; margin-bottom: 21px; }
label:not(.dropzone) { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 7px; color: #4f625f; }
input:not([type=hidden]):not([type=file]):not([type=checkbox]), select { width: 100%; min-width: 0; padding: 12px 14px; background: #fffdfa; color: var(--text); border: 1px solid #7c8e89; border-radius: 11px; font-size: 14px; }
input::placeholder { color: #617578; opacity: 1; }
input[type=file] { font-size: 12px; color: #536974; width: 100%; margin: 13px 0; }
input[type=file]::file-selector-button { background: #f0f5ef; color: #335c54; border: 1px solid #c4d7ca; border-radius: 7px; padding: 8px 10px; margin-right: 9px; cursor: pointer; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 25px 15px; border: 1.5px dashed #c69962; background: #fff6e8; border-radius: 17px; cursor: pointer; text-align: center; }
.dropzone.drag-over { border-color: #9b5a1d; background: #ffe6bd; }
.upload-icon { display: grid; place-items: center; border: 1px solid #e7c696; width: 38px; height: 38px; border-radius: 12px; background: #ffedcf; font-size: 24px; color: #93521f; }
.dropzone strong { font-size: 15px; color: #75451e; }
.dropzone span:not(.upload-icon) { font-size: 12px; color: #5b6968; }
.dropzone small { font-size: 11px; color: #616b65; }
.upload-buttons { display: grid; gap: 11px; margin-top: 21px; }
.info-note { color: #5e6b68; font-size: 12px; line-height: 1.9; margin: 20px 0 15px; padding-top: 17px; border-top: 1px solid #dce3da; }
.sort-label { display: flex !important; align-items: center; gap: 10px; white-space: nowrap; margin: 0 !important; }
.sort-label select { width: auto; font-size: 12px; padding: 9px 11px; min-height: 42px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.skin-card { position: relative; min-width: 0; background: var(--paper); border: 1px solid #d1dfd8; border-radius: 20px; box-shadow: var(--shadow); }
.skin-card.is-equipped { border-color: #c28f44; box-shadow: 0 0 0 2px #eabf7922; }
.skin-card-top { position: absolute; top: 12px; left: 14px; right: 12px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.skin-card-top form { margin-left: auto; }
.equipped-badge { padding: 4px 9px; background: #fff4d9; border: 1px solid #e0bc77; color: #77501f; border-radius: 8px; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.favorite-button { color: #7e725c; background: #fffdf4d9; border: 1px solid #e5ded0; border-radius: 50%; width: 38px; height: 38px; font-size: 23px; line-height: 1; }
.favorite-button.selected { background: #fff1c9; color: #8a5d14; border-color: #dfbf7a; }
.skin-thumbnail { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: radial-gradient(circle at 50% 40%, #fff6d7, transparent 65%), linear-gradient(#eaf5f8, #f8f4e8); border: 0; border-radius: 20px 20px 0 0; color: #516d71; }
.skin-thumbnail canvas { width: 112px; height: 112px; image-rendering: pixelated; transition: transform .18s; }
.skin-thumbnail:hover canvas { transform: translateY(-3px); }
.skin-thumbnail > span { font-size: 11px; }
.skin-card-body { padding: 20px; }
.skin-card h3 { font-size: 19px; overflow-wrap: anywhere; }
.skin-date { font-size: 11px; color: #5d6f72; margin: 7px 0 16px; }
.equip-button { width: 100%; }
.skin-card-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; font-size: 12px; color: #315e6d; }
.skin-card-links > form { margin: 0; }
.text-danger { font-size: 12px; border: 0; background: transparent; color: #a43b2c; padding: 8px 0; min-height: 36px; }
.text-danger:hover { text-decoration: underline; }
.rename { position: relative; }
.rename summary { cursor: pointer; list-style: none; padding: 8px 0; min-height: 36px; }
.rename[open] form { position: absolute; z-index: 4; top: 38px; right: -50px; min-width: 220px; padding: 16px; background: #fffdf8; border: 1px solid #c9d8cf; border-radius: 14px; box-shadow: 0 12px 25px #354b4826; }
.rename form button { margin-top: 10px; }
.empty-state { padding: 28px 24px 35px; border: 1px dashed #b8cfcf; background: #fffdf9b8; border-radius: 22px; text-align: center; color: var(--muted); }
.empty-state .empty-mascot { margin: 0 auto 15px; width: 130px; height: 130px; }
.empty-state h3 { color: #5e442f; margin-bottom: 11px; font-size: 23px; }
.empty-state p { font-size: 14px; }

/* Connexion, notifications et confirmations. */
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 65px; align-items: center; padding: 25px 30px 30px; }
.login-story h1 { font-size: 47px; margin: 15px 0; }
.login-story > p:last-of-type { font-size: 14px; color: var(--muted); max-width: 360px; }
.login-panel { padding: 34px; max-width: 460px; }
.login-panel h2 { margin-bottom: 10px; font-size: 30px; }
.login-panel .feature-icon { margin-bottom: 22px; }
.login-panel form > .button { width: 100%; margin-top: 25px; }
.login-panel .small { margin-top: 18px; }
.remember-choice { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; cursor: pointer; }
.remember-choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #8a561f; flex-shrink: 0; }
.remember-choice small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 4px; }
.notice { padding: 16px 20px; color: #295e42; background: #f1faed; border: 1px solid #a9ceae; border-radius: 14px; margin-bottom: 22px; font-size: 14px; }
.notice.error { background: #fff1e9; color: #943824; border-color: #d9a08c; }
.toast { position: fixed; bottom: 25px; right: 25px; z-index: 30; max-width: 450px; border: 1px solid #b7cbb1; border-left: 5px solid #4b8056; border-radius: 14px; background: #fffef8; color: #304733; padding: 17px 22px; box-shadow: 0 10px 35px #48665a24; font-size: 14px; }
.toast.error { border-color: #d9a18c; border-left-color: #b44129; color: #883824; }

/* Tutos et publications : le texte garde la priorité. */
.tutorial-intro { max-width: 750px; }
.tutorial-layout { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 27px; align-items: start; margin-top: 22px; }
.tutorial-nav { display: grid; gap: 4px; position: sticky; top: 25px; padding: 10px; background: #fffdf5bf; border: 1px solid #d8e0d7; border-radius: 16px; }
.tutorial-nav a { padding: 10px 9px; color: #4d666c; border-radius: 8px; font-size: 12px; }
.tutorial-nav a:hover { background: #f7ead3; color: #7a4c22; }
.tutorial-section { margin-bottom: 24px; padding: 30px; }
.tutorial-section h2 { margin: 9px 0 17px; font-size: 28px; }
.tutorial-section h3 { font-size: 19px; margin: 23px 0 12px; }
.tutorial-section p { color: #53686d; font-size: 14px; line-height: 1.85; }
.steps { counter-reset: step; padding: 0; margin: 24px 0 12px; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 42px; font-size: 14px; color: #445c62; line-height: 1.95; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 1px; left: 0; width: 28px; height: 28px; line-height: 26px; text-align: center; background: #fff0d8; border: 1px solid #dec194; color: #835021; font-size: 10px; font-weight: 700; border-radius: 50%; }
.steps strong { color: #384c50; }
.checkline { display: flex !important; align-items: center; gap: 11px; border-top: 1px solid #dce4d7; padding: 17px 0 0; color: #35634e !important; font-size: 13px !important; }
.checkline input { width: 18px; height: 18px; accent-color: #8a561f; flex-shrink: 0; }
.check-progress { display: flex; align-items: center; gap: 14px; margin-top: 19px; font-size: 12px; color: #35634e; max-width: 460px; }
.progress-track { flex: 1; background: #dae5df; height: 6px; border-radius: 8px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: #b8742e; transition: width .2s; }
code { font-family: Consolas, monospace; font-size: .92em; background: #f7edda; color: #774622; border-radius: 5px; padding: 3px 6px; overflow-wrap: anywhere; }
pre { margin: 17px 0; padding: 18px; background: #fff4df; color: #71431f; border: 1px solid #e5d3b0; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; }
pre code { background: none; padding: 0; }
.code-copy { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; margin: 12px 0; border: 1px solid #d7c49f; border-radius: 12px; background: #fff5df; }
.code-copy code { background: none; }
.code-copy button { border: 0; background: none; color: #80501d; font-size: 12px; font-weight: 700; padding: 7px 0; }
.tutorial-section a:not(.button) { color: #8b461d; text-decoration: underline; text-underline-offset: 3px; }
.download-list { display: grid; gap: 16px; margin-top: 22px; }
.download-file { padding: 20px; background: #f9f8ef; border: 1px solid #daddc9; border-radius: 16px; }
.download-file-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.download-file h3 { font-size: 21px; margin: 0; }
.download-file p { font-size: 12px; margin-top: 8px; }
.download-file .button { flex-shrink: 0; }
.hash { display: block; font: 10px Consolas, monospace; color: #5e6c65; overflow-wrap: anywhere; margin-top: 14px; }
details.faq { padding: 17px 0; border-top: 1px solid #d9e0d4; font-size: 14px; }
details.faq summary { color: #445a5e; cursor: pointer; font-weight: 700; }
details.faq p { padding-top: 12px; }
.feed-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.feed-card { overflow: hidden; }
.feed-card h2 { font-size: 25px; margin: 15px 0; }
.feed-card time { color: #64736c; font-size: 12px; }
.feed-text { color: #455f65; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; margin: 15px 0 22px; }
.feed-card img { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: 13px; background: #edf4f2; margin: 15px 0; }
.feed-meta { font-size: 13px; color: #35634e; margin-top: 15px; }
.feed-countdown { color: #80521f; font-size: 13px; margin: 10px 0; }
.sync-note { color: #5a706f; font-size: 12px; margin: 0 0 26px; }
.sync-note.stale { padding: 12px 16px; color: #80501f; background: #fff1d6; border: 1px solid #d6b57e; border-radius: 11px; }

/* Les petits écrans gardent de grandes cibles et des textes lisibles. */
@media (max-width: 1120px) {
  .header-inner { gap: 14px; padding: 15px 24px; }
  .brand > span { font-size: 24px; }
  .brand img { width: 51px; height: 51px; }
  .main-nav a { padding: 10px; font-size: 13px; }
  .main-nav a .icon { display: none; }
  .server-strip { gap: 15px; }
  .server-strip-item { padding-right: 15px; }
  .copy-address { font-size: 12px; }
  .tutorial-layout { grid-template-columns: 185px minmax(0,1fr); gap: 20px; }
  .download-file-top { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-bottom: 10px; }
  .header-account { margin-left: auto; }
  .main-nav { width: 100%; order: 3; justify-content: center; }
  .main-nav a { padding: 9px 20px; }
  .main-nav a .icon { display: block; }
  .server-strip { padding: 18px 22px; }
  .server-strip .address-item { flex: none; width: 100%; max-width: none; border-top: 1px solid #dce5df; padding-top: 12px; }
  .server-strip-item { border: 0; padding-right: 0; }
  .copy-address { font-size: 14px; }
  .status-check { margin: 0; }
  .section-aside { display: none; }
  .skin-workspace { grid-template-columns: 1fr; }
  .skin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .viewer-stage { max-width: 500px; margin-left: auto; margin-right: auto; }
  .upload-buttons { grid-template-columns: 1fr 1fr; }
  .tutorial-layout { grid-template-columns: 1fr; }
  .tutorial-nav { position: static; display: flex; flex-wrap: wrap; gap: 2px; }
  .tutorial-nav a { padding: 9px; }
  .feed-grid { grid-template-columns: 1fr; }
  .login-layout { gap: 26px; padding: 15px 0; }
  .login-story h1 { font-size: 37px; }
  .login-panel { padding: 27px; }
}
@media (max-width: 650px) {
  .header-inner { padding: 13px 16px 9px; gap: 11px; }
  .brand { gap: 9px; }
  .brand img { width: 47px; height: 47px; }
  .brand > span { font-size: 23px; }
  .brand small { font-size: 7px; letter-spacing: .1em; }
  .header-account { gap: 4px; }
  .header-account .button-small { padding: 9px 11px; font-size: 11px; gap: 4px; }
  .header-account .button .icon { display: none; }
  .account-avatar { display: none; }
  .account-pill { font-size: 11px; max-width: 90px; }
  .header-account .icon-button { width: 35px; height: 38px; }
  .main-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
  .main-nav a { justify-content: center; flex-direction: column; gap: 5px; min-height: 53px; font-size: 11px; padding: 7px 2px; line-height: 1.3; }
  .main-nav a .icon { width: 19px; height: 19px; }
  .shell { padding: 0 17px; }
  .topbar { min-height: 53px; gap: 7px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > span { margin: 0 4px; }
  .status-pill { font-size: 10px; padding: 4px 9px; }
  .server-strip { margin-top: 13px; padding: 17px 19px; border-radius: 17px; gap: 13px 7px; }
  .label { font-size: 8px; }
  .server-strip-item strong { font-size: 14px; }
  .server-strip-item strong small { font-size: 11px; }
  .copy-address { font-size: 12px; gap: 10px; }
  .port { font-size: 10px; }
  .status-check { font-size: 9px; }
  .section-heading { margin-top: 29px; align-items: start; gap: 12px; }
  .section-heading h2 { font-size: 25px; }
  .feature-icon { margin-bottom: 17px; }
  .card-link { font-size: 13px; }
  .page-heading { gap: 12px; align-items: flex-start; padding-top: 7px; }
  .page-heading h1 { font-size: 36px; margin: 11px 0 14px; }
  .page-heading .muted { font-size: 13px; }
  .quota-pill { font-size: 10px; padding: 9px 11px; margin-top: 20px; }
  .tabs { margin-bottom: 20px; }
  .tabs a { font-size: 13px; padding: 10px 16px; }
  .panel { padding: 23px; border-radius: 20px; }
  .viewer-stage { min-height: 340px; margin-left: -7px; margin-right: -7px; }
  .viewer-heading { gap: 7px; }
  .viewer-heading .eyebrow { font-size: 9px; }
  .subtle-tag { font-size: 8px; }
  .viewer-controls { gap: 7px; }
  .button-small { min-height: 44px; }
  .viewer-help { font-size: 11px; }
  .upload-buttons { grid-template-columns: 1fr; }
  input:not([type=hidden]):not([type=file]):not([type=checkbox]), select { font-size: 16px; }
  .info-note { font-size: 13px; }
  .skin-grid { grid-template-columns: 1fr; gap: 17px; }
  .skin-thumbnail { height: 210px; }
  .skin-card-links { font-size: 13px; }
  .text-danger { font-size: 13px; min-height: 42px; }
  .collection-section .section-heading { align-items: center; }
  .collection-section h2 { font-size: 23px; }
  .collection-section .eyebrow { font-size: 9px; }
  .sort-label { font-size: 11px !important; flex-direction: column; gap: 4px; align-items: flex-end; }
  .sort-label select { max-width: 130px; font-size: 11px; }
  .rename[open] form { right: -45px; }
  .empty-state { padding: 25px 20px; }
  .empty-state h3 { font-size: 22px; }
  .tutorial-layout { margin-top: 12px; gap: 20px; }
  .tutorial-nav { padding: 7px; }
  .tutorial-nav a { font-size: 11px; }
  .tutorial-section { padding: 23px 19px; }
  .tutorial-section h2 { font-size: 25px; }
  .tutorial-section p, .steps li { font-size: 13px; }
  .steps li { padding-left: 36px; }
  .check-progress { font-size: 11px; }
  .download-file { padding: 17px; }
  .download-file .button { width: 100%; }
  .download-file-top { gap: 14px; }
  .download-file-top > div { width: 100%; }
  .code-copy { padding: 13px 10px; gap: 10px; }
  .code-copy code { font-size: 10px; }
  .code-copy button { font-size: 11px; }
  .feed-card h2 { font-size: 24px; }
  .login-layout { grid-template-columns: 1fr; padding: 8px 0 10px; gap: 24px; }
  .login-story h1 { font-size: 32px; }
  .login-story > p:last-of-type { font-size: 13px; }
  .login-panel { max-width: none; }
  .toast { left: 15px; right: 15px; bottom: 15px; max-width: none; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
