/* Ethereal Cosmeticz by Lorrz — brand colours come from the logo and can be changed in Dashboard → Settings → Branding. */
:root {
  --cyan: #22d3f2; --blue: #4f86f7; --violet: #9b5cf6; --magenta: #e22ad6;
  --ink: #1d1726; --chrome: #c4c7cf; --chrome-dark: #8e929b;
  --paper: #ffffff; --mist: #f4f4f8; --line: #e3e3ea; --muted: #5f5a6b;
  --ok: #0f8a5f; --warn: #b4540a; --bad: #c0264a;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue) 35%, var(--violet) 65%, var(--magenta));
  --metal: linear-gradient(90deg, #8e929b, #f4f5f7 45%, #9ea2ab);
  --display: "Syncopate", "Arial Black", Arial, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --body: "Jost", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-pill: 999px;
  --wrap: 1200px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 3.2vw, 2rem); letter-spacing: .02em; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 2.2vw, 1.35rem); letter-spacing: .04em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- notice bar ---------- */
.notice-bar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 6px 12px; }
.notice-bar button { background: none; border: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; padding: 0 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); font-weight: 500; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 22px; height: 22px; }
.count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--magenta); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.count[data-n="0"] { display: none; }
.count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.search-form { display: flex; align-items: center; background: var(--mist); border-radius: var(--r-pill); padding: 0 6px 0 14px; }
.search-form input { border: 0; background: none; padding: 9px 4px; width: 170px; outline: none; }
.search-form:focus-within { outline: 3px solid var(--violet); }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav, .search-form { display: none; }
  .menu-btn { display: inline-grid; }
  .brand img { height: 40px; }
  .mobile-nav[data-open="true"] { display: block; border-top: 1px solid var(--line); padding: 10px 20px 16px; }
  .mobile-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav .search-form { display: flex; margin: 6px 0 8px; }
  .mobile-nav .search-form input { width: 100%; }
}

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 0; cursor: pointer; font-weight: 600; text-decoration: none; letter-spacing: .01em; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 6px 18px -8px var(--violet); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px var(--magenta); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; border: 1.5px solid var(--ink); }
.btn-ghost { background: none; border: 1.5px solid var(--line); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { border-color: transparent; background: var(--ink); color: #fff; }
.chip[data-out="true"] { color: var(--chrome-dark); text-decoration: line-through; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); }
.badge-new { background: var(--grad); color: #fff; }
.badge-out { background: var(--ink); color: #fff; }
.badge-low { background: #fff1e6; color: var(--warn); }
.badge-sample { background: #fff; border: 1px dashed var(--chrome-dark); color: var(--muted); }

/* ---------- hero (the one bold moment) ---------- */
.hero { background: #000; color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.hero-logo { position: relative; }
.hero-logo img { width: 100%; max-width: 640px; }
.sparkle { position: absolute; width: 26px; height: 26px; background: radial-gradient(circle, #fff 0 18%, transparent 19%), linear-gradient(transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(90deg, transparent 46%, #fff 46% 54%, transparent 54%); filter: drop-shadow(0 0 6px #fff); opacity: 0; animation: glint 4.5s ease-in-out infinite; }
.sparkle:nth-child(2) { left: 12%; top: 30%; animation-delay: .2s; }
.sparkle:nth-child(3) { left: 46%; top: 22%; animation-delay: 1.3s; transform: scale(.7); }
.sparkle:nth-child(4) { left: 78%; top: 34%; animation-delay: 2.4s; transform: scale(.85); }
@keyframes glint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: 1; } }
.hero-copy p { color: #d9d9e3; font-size: 1.1rem; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-copy .btn-outline { background: transparent; color: #fff; border-color: var(--chrome); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 36px; } }

/* ---------- category doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px auto; }
.door { position: relative; display: block; text-decoration: none; border-radius: var(--r-md); overflow: hidden; background: var(--mist); min-height: 240px; padding: 28px; isolation: isolate; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 100%, rgba(155,92,246,.22), transparent 60%), radial-gradient(90% 80% at 0% 0%, rgba(34,211,242,.18), transparent 60%); transition: opacity .3s; }
.door-title { font-family: var(--script); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em .1em 0; }
.door p { margin: .4em 0 0; color: var(--muted); }
.door .go { position: absolute; right: 24px; bottom: 22px; font-weight: 600; }
.door img { position: absolute; right: -20px; top: 10px; width: 46%; max-width: 260px; opacity: .9; z-index: -1; }
.door:hover::before { opacity: .7; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } .door { min-height: 180px; } }

/* ---------- sections & product grid ---------- */
.section { margin: 44px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head a { font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card[data-out="true"] .card-media img { filter: grayscale(.6) opacity(.7); }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-wish { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.92); }
.card h3 { font-size: 1rem; font-weight: 500; margin: 10px 0 2px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-wish, .card-badges { z-index: 2; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.wish[aria-pressed="true"] svg { fill: var(--magenta); stroke: var(--magenta); }

/* ---------- shop / filters ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin: 28px auto 60px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.filters legend { font-weight: 600; margin-bottom: 8px; }
.filters label { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.filters .row { display: flex; gap: 8px; }
.filters input[type=number] { width: 100%; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.filters-toggle { display: none; }
@media (max-width: 820px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; background: var(--mist); padding: 18px; border-radius: var(--r-md); }
  .filters[data-open="true"] { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 500; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(155,92,246,.2); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.error-text { color: var(--bad); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--violet); background: #faf7ff; }
.choice input { margin-top: 4px; accent-color: var(--violet); width: 18px; height: 18px; }
.choice .grow { flex: 1; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--violet); width: 18px; height: 18px; }

/* ---------- product page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin: 20px 0 12px; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; margin-bottom: 60px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--mist); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery-main[data-zoom="true"] img { transform: scale(2.2); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--mist); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--violet); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .price { font-size: 1.5rem; margin: 6px 0 4px; }
.stock-line { font-weight: 500; margin-bottom: 18px; }
.stock-line[data-level="low"] { color: var(--warn); }
.stock-line[data-level="out"] { color: var(--bad); }
.stock-line[data-level="ok"] { color: var(--ok); }
.opt-group { border: 0; padding: 0; margin: 0 0 16px; }
.opt-group legend { font-weight: 600; margin-bottom: 8px; }
.opt-group .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); }
.qty button { width: 44px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 48px; text-align: center; border: 0; min-height: 44px; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn-primary { flex: 1; min-width: 180px; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
details.acc[open] summary::after { content: "–"; }
details.acc > div { padding-bottom: 14px; white-space: pre-line; }

/* lightbox */
dialog { border: 0; border-radius: var(--r-md); padding: 0; max-width: min(560px, 94vw); width: 100%; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(10,8,16,.6); }
dialog .dlg { padding: 24px; }
dialog .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
dialog.lightbox { max-width: 96vw; max-height: 94vh; background: #000; }
dialog.lightbox .lb-stage { overflow: auto; max-height: 86vh; }
dialog.lightbox img { max-width: none; width: min(1400px, 180vw); }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px; color: #fff; }
dialog.lightbox .icon-btn { color: #fff; }
dialog.lightbox .icon-btn:hover { background: rgba(255,255,255,.12); }

/* ---------- cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 36px; margin: 28px auto 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--mist); border-radius: var(--r-md); padding: 22px; }
.panel.sticky { position: sticky; top: 90px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--mist); }
.line .meta { font-size: .9rem; color: var(--muted); }
.line .actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.line-note { font-size: .88rem; padding: 6px 10px; border-radius: var(--r-sm); background: #fff4e8; color: var(--warn); margin-top: 6px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; border-left: 4px solid var(--blue); background: #eef4ff; }
.alert-warn { border-color: var(--warn); background: #fff6ec; }
.alert-bad { border-color: var(--bad); background: #fff0f3; }
.alert-ok { border-color: var(--ok); background: #ecfaf3; }
.step-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.step-title .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---------- order page ---------- */
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 20px; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; background: var(--mist); }
.pill[data-tone="ok"] { background: #e5f7ee; color: var(--ok); }
.pill[data-tone="warn"] { background: #fff1e3; color: var(--warn); }
.pill[data-tone="bad"] { background: #ffe9ee; color: var(--bad); }
.order-hero { text-align: center; padding: 36px 0 10px; }
.order-hero .num { font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- empty / loading ---------- */
.empty { text-align: center; padding: 56px 20px; }
.empty .script { font-family: var(--script); font-size: 3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.skeleton { background: linear-gradient(90deg, var(--mist), #ebebf2, var(--mist)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--line); border-top-color: var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- content pages ---------- */
.prose { max-width: 720px; margin: 32px auto 64px; }
.prose .body { white-space: pre-line; }
.script-title { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0; line-height: 1.1; padding-bottom: .1em; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: #cfd0d8; padding: 44px 0 28px; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer img { width: 220px; }
.site-footer h2 { color: #fff; font-size: .9rem; }
.site-footer a { display: block; color: #cfd0d8; text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2a2a33; padding-top: 16px; font-size: .85rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, 92vw); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); display: flex; justify-content: space-between; gap: 12px; align-items: center; animation: rise .25s ease; }
.toast a { color: var(--cyan); font-weight: 600; }
.toast[data-tone="bad"] { background: var(--bad); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ---------- owner dashboard ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 70vh; }
.admin-nav { background: var(--mist); padding: 22px 12px; border-right: 1px solid var(--line); }
.admin-nav a { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.admin-main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; gap: 6px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav a { white-space: nowrap; }
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.tile .v { font-size: 1.6rem; font-weight: 700; }
.tile .k { color: var(--muted); font-size: .9rem; }
.tile[data-tone="warn"] { border-color: #f3c89d; background: #fffaf3; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.t { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { background: var(--mist); font-weight: 600; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
table.t input, table.t select { min-height: 38px; padding: 6px 10px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }
.card-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; background: #fff; }
.card-box h2 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; }
.img-list { display: flex; gap: 12px; flex-wrap: wrap; }
.img-item { width: 150px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; background: #fff; }
.img-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.img-item .row { display: flex; justify-content: space-between; margin-top: 6px; }
.img-item input { min-height: 34px; padding: 4px 8px; font-size: .85rem; margin-top: 6px; }
.save-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; justify-content: flex-end; z-index: 5; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: .93rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sparkle { opacity: 1; }
}
