@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --border: #e0e2e7;
  --text: #171713;
  --muted: #6b7280;
  --primary: #2526b3;
  --primary-hover: #1d1e8f;
  --gold: #ffc83a;
  --gold-hover: #f0b520;
  --danger: #d63b3b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; background: var(--bg); color: var(--text); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(23, 23, 19, 0.03);
}
.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-logo img { height: 24px; display: block; }
.topbar-divider { width: 1px; height: 20px; background: var(--border); }
.topbar-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions .muted { font-size: 13px; }

.page { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

.page-loading, .centered-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; color: var(--muted);
}

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 22px; margin: 0; }
.header-actions { display: flex; gap: 8px; }

.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 24px;
}

.login-card { width: 320px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px rgba(23, 23, 19, 0.08); }
.login-page { min-height: 100vh; background: linear-gradient(180deg, #f5f6f8 0%, #eceeff 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.login-logo img { height: 30px; display: block; }
.login-subtitle { margin: 0; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

input, select, textarea {
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text); background: #fff;
}
textarea { resize: vertical; font-family: inherit; line-height: 1.45; }
input[type="color"] { padding: 2px; height: 36px; }

.btn {
  border: none; border-radius: 8px; padding: 9px 16px; font-size: 14px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-accent { background: var(--gold); color: #171713; }
.btn-accent:hover { background: var(--gold-hover); }
.btn-secondary { background: #eef0f4; color: var(--text); }
.btn-secondary:hover { background: #e2e5eb; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: #fce9e9; color: var(--danger); }
.btn-danger:hover { background: #f8d5d5; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.error-text { color: var(--danger); font-size: 13px; margin: 4px 0; }
.muted { color: var(--muted); font-size: 13px; }

.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.template-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.template-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; color: inherit;
}
.template-card-link { text-decoration: none; transition: box-shadow 0.15s; display: block; }
.template-card-link:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.template-card img { width: 100%; height: 140px; object-fit: cover; display: block; background: #f0f0f0; }
.template-card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.template-card-actions { display: flex; gap: 8px; margin-top: 8px; }

.editor-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.editor-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }

.editor-canvas {
  position: relative; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; background: #eee; flex-shrink: 0;
}
.editor-canvas img { display: block; user-select: none; pointer-events: none; }
.editor-sidebar { width: 260px; flex-shrink: 0; }

.placeholder-box {
  position: absolute; border: 2px dashed rgba(37, 38, 179, 0.5);
  background: rgba(37, 38, 179, 0.04); cursor: move; overflow: hidden;
}
.placeholder-box.placeholder-selected { border-color: #ffc83a; box-shadow: 0 0 0 2px rgba(255, 200, 58, 0.35); z-index: 5; }
.placeholder-box.placeholder-image { border-color: rgba(126, 0, 255, 0.5); background: rgba(126, 0, 255, 0.06); }
.placeholder-box.placeholder-cta { border-color: rgba(214, 59, 59, 0.5); }

.placeholder-label {
  position: absolute; top: 0; left: 0; font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, 0.85); padding: 2px 5px; border-radius: 0 0 4px 0;
  display: inline-block; pointer-events: none; user-select: none; z-index: 2;
}

.placeholder-preview-text {
  position: absolute; inset: 0; display: flex; align-items: flex-start; overflow: hidden;
  white-space: pre-wrap; word-break: break-word; pointer-events: none; line-height: 1.25;
}
.placeholder-preview-image {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(126, 0, 255, 0.35); pointer-events: none;
}

.template-title-input {
  font-size: 22px; font-weight: 700; border: 1px solid transparent; border-radius: 8px;
  padding: 4px 8px; margin: -4px -8px; background: transparent; color: var(--text);
  min-width: 200px;
}
.template-title-input:hover, .template-title-input:focus { border-color: var(--border); background: #fff; outline: none; }

.resize-handle {
  position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px;
  background: #fff; border: 2px solid rgba(37, 38, 179, 0.9); border-radius: 50%;
  cursor: nwse-resize;
}

.customize-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.customize-form { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.customize-preview { flex: 1; min-width: 300px; display: flex; justify-content: center; }
.preview-canvas { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.header-actions .muted { align-self: center; }

.dashboard-welcome { margin: 0 0 20px; }
.dashboard-welcome h1 { margin: 0 0 4px; font-size: 24px; }
.dashboard-welcome p { margin: 0; color: var(--muted); }

.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.module-card {
  position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold);
}
.module-card:not(.module-card-disabled):hover { box-shadow: 0 8px 20px rgba(23, 23, 19, 0.1); transform: translateY(-2px); }
.module-card-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(37, 38, 179, 0.08);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.module-card-icon svg { width: 20px; height: 20px; }
.module-card h2 { margin: 0 0 6px; font-size: 17px; }
.module-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.module-card-disabled { opacity: 0.6; cursor: not-allowed; }
.module-card-disabled::before { background: var(--border); }
.module-card-disabled .module-card-icon { background: #eef0f4; color: var(--muted); }
.module-card-badge {
  position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; background: #eef0f4; color: var(--muted); padding: 3px 8px; border-radius: 999px;
}

.qr-preview-image { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; }

.signature-template-textarea {
  width: 100%; min-height: 260px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 12px; resize: vertical;
}
.customize-preview-stacked { flex-direction: column; align-items: stretch; gap: 8px; }
.signature-preview-frame {
  width: 100%; min-height: 200px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.checkbox-row { display: flex; align-items: center; gap: 8px; flex-direction: row; }
.checkbox-row input { width: auto; }

.icon-live-preview {
  width: 240px; height: 240px; padding: 24px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background:
    linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.color-option-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; }
.color-option-row input[type="color"] { width: 48px; }

.icon-search {
  width: 100%; max-width: 320px; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; margin-bottom: 14px; display: block;
}
.icon-letter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.icon-letter-tabs .btn { padding: 6px 12px; font-size: 13px; }
.icon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
}
.icon-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  color: inherit; text-decoration: none;
}
.icon-card img { width: 48px; height: 48px; object-fit: contain; }
.icon-edit-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.icon-edit-form input[type="text"] { width: 100%; }
.icon-card-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.icon-card-tag { font-size: 11px; background: #eef0f4; color: var(--muted); padding: 2px 7px; border-radius: 999px; }
.icon-card-file-badge {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: #eef0f4; color: var(--muted); font-size: 11px; font-weight: 700; border-radius: 6px;
}
.icon-card span { font-size: 13px; font-weight: 600; word-break: break-word; }

.user-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.user-table th, .user-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.user-table th { background: #f0f1f4; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.user-table tr:last-child td { border-bottom: none; }

.request-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 18px; align-items: start; }
.request-panel h2 { margin-top: 0; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.request-toolbar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.request-toolbar label { min-width: 220px; flex: 1; }
.request-list { display: flex; flex-direction: column; gap: 14px; }
.request-card {
  border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.request-card-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.request-card h3 { margin: 0 0 6px; font-size: 17px; }
.request-meta { margin: 0; color: var(--muted); font-size: 12px; }
.request-detail { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.request-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f5f6f8; line-height: 1.45; }
.request-admin-controls { display: flex; flex-direction: column; gap: 12px; }
.status-pill {
  border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: #eef0f4; color: var(--muted);
}
.status-open { background: #fff3d8; color: #8a5b00; }
.status-reviewing { background: #e7efff; color: #2450a8; }
.status-resolved { background: #e8f7ed; color: #1f7a3b; }
.status-closed { background: #eceff3; color: #5d6673; }

@media (max-width: 900px) {
  .request-grid { grid-template-columns: 1fr; }
  .request-card-header { flex-direction: column; }
}

.tool-feedback-trigger {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  border: none; border-radius: 999px; padding: 12px 18px;
  background: var(--primary); color: #fff; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 38, 179, 0.28);
}
.tool-feedback-trigger:hover { background: var(--primary-hover); }
.tool-feedback-backdrop {
  position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; align-items: flex-end;
  padding: 20px; background: rgba(23, 23, 19, 0.28);
}
.tool-feedback-backdrop[hidden] { display: none; }
.tool-feedback-dialog {
  position: relative; width: min(420px, 100%); background: #fff; border-radius: 16px;
  padding: 22px; box-shadow: 0 18px 50px rgba(23, 23, 19, 0.22);
}
.tool-feedback-dialog h2 { margin: 0 34px 6px 0; font-size: 20px; }
.tool-feedback-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.tool-feedback-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none;
  border-radius: 50%; background: #eef0f4; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.tool-feedback-close:hover { background: #e2e5eb; }

@media (max-width: 700px) {
  .tool-feedback-trigger { right: 14px; bottom: 14px; }
  .tool-feedback-backdrop { padding: 12px; }
}

/* --------------------------------------------------------------------------
   2026 creative system — shared foundation
   -------------------------------------------------------------------------- */
:root {
  --bg: #f4f1ea;
  --card-bg: rgba(255, 255, 255, 0.82);
  --border: rgba(24, 24, 20, 0.12);
  --text: #181814;
  --muted: #6c6c64;
  --primary: #3b38d6;
  --primary-hover: #2926b3;
  --gold: #ffd344;
  --gold-hover: #f6c52b;
  --coral: #ff725e;
  --mint: #bdf2d5;
  --ink: #181814;
  --shadow-sm: 0 8px 30px rgba(30, 28, 19, 0.07);
  --shadow-lg: 0 24px 70px rgba(28, 26, 18, 0.13);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 211, 68, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 38%, rgba(59, 56, 214, 0.08), transparent 30rem),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(248, 246, 240, 0.78);
  border-bottom-color: rgba(24, 24, 20, 0.09);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.topbar-logo { gap: 14px; }
.topbar-logo img { height: 27px; }
.topbar-divider { height: 26px; background: rgba(24, 24, 20, 0.16); }
.topbar-label { color: var(--ink); font-size: 12px; letter-spacing: 0.075em; text-transform: uppercase; }
.topbar-actions { gap: 10px; }

.page { max-width: 1240px; padding: 38px clamp(18px, 4vw, 48px) 80px; }

.page-header,
.dashboard-welcome {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-header h1,
.dashboard-welcome h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.card {
  border-radius: 22px;
  border-color: rgba(24, 24, 20, 0.1);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

input, select, textarea {
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 11px;
  border-color: rgba(24, 24, 20, 0.15);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 56, 214, 0.1);
  background: #fff;
}

.btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 8px 18px rgba(59, 56, 214, 0.2); }
.btn-secondary { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(24, 24, 20, 0.1); }
.btn-accent { box-shadow: 0 8px 18px rgba(255, 211, 68, 0.22); }

.template-card,
.icon-card,
.request-card,
.user-table {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.template-card-link { transition: transform .25s ease, box-shadow .25s ease; }
.template-card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.template-card img { height: 170px; }
.template-card-body { padding: 16px; }

.icon-card { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.icon-card:hover { transform: translateY(-3px); border-color: rgba(59, 56, 214, .3); box-shadow: var(--shadow-lg); }

.editor-canvas,
.preview-canvas,
.signature-preview-frame,
.qr-preview-image,
.icon-live-preview { border-radius: 16px; box-shadow: var(--shadow-sm); }

.status-pill, .icon-card-tag { letter-spacing: .02em; }

.tool-feedback-trigger {
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(24, 24, 20, .22);
  transition: transform .2s ease, background .2s ease;
}
.tool-feedback-trigger:hover { background: var(--primary); transform: translateY(-2px); }

/* Login */
.login-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 211, 68, .8), transparent 24rem),
    radial-gradient(circle at 86% 82%, rgba(59, 56, 214, .34), transparent 32rem),
    #efede6;
}
.login-page::before {
  content: "Marketing\A PLATFORM";
  white-space: pre;
  position: absolute;
  inset: auto auto -5vw -1vw;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(80px, 18vw, 270px);
  line-height: .68;
  letter-spacing: -.07em;
  color: rgba(24, 24, 20, .045);
  pointer-events: none;
}
.login-logo, .login-card { position: relative; z-index: 1; }
.login-logo img { height: 36px; }
.login-card { width: min(420px, calc(100vw - 36px)); padding: 34px; gap: 18px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.login-card h1 { margin: 0 0 6px; font-family: 'Newsreader', Georgia, serif; font-size: 42px; letter-spacing: -.04em; }

/* Dashboard */
.dashboard-body { background-color: #edeae2; }
.dashboard-page { max-width: 1400px; padding-top: 26px; }

.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: clamp(30px, 5vw, 80px);
  min-height: 500px;
  padding: clamp(38px, 6vw, 82px);
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(255,255,255,.09), transparent 35%),
    #2421a7;
  box-shadow: 0 32px 80px rgba(39, 34, 129, .22);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.dashboard-hero-copy { align-self: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { color: rgba(255, 255, 255, .76); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(255,211,68,.14); }

.dashboard-hero h1 {
  max-width: 760px;
  margin: 28px 0 18px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(55px, 7vw, 98px);
  line-height: .83;
  letter-spacing: -.062em;
  font-weight: 400;
}
.dashboard-hero h1 em { color: var(--gold); font-weight: 400; }
.dashboard-hero-copy > p { max-width: 610px; margin: 0 0 30px; color: rgba(255,255,255,.72); font-size: clamp(15px, 1.5vw, 18px); }

.dashboard-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 570px;
  padding: 7px 8px 7px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  transition: background .2s ease, border-color .2s ease;
}
.dashboard-search:focus-within { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.55); }
.dashboard-search svg { width: 20px; }
.dashboard-search input { min-height: 38px; padding: 0; border: 0; color: #fff; background: transparent; box-shadow: none; }
.dashboard-search input:focus { box-shadow: none; background: transparent; }
.dashboard-search input::placeholder { color: rgba(255,255,255,.56); }
.dashboard-search kbd { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: rgba(255,255,255,.7); background: rgba(0,0,0,.15); font: 13px 'Inter'; }

.dashboard-hero-panel {
  position: relative;
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(11, 10, 68, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 45px rgba(11,10,68,.18);
  backdrop-filter: blur(20px);
  transform: rotate(2deg);
}
.hero-panel-topline, .hero-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: rgba(255,255,255,.62); }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #70efae; box-shadow: 0 0 0 5px rgba(112,239,174,.12); animation: pulse 2s ease-in-out infinite; }
.hero-panel-number { margin-top: 42px; font-family: 'Newsreader', Georgia, serif; font-size: 92px; line-height: .8; letter-spacing: -.08em; }
.hero-panel-number small { font-size: 28px; color: rgba(255,255,255,.38); letter-spacing: -.04em; }
.dashboard-hero-panel > p { max-width: 220px; margin: 18px 0 28px; color: rgba(255,255,255,.64); font-size: 14px; }
.hero-progress { height: 5px; margin-bottom: 28px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.12); }
.hero-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transform-origin: left; animation: progress-in 1s .2s both cubic-bezier(.2,.8,.2,1); }
.hero-panel-footer { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-panel-footer strong { color: var(--mint); }

.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.hero-orb-one { width: 290px; height: 290px; top: -150px; right: 12%; background: var(--coral); opacity: .75; }
.hero-orb-two { width: 180px; height: 180px; right: -30px; bottom: -65px; background: var(--gold); opacity: .9; }

.dashboard-tools { padding: clamp(46px, 7vw, 84px) 0 0; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-kicker { margin-bottom: 10px; color: var(--primary); }
.dashboard-section-heading h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(34px, 4.3vw, 58px); line-height: .95; letter-spacing: -.045em; font-weight: 400; }
.tool-filters { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.46); }
.tool-filter { border: 0; border-radius: 999px; padding: 9px 15px; color: var(--muted); background: transparent; font: 600 12px 'Inter'; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.tool-filter:hover { color: var(--ink); }
.tool-filter.is-active { color: #fff; background: var(--ink); box-shadow: 0 5px 12px rgba(24,24,20,.14); }

.dashboard-page .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1100px; }
.dashboard-page .module-card {
  --spot-x: 50%;
  --spot-y: 50%;
  min-height: 270px;
  padding: 25px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(28,26,18,.055);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, opacity .2s ease;
}
.dashboard-page .module-card::before { inset: 0; height: auto; opacity: 0; background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(59,56,214,.1), transparent 45%); transition: opacity .25s ease; }
.dashboard-page .module-card::after { content: ""; position: absolute; inset: auto 25px 0; height: 3px; border-radius: 4px 4px 0 0; background: var(--gold); transform: scaleX(.2); transform-origin: left; transition: transform .3s ease; }
.dashboard-page .module-card:not(.module-card-disabled):hover { border-color: rgba(59,56,214,.28); box-shadow: 0 22px 52px rgba(28,26,18,.11); transform: translateY(-4px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.dashboard-page .module-card:not(.module-card-disabled):hover::before { opacity: 1; }
.dashboard-page .module-card:not(.module-card-disabled):hover::after { transform: scaleX(1); }
.dashboard-page .module-card-icon { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 34px; background: rgba(59,56,214,.09); }
.dashboard-page .module-card-icon svg { width: 24px; height: 24px; }
.dashboard-page .module-card h2 { position: relative; z-index: 1; margin-bottom: 9px; font-family: 'Newsreader', Georgia, serif; font-size: 25px; letter-spacing: -.025em; }
.dashboard-page .module-card p { position: relative; z-index: 1; max-width: 310px; font-size: 13px; line-height: 1.55; }
.module-card-action { position: absolute; z-index: 1; right: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 11px; font-weight: 700; opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .2s ease; }
.module-card-action svg { width: 18px; }
.module-card:hover .module-card-action { opacity: 1; transform: translateX(0); }
.dashboard-page .module-card-badge { top: 20px; right: 20px; background: rgba(189,242,213,.58); color: #167248; }
.dashboard-page .module-card-disabled { filter: grayscale(.2); }
.dashboard-page .module-card-disabled .module-card-badge { color: var(--muted); background: rgba(24,24,20,.07); }
.dashboard-page .module-card-disabled .module-card-action { display: none; }
.tool-empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 22px; }

@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(112,239,174,0); } }
@keyframes progress-in { from { transform: scaleX(0); } }

@media (max-width: 1000px) {
  .topbar-actions .muted { display: none; }
  .dashboard-hero { grid-template-columns: minmax(0, 1fr) 260px; padding: 52px 42px; }
  .dashboard-page .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .topbar { min-height: 64px; padding: 11px 16px; }
  .topbar-label, .topbar-divider { display: none; }
  .topbar-logo img { height: 24px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .btn { min-height: 36px; padding: 8px 11px; font-size: 12px; }
  .dashboard-page { padding-inline: 12px; }
  .dashboard-hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding: 42px 24px 28px; border-radius: 26px; }
  .dashboard-hero h1 { font-size: clamp(50px, 15vw, 70px); }
  .dashboard-hero-panel { transform: none; }
  .hero-panel-number { margin-top: 30px; font-size: 76px; }
  .dashboard-page .module-grid { grid-template-columns: 1fr; }
  .dashboard-page .module-card { min-height: 235px; }
  .dashboard-section-heading h2 { font-size: 42px; }
  .tool-filters { max-width: 100%; overflow-x: auto; }
  .page { padding-top: 26px; }
}

@media (max-width: 520px) {
  .topbar-actions .btn:first-of-type { display: none; }
  .dashboard-search kbd { display: none; }
  .dashboard-search { grid-template-columns: auto 1fr; }
  .tool-filter { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Creative Studio tools */
.studio-page { max-width: 1480px; }
.studio-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 14px 0 32px; }
.studio-header h1 { margin: 8px 0 10px; font-family: 'Newsreader', Georgia, serif; font-size: clamp(44px, 6vw, 76px); line-height: .92; letter-spacing: -.055em; font-weight: 400; }
.studio-header p { max-width: 690px; margin: 0; color: var(--muted); font-size: 15px; }
.studio-status { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.52); font-size: 12px; font-weight: 700; }
.studio-status i, .stage-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: #35bd78; box-shadow: 0 0 0 5px rgba(53,189,120,.12); }
.studio-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.studio-panel, .studio-stage { border: 1px solid rgba(24,24,20,.11); border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.studio-panel { padding: 20px; }
.studio-panel-title { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.studio-panel-title > span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: #fff; background: var(--ink); font-size: 10px; font-weight: 700; }
.studio-panel-title strong, .studio-panel-title small { display: block; }
.studio-panel-title strong { font-size: 13px; }
.studio-panel-title small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.studio-field-group, .studio-controls { display: flex; flex-direction: column; gap: 15px; }
.studio-field-group { margin-top: 22px; }
.studio-controls { padding: 22px; }
.studio-controls label { gap: 8px; }
.studio-controls textarea { width: 100%; }
.studio-stage { overflow: hidden; background: #dedbd4; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,.84); font-size: 11px; font-weight: 700; }
.stage-toolbar > span { display: flex; align-items: center; gap: 8px; }
.stage-toolbar small { font-size: 10px; font-weight: 500; }
.icon-button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.studio-note { min-height: 20px; color: var(--primary); font-size: 11px; }

.block-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.block-buttons button { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-height: 76px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.68); cursor: pointer; font: 600 11px Inter; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.block-buttons button:hover { transform: translateY(-2px); border-color: rgba(59,56,214,.35); background: #fff; }
.block-buttons b { color: var(--primary); font: 400 20px 'Newsreader'; }
.newsletter-stage { min-height: 720px; padding-bottom: 42px; }
.newsletter-frame { width: min(680px, calc(100% - 44px)); margin: 30px auto 0; transition: width .3s ease; }
.newsletter-frame.is-mobile { width: min(390px, calc(100% - 32px)); }
.newsletter-canvas { min-height: 630px; overflow: hidden; background: #fff; box-shadow: 0 24px 55px rgba(24,24,20,.13); }
.email-block { position: relative; padding: 38px 48px; cursor: grab; outline: 0; transition: box-shadow .2s ease, opacity .2s ease; }
.email-block:hover { box-shadow: inset 0 0 0 2px rgba(59,56,214,.26); z-index: 1; }
.email-block.is-dragging { opacity: .45; }
.remove-block, .drag-handle { position: absolute; z-index: 2; opacity: 0; transition: opacity .2s ease; }
.email-block:hover .remove-block, .email-block:hover .drag-handle { opacity: 1; }
.remove-block { top: 10px; right: 10px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: rgba(24,24,20,.72); color: #fff; cursor: pointer; }
.drag-handle { left: 9px; top: 12px; color: rgba(24,24,20,.4); font-weight: 700; }
.email-hero { padding: 55px 48px; color: #fff; background: var(--email-primary, var(--primary)); }
.email-hero .drag-handle { color: rgba(255,255,255,.6); }
.email-kicker { margin: 0 0 12px; color: var(--email-accent, var(--gold)); font: 700 10px Inter; letter-spacing: .16em; }
.email-hero h2 { max-width: 520px; margin: 0 0 16px; font: 400 46px/.95 Newsreader; letter-spacing: -.04em; }
.email-hero > p:not(.email-kicker) { max-width: 490px; color: rgba(255,255,255,.72); font-size: 13px; }
.email-hero a, .email-cta a { display: inline-block; margin-top: 13px; padding: 11px 18px; border-radius: 999px; color: var(--email-ink, var(--ink)); background: var(--email-accent, var(--gold)); font-size: 12px; font-weight: 700; }
.email-text h3, .email-cta h3 { margin: 0 0 12px; font: 400 30px Newsreader; letter-spacing: -.025em; }
.email-text p, .email-columns p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.email-stats, .email-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--email-surface, #f3f1eb); }
.email-stats strong { display: block; color: var(--email-primary, var(--primary)); font: 400 40px Newsreader; }
.email-stats span { color: var(--muted); font-size: 11px; }
.email-columns { grid-template-columns: repeat(2, 1fr); background: #fff; }
.email-columns > div > span { color: var(--email-primary, var(--primary)); font-size: 10px; font-weight: 700; }
.email-columns h3 { margin: 8px 0; font: 400 23px Newsreader; }
.email-cta { text-align: center; color: #fff; background: var(--email-ink, var(--ink)); }
.email-cta h3 { font-size: 34px; }
.email-divider { padding-block: 4px; }
.email-divider hr { border: 0; border-top: 1px solid var(--border); }
.export-panel .btn { width: 100%; margin-top: 9px; }

.merch-workspace, .deck-workspace, .canvas-workspace, .certificate-workspace { grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); }
.product-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 5px; padding: 4px; border-radius: 12px; background: #eeece6; }
.product-tabs button { padding: 9px 5px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: 700 11px Inter; cursor: pointer; }
.product-tabs button.is-active { color: #fff; background: var(--ink); }
.upload-drop { padding: 18px; border: 1px dashed rgba(59,56,214,.35); border-radius: 14px; color: var(--primary); background: rgba(59,56,214,.04); cursor: pointer; text-align: center; }
.upload-drop input { width: 100%; min-height: auto; margin-bottom: 8px; padding: 0; border: 0; background: transparent; font-size: 11px; }
.upload-drop span { color: var(--muted); font-size: 10px; }
.studio-controls input[type="range"] { min-height: 24px; padding: 0; border: 0; box-shadow: none; accent-color: var(--primary); }
.merch-stage, .canvas-stage, .certificate-stage { max-width: 950px; }
.merch-stage canvas, .canvas-stage canvas, .certificate-stage canvas { display: block; width: 100%; height: auto; background: #fff; }
.canvas-stage canvas { max-height: 760px; object-fit: contain; }

.deck-stage { min-height: 680px; }
.deck-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px; }
.deck-slide { position: relative; aspect-ratio: 16/9; padding: 8% 7%; overflow: hidden; color: var(--deck-fg, #fff); background: var(--deck-bg, #2526b3); box-shadow: 0 14px 32px rgba(24,24,20,.16); }
.deck-slide::before { content: ""; position: absolute; top: -20%; right: -10%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--deck-accent, #ffc83a); opacity: .82; }
.deck-slide small { position: relative; z-index: 1; font-size: 7px; letter-spacing: .15em; }
.deck-slide h2 { position: relative; z-index: 1; max-width: 80%; margin: 17% 0 3%; font: 400 clamp(18px, 2.2vw, 34px)/.96 Newsreader; letter-spacing: -.04em; }
.deck-slide p { position: relative; z-index: 1; margin: 0; opacity: .65; font-size: 9px; }
.deck-slide ul { position: relative; z-index: 1; max-width: 77%; margin: 8% 0 0; padding-left: 16px; font-size: clamp(8px, 1vw, 13px); line-height: 1.8; }
.deck-slide i { position: absolute; left: 0; bottom: 0; width: 7px; height: 100%; background: var(--deck-accent, #ffc83a); }
.deck-blue { --deck-bg: #2526b3; --deck-fg: #fff; --deck-accent: #ffc83a; color: var(--deck-fg); background: var(--deck-bg); }
.deck-yellow { --deck-bg: #ffc83a; --deck-fg: #171713; --deck-accent: #2526b3; color: var(--deck-fg); background: var(--deck-bg); }
.deck-beige { --deck-bg: #f4f0e7; --deck-fg: #171713; --deck-accent: #2526b3; color: var(--deck-fg); background: var(--deck-bg); }
.deck-split { --deck-bg: #2526b3; --deck-fg: #fff; --deck-accent: #ffc83a; color: var(--deck-fg); background: linear-gradient(90deg, #2526b3 0 67%, #ffc83a 67%); }
.deck-metrics { --deck-bg: #171713; --deck-fg: #fff; --deck-accent: #ffc83a; color: var(--deck-fg); background: var(--deck-bg); }
.deck-photo { --deck-bg: #f4f0e7; --deck-fg: #171713; --deck-accent: #7e00ff; color: var(--deck-fg); background: linear-gradient(125deg, #f4f0e7 0 62%, #b2dbff 62%); }
.deck-metric { display: none; position: absolute; right: 8%; bottom: 13%; color: var(--deck-accent); font: 400 clamp(28px, 4vw, 64px) Newsreader; }
.layout-metrics .deck-metric { display: block; }
.layout-metrics ul { max-width: 55%; }
.layout-statement h2 { max-width: 92%; margin-top: 25%; font-size: clamp(23px, 3vw, 44px); }
.layout-statement ul { display: none; }
.layout-split::after { content: ""; position: absolute; top: 0; right: 0; width: 28%; height: 100%; background: var(--deck-accent); opacity: .96; }
.layout-split h2, .layout-split ul { max-width: 62%; }
.layout-columns ul { columns: 2; column-gap: 24px; max-width: 90%; }

/* Studio template administration */
.admin-studio-page { max-width: 1420px; }
.admin-studio-layout { display: grid; grid-template-columns: minmax(290px, 370px) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-template-form { position: sticky; top: 92px; }
.admin-color-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.admin-color-grid label { font-size: 10px; }
.admin-color-grid input[type="color"] { width: 100%; }
.admin-three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.conditional-fields { display: flex; flex-direction: column; gap: 14px; padding: 15px; border-radius: 15px; background: rgba(59,56,214,.05); }
.conditional-fields[hidden] { display: none; }
.conditional-fields small { color: var(--muted); font-size: 10px; font-weight: 400; }
.admin-library-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.admin-library-heading h2 { margin: 5px 0 0; font: 400 35px Newsreader; }
.admin-library-heading select { width: 220px; }
.admin-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-template-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.76); box-shadow: var(--shadow-sm); }
.admin-template-card > img, .admin-template-art { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #ddd; }
.admin-template-art { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--p) 0 68%, var(--s) 68%); }
.admin-template-art i { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; top: -22%; right: -9%; background: var(--a); }
.admin-template-art b { position: absolute; width: 45%; height: 10%; left: 9%; bottom: 18%; background: rgba(255,255,255,.82); }
.admin-template-card-body { padding: 16px; }
.admin-template-card-body > span { color: var(--primary); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.admin-template-card h3 { margin: 7px 0 6px; font: 400 22px Newsreader; }
.admin-template-card p { min-height: 38px; margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.admin-template-card small { display: block; margin-bottom: 10px; color: #167248; font-size: 10px; }
.admin-template-card.is-disabled { opacity: .55; }

@media (max-width: 1100px) {
  .studio-workspace { grid-template-columns: 230px minmax(0, 1fr); }
  .newsletter-workspace .export-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; }
  .newsletter-workspace .export-panel .studio-panel-title { grid-column: 1 / -1; width: 100%; }
  .newsletter-workspace .export-panel p { margin: 0; }
  .admin-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .studio-header { align-items: flex-start; flex-direction: column; }
  .studio-status { display: none; }
  .studio-workspace, .merch-workspace, .deck-workspace, .canvas-workspace, .certificate-workspace { grid-template-columns: 1fr; }
  .newsletter-workspace .export-panel { display: block; }
  .block-library { order: 1; }
  .newsletter-stage { order: 2; }
  .export-panel { order: 3; }
  .newsletter-stage { min-height: 0; }
  .email-block { padding: 30px 24px; }
  .email-hero h2 { font-size: 36px; }
  .email-stats { grid-template-columns: 1fr; gap: 13px; }
  .email-stats div { display: flex; align-items: baseline; gap: 10px; }
  .email-columns { grid-template-columns: 1fr; }
  .deck-preview { grid-template-columns: 1fr; }
  .admin-studio-layout { grid-template-columns: 1fr; }
  .admin-template-form { position: static; }
  .admin-template-grid { grid-template-columns: 1fr; }
}

/* Browser file utilities */
.file-tool-page { max-width: 1440px; }
.file-tool-hero { position: relative; overflow: hidden; padding: 54px 0 36px; border-bottom: 1px solid var(--border); }
.file-tool-hero::after { content: ""; position: absolute; right: 3%; top: -70px; width: 260px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,58,.33), rgba(255,200,58,0) 68%); pointer-events: none; }
.file-tool-hero h1 { max-width: 920px; margin: 8px 0 10px; font: 400 clamp(52px, 7vw, 94px)/.92 Newsreader, Georgia, serif; letter-spacing: -.065em; }
.file-tool-hero > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.file-tool-privacy { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border-radius: 999px; color: #23624a; background: rgba(55,165,117,.1); font-size: 11px; font-weight: 700; }
.file-tool-privacy i { width: 7px; height: 7px; border-radius: 50%; background: #37a575; box-shadow: 0 0 0 4px rgba(55,165,117,.13); }
.file-tool-layout { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.file-tool-panel, .file-tool-preview { border: 1px solid var(--border); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); backdrop-filter: blur(18px); }
.file-tool-panel { padding: 24px; }
.file-drop-zone { display: flex; min-height: 210px; margin-top: 22px; padding: 28px; align-items: center; justify-content: center; flex-direction: column; border: 1.5px dashed #aaa9c7; border-radius: 20px; background: linear-gradient(145deg, rgba(59,56,214,.055), rgba(255,200,58,.08)); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; text-align: center; }
.file-drop-zone:hover, .file-drop-zone.is-dragging { border-color: var(--primary); background: rgba(59,56,214,.08); transform: translateY(-2px); }
.file-drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop-zone:focus-within { outline: 3px solid rgba(59,56,214,.2); outline-offset: 3px; }
.file-drop-zone strong { margin-top: 13px; font-size: 16px; }
.file-drop-zone small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.file-drop-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: #fff; background: var(--primary); box-shadow: 0 14px 26px rgba(59,56,214,.23); font-size: 28px; font-weight: 300; }
.file-selected { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; margin-top: 20px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #f8f7f2; }
.file-selected-type { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: #fff; background: #171713; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.file-selected strong, .file-selected small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-selected strong { font-size: 12px; }
.file-selected small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.file-tool-settings { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.file-tool-settings[hidden] { display: none; }
.file-tool-settings label { font-size: 11px; font-weight: 700; }
.file-tool-settings label > span { float: right; color: var(--primary); }
.file-tool-settings select, .file-tool-settings input[type="color"] { margin-top: 7px; }
.file-tool-settings input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--primary); }
.svg-option-grid { display: grid; gap: 9px; }
.svg-option-grid label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid var(--border); border-radius: 13px; background: rgba(248,247,242,.8); cursor: pointer; }
.svg-option-grid input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.svg-option-grid span, .svg-option-grid strong, .svg-option-grid small { display: block; }
.svg-option-grid strong { font-size: 11px; }
.svg-option-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.45; }
.svg-optimization-report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 14px; background: #171713; color: #fff; }
.svg-optimization-report[hidden] { display: none; }
.svg-optimization-report div { padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.08); }
.svg-optimization-report small, .svg-optimization-report strong { display: block; }
.svg-optimization-report small { color: rgba(255,255,255,.58); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.svg-optimization-report strong { margin-top: 3px; font: 400 14px Newsreader, Georgia, serif; }
.file-process-button { width: 100%; margin-top: 20px; }
.file-tool-preview { position: relative; overflow: hidden; min-height: 590px; }
.file-preview-empty, .file-preview-media { display: flex; min-height: 470px; padding: 40px; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(circle at 50% 42%, rgba(59,56,214,.09), transparent 40%), linear-gradient(145deg, #f7f5ef, #fff); }
.file-preview-empty b { color: rgba(59,56,214,.18); font: 700 clamp(64px, 10vw, 130px)/1 Inter, sans-serif; letter-spacing: -.08em; }
.file-preview-empty p { margin-top: -4px; color: var(--muted); }
.file-preview-media { position: relative; }
.file-preview-media[hidden], .file-preview-empty[hidden] { display: none; }
.file-preview-media img { max-width: 100%; max-height: 410px; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 50px rgba(20,20,17,.17); }
.pdf-preview-mark { display: grid; width: 170px; height: 220px; place-items: center; border-radius: 10px 28px 10px 10px; color: #fff; background: linear-gradient(145deg, #ff725e, #c83b2f); box-shadow: 0 25px 60px rgba(201,58,46,.25); font: 800 34px Inter; letter-spacing: -.05em; }
.file-progress { position: absolute; left: 0; right: 0; bottom: 96px; height: 5px; background: rgba(59,56,214,.1); }
.file-progress[hidden] { display: none; }
.file-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), #7e00ff, #ffc83a); transition: width .22s ease; }
.file-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 20px; align-items: center; min-height: 96px; padding: 18px 22px; border-top: 1px solid var(--border); background: rgba(255,255,255,.94); }
.file-result[hidden] { display: none; }
.file-result small, .file-result strong { display: block; }
.file-result small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.file-result strong { margin-top: 4px; font: 400 19px Newsreader; }
.file-result strong.is-negative { color: #b42318; }

/* Shared workspace UI: quiet surfaces, clear controls, and consistent task layouts. */
:root {
  --bg: #f5f6f9;
  --border: #dce0e9;
  --muted: #596274;
  --primary: #2526b3;
  --primary-hover: #1d1e8f;
  --shadow-sm: 0 4px 16px rgba(25, 32, 55, .04);
  --shadow-lg: 0 12px 28px rgba(25, 32, 55, .09);
}
body:not(:has(.login-page)) { background: var(--bg); }
body::before { display: none; }
.topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--border); }
.topbar-label { text-transform: none; letter-spacing: 0; font-size: .8125rem; color: var(--muted); }
.topbar-actions { flex-wrap: wrap; }
.page { padding-top: 36px; }
.page-header, .dashboard-welcome { padding-bottom: 24px; margin-bottom: 28px; }
.page-header h1, .dashboard-welcome h1, .studio-header h1, .file-tool-hero h1 {
  font-family: Inter, sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.035em;
}
.page-header p { margin: 10px 0 0; max-width: 65ch; font-size: .875rem; }
.page h2 { font-family: Inter, sans-serif; letter-spacing: -.02em; }
.section-kicker { display: none; }
.card { border-radius: 14px; border-color: var(--border); background: #fff; padding: 24px; backdrop-filter: none; }
.card h2 { font-size: 1.125rem; }
label { font-size: .8125rem; color: #3b4556; }
input, select, textarea { font-family: inherit; border-radius: 8px; border-color: #c8ceda; background: #fff; max-width: 100%; }
input::placeholder, textarea::placeholder { color: #697386; }
.btn { border-radius: 8px; font-family: inherit; font-size: .8125rem; box-shadow: none; transition: background .15s, border-color .15s; }
.btn:hover { transform: none; }
.btn-secondary { background: #fff; border: 1px solid #cdd3df; }
.btn-secondary:hover:not(:disabled) { background: #f0f2f8; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 3px;
}
.template-title-input:focus-visible { outline: 3px solid var(--primary); }
.customize-layout { gap: 28px; }
.customize-form { width: 330px; max-width: 100%; gap: 20px; }
.customize-preview { min-width: 0; min-height: 340px; padding: 28px; background: #e9edf4; border: 1px solid var(--border); border-radius: 14px; }
.customize-preview-stacked { justify-content: flex-start; }
.icon-live-preview { width: 280px; height: 280px; max-width: 100%; background-color: #fff; border-radius: 12px; }
.template-card, .request-card, .user-table { border-radius: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.icon-upload-form { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.icon-upload-form > label { flex: 1 1 240px; min-width: 0; }
.icon-upload-form input { width: 100%; min-height: 48px; font-size: 1rem; }
.icon-upload-form > .btn { min-height: 48px; }
.icon-review-panel { width: 100%; min-width: 0; flex-basis: 100%; padding: 20px; border: 1px solid #c9cede; background: #f8f9fc; border-radius: 12px; text-align: left; }
.icon-review-message { margin: 0 0 16px; font-size: .9375rem; font-weight: 600; line-height: 1.5; }
.icon-review-comparison { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 20px; }
.icon-review-comparison > article { min-width: 0; }
.icon-review-art { display: grid; place-items: center; min-height: 140px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.icon-review-art img { width: 100px; height: 100px; object-fit: contain; }
.icon-review-comparison h3 { margin: 14px 0 6px; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.icon-review-comparison p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.icon-review-comparison ul { padding-left: 18px; font-size: .8125rem; line-height: 1.6; }
.icon-review-comparison a { display: inline-block; padding-block: 10px; font-size: .875rem; color: var(--primary); }
.icon-review-warnings { margin: 16px 0; padding: 12px; background: #fff8e7; color: #65470b; font-size: .875rem; line-height: 1.6; }
.icon-review-consent { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-top: 20px; min-height: 48px; font-size: .875rem; }
.icon-review-consent input { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--primary); }
.icon-review-consent span { font: inherit; }
.icon-edit-form:has(.icon-review-panel:not([hidden])) { width: 100%; }
.icon-card:has(.icon-review-panel:not([hidden])) { grid-column: 1 / -1; align-items: stretch; text-align: left; }
.library-link-form { display: grid; gap: 18px; max-width: 660px; }
.library-link-form input:not([type="checkbox"]), .library-link-form select { width: 100%; min-height: 48px; font-size: 1rem; }
.library-link-help { margin: -8px 0 0; font-size: .875rem; line-height: 1.6; }
.library-link-form .library-link-check, .library-upload-check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.library-link-check input, .library-upload-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.library-link-form > .btn { justify-self: start; min-height: 48px; }
.library-link-status { margin-top: 16px; color: #23624a; font-size: .875rem; }
.library-link-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--primary); background: #f0f0fc; border-radius: 10px; }
.library-link-icon svg { width: 28px; height: 28px; }
.brand-library-page .icon-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.brand-library-page .brand-asset-card { align-items: stretch; gap: 12px; padding: 24px; text-align: left; background: #fff; border-radius: 14px; min-inline-size: 0; }
.brand-asset-preview { display: grid; place-items: center; min-block-size: 160px; margin-block-end: 8px; padding: 16px; background: #f3f5fa; border-radius: 10px; }
.brand-asset-preview .library-link-icon, .brand-asset-preview .icon-card-file-badge { inline-size: 80px; block-size: 80px; border-radius: 16px; }
.brand-asset-preview .library-link-icon svg { inline-size: 44px; block-size: 44px; }
.brand-library-page .brand-asset-preview img { display: block; inline-size: 100%; block-size: 128px; object-fit: contain; }
.brand-library-page .brand-asset-name { margin: 0; font-size: 1.125rem; line-height: 1.4; overflow-wrap: anywhere; }
.brand-asset-type { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.brand-library-page .brand-asset-card > .btn { inline-size: 100%; min-block-size: 48px; margin-block-start: auto; font-size: 1rem; }
.download-notice { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; padding: 20px; background: #fff8e7; color: #65470b; border: 1px solid #dbc58c; border-radius: 12px; }
.download-notice > svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.download-notice h2 { margin: 0 0 8px; font-size: 1rem; color: inherit; }
.download-notice p { margin: 0; max-width: 70ch; font-size: .875rem; line-height: 1.6; }
.download-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.svg-option-grid > label, .svg-option-grid > label > span { min-width: 0; }
.file-tool-settings select { width: 100%; min-width: 0; }
.file-tool-panel { min-width: 0; }
.template-card-link:hover, .icon-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.template-card-body { padding: 18px; }
.template-grid { gap: 20px; }
.studio-header, .file-tool-hero { padding: 0 0 26px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.studio-header h1, .file-tool-hero h1 { margin: 0 0 12px; }
.studio-header p, .file-tool-hero p { font-size: .875rem; line-height: 1.6; max-width: 65ch; }
.studio-panel, .studio-stage, .file-tool-panel, .file-tool-preview { border-radius: 14px; background-color: #fff; border-color: var(--border); }
.studio-panel-title strong { font-size: .875rem; }
.studio-panel-title small { font-size: .75rem; }
.file-preview-empty, .file-preview-media { background: #eef1f6; }
.module-card { border-radius: 12px; }
.module-card::before { display: none; }
.module-card h2 { font-family: Inter, sans-serif; font-size: 1.0625rem; }
.module-card p { line-height: 1.6; }
.dashboard-body { background: var(--bg); }
.dashboard-page { padding-top: 36px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.workspace-heading h1 { margin: 0; font: 700 2rem/1.2 Inter, sans-serif; letter-spacing: -.035em; }
.workspace-heading .dashboard-search { width: 340px; max-width: 100%; min-height: 48px; margin: 0; padding: 8px 12px; background: #fff; border: 1px solid #c8ceda; border-radius: 10px; color: var(--muted); flex-shrink: 0; }
.workspace-heading .dashboard-search:focus-within { background: #fff; border-color: var(--primary); }
.workspace-heading .dashboard-search input { color: var(--text); font-size: .875rem; }
.workspace-heading .dashboard-search input::placeholder { color: var(--muted); }
.workspace-heading .dashboard-search kbd { width: 24px; height: 24px; border-radius: 5px; background: #f3f4f8; border-color: var(--border); color: var(--muted); }
.dashboard-tools { padding-top: 28px; }
.dashboard-section-heading { align-items: center; margin-bottom: 22px; }
.dashboard-section-heading h2 { font: 700 1.125rem/1.4 Inter, sans-serif; letter-spacing: -.02em; }
.tool-filter { font-size: .8125rem; }
.dashboard-page .module-grid { perspective: none; gap: 18px; }
.dashboard-page .module-card { min-height: 215px; padding: 24px; border-radius: 12px; background: #fff; }
.dashboard-page .module-card::after { display: none; }
.dashboard-page .module-card:not(.module-card-disabled):hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--primary); }
.dashboard-page .module-card-icon { width: 42px; height: 42px; border-radius: 10px; margin-bottom: 22px; background: #f0f0fc; }
.dashboard-page .module-card h2 { font: 700 1.0625rem/1.4 Inter, sans-serif; letter-spacing: -.02em; }
.dashboard-page .module-card p { font-size: .8125rem; }
.dashboard-page .module-card-badge { display: none; }
.module-card-action { color: var(--primary); }
.library-browser { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.library-format-note { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.library-search { display: flex; flex-direction: row; align-items: center; gap: 10px; width: min(440px, 100%); padding: 0 12px; border: 1px solid #c8ceda; border-radius: 9px; background: #f8f9fc; }
.library-search svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.library-search input { width: 100%; padding-inline: 0; background: transparent; border: 0; box-shadow: none; }
.library-search:focus-within { border-color: var(--primary); }
.icon-library-page .icon-letter-tabs { gap: 8px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.icon-library-page .icon-letter-tabs .btn { min-height: 34px; padding: 7px 12px; font-size: .75rem; }
.icon-library-page .icon-grid { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 18px; }
.icon-library-page .icon-card { align-items: stretch; padding: 0; gap: 0; overflow: hidden; text-align: left; box-shadow: none; border-radius: 12px; transition: border-color .15s; }
.icon-library-page .icon-card:hover { border-color: var(--primary); transform: none; box-shadow: none; }
.icon-card-art { display: grid; place-items: center; height: 160px; margin: 10px; border-radius: 8px; background: #f3f5fa; }
.icon-library-page .icon-card img { width: 72px; height: 72px; }
.icon-library-page .icon-card-name { padding: 8px 18px 0; font-size: .875rem; color: var(--text); }
.icon-library-page .icon-card-tags { justify-content: flex-start; align-content: flex-start; flex: 1; min-height: 45px; padding: 10px 18px 14px; }
.icon-library-page .icon-card-tag { padding: 3px 7px; font-size: .6875rem; color: var(--muted); font-weight: 400; border-radius: 4px; background: #f0f2f7; }
.icon-library-page .icon-card-open { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border); font-size: .75rem; color: var(--primary); }
.icon-card-open svg { width: 17px; height: 17px; }
.library-empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; }
.library-empty h2 { font-size: 1.125rem; margin: 0 0 10px; }
.library-empty p { color: var(--muted); font-size: .875rem; }
@media (max-width: 900px) {
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .workspace-heading .dashboard-search { width: 100%; }
  .customize-form { width: 100%; }
  .customize-preview { width: 100%; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .topbar { position: static; flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
  .topbar-actions { width: 100%; gap: 8px; }
  .topbar-actions .btn:first-of-type { display: inline-flex; }
  .topbar-actions > .muted { width: 100%; }
  .topbar-label { font-size: .6875rem; }
  .page { padding: 24px 18px 80px; }
  .workspace-heading h1, .page-header h1, .studio-header h1, .file-tool-hero h1 { font-size: 1.625rem; }
  .dashboard-page .module-grid { grid-template-columns: 1fr; }
  .dashboard-section-heading { gap: 16px; }
  .card, .library-browser { padding: 18px; }
  .library-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .icon-library-page .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .icon-card-art { height: 110px; margin: 6px; }
  .icon-library-page .icon-card img { width: 56px; height: 56px; }
  .icon-library-page .icon-card-name, .icon-library-page .icon-card-tags, .icon-library-page .icon-card-open { padding-inline: 10px; }
  .library-format-note { display: none; }
  .customize-preview { padding: 18px; }
}

@media (max-width: 900px) {
  .file-tool-layout { grid-template-columns: 1fr; }
  .file-tool-preview { min-height: 480px; }
  .file-preview-empty, .file-preview-media { min-height: 360px; }
}

@media (max-width: 560px) {
  .file-tool-hero { padding-top: 34px; }
  .file-tool-hero h1 { font-size: 1.625rem; }
  .file-result { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .file-result .btn { grid-column: 1 / -1; width: 100%; }
}
