/* ---------- fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- design tokens ---------- */
:root {
  color-scheme: dark;
  --background: #07090f;
  --foreground: #e6edf5;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #93f3d7;
  --accent-strong: #47d3b7;
  --accent-ink: #cdfbec;
  --danger: #fda4af;
  --danger-bg: rgba(244, 63, 94, 0.1);
  --danger-border: rgba(251, 113, 133, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-3: rgba(255, 255, 255, 0.02);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-3xl: 1.5rem;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: rgba(147, 243, 215, 0.25); color: #fff; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(147, 243, 215, 0.3) rgba(255, 255, 255, 0.04); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: rgba(147, 243, 215, 0.25); border-radius: 999px; border: 2px solid var(--background); }
::-webkit-scrollbar-thumb:hover { background: rgba(147, 243, 215, 0.45); }

:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(147, 243, 215, 0.5); border-radius: var(--radius-md); }

.font-display { font-family: var(--font-display); }

/* ---------- backdrops ---------- */
.video-backdrop, .panel-backdrop { position: fixed; inset: 0; z-index: -10; pointer-events: none; overflow: hidden; }
.panel-backdrop::before {
  content: ""; position: fixed; inset: 0; z-index: -20; background: #05060c;
}
.panel-backdrop::after {
  content: ""; position: fixed; inset: 0; z-index: -10;
  background: radial-gradient(circle at top, rgba(147, 243, 215, 0.14), transparent 55%),
    radial-gradient(circle at bottom, rgba(71, 211, 183, 0.1), transparent 60%);
}
.video-backdrop iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%;
}
.video-backdrop .overlay { position: absolute; inset: 0; background: rgba(5, 6, 12, 0.7); }
.video-backdrop .glow { position: absolute; inset: 0; background: radial-gradient(circle at top, rgba(147, 243, 215, 0.14), transparent 55%); }

/* ---------- public hero card (home + login) ---------- */
.hero-page { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 3rem 1.5rem; }
.hero-page.hero-page-login { padding: 2.5rem 1.5rem; }
.hero-card {
  position: relative; width: 100%; max-width: 24rem; border-radius: var(--radius-3xl);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); padding: 1.75rem;
  text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
}
.hero-card.hero-card-login {
  background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.hero-eyebrow { font-family: var(--font-display); font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.28em; color: var(--muted); text-transform: none; }
.hero-title { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; }
.hero-rule { margin: 0.75rem auto 0; height: 1px; width: 4rem; background: linear-gradient(to right, transparent, rgba(147, 243, 215, 0.7), transparent); }
.hero-caption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; color: #cbd5e1; }
.hero-footer { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; font-size: 0.75rem; color: var(--muted-2); }

.title-flow {
  background-image: linear-gradient(90deg, #f8fafc 0%, #f8fafc 46%, #ffe5e9 48%, #ff9faf 50%, #ffe5e9 52%, #f8fafc 54%, #f8fafc 100%);
  background-size: 240% 100%; background-position: 200% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 10px rgba(255, 159, 175, 0.18);
  animation: titleFlow 10s linear infinite;
}
@keyframes titleFlow { 0% { background-position: 200% 50%; } 100% { background-position: -200% 50%; } }
@media (prefers-reduced-motion: reduce) { .title-flow { animation: none; } }

.contact-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.contact-link {
  display: flex; width: 100%; align-items: center; gap: 0.75rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--surface); padding: 0.75rem 1rem; color: #e2e8f0;
  transition: border-color 0.15s, color 0.15s;
}
.contact-link:hover { border-color: rgba(147, 243, 215, 0.6); color: #fff; }
.contact-link .contact-icon { flex-shrink: 0; color: #f1f5f9; }
.contact-link .contact-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.25; }
.contact-link .contact-label { font-size: 0.875rem; font-weight: 500; color: #f1f5f9; }
.contact-link .contact-sub { display: flex; flex-direction: column; align-items: flex-start; font-size: 0.75rem; color: var(--muted); }
.contact-link .contact-arrow { flex-shrink: 0; color: var(--muted); transition: color 0.15s; }
.contact-link:hover .contact-arrow { color: #e2e8f0; }
.contact-link .contact-logo { height: 2rem; width: 2rem; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); padding: 2px; }
.hero-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  transition: 0.15s; cursor: pointer; border: 1px solid transparent; height: 2.25rem; padding: 0 1rem;
}
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn-default { border-color: var(--border); background: var(--surface); color: #f1f5f9; }
.btn-default:hover { border-color: rgba(147, 243, 215, 0.6); color: #fff; }
.btn-primary { border-color: rgba(147, 243, 215, 0.4); background: rgba(147, 243, 215, 0.1); color: var(--accent-ink); }
.btn-primary:hover { border-color: rgba(147, 243, 215, 0.7); background: rgba(147, 243, 215, 0.15); }
.btn-secondary { border-color: var(--border); background: var(--surface); color: #cbd5e1; }
.btn-secondary:hover { border-color: var(--border-strong); color: #f1f5f9; }
.btn-ghost { color: #cbd5e1; background: transparent; }
.btn-ghost:hover { background: var(--surface); color: #f1f5f9; }
.btn-destructive { border-color: rgba(251, 113, 133, 0.3); background: rgba(244, 63, 94, 0.1); color: #fecdd3; }
.btn-destructive:hover { border-color: rgba(251, 113, 133, 0.6); color: #ffe4e6; }
.btn-outline { border-color: var(--border); background: transparent; color: #e2e8f0; }
.btn-outline:hover { border-color: rgba(147, 243, 215, 0.6); color: #fff; }
.btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-lg { height: 2.5rem; padding: 0 1.25rem; }
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; }
.btn-sm.btn-icon { width: 2rem; height: 2rem; }

/* ---------- form controls ---------- */
.input, .textarea, .select {
  display: flex; width: 100%; height: 2.25rem; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); padding: 0.5rem 0.75rem;
  font-size: 0.875rem; color: #f1f5f9; font-family: inherit; transition: 0.15s;
}
.input::placeholder, .textarea::placeholder { color: #64748b; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { border-color: rgba(147, 243, 215, 0.6); }
.textarea { height: auto; min-height: 5rem; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m7 9 5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 1rem; padding-right: 2rem; }
.label { font-size: 0.875rem; font-weight: 500; color: #cbd5e1; line-height: 1; }
.req { margin-left: 0.25rem; color: #fda4af; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hint { font-size: 0.75rem; color: var(--muted); }
.checkbox-pill { display: flex; cursor: pointer; align-items: center; gap: 0.5rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); padding: 0.375rem 0.75rem; font-size: 0.875rem; color: #cbd5e1; transition: 0.15s; }
.checkbox-pill:hover { border-color: var(--border-strong); }
.checkbox-pill.checked { border-color: rgba(147, 243, 215, 0.6); background: rgba(147, 243, 215, 0.1); color: var(--accent-ink); }
.checkbox-pill input { display: none; }
.switch { position: relative; display: inline-flex; height: 1.25rem; width: 2.25rem; flex-shrink: 0; cursor: pointer; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: 0.15s; }
.switch.checked { border-color: rgba(147, 243, 215, 0.6); background: rgba(147, 243, 215, 0.25); }
.switch .thumb { display: block; height: 1rem; width: 1rem; transform: translateX(2px); border-radius: 999px; background: #e2e8f0; transition: transform 0.15s; }
.switch.checked .thumb { transform: translateX(1.125rem); background: var(--accent-ink); }

/* ---------- badges & alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 500; background: var(--surface); color: #e2e8f0; }
.badge-success { border-color: rgba(147, 243, 215, 0.4); background: rgba(147, 243, 215, 0.1); color: var(--accent-ink); }
.badge-muted { border-color: var(--border); background: var(--surface-3); color: var(--muted); }
.alert { position: relative; width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 0.75rem 1rem; font-size: 0.875rem; background: var(--surface); color: #e2e8f0; }
.alert-error { border-color: rgba(251, 113, 133, 0.3); background: rgba(244, 63, 94, 0.1); color: #fecdd3; }
.alert-info { border-color: rgba(147, 243, 215, 0.3); background: rgba(147, 243, 215, 0.05); color: var(--accent-ink); }

/* ---------- cards ---------- */
.card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); }
.card-flat { padding: 0; overflow: hidden; }
.card-body { padding: 1.25rem; }
.card-empty { padding: 2.5rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.card-empty.dashed { border-style: dashed; }

/* ---------- page chrome ---------- */
.shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; color: #f1f5f9; }
.shell-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: rgba(5, 6, 12, 0.7); backdrop-filter: blur(8px); }
.shell-header-row { margin: 0 auto; display: flex; max-width: 72rem; align-items: center; gap: 1rem; padding: 1rem; }
@media (min-width: 768px) { .shell-header-row { padding: 1rem 1.5rem; } }
.brand { position: relative; display: inline-flex; align-items: center; line-height: 1; }
.brand-eyebrow { position: absolute; top: -0.5rem; left: 0; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.brand-title { font-family: var(--font-display); font-size: 1.125rem; line-height: 1; letter-spacing: -0.01em; }
.shell-nav { margin: 0 auto; display: none; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.shell-nav-link:hover { color: #e2e8f0; }
.shell-nav-link.active { color: #f1f5f9; }
.shell-user { display: flex; align-items: center; gap: 0.5rem; }
.shell-subnav { border-top: 1px solid var(--border); background: var(--surface-3); }
.shell-subnav-row { margin: 0 auto; display: flex; max-width: 72rem; flex-wrap: wrap; gap: 1.25rem; padding: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--muted); }
.shell-subnav-link:hover { color: #f1f5f9; }
.shell-main { position: relative; margin: 0 auto; width: 100%; max-width: 72rem; flex: 1; padding: 2rem 1.5rem 2.5rem; }
.site-footer { text-align: center; font-size: 0.75rem; color: var(--muted-2); max-width: 72rem; margin: 0 auto; width: 100%; padding: 0 1.5rem 1.5rem; }

.desktop-only { display: none; }
.mobile-only { display: inline-flex; }
@media (min-width: 768px) {
  .desktop-only { display: flex; }
  .mobile-only { display: none; }
  .shell-nav { display: flex; }
  .shell-subnav { display: block; }
}

/* ---------- mobile menu ---------- */
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 100; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 12, 0.85); }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; display: flex; height: 100%; width: 85%; max-width: 20rem; flex-direction: column;
  border-left: 1px solid var(--border); background: #0b0d15; padding: 1.25rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background-image: radial-gradient(circle at top right, rgba(147, 243, 215, 0.08), transparent 55%);
}
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1rem; font-size: 0.875rem; color: #cbd5e1; }
.mobile-menu-user { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu-group { display: flex; flex-direction: column; gap: 0.25rem; border-bottom: 1px solid var(--border); padding: 1rem 0; }
.mobile-menu-label { margin-bottom: 0.25rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-2); }
.mobile-menu-link { border-radius: var(--radius-md); padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #cbd5e1; }
.mobile-menu-link:hover { background: var(--surface); color: #f1f5f9; }
.mobile-menu-link.active { background: var(--surface); color: #f1f5f9; }
.mobile-menu-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; }
.mobile-menu-actions .btn { justify-content: flex-start; }

/* ---------- page header / link cards ---------- */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
.page-title { margin: 0; font-family: var(--font-display); font-size: 1.875rem; letter-spacing: -0.01em; color: #f1f5f9; }
.page-desc { margin: 0.375rem 0 0; max-width: 36rem; font-size: 0.875rem; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-stack { display: flex; flex-direction: column; gap: 1.5rem; }

.link-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .link-grid { grid-template-columns: 1fr 1fr; } }
.link-card { display: flex; align-items: center; gap: 1rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); padding: 1.25rem; transition: border-color 0.15s; }
.link-card:hover { border-color: rgba(147, 243, 215, 0.6); }
.link-card-icon { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; flex-shrink: 0; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--accent); }
.link-card-body { display: flex; flex: 1; flex-direction: column; }
.link-card-title { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; color: #f1f5f9; }
.link-card-desc { margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted); }
.link-card-arrow { flex-shrink: 0; color: var(--muted-2); transition: color 0.15s; }
.link-card:hover .link-card-arrow { color: var(--accent); }

/* ---------- toolbar / search / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.search-bar { position: relative; display: flex; flex: 1 1 14rem; align-items: center; gap: 0.5rem; }
.search-bar-input-wrap { position: relative; flex: 1; }
.search-bar-input-wrap .icon-leading { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search-bar input { padding-left: 2.25rem; padding-right: 2.25rem; }
.search-bar-clear { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); }
.filter-select { width: 100%; }
@media (min-width: 640px) { .filter-select { width: 13rem; } .filter-select.narrow { width: 11rem; } }
.stage-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- tables ---------- */
.table-wrap { position: relative; width: 100%; overflow: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead tr { border-bottom: 1px solid var(--border); }
.data-table th { height: 2.5rem; padding: 0 1rem; text-align: left; vertical-align: middle; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.data-table td { padding: 1rem; vertical-align: middle; color: #e2e8f0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.data-table td.empty-cell { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.data-table td.actions-cell { text-align: right; }
.row-actions { display: inline-flex; gap: 0.5rem; }
.cell-title { font-weight: 500; color: #f1f5f9; }
.cell-sub { margin-top: 0.125rem; font-size: 0.75rem; color: var(--muted-2); }
.badge-wrap { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.muted-dash { color: var(--muted-2); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.pagination-controls { display: flex; align-items: center; gap: 0.5rem; }
.pagination-count { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); padding: 0.375rem 0.75rem; font-size: 0.75rem; color: #cbd5e1; }

/* ---------- modal / dialog ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 6, 12, 0.85); }
.modal-panel {
  position: relative; z-index: 10; margin: 2.5rem auto; width: calc(100% - 2rem); max-width: 32rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: #0b0d15;
  padding: 1.5rem; color: #f1f5f9; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background-image: radial-gradient(circle at top, rgba(147, 243, 215, 0.07), transparent 55%);
}
.modal-panel.modal-md { max-width: 28rem; }
.modal-panel.modal-lg { max-width: 36rem; }
.modal-close { position: absolute; right: 0.75rem; top: 0.75rem; height: 1.75rem; width: 1.75rem; display: grid; place-items: center; border-radius: var(--radius-md); color: #cbd5e1; }
.modal-close:hover { background: var(--surface); color: #f1f5f9; }
.modal-header { display: flex; flex-direction: column; gap: 0.25rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; padding-right: 2rem; }
.modal-title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: #f1f5f9; }
.modal-desc { margin: 0; font-size: 0.875rem; color: var(--muted); }
.modal-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 0; max-height: 65vh; overflow-y: auto; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.modal-footer.justify-between { justify-content: space-between; }
.modal-icon-danger { display: grid; place-items: center; height: 2rem; width: 2rem; border-radius: var(--radius-md); border: 1px solid rgba(251, 113, 133, 0.3); background: rgba(244, 63, 94, 0.1); color: #fda4af; }
.modal-title-row { display: flex; align-items: center; gap: 0.5rem; }

.location-list { display: flex; max-height: 18rem; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.location-row { display: flex; align-items: center; gap: 0.5rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-3); padding: 0.5rem 0.75rem; }
.location-row .location-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: #e2e8f0; }
.location-row .input { height: 2rem; }
.location-icon-btn { height: 2rem; width: 2rem; }
.location-icon-btn.danger { color: #fda4af; }
.empty-note { padding: 1.5rem 0; text-align: center; font-size: 0.875rem; color: var(--muted); }
.template-preview { white-space: pre-wrap; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-3); padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #cbd5e1; }
.placeholder-row { display: flex; flex-wrap: wrap; gap: 0.375rem; }

/* ---------- vecize cards ---------- */
.vecize-list { display: flex; flex-direction: column; gap: 0.75rem; }
.vecize-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); transition: border-color 0.15s; }
.vecize-card.shared { border-color: rgba(147, 243, 215, 0.25); }
.vecize-card:hover { border-color: var(--border-strong); }
.vecize-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; cursor: pointer; }
.vecize-icon { flex-shrink: 0; margin-top: 0.2rem; color: var(--muted-2); }
.vecize-icon.shared { color: rgba(147, 243, 215, 0.6); }
.vecize-text-wrap { flex: 1; min-width: 0; }
.vecize-text { margin: 0; font-family: var(--font-display); font-size: 0.9375rem; line-height: 1.6; color: #e2e8f0; white-space: pre-wrap; overflow-wrap: anywhere; }
.vecize-text.clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vecize-text.shared-color { color: var(--muted); }
.vecize-source { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted-2); }
.vecize-date { flex-shrink: 0; align-self: flex-start; }
.vecize-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); padding: 0.75rem 1rem; }
.vecize-actions-left, .vecize-actions-right { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- utility ---------- */
.hidden { display: none !important; }
.text-right { text-align: right; }
.btn-block { width: 100%; }
.checkbox-fieldset { display: flex; flex-direction: column; gap: 0.5rem; border: none; padding: 0; margin: 0; }
.inline-form { display: flex; align-items: center; gap: 0.5rem; }
.btn-token { height: 1.75rem; padding: 0 0.5rem; font-size: 0.75rem; }
.login-form { margin-top: 1.75rem; text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.login-submit { margin-top: 0.25rem; }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
