/* Layout: sticky frosted bar; large title with progress; inset-grouped lists (clients, shoot days, people) and the
   inspiration list (1:1 thumbnail · title, description, note, meta · check) or 1:1 grid; sheets for forms. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --fg2: #3d3d41;
  --muted: #66666b;
  --hair: rgba(0, 0, 0, 0.09);
  --fill: rgba(118, 118, 128, 0.12);
  --fill2: rgba(118, 118, 128, 0.08);
  --seg-on: #ffffff;
  --ring: #8e8e93;
  --link: #0066cc;
  --btn: #0071e3;
  --on-btn: #ffffff;
  --done: #248a3d;
  --on-done: #ffffff;
  --done-ink: #1b6f30;
  --wait: #9a5b00;
  --danger: #c4001a;
  --glass: rgba(245, 245, 247, 0.8);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --fg: #f5f5f7;
    --fg2: #d1d1d6;
    --muted: #a1a1a6;
    --hair: rgba(255, 255, 255, 0.1);
    --fill: rgba(118, 118, 128, 0.24);
    --fill2: rgba(118, 118, 128, 0.16);
    --seg-on: #636366;
    --ring: #8e8e93;
    --link: #4da3ff;
    --btn: #0071e3;
    --on-btn: #ffffff;
    --done: #30d158;
    --on-done: #000000;
    --done-ink: #30d158;
    --wait: #ffb340;
    --danger: #ff6961;
    --glass: rgba(22, 22, 23, 0.74);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--glass); }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--btn) 55%, transparent); outline-offset: 2px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Bar */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; color: var(--fg); text-decoration: none; }
.brand img { border-radius: 50%; }
.bar-actions, #barAction, #account { display: flex; align-items: center; gap: 10px; }

.btn {
  border: 0;
  border-radius: 980px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-plain { background: var(--fill); color: var(--fg); }
.btn-danger { background: transparent; color: var(--danger); padding-inline: 4px; }
.btn-danger.armed { background: var(--danger); color: #fff; padding-inline: 14px; }
.btn.wide { width: 100%; padding-block: 11px; font-size: 15px; }
.btn .plus svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.linkish { border: 0; background: none; padding: 0; color: var(--link); font-size: inherit; text-align: left; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }

.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: 980px; }
.me-btn:hover { background: var(--fill2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.avatar.big { width: 40px; height: 40px; font-size: 16px; }
.me-name { font-size: 14px; color: var(--fg2); }
.me-pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px; padding: 8px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--hair);
  display: grid; gap: 2px; z-index: 6;
}
.me-who { display: grid; gap: 1px; padding: 6px 10px 10px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; font-size: 14px; }
.me-who span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.me-link { display: block; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--fg); text-decoration: none; }
.me-link:hover { background: var(--fill2); }

/* Page head */
.page { padding-bottom: 56px; }
.crumb { padding-top: 22px; min-height: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--link); text-decoration: none; font-size: 15px; }
.back svg { width: 9px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero { padding-block: 28px 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.crumb + .hero { padding-top: 10px; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.hero-sub { margin: 8px 0 0; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.progress { flex: 0 1 260px; min-width: 200px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.progress-row b { color: var(--fg); font-weight: 600; }
.track { height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--done); border-radius: 6px; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.day-note { margin: -6px 0 20px; max-width: 70ch; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.tools-left, .tools-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.tools-left { flex: 1 1 360px; }
.seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; max-width: 100%; }
.seg button, .seg a { border: 0; background: transparent; padding: 6px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--fg); text-decoration: none; }
.seg button[aria-pressed="true"], .seg a[aria-current="page"] { background: var(--seg-on); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04); }
.seg button:disabled { cursor: default; opacity: 0.6; }
.seg .n { color: var(--muted); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.seg.small button { padding: 5px 12px; font-size: 13px; }
.seg.icons button { padding: 5px 9px; display: grid; place-items: center; }
.seg.icons svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.search { position: relative; flex: 1 1 200px; max-width: 300px; display: block; }
.search svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; border: 0; border-radius: 10px; background: var(--fill); padding: 7px 12px 7px 32px; font-size: 14px; }
.search input::placeholder { color: var(--muted); opacity: 1; }

/* Inset-grouped lists */
.list { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.groups { display: grid; gap: 26px; }
.group-title { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.group + .group { margin-top: 26px; }
.list-empty { margin: 0; padding: 18px; color: var(--muted); }

.nav-row-wrap { position: relative; }
.nav-row { display: flex; align-items: center; gap: 14px; padding: 14px 40px 14px 18px; color: var(--fg); text-decoration: none; min-height: 68px; position: relative; }
.nav-row:hover { background: var(--fill2); }
.nav-row-wrap + .nav-row-wrap::before, .nav-list > .nav-row + .nav-row::before { content: ""; position: absolute; left: 76px; right: 0; height: 1px; background: var(--hair); top: 0; }
.nav-row-wrap:has(.row-edit) .nav-row { padding-right: 140px; }
.row-edit { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.initial { width: 44px; height: 44px; border-radius: 12px; background: var(--fill); display: grid; place-items: center; font-weight: 600; font-size: 18px; flex: none; color: var(--fg2); }
.nav-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.nav-title { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--fg); text-decoration: none; }
a.nav-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pill { font-size: 13px; font-weight: 500; color: var(--fg2); background: var(--fill); border-radius: 980px; padding: 3px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.ok { color: var(--done-ink); background: color-mix(in srgb, var(--done) 14%, transparent); }
.chev { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.chev svg { width: 8px; height: 14px; display: block; fill: none; stroke: var(--ring); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.date-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--fill); display: grid; place-content: center; text-align: center; line-height: 1; flex: none; }
.date-tile small { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger); }
.date-tile b { font-size: 19px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.date-tile.none b { color: var(--muted); }
.nav-row.skeleton .initial { background: var(--fill2); }
.nav-row.skeleton .nav-body i { display: block; height: 12px; border-radius: 6px; background: var(--fill2); width: 40%; }
.nav-row.skeleton .nav-body i:first-child { height: 16px; width: 55%; }

/* Inspiration list */
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; padding: 16px 18px; position: relative; align-items: start; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 148px; right: 0; height: 1px; background: var(--hair); }
.thumb { width: 112px; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--fill); position: relative; display: block; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.25s, opacity 0.25s; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .ph svg { width: 30%; height: 30%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.thumb.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.3s infinite linear; }

.r-body { min-width: 0; display: grid; gap: 6px; align-content: start; }
.r-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; justify-self: start; }
.r-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.r-title.fallback { font-weight: 500; color: var(--fg2); }
.r-desc { margin: 0; font-size: 15px; line-height: 1.45; color: var(--fg2); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-note { font-size: 14px; line-height: 1.45; color: var(--fg2); background: var(--fill2); border-radius: 10px; padding: 8px 12px; white-space: pre-line; overflow-wrap: anywhere; }
.r-note .lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.r-add { justify-self: start; font-size: 14px; color: var(--muted); }
.r-add:hover { color: var(--link); }
.r-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.r-meta .plat { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.r-meta .done-by { color: var(--fg2); }

.check {
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  border: 2px solid var(--ring); background: transparent;
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
button.check:hover { border-color: var(--done); }
button.check:active { transform: scale(0.9); }
.check.readonly { cursor: default; }
.check svg { width: 15px; height: 15px; fill: none; stroke: var(--on-done); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.done .check { background: var(--done); border-color: var(--done); }
.done .check svg { opacity: 1; transform: scale(1); }
.row.done .thumb img { filter: grayscale(0.85); opacity: 0.75; }
.row.done .r-title { color: var(--muted); }

.row.skeleton .thumb { background: var(--fill2); }
.row.skeleton .r-body i { display: block; height: 12px; border-radius: 6px; background: var(--fill2); }
.row.skeleton .r-body i:first-child { width: 45%; height: 16px; }
.row.skeleton .r-body i:nth-child(2) { width: 80%; }
.row.skeleton .r-body i:nth-child(3) { width: 30%; }

.empty { padding: 56px 20px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty h2 { margin: 0; font-size: 20px; font-weight: 600; }
.empty p { margin: 0 0 8px; color: var(--muted); max-width: 46ch; }

/* Grid */
.list.grid { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.list.grid .empty { grid-column: 1 / -1; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.tile { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.tile > a { position: absolute; inset: 0; color: #fff; text-decoration: none; }
.tile .thumb { position: absolute; inset: 0; width: 100%; border-radius: 0; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 58%); }
.tile .t-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: grid; gap: 2px; }
.tile .t-plat { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tile .t-title { font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile .check { position: absolute; top: 12px; right: 12px; z-index: 2; border-color: rgba(255, 255, 255, 0.95); background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tile.done .check { background: var(--done); border-color: var(--done); }
.tile.done .thumb img { filter: grayscale(0.85) brightness(0.8); }
.tile .edit { position: absolute; top: 12px; left: 12px; z-index: 2; border: 0; height: 30px; padding: 0 12px; border-radius: 980px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.2s; }
.tile:hover .edit, .tile .edit:focus-visible { opacity: 1; }
@media (hover: none) { .tile .edit { opacity: 1; } }

.hint { color: var(--muted); font-size: 13px; margin: 0; }

/* Sign-in */
.auth { min-height: calc(100vh - 160px); display: grid; place-items: center; padding-block: 40px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 30px 26px; display: grid; gap: 14px; justify-items: center; }
.auth-logo { border-radius: 50%; }
.auth-form { width: 100%; display: grid; gap: 14px; }
.auth-form h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; text-align: center; }
.auth-form > .hero-sub, .auth-form > .hint { text-align: center; margin: 0; }
.auth-card .empty { padding: 10px 0; }
.ghost-email { width: 100%; border: 0; background: none; text-align: center; color: var(--muted); font-size: 14px; padding: 0; }

/* Admin */
.admin-tabs { margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { padding: 7px 18px; }
.person { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: none; text-align: left; position: relative; }
.person:hover { background: var(--fill2); }
.person + .person::before { content: ""; position: absolute; left: 72px; right: 0; top: 0; height: 1px; background: var(--hair); }
.badge { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 980px; background: var(--fg); color: var(--bg); }
.badge.soft { background: var(--fill); color: var(--fg2); }
.status { font-size: 13px; white-space: nowrap; color: var(--muted); }
.status.ok { color: var(--done-ink); }
.status.wait { color: var(--wait); }
.status.off { color: var(--danger); }
.toggles { display: grid; background: var(--fill2); border-radius: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; position: relative; cursor: pointer; }
.toggle + .toggle { border-top: 1px solid var(--hair); }
.toggle-text { display: grid; gap: 1px; font-size: 15px; }
.toggle-text small { color: var(--muted); font-size: 13px; }
.toggle input { position: absolute; opacity: 0; width: 51px; height: 31px; right: 14px; margin: 0; cursor: pointer; }
.toggle-ui { width: 51px; height: 31px; border-radius: 31px; background: var(--fill); flex: none; position: relative; transition: background 0.2s; }
.toggle-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.toggle input:checked + .toggle-ui { background: var(--done); }
.toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid color-mix(in srgb, var(--btn) 55%, transparent); outline-offset: 2px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; background: var(--fill2); cursor: pointer; font-size: 15px; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--btn); flex: none; }
.person-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-box { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--fill2); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; border: 0; border-radius: 10px; background: var(--surface); padding: 9px 12px; font-size: 14px; }
.arch-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; position: relative; }
.arch-row + .arch-row::before { content: ""; position: absolute; left: 18px; right: 0; top: 0; height: 1px; background: var(--hair); }
.arch-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--fill); display: grid; place-items: center; color: var(--muted); flex: none; }
.arch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.arch-thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.log-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 11px 18px; font-size: 14px; position: relative; }
.log-row + .log-row::before { content: ""; position: absolute; left: 18px; right: 0; top: 0; height: 1px; background: var(--hair); }
.log-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-text { color: var(--fg2); overflow-wrap: anywhere; }
.log-text b { color: var(--fg); font-weight: 600; }

/* Sheet */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.38); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fade 0.2s; }
.sheet { width: 100%; max-width: 560px; max-height: 100%; overflow: auto; background: var(--surface); border-radius: 22px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); animation: up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sheet-body { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input[type="url"], .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field textarea, .field select {
  width: 100%; border: 0; background: var(--fill); border-radius: 12px; padding: 11px 13px; font-size: 16px; line-height: 1.4; min-height: 46px;
}
.field input[readonly] { color: var(--muted); }
.field textarea { resize: vertical; min-height: 64px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cover-field { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.cover-prev { width: 96px; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--fill); display: grid; place-items: center; color: var(--muted); position: relative; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.cover-prev svg { width: 30%; height: 30%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cover-prev span { display: grid; place-items: center; width: 100%; height: 100%; }
.cover-prev.over { outline: 2px dashed var(--btn); outline-offset: 2px; }
.cover-actions { display: grid; gap: 8px; justify-items: start; font-size: 14px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sheet-foot .right { display: flex; gap: 10px; margin-left: auto; }
.err { color: var(--danger); font-size: 14px; margin: -4px 0 0; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 980px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: toastUp 0.25s; max-width: calc(100% - 32px); text-align: center; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { padding-block: 22px 16px; }
  .me-name { display: none; }
  .bar-actions .btn span:not(.plus) { display: none; }
  .bar-actions .btn { padding: 9px 11px; }
  .progress { flex-basis: 100%; }
  .tools-left { flex-basis: 100%; }
  .search { max-width: none; }
  .row { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .row + .row::before { left: 110px; }
  .thumb { width: 84px; border-radius: 12px; }
  .r-title { font-size: 16px; }
  .r-desc { font-size: 14px; -webkit-line-clamp: 2; }
  .r-note { font-size: 13px; padding: 7px 10px; }
  .list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nav-row { padding: 12px 34px 12px 14px; gap: 12px; }
  .nav-row-wrap:has(.row-edit) .nav-row { padding-right: 34px; padding-bottom: 36px; }
  .chev { right: 14px; }
  .row-edit { top: auto; bottom: 12px; transform: none; right: auto; left: 70px; }
  .nav-row-wrap + .nav-row-wrap::before, .nav-list > .nav-row + .nav-row::before { left: 70px; }
  .pill { display: none; }
  .log-row { grid-template-columns: 1fr; gap: 2px; }
  .two { grid-template-columns: 1fr; }
  .scrim { place-items: end center; padding: 0; }
  .sheet { border-radius: 22px 22px 0 0; max-height: 92%; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .status { display: none; }
  .admin-tabs { display: flex; width: 100%; }
  .admin-tabs a { flex: 1; text-align: center; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
