:root {
  --bg: #f4f1ea;
  --ink: #111625;
  --muted: #73736f;
  --line: rgba(17, 22, 37, .14);
  --card: #fbfaf6;
  --accent: #d4af37;
  --danger: #8b2f2f;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.topbar { min-height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { width: 28px; height: 28px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.eyebrow, .section-kicker { margin: 8px 0 0; font-size: 10px; letter-spacing: .2em; color: var(--muted); font-weight: 700; }
.ghost-button, .icon-button { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ghost-button { padding: 11px 16px; }
.hero-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; padding: 92px 0 72px; }
.hero-row h1 { margin: 10px 0 22px; max-width: 780px; font-size: clamp(48px, 7vw, 104px); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
.hero-copy { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); align-self: end; border-top: 1px solid var(--line); }
.stats div { padding: 18px 14px 4px 0; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; padding-left: 14px; }
.stats div:nth-child(2) { padding-left: 14px; }
.stats span { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.stats small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.drop-zone { position: relative; min-height: 270px; border: 1px dashed rgba(17,22,37,.38); display: grid; place-items: center; align-content: center; text-align: center; transition: .22s ease; outline: none; background: rgba(255,255,255,.18); overflow: hidden; }
.drop-zone:hover, .drop-zone:focus, .drop-zone.dragging { background: var(--card); border-color: var(--ink); transform: translateY(-2px); }
.drop-zone.uploading { pointer-events: none; }
.drop-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 26px; font-weight: 300; margin-bottom: 15px; }
.drop-zone h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.drop-zone p { margin: 8px 18px 0; color: var(--muted); font-size: 13px; }
.upload-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(17,22,37,.08); }
.upload-progress > div { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.library-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 88px 0 28px; }
.library-head h2 { margin: 8px 0 0; font-size: 34px; letter-spacing: -.04em; }
.search { width: min(360px, 100%); border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0; outline: none; color: var(--ink); }
.search:focus { border-color: var(--ink); }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.asset-card { border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.preview { height: 260px; display: grid; place-items: center; background: #e9e6df; border-bottom: 1px solid var(--line); overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asset-body { padding: 18px; }
.asset-title-row { display: flex; gap: 18px; justify-content: space-between; align-items: start; }
.asset-title-row h3 { margin: 0; max-width: 290px; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.asset-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.icon-button { width: 32px; height: 32px; flex: 0 0 auto; }
.icon-button.danger:hover { border-color: var(--danger); color: var(--danger); }
.url-box { margin-top: 16px; padding: 10px 11px; border: 1px solid var(--line); background: rgba(17,22,37,.025); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #53545a; }
.asset-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.asset-actions button { border: 1px solid var(--line); background: transparent; min-height: 37px; color: var(--ink); font-size: 11px; }
.asset-actions button:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
.asset-date { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.empty-state { padding: 80px 0; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
footer { margin-top: 90px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
footer span { padding: 0 6px; }
.toast { position: fixed; right: 24px; bottom: 24px; transform: translateY(20px); opacity: 0; pointer-events: none; padding: 12px 16px; background: var(--ink); color: #fff; font-size: 12px; transition: .2s ease; z-index: 10; }
.toast.show { opacity: 1; transform: translateY(0); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); border: 1px solid var(--line); background: var(--card); padding: 40px; }
.login-card h1 { margin: 54px 0 12px; font-size: 44px; line-height: .96; letter-spacing: -.05em; }
.muted { color: var(--muted); line-height: 1.5; }
.login-form { display: grid; gap: 10px; margin-top: 34px; }
.login-form label { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.login-form input { height: 48px; border: 1px solid var(--line); background: transparent; padding: 0 14px; outline: none; }
.login-form input:focus { border-color: var(--ink); }
.login-form button { height: 48px; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.login-error { padding: 10px 12px; border: 1px solid rgba(139,47,47,.25); color: var(--danger); background: rgba(139,47,47,.04); font-size: 12px; }
.footnote { margin: 26px 0 0; color: var(--muted); font-size: 10px; }
@media (max-width: 960px) {
  .app-shell { width: min(100% - 30px, 1440px); }
  .hero-row { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .stats { max-width: 600px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .topbar { min-height: 86px; }
  .eyebrow { display: none; }
  .hero-row { padding: 52px 0 48px; }
  .hero-row h1 { font-size: clamp(52px, 17vw, 78px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { display: none; }
  .drop-zone { min-height: 230px; }
  .library-head { align-items: stretch; flex-direction: column; padding-top: 62px; }
  .search { width: 100%; }
  .asset-grid { grid-template-columns: 1fr; }
  .preview { height: 240px; }
  .login-card { padding: 28px; }
}
