/* GDH 3D Fashion Studio - shared styles. Scoped under .studio so nothing leaks into the rest of the site. */
.studio {
  --s-bg: #f6f4ef;
  --s-surface: #ffffff;
  --s-ink: #14121a;
  --s-ink-2: #2f2c38;
  --s-muted: #6b6875;
  --s-line: #e2ded5;
  --s-line-2: #cfc9bc;
  --s-accent: #d4af37;
  --s-accent-2: #b8962e;
  --s-ok: #2f7d4f;
  --s-warn: #b7791f;
  --s-bad: #b83a3a;
  --s-info: #3b5bdb;
  --s-dark: #14121a;
  --s-dark-2: #1d1b25;
  --s-dark-3: #2a2733;
  --s-radius: 10px;
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: var(--font-body, system-ui, sans-serif);
  min-height: 70vh;
  font-size: 15px;
  line-height: 1.45;
}
.studio *, .studio *::before, .studio *::after { box-sizing: border-box; }
.studio a { color: inherit; }
.studio h1, .studio h2, .studio h3 { font-family: var(--font-head, Georgia, serif); margin: 0 0 .4em; line-height: 1.2; }
.studio h1 { font-size: 1.9rem; }
.studio h2 { font-size: 1.25rem; }
.studio h3 { font-size: 1.05rem; }
.studio p { margin: 0 0 .8em; }
.studio .muted { color: var(--s-muted); }
.studio .small { font-size: .85rem; }
.studio .nowrap { white-space: nowrap; }
.studio [hidden] { display: none !important; }

/* Top bar + navigation */
.st-topbar { display: flex; align-items: center; gap: 18px; padding: 0 20px; background: var(--s-dark); color: #fff; overflow-x: auto; }
.st-brand { font-family: var(--font-head, Georgia, serif); font-weight: 600; letter-spacing: .02em; white-space: nowrap; padding: 14px 0; text-decoration: none; color: #fff; }
.st-brand span { color: var(--s-accent); }
.st-nav { display: flex; gap: 2px; flex: 1; }
.st-nav a { padding: 15px 12px; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.st-nav a:hover { color: #fff; }
.st-nav a.is-active { color: #fff; border-bottom-color: var(--s-accent); }
.st-bell { position: relative; text-decoration: none; color: #fff; font-size: .85rem; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; white-space: nowrap; }
.st-bell b { background: var(--s-accent); color: var(--s-ink); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: .75rem; }

.st-page { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.st-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.st-head p { margin: 0; }
.st-crumbs { font-size: .85rem; color: var(--s-muted); margin-bottom: 6px; }
.st-crumbs a { text-decoration: none; }
.st-crumbs a:hover { text-decoration: underline; }

/* Messages */
.st-messages { max-width: 1180px; margin: 14px auto 0; padding: 0 20px; }
.st-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: #fff; border: 1px solid var(--s-line); border-left: 4px solid var(--s-info); }
.st-msg.success { border-left-color: var(--s-ok); }
.st-msg.error { border-left-color: var(--s-bad); }
.st-msg.warning { border-left-color: var(--s-warn); }

/* Cards, grids */
.st-card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 18px; }
.st-card + .st-card { margin-top: 16px; }
.st-grid > .st-card + .st-card, .st-split > .st-card + .st-card { margin-top: 0; }
.st-card > h2:first-child, .st-card > h3:first-child { margin-top: 0; }
.st-grid { display: grid; gap: 16px; }
.st-grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.st-grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.st-grid.c4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.st-split { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .st-split { grid-template-columns: minmax(0, 1fr); } }
.st-split > *, .st-grid > * { min-width: 0; }
.st-stat { text-align: left; }
.st-stat b { display: block; font-size: 1.9rem; font-family: var(--font-head, Georgia, serif); }
.st-stat span { color: var(--s-muted); font-size: .85rem; }
.st-tile { display: block; text-decoration: none; padding: 16px; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-surface); transition: transform .12s, box-shadow .12s; }
.st-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 18, 26, .08); }
.st-tile strong { display: block; margin-bottom: 2px; }
.st-thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(135deg, #e9e5da, #f4f1ea); display: grid; place-items: center; color: var(--s-muted); overflow: hidden; margin-bottom: 10px; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.st-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--s-line-2); background: #fff; color: var(--s-ink); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.st-btn:hover { border-color: var(--s-ink); }
.st-btn[disabled], .st-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.st-btn--primary { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-ink); font-weight: 600; }
.st-btn--primary:hover { background: #e2c04d; border-color: #e2c04d; }
.st-btn--dark { background: var(--s-dark); border-color: var(--s-dark); color: #fff; }
.st-btn--danger { color: var(--s-bad); border-color: #e3b8b8; }
.st-btn--danger:hover { background: #fbeeee; border-color: var(--s-bad); }
.st-btn--sm { padding: 4px 9px; font-size: .8rem; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Forms */
.st-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--s-ink-2); margin: 0 0 3px; }
.st-form .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 12px; }
.st-form .field { margin-bottom: 12px; }
.studio input[type="text"], .studio input[type="email"], .studio input[type="number"], .studio input[type="date"],
.studio input[type="search"], .studio select, .studio textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--s-line-2); border-radius: 8px; font: inherit; background: #fff; color: var(--s-ink);
}
.studio input[type="color"] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--s-line-2); border-radius: 8px; background: #fff; }
.studio textarea { min-height: 76px; resize: vertical; }
.studio input:focus, .studio select:focus, .studio textarea:focus { outline: 2px solid rgba(212, 175, 55, .45); border-color: var(--s-accent-2); }
.st-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-inline > input, .st-inline > select { width: auto; flex: 1; min-width: 120px; }
.st-check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
.st-check input { width: auto; }

/* Tables */
.st-tablewrap { overflow-x: auto; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: #fff; }
.st-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.st-table th { text-align: left; background: var(--s-dark); color: #fff; font-weight: 600; padding: 8px 10px; white-space: nowrap; }
.st-table td { padding: 7px 10px; border-top: 1px solid var(--s-line); vertical-align: middle; }
.st-table tbody tr:nth-child(even) { background: #faf9f6; }
.st-table td input, .st-table td select { padding: 5px 7px; font-size: .85rem; min-width: 60px; }
.st-table td.num input { text-align: right; }
.st-table .tools { white-space: nowrap; width: 1%; }

/* Badges */
.st-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #ece9e0; color: var(--s-ink-2); white-space: nowrap; }
.st-badge.draft { background: #ece9e0; }
.st-badge.in_review, .st-badge.sent, .st-badge.viewed { background: #dfe6ff; color: #2b45ad; }
.st-badge.changes_requested, .st-badge.tight { background: #ffe9c9; color: #8a5a10; }
.st-badge.approved, .st-badge.ok, .st-badge.completed, .st-badge.accepted { background: #d8f0e0; color: #1f6a3f; }
.st-badge.loose, .st-badge.in_production, .st-badge.sampling, .st-badge.sample_shipped, .st-badge.acknowledged { background: #efe0ff; color: #5b2ea0; }
.st-badge.cancelled, .st-badge.rejected, .st-badge.error, .st-badge.missing { background: #fbdcdc; color: #9b2c2c; }
.st-badge.warning { background: #ffe9c9; color: #8a5a10; }
.st-badge.pending { background: #fff3c4; color: #7a5b00; }

/* Lists, timeline */
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { padding: 9px 0; border-top: 1px solid var(--s-line); display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.st-list li:first-child { border-top: 0; }
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--s-line); }
.st-timeline li { position: relative; padding: 0 0 12px 12px; }
.st-timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--s-accent); border: 2px solid var(--s-bg); }
.st-timeline time { display: block; font-size: .75rem; color: var(--s-muted); }
.st-issue { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: .9rem; }
.st-meter { height: 8px; background: #ebe7dd; border-radius: 999px; overflow: hidden; margin: 4px 0 2px; }
.st-meter i { display: block; height: 100%; background: var(--s-accent); }
.st-meter.hot i { background: var(--s-bad); }
.st-empty { text-align: center; padding: 32px 16px; color: var(--s-muted); }
.st-diff { font-size: .88rem; }
.st-diff li { padding: 6px 0; border-top: 1px solid var(--s-line); display: flex; gap: 10px; align-items: baseline; }
.st-diff .tag { flex: none; width: 66px; text-align: center; }
.st-diff .tag.added { background: #d8f0e0; color: #1f6a3f; }
.st-diff .tag.removed { background: #fbdcdc; color: #9b2c2c; }
.st-diff .tag.changed { background: #ffe9c9; color: #8a5a10; }
.st-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; padding: 0; list-style: none; }
.st-steps li { padding: 5px 12px; border-radius: 999px; background: #ece9e0; font-size: .8rem; }
.st-steps li.done { background: #d8f0e0; color: #1f6a3f; }
.st-steps li.current { background: var(--s-accent); color: var(--s-ink); font-weight: 700; }

/* Landing */
.st-hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(212, 175, 55, .25), transparent), var(--s-dark); color: #fff; padding: 64px 20px 56px; text-align: center; }
.st-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.st-hero p { max-width: 640px; margin: 0 auto 1.2em; color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
.st-flow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.st-flow li { counter-increment: flow; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 16px; }
.st-flow li::before { content: counter(flow); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--s-accent); color: var(--s-ink); font-weight: 700; margin-bottom: 8px; }
.st-flow strong { display: block; }

/* Toasts */
#st-toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5000; display: grid; gap: 8px; width: max-content; max-width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.st-toast { background: var(--s-dark); color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .9rem; }
.st-toast.error { background: #8f2a2a; }
.st-toast.ok { background: #1f6a3f; }

/* Pins + comments (shared) */
.st-comment { border: 1px solid var(--s-line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.st-comment.is-resolved { opacity: .65; }
.st-comment header { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--s-muted); margin-bottom: 4px; }
.st-avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--s-dark); color: #fff; font-size: .62rem; font-weight: 700; }
.st-comment .body { white-space: pre-wrap; word-break: break-word; font-size: .9rem; }
.st-comment .replies { margin: 8px 0 0 12px; padding-left: 10px; border-left: 2px solid var(--s-line); }
.st-pinno { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--s-accent); color: var(--s-ink); font-size: .7rem; font-weight: 700; }
.st-pinno.change { background: var(--s-warn); color: #fff; }

/* Modal prompt */
.st-dialog { border: 0; border-radius: 12px; padding: 20px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); color: #14121a; font-family: var(--font-body, sans-serif); }
.st-dialog::backdrop { background: rgba(20, 18, 26, .55); }
.st-dialog h3 { font-family: var(--font-head, Georgia, serif); margin: 0 0 8px; }
.st-dialog label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.st-dialog textarea, .st-dialog input { width: 100%; padding: 8px 10px; border: 1px solid #cfc9bc; border-radius: 8px; font: inherit; box-sizing: border-box; }
.st-dialog .st-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid #cfc9bc; background: #fff; font: inherit; cursor: pointer; }
.st-dialog .st-btn--primary { background: #d4af37; border-color: #d4af37; font-weight: 600; }
.st-dialog .st-actions { display: flex; gap: 8px; }

/* The site stylesheet (buttons.css) forces every <button type="submit"> inside <main> to solid orange with
   !important. These selectors mirror its :not() list plus extra classes so they out-rank it and the
   Studio's own button variants render as designed. */
main .studio form button[type="submit"].st-btn:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn),
main .studio form button[type="submit"].st-btn:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn):focus { background: #fff !important; background-image: none !important; color: var(--s-ink) !important; border-color: var(--s-line-2) !important; font-weight: 500 !important; box-shadow: none !important; }
main .studio form button[type="submit"].st-btn:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn):hover { background: #fff !important; background-image: none !important; color: var(--s-ink) !important; border-color: var(--s-ink) !important; box-shadow: none !important; }
main .studio form button[type="submit"].st-btn.st-btn--primary:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn),
main .studio form button[type="submit"].st-btn.st-btn--primary:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn):focus { background: var(--s-accent) !important; border-color: var(--s-accent) !important; color: var(--s-ink) !important; font-weight: 600 !important; }
main .studio form button[type="submit"].st-btn.st-btn--primary:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn):hover { background: #e2c04d !important; border-color: #e2c04d !important; color: var(--s-ink) !important; }
main .studio form button[type="submit"].st-btn.st-btn--danger:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn),
main .studio form button[type="submit"].st-btn.st-btn--danger:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn):focus { background: #fff !important; color: var(--s-bad) !important; border-color: #e3b8b8 !important; }
main .studio form button[type="submit"].st-btn.st-btn--danger:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn):hover { background: #fbeeee !important; color: var(--s-bad) !important; border-color: var(--s-bad) !important; }
main .studio form button[type="submit"].st-btn.st-btn--dark:not(.nav-logout-btn):not(.post-action-btn):not(.chat-send-btn) { background: var(--s-dark) !important; border-color: var(--s-dark) !important; color: #fff !important; }
