/* =========================================================================
   Thomgraphics · Portafolio — estilos
   ========================================================================= */
:root {
  /* En Mac/iPhone usa la fuente del sistema (SF Pro); en Windows/Android, Inter */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --win-bg: #ffffff;
  --win-bar: #f3f2ef;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --accent: #0a64d8;
  --menubar-h: 26px;
  --radius-win: 12px;
  --shadow-win: 0 30px 80px -10px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #cfd2bf;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Fondo ---------- */
.wallpaper {
  position: fixed; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: filter 0.8s var(--ease), transform 1.4s var(--ease);
}
body.booted .wallpaper { transform: scale(1); }
body.has-window .wallpaper { filter: blur(2px) saturate(0.95); }

/* ---------- Barra de menú ---------- */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--menubar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 10px;
  font-size: 13px; color: #fff;
  background: rgba(30, 30, 30, 0.16);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}
.menubar .mb-item { padding: 2px 8px; border-radius: 4px; white-space: nowrap; text-decoration: none; }
.menubar .mb-item:hover { background: rgba(255, 255, 255, 0.18); }
.menubar .mb-brand { font-weight: 700; }
.menubar .mb-logo { display: grid; place-items: center; padding: 2px 9px; }
.menubar .mb-status { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.menubar .mb-app { font-weight: 600; }
.menubar .mb-spacer { flex: 1; }
.menubar .mb-lang { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.menubar .mb-lang button { opacity: 0.6; padding: 2px 3px; }
.menubar .mb-lang button[aria-pressed="true"] { opacity: 1; font-weight: 600; }
.menubar .mb-clock { padding: 0 6px; font-variant-numeric: tabular-nums; }
.menubar .short { display: none; }
@media (max-width: 760px) { .menubar .short { display: inline; } .menubar .long { display: none; } }

/* ---------- Escritorio ---------- */
.desktop { position: fixed; inset: var(--menubar-h) 0 0 0; z-index: 1; }
.icons { position: absolute; inset: 0; }

.icon {
  position: absolute;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  width: 104px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 4px;
  border-radius: 8px;
  touch-action: none;
  opacity: 0;
  animation: icon-in 0.6s var(--spring) forwards;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
@keyframes icon-in { from { opacity: 0; transform: translate(-50%, -40%) scale(0.85); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.icon.dragging { z-index: 50; cursor: grabbing; transition: none; }
.icon.dragging .icon-art { transform: scale(1.06); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3)); }
.icon-art { width: 70px; height: 59px; display: grid; place-items: center; transition: transform 0.2s var(--ease); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16)); }
.icon-art svg { width: 100%; height: 100%; overflow: visible; }
.icon-art { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12)); }
.icon-art .icon-img { width: 56px; height: 56px; object-fit: contain; }

.icon:hover .icon-art { transform: translateY(-2px); }
.icon-label {
  font-size: 12px; line-height: 1.2; color: #fff; text-align: center;
  padding: 1px 5px; border-radius: 4px; max-width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.icon.selected .icon-label { background: var(--accent); text-shadow: none; }
.icon.selected .icon-art { background: rgba(0, 0, 0, 0.12); border-radius: 6px; }

/* Miniatura tipo foto (polaroid) */
.thumb-photo { width: 54px; height: 54px; background: #fff; padding: 4px 4px 4px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: rotate(-3deg); }
.thumb-photo img { width: 100%; height: 100%; object-fit: cover; }
.icon:nth-child(even) .thumb-photo { transform: rotate(3deg); }
.thumb-video { width: 64px; height: 44px; border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 2px 6px rgba(0,0,0,.3); background: #000; }
.thumb-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.thumb-video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; transform: translateX(2px); }

/* ---------- Nota adhesiva ---------- */
.sticky {
  position: absolute; left: 28%; top: 9%;
  width: 240px; padding: 14px 16px 16px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.25);
  transform: rotate(-1.5deg);
  opacity: 0; transition: opacity 0.6s var(--ease) 0.4s;
  touch-action: none; cursor: grab;
}
body.booted .sticky { opacity: 1; }
.sticky h2 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.sticky p { margin: 0; font-size: 14px; color: var(--ink-2); min-height: 1.3em; }
.sticky .caret { display: inline-block; width: 1.5px; height: 1em; background: #f0a500; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Notificación ---------- */
.notification {
  position: absolute; top: 14px; right: 18px; z-index: 40;
  width: 340px; padding: 12px 14px;
  background: var(--glass-strong);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 18px;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.7s var(--spring), opacity 0.4s;
}
.notification.show { transform: translateX(0); opacity: 1; }
.notification .n-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.notification .n-app-icon { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(#5ee47a, #1fb94a); display: grid; place-items: center; }
.notification .n-app-icon svg { width: 10px; height: 10px; }
.notification .n-time { margin-left: auto; }
.notification .n-title { font-weight: 600; font-size: 14px; margin: 4px 0 2px; }
.notification .n-body { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.notification .n-close {
  position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--glass-strong); box-shadow: 0 1px 4px rgba(0,0,0,.2); font-size: 12px; line-height: 20px;
  opacity: 0; transition: opacity 0.2s;
}
.notification:hover .n-close, .notification:focus-within .n-close { opacity: 1; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 8px; z-index: 8000;
  transform: translate(-50%, 140%);
  display: flex; align-items: flex-end; gap: 6px; padding: 6px 7px 7px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.35), inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  transition: transform 0.8s var(--spring) 0.3s;
}
body.booted .dock { transform: translate(-50%, 0); }
.dk {
  --mag: 1;
  position: relative; display: block; width: 52px; height: 52px; flex: none;
  transform-origin: 50% 100%;
  transform: translateY(calc((var(--mag) - 1) * -10px)) scale(var(--mag));
  margin: 0 calc((var(--mag) - 1) * 18px);
  transition: transform 0.14s ease-out, margin 0.14s ease-out;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.22));
}
.dk svg, .dk img { width: 100%; height: 100%; display: block; object-fit: contain; }
.dk:active svg { filter: brightness(0.82); }
.dk .tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) scale(calc(1 / var(--mag)));
  transform-origin: 50% 100%;
  padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap;
  background: rgba(240, 240, 240, 0.85); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,.18), inset 0 0 0 0.5px rgba(0,0,0,.1);
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.dk:hover .tip, .dk:focus-visible .tip { opacity: 1; }
.dk .dot { position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.2s; }
.dk.open .dot { opacity: 1; }
.dock .sep { width: 1px; align-self: stretch; margin: 4px 4px; background: rgba(0, 0, 0, 0.18); }

/* ---------- Ventanas ---------- */
.windows { position: fixed; inset: var(--menubar-h) 0 0 0; pointer-events: none; z-index: 100; }
.win {
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column;
  background: var(--win-bg);
  border-radius: var(--radius-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  min-width: 320px; min-height: 200px;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: win-open 0.42s var(--spring);
}
.win.closing { animation: win-close 0.22s var(--ease) forwards; }
@keyframes win-open { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes win-close { to { opacity: 0; transform: scale(0.85); } }
.win.inactive { box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.14); }
.win.inactive .traffic span { background: #d6d6d6 !important; }
.win.maximized { left: 8px !important; top: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 90px) !important; }

.win-bar {
  flex: none; height: 38px; position: relative;
  display: flex; align-items: center; padding: 0 14px;
  background: var(--win-bar); border-bottom: 0.5px solid var(--line);
  cursor: grab; touch-action: none;
}
.win-bar:active { cursor: grabbing; }
.win-title { position: absolute; left: 80px; right: 80px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.traffic { display: flex; gap: 8px; z-index: 1; }
.traffic button { width: 12px; height: 12px; display: grid; place-items: center; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.15); }
.traffic .t-close span { background: #ff5f57; }
.traffic .t-min span { background: #febc2e; }
.traffic .t-max span { background: #28c840; }
.traffic svg { width: 8px; height: 8px; opacity: 0; stroke: rgba(0,0,0,.55); stroke-width: 1.4; fill: none; }
.traffic:hover svg { opacity: 1; }
.win-actions { margin-left: auto; z-index: 1; display: flex; gap: 8px; }
.win-actions a { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.06); text-decoration: none; }
.win-actions a:hover { background: rgba(0,0,0,.1); }

.win-body { flex: 1; overflow: auto; overscroll-behavior: contain; user-select: text; -webkit-user-select: text; }
.win-body::-webkit-scrollbar { width: 10px; }
.win-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- Carpeta (ventana tipo Finder) ---------- */
.win.finder .win-body { display: flex; overflow: hidden; }
.win.finder .win-bar { background: #f6f5f4; }
.sidebar {
  width: 196px; flex: none; overflow-y: auto; padding: 8px 10px 16px;
  background: rgba(236, 235, 234, 0.92); border-right: 0.5px solid var(--line);
  user-select: none; -webkit-user-select: none;
}
.sb-h { font-size: 11px; font-weight: 600; color: #8e8e93; margin: 14px 8px 4px; }
.sb-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border-radius: 6px; font-size: 13px; text-align: left; color: var(--ink); }
.sb-item svg { width: 17px; height: 14px; flex: none; color: #2b7de9; }
.sb-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item:hover { background: rgba(0, 0, 0, 0.04); }
.sb-item[aria-current="true"] { background: rgba(0, 0, 0, 0.09); font-weight: 500; }
.main { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.folder-head { padding: 28px 32px 18px; border-bottom: 0.5px solid var(--line); }
.folder-head h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; }
.folder-head p { margin: 0 0 16px; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 2px; background: rgba(0,0,0,.06); border-radius: 8px; }
.seg button { font-size: 12px; padding: 4px 10px; border-radius: 6px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.count { font-size: 12px; color: var(--muted); }

.grid { padding: 16px; columns: 3 220px; column-gap: 12px; }
.tile {
  break-inside: avoid; margin: 0 0 12px; width: 100%;
  position: relative; display: block; text-align: left;
  border-radius: 10px; overflow: hidden; background: #eee;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: tile-in 0.5s var(--ease) both; animation-delay: calc(var(--i) * 35ms);
}
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.35); }
.tile img { width: 100%; height: auto; }
.tile .badge { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.tile .cap strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.tile .cap span { font-size: 12px; opacity: 0.85; }
.tile.is-case img { aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Caso de estudio ---------- */
.case { padding-bottom: 48px; }
.case-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.case-inner { max-width: 760px; margin: 0 auto; padding: 32px 32px 0; }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--ink-2); }
.case h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.05; }
.case .sub { margin: 8px 0 26px; font-size: 18px; color: var(--muted); }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 18px 0; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); margin-bottom: 30px; }
.case-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-size: 14px; font-weight: 500; }
.case section { margin-bottom: 34px; }
.case h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; }
.case section p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.case section img { border-radius: 12px; width: 100%; cursor: zoom-in; }
.case-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 0.5px solid var(--line); }
.case-nav button { font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,.05); }
.case-nav button:hover { background: rgba(0,0,0,.09); }

/* ---------- Nota (Sobre mí) ---------- */
.note { background: #fffdf6; min-height: 100%; padding: 22px 34px 40px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.note .date { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.note p { margin: 0 0 14px; }
.note p:first-of-type { font-weight: 600; color: var(--ink); }
.note .skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* ---------- Visor (foto / video / pdf) ---------- */
.viewer { height: 100%; background: #111; display: grid; place-items: center; }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer.light { background: #f6f6f6; }
.pdf-frame { width: 100%; height: 100%; border: 0; background: #f6f6f6; }
.pdf-fallback { padding: 40px; text-align: center; font-size: 14px; color: var(--muted); }
.btn { display: inline-block; margin-top: 12px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 10000;
  background-size: cover; background-position: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-stack { position: absolute; inset: 0; }
.intro-win {
  position: absolute; left: 50%; top: 48%;
  width: min(240px, 52vw);
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.45);
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.7);
  opacity: 0;
  animation: pop 0.45s var(--spring) forwards;
}
@keyframes pop { to { opacity: 1; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); } }
.intro-win .bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 8px; background: var(--win-bar); font-size: 11px; color: var(--ink-2); }
.intro-win .bar i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.intro-win .bar i:nth-child(1) { background: #ff5f57; } .intro-win .bar i:nth-child(2) { background: #febc2e; } .intro-win .bar i:nth-child(3) { background: #28c840; }
.intro-win .bar span { flex: 1; text-align: center; margin-right: 30px; }
.intro-win img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.skip-intro {
  position: absolute; right: 16px; bottom: 16px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.noscript { position: fixed; inset: 0; background: #fff; padding: 40px; z-index: 99999; overflow: auto; user-select: text; }

/* =========================================================================
   MÓVIL — estilo pantalla de inicio de teléfono
   ========================================================================= */
@media (max-width: 760px) {
  :root { --menubar-h: 30px; }
  .menubar { font-size: 12px; padding: 0 12px; padding-top: env(safe-area-inset-top); height: calc(var(--menubar-h) + env(safe-area-inset-top)); }
  .menubar .mb-hide-sm { display: none; }
  .desktop { top: calc(var(--menubar-h) + env(safe-area-inset-top)); overflow-y: auto; padding-bottom: 110px; }
  .sticky { position: relative; left: auto; top: auto; margin: 14px auto 0; width: calc(100% - 32px); transform: none; cursor: default; }
  .notification { position: relative; top: auto; right: auto; margin: 12px auto 0; width: calc(100% - 32px); transform: translateY(-20px); }
  .notification.show { transform: none; }
  .notification[hidden] { display: none; }
  .icons { position: relative; inset: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 4px; padding: 22px 12px; }
  .icon { position: relative; left: auto; top: auto; transform: none; width: auto; animation-name: icon-in-sm; }
  @keyframes icon-in-sm { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
  .icon-label { font-size: 11px; }
  .dock { bottom: max(10px, env(safe-area-inset-bottom)); gap: 8px; }
  .dk { width: 46px; height: 46px; }
  .dock { gap: 6px; }
  .dk .tip { display: none; }
  .sidebar { display: none; }
  .menubar .mb-logo { display: none; }
  .menubar .mb-status { gap: 6px; padding: 0 4px; }

  .windows { top: 0; z-index: 9500; }
  .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; animation: sheet-up 0.4s var(--ease); }
  .win.closing { animation: sheet-down 0.25s var(--ease) forwards; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
  .win-bar { height: calc(46px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); cursor: default; }
  .traffic .t-min, .traffic .t-max { display: none; }
  .traffic .t-close, .traffic .t-close span { width: 26px; height: 26px; }
  .traffic svg { opacity: 1; width: 10px; height: 10px; }
  .folder-head { padding: 20px 18px 14px; }
  .folder-head h1 { font-size: 28px; }
  .grid { padding: 10px; columns: 2 140px; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .case-inner { padding: 22px 18px 0; }
  .note { padding: 18px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
