/* Arth Bombay workspace: maroon + gold, laid out like the JewelryThis three-pane dashboard. */
:root {
  --maroon: #6b1424;
  --maroon-d: #4a0d18;
  --maroon-l: #8b2337;
  --gold: #c9a24a;
  --gold-d: #9c7a2c;
  --gold-l: #f6edd6;
  --gold-xl: #fbf6e8;
  --ivory: #fbf8f3;
  --ink: #2a1f22;
  --muted: #84767a;
  --line: #e8e0d6;
  --rush: #d0021b;
  --ok: #2e7d4f;
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.4 var(--font); color: var(--ink); background: var(--ivory); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--maroon); }

/* ---------- wordmark ---------- */
.wordmark { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .1em; color: #fff; white-space: nowrap; }
.wordmark img { width: 30px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(201,162,74,.5); }
.wordmark em { font-style: normal; color: var(--gold); }
.wordmark.big { font-size: 30px; justify-content: center; color: var(--maroon); }
.wordmark.big img { width: 42px; height: 42px; }

/* ---------- buttons ---------- */
.btn { border: 1px solid transparent; border-radius: 4px; padding: 9px 16px; font-weight: 700; letter-spacing: .02em; background: #fff; border-color: var(--line); }
.btn.primary { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn.primary:hover { background: var(--maroon-d); }
.btn.gold { background: var(--gold); color: var(--maroon-d); border-color: var(--gold); }
.btn.gold:hover { background: #d8b45e; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--maroon); color: var(--maroon); }
.btn.danger { color: var(--rush); border-color: #f0c6cb; background: #fff; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn { background: none; border: 0; padding: 6px; color: inherit; display: inline-flex; border-radius: 4px; }
.icon-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- sign in ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(circle at 20% 10%, var(--maroon-l), var(--maroon-d) 70%); }
.login-card { width: 100%; max-width: 380px; background: var(--ivory); border-radius: 8px; padding: 36px 32px; border-top: 4px solid var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.login-sub { text-align: center; color: var(--muted); margin: 6px 0 24px; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.login-card label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.login-card input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.login-card input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.err { color: var(--rush); min-height: 1.2em; font-size: 13px; margin: 0 0 10px; }

/* ---------- three-pane layout ---------- */
/* One fixed-height row: each pane scrolls on its own, the page never does. */
.app { display: grid; grid-template-columns: 250px 400px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.app.rail-closed { grid-template-columns: 48px 400px minmax(0, 1fr); }
.app.list-closed { grid-template-columns: 250px 48px minmax(0, 1fr); }
.app.rail-closed.list-closed { grid-template-columns: 48px 48px minmax(0, 1fr); }
.rail, .list, .view { position: relative; min-width: 0; min-height: 0; }
.app.rail-closed .rail > :not(.mini), .app.list-closed .list > :not(.mini) { display: none !important; }
.collapse { position: absolute; top: 18px; right: 10px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--maroon); font-size: 18px; line-height: 1; padding: 0 0 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rail .collapse { border-color: rgba(201,162,74,.6); background: var(--maroon-d); color: var(--gold); }
/* A closed pane stays as a slim bar: click anywhere on it to open it again. */
.mini { display: none; }
.app.rail-closed .rail > .mini, .app.list-closed .list > .mini { display: flex; }
.mini { flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; border: 0; padding: 14px 0; background: transparent; }
.mini:hover { background: rgba(201,162,74,.12); }
.mini .open { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; border: 1px solid var(--gold); color: var(--gold); }
.mini .vlabel { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.rail .mini { color: #f3e6e8; }
.rail .mini img { width: 28px; height: 28px; border-radius: 5px; }
.list .mini { color: var(--maroon); background: var(--gold-xl); }
.list .mini .badge-n { background: var(--maroon); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 12px; }

/* left rail */
.rail { background: var(--maroon); color: #f3e6e8; display: flex; flex-direction: column; }
.rail-head { padding-right: 46px !important; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(201,162,74,.35); }
.search { position: relative; margin-top: 10px; }
.search input { width: 100%; padding: 9px 30px 9px 34px; border-radius: 4px; border: 1px solid var(--line); background: var(--ivory); }
.search input:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 18px; }
#nav { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 0; }
.nav-group { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 10px 16px 6px; font-weight: 700; color: var(--gold); letter-spacing: .03em; }
.nav-group .chev { transition: transform .15s; font-size: 12px; }
.nav-group.closed .chev { transform: rotate(180deg); }
.nav-item { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 7px 18px 7px 31px; color: #ead9dc; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; font-weight: 700; background: rgba(0,0,0,.18); box-shadow: inset 3px 0 0 var(--gold); }
.nav-item .n { color: #d9c3c7; font-variant-numeric: tabular-nums; }
.nav-item.active .n { color: var(--gold); }
.rush-tag { background: var(--rush); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 2px; }
.rail-foot { padding: 14px; border-top: 1px solid rgba(201,162,74,.35); }
.me { margin-top: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.me > span:first-child { font-weight: 700; color: #fff; }
.me-links { display: flex; gap: 12px; color: #d9c3c7; }

/* middle list */
.list { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.list-body { min-height: 0; }
.list-top { padding: 14px 48px 12px 16px; border-bottom: 1px solid var(--line); }
.list-titlebar { display: flex; align-items: flex-start; gap: 6px; }
.list-head-inner { flex: 1; min-width: 0; }
.list-title { font-size: 17px; font-weight: 700; }
.menu-btn { display: none; }
.list-title { display: flex; justify-content: space-between; align-items: center; color: var(--maroon); }
.list-title .count { color: var(--gold-d); display: inline-flex; gap: 6px; align-items: center; }
.list-tools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; }
.sort { position: relative; }
.sort-btn { display: inline-flex; gap: 14px; align-items: center; border: 1px solid var(--line); background: #fff; padding: 12px 16px; min-width: 150px; justify-content: space-between; }
.sort-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); z-index: 10; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.sort-menu button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 11px 16px; }
.sort-menu button:hover { background: var(--gold-xl); }
.sort-menu button.on { background: var(--gold); color: var(--maroon-d); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 18px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 14px; padding: 3px 10px; color: var(--muted); }
.seg button.on { background: var(--maroon); color: #fff; }
.list-body { flex: 1; overflow-y: auto; }
.card { display: grid; grid-template-columns: 80px 1fr; gap: 6px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.card:hover { background: var(--gold-xl); }
.card.on { background: var(--gold-l); box-shadow: inset 3px 0 0 var(--maroon); }
.thumb { width: 80px; height: 80px; border-radius: 4px; background: var(--gold-xl) center/cover no-repeat; display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; font-weight: 700; }
.card .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.card .row b { font-weight: 700; }
.card .muted { color: var(--muted); white-space: nowrap; }
.card .last { grid-column: 1 / -1; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .badge { position: absolute; left: 16px; top: 12px; }
.empty-list { padding: 40px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.pager:empty { display: none; }
.pager button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: #fff; color: var(--gold-d); }
.pager button.on { background: var(--gold); color: #fff; }
.pager button:disabled { opacity: .35; }

/* notification cards */
.note { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.note.unread { background: var(--gold-xl); }
.note:hover { background: var(--gold-l); }
.note .thumb { width: 76px; height: 76px; }
.note p { margin: 0; }
.note .what { font-size: 15px; }
.note .excerpt { font-size: 13px; margin-top: 6px; }
.note .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); font-size: 13px; }
.note .side .acts { display: flex; gap: 4px; }
.note .flag { color: #b7a9ad; }
.note .flag.on { color: var(--rush); }

/* ---------- right: project + messages ---------- */
.view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.proj, .chat { min-height: 0; }
.welcome { grid-column: 1 / -1; display: grid; place-items: center; text-align: center; color: var(--muted); }
.welcome h2 { color: var(--ink); font-weight: 400; margin: 16px 0 4px; font-size: 22px; }
.welcome p { margin: 0; font-size: 20px; }
.proj { overflow-y: auto; padding: 18px 22px 40px 26px; }
.proj-title { margin: 0; font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--ink); }
.proj-title small { font-size: 18px; color: var(--muted); }
.proj-meta { display: flex; align-items: center; gap: 16px; margin: 10px 0 0; color: var(--muted); font-size: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.proj-meta b { color: var(--ink); font-weight: 700; }
.proj-meta .grow { flex: 1; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.status-btn { background: var(--maroon); color: #fff; border: 0; padding: 12px 16px; text-transform: uppercase; letter-spacing: .02em; }
.status-btn:hover { background: var(--maroon-d); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 16px; }
.facts dt { color: var(--ink); }
.facts dd { margin: 0; }
.assignee { text-decoration: underline dotted; text-underline-offset: 3px; }
.rush-pill { background: var(--rush); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 14px; }
.tabs button { background: none; border: 0; padding: 8px 10px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-color: var(--gold); }
.spec { display: grid; grid-template-columns: 160px 1fr; gap: 12px 10px; align-items: start; }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; min-height: 1.2em; }
.mfg-note { border: 1px solid var(--rush); border-radius: 2px; padding: 10px 12px; font-family: 'Courier New', monospace; font-size: 16px; white-space: pre-wrap; background: #fffdfd; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gal { position: relative; width: 74px; height: 74px; border-radius: 3px; overflow: hidden; border: 2px solid transparent; background: var(--gold-xl); }
.gal.cover { border-color: var(--gold); }
.gal img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.gal .gal-acts { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; background: rgba(42,31,34,.72); opacity: 0; transition: opacity .12s; }
.gal:hover .gal-acts, .gal:focus-within .gal-acts { opacity: 1; }
.gal-acts button { background: none; border: 0; color: #fff; font-size: 11px; padding: 3px 5px; }
.add-tile { width: 74px; height: 74px; border: 1px dashed var(--gold); border-radius: 3px; display: grid; place-items: center; color: var(--gold-d); font-size: 12px; text-align: center; cursor: pointer; background: #fff; }
.stone { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stone .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }
.files a { display: block; color: var(--gold-d); }
.files .rm { background: none; border: 0; color: var(--muted); font-size: 12px; margin-left: 6px; }
.section-title { display: flex; justify-content: space-between; align-items: center; background: var(--gold-xl); border-bottom: 1px solid var(--line); padding: 12px 14px; margin: 18px 0 12px; font-weight: 700; color: var(--maroon); }
.table-wrap { overflow-x: auto; }
table.order { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
table.order th, table.order td { border: 1px solid var(--line); padding: 7px 8px; text-align: left; }
table.order th { background: var(--gold-l); font-weight: 700; }
table.order td:first-child { font-weight: 700; }
table.order tr.total td { font-weight: 700; background: var(--gold-xl); }
.proj-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* messages */
.chat { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #fff; min-height: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--maroon); font-weight: 700; display: flex; justify-content: space-between; }
.thread { flex: 1; overflow-y: auto; padding: 14px 16px; }
.msg { display: grid; grid-template-columns: 44px 1fr; gap: 10px; margin-bottom: 18px; }
.msg.mine { grid-template-columns: 1fr 44px; }
.msg.mine .avatar { grid-column: 2; grid-row: 1 / span 2; }
.msg.mine .who, .msg.mine .bubble { grid-column: 1; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--maroon-l); grid-row: 1 / span 2; }
.msg.mine .avatar { background: var(--gold); color: var(--maroon-d); }
.who { font-size: 13px; color: var(--muted); }
.bubble { background: var(--gold-xl); border: 1px solid #efe3c4; padding: 10px 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine .bubble { background: #f7eef0; border-color: #ead7db; }
.bubble .att { display: block; margin-top: 6px; font-size: 13px; }
.bubble .att-img { max-width: 160px; max-height: 120px; display: block; margin-top: 8px; cursor: zoom-in; border-radius: 3px; }
.event { text-align: center; color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.event b { color: var(--ink); }
.composer { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.composer textarea { width: 100%; min-height: 120px; resize: vertical; border: 1px solid var(--line); padding: 10px 12px; border-radius: 2px; }
.composer textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.composer-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.attach { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--ink); }
.attach input { display: none; }
.picked { font-size: 12px; color: var(--muted); }
.send { border: 2px solid var(--maroon); background: #fff; color: var(--maroon); padding: 6px 12px; font-weight: 700; letter-spacing: .04em; }
.send:hover { background: var(--maroon); color: #fff; }

/* ---------- modal + form ---------- */
.modal { position: fixed; inset: 0; background: rgba(42,15,22,.55); display: grid; place-items: start center; overflow-y: auto; padding: 40px 16px; z-index: 50; }
.modal-card { background: var(--ivory); width: 100%; max-width: 860px; border-radius: 6px; border-top: 4px solid var(--gold); padding: 22px 26px; }
.modal-card.small { max-width: 440px; }
.modal-card h2 { margin: 0 0 16px; font-family: var(--serif); font-size: 28px; color: var(--maroon); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .rows input, .rows select { border: 1px solid var(--line); background: #fff; padding: 8px 10px; border-radius: 3px; font-weight: 400; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus, .rows input:focus, .rows select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 90px; resize: vertical; font-family: 'Courier New', monospace; }
.checks { display: flex; gap: 18px; align-items: center; padding-top: 18px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.form-sub { margin: 20px 0 8px; font-weight: 700; color: var(--maroon); display: flex; justify-content: space-between; align-items: center; }
.rows { display: grid; gap: 6px; }
.rows .r { display: grid; gap: 6px; align-items: center; }
.rows.stones .r { grid-template-columns: 100px 60px 1fr 1fr 2fr 28px; }
.rows.lines .r { grid-template-columns: 1.4fr 50px 70px 1.6fr 70px 56px 64px 64px 28px; }
.rows .hdr { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rows .x { border: 0; background: none; color: var(--muted); font-size: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-foot .err { flex: 1; margin: 0; align-self: center; }
.team-row { display: grid; grid-template-columns: 1fr 90px auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.team-row.off { opacity: .55; }

/* lightbox + toast */
.lightbox { position: fixed; inset: 0; background: rgba(20,8,12,.92); display: grid; place-items: center; z-index: 60; }
.lightbox img { max-width: 90vw; max-height: 88vh; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; padding: 10px 18px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--maroon-d); color: #fff; padding: 10px 18px; border-radius: 4px; border-left: 4px solid var(--gold); z-index: 70; }

/* ---------- smaller screens: one pane at a time ---------- */
@media (max-width: 1100px) {
  .view { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; overflow-y: auto; }
  .proj { overflow: visible; }
  .chat { border-left: 0; border-top: 1px solid var(--line); min-height: 60vh; }
}
@media (max-width: 760px) {
  .app, .app.rail-closed, .app.list-closed, .app.rail-closed.list-closed { grid-template-columns: minmax(0, 1fr); }
  .app.rail-closed .rail > :not(.mini), .app.list-closed .list > :not(.mini) { display: revert !important; }
  .mini { display: none !important; }
  .menu-btn { display: inline-flex; }
  .list-top { padding-right: 16px; }
  .rail { display: none; }
  .app.show-rail .rail { display: flex; position: fixed; inset: 0 18% 0 0; z-index: 40; box-shadow: 0 0 0 100vmax rgba(42,15,22,.45); }
  .app.show-project .list { display: none; }
  .app:not(.show-project) .view { display: none; }
  .collapse { display: none; }
  .mobile-bar { display: flex !important; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .rows.stones .r, .rows.lines .r { grid-template-columns: 1fr 1fr; }
  .rows .hdr { display: none !important; }
  .proj { padding: 14px 16px 30px; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
  .spec dd { margin-bottom: 10px; }
}
.mobile-bar { display: none; align-items: center; gap: 10px; padding: 6px 10px; margin: -14px -16px 14px; border-radius: 0; background: var(--maroon); color: #fff; }
.mobile-bar .wordmark { font-size: 18px; }

@media print {
  .rail, .list, .chat, .status-row, .proj-actions, .add-tile, .gal-acts, .tabs, .collapse { display: none !important; }
  .app, .view { display: block; height: auto; }
  .proj { overflow: visible; }
}

/* ---------- welcome page ---------- */
.entry { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px 16px; overflow: auto; color: #f6ecdc;
  background:
    radial-gradient(circle at 50% 38%, rgba(201,162,74,.18), transparent 55%),
    repeating-linear-gradient(45deg, rgba(201,162,74,.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(201,162,74,.05) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, var(--maroon-l), var(--maroon) 45%, var(--maroon-d)); }
.entry::before { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(201,162,74,.45); pointer-events: none; }
.entry-inner { text-align: center; max-width: 560px; animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.entry-mark { width: 74px; height: 74px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(201,162,74,.6), 0 10px 30px rgba(0,0,0,.35); }
.entry-word { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 8vw, 68px); letter-spacing: .16em; margin: 22px 0 6px; color: #fff; line-height: 1; }
.entry-word em { font-style: normal; color: var(--gold); }
.entry-rule { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--gold); margin: 14px auto 22px; max-width: 280px; }
.entry-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.entry-rule i { font-style: normal; font-size: 11px; }
.entry-greet { font-family: var(--serif); font-size: 30px; margin: 0; color: #fff; }
.entry-sub { margin: 8px 0 26px; color: #e6d3c9; font-size: 16px; }
.entry-stats { display: flex; justify-content: center; gap: 12px; margin: 0 0 28px; flex-wrap: wrap; }
.entry-stats div { min-width: 110px; padding: 12px 14px; border: 1px solid rgba(201,162,74,.45); background: rgba(0,0,0,.15); border-radius: 4px; }
.entry-stats b { display: block; font-size: 26px; color: var(--gold); font-weight: 700; }
.entry-stats span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #e6d3c9; }
.entry-go { font-size: 16px; padding: 14px 30px; letter-spacing: .04em; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.entry-go span { display: inline-block; transition: transform .15s; margin-left: 6px; }
.entry-go:hover span { transform: translateX(4px); }
.entry-foot { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(230,211,201,.7); margin: 0; }

/* ---------- friendlier cards ---------- */
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--gold-l); color: var(--gold-d); white-space: nowrap; }
.chip.pending { background: #eee6e8; color: var(--muted); }
.chip.processing { background: var(--gold-l); color: var(--gold-d); }
.chip.ready { background: #f3e1e5; color: var(--maroon); }
.chip.shipped, .chip.received { background: #e3f1e8; color: var(--ok); }
.chip.cancelled { background: #eee; color: #888; text-decoration: line-through; }
.card .wts { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card .wts b { color: var(--ink); font-weight: 700; }
.kbd-hint { font-size: 12px; color: var(--muted); padding: 10px 16px; text-align: center; }

.hero { display: block; width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 18px; cursor: zoom-in; }
.proj-meta { flex-wrap: wrap; row-gap: 4px; }
.proj-meta > span { white-space: nowrap; }
