/* ============================================================================
   SignSketch Admin
   Modern, clean admin UI for managing the SignSketch catalog. Uses a slate-
   based palette with a single accent blue. Layout is a fixed left nav + a
   scrolling right pane.

   Design priorities:
   - Calm, low-saturation surface colors so the catalog content (which is
     itself colorful) stays the visual focus.
   - Generous whitespace; comfortable line-heights.
   - Sharp borders rather than drop-shadows. Shadows feel dated in 2026.
   - Tabular density: lists should feel scannable, not bloated.
   ============================================================================ */

:root {
    --ss-bg: #F8F9FB;
    --ss-surface: #FFFFFF;
    --ss-border: #E5E8EC;
    --ss-border-strong: #D0D5DB;
    --ss-text: #1F2937;
    --ss-text-muted: #6B7280;
    --ss-text-faint: #9CA3AF;
    --ss-accent: #2563EB;
    --ss-accent-hover: #1D4ED8;
    --ss-accent-bg: #EFF6FF;
    --ss-danger: #DC2626;
    --ss-danger-hover: #B91C1C;
    --ss-danger-bg: #FEF2F2;
    --ss-success: #059669;
    --ss-success-bg: #ECFDF5;
    --ss-warning-bg: #FFFBEB;
    --ss-warning-text: #92400E;
    --ss-nav-width: 240px;
    --ss-radius: 6px;

    /* Unified dark app-shell header (Dashboard / Designs wizard / Projects /
       Signs / Account / the sign editor's outer bar) — 2026-11-30 redesign,
       replacing the former white .ds3-nav + separate hardcoded #0d1421
       editor bar with one consistent dark chrome across every page so users
       always know where they are in the process. Keep --ds3-header-bg in
       sync with index.html's own --apco-charcoal (#1F2933) — two separate
       stylesheets, no shared token, so this value must be changed in both
       places if it ever changes. */
    --ds3-header-bg: #1F2933;
    --ds3-header-border: rgba(255,255,255,0.08);
    --ds3-header-text: #FFFFFF;
    --ds3-header-text-dim: rgba(255,255,255,0.55);
    --ds3-header-text-faint: rgba(255,255,255,0.35);
    --ds3-header-hover-bg: rgba(255,255,255,0.06);
    --ds3-header-accent: #1a56a0;
}

/* -------- Base reset --------
   Scoped to body.ds3-app: the standalone public-facing pages (Dashboard,
   Projects, Signs, Designs, Login) that set Layout = null and build their
   own full <html> document without Bootstrap. Deliberately NOT applied
   globally so it can't touch Bootstrap-based Admin/Identity pages.
   Per-page background/font tweaks are applied on the body.ds3-page-*
   scope further down and win on specificity. */
body.ds3-app,
body.ds3-app *,
body.ds3-app *::before,
body.ds3-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.ds3-app {
    min-height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Nav */
.ds3-nav {
    height: 56px;
    background: var(--ds3-header-bg);
    border-bottom: 1px solid var(--ds3-header-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

/* Generic breadcrumb trail used by every page's header (via _AppHeader/
   _Breadcrumb shared partials) — Dashboard, the Browse Design wizard,
   Projects, Signs, Account, and the sign editor's own outer bar. */
.ds3-nav .ds3-breadcrumb {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; margin-left: 20px; padding-left: 20px;
    border-left: 1px solid var(--ds3-header-border);
    min-width: 0; overflow: hidden; flex-wrap: nowrap;
}
.ds3-breadcrumb a {
    color: var(--ds3-header-text-dim); text-decoration: none;
    white-space: nowrap; transition: color 0.15s;
}
.ds3-breadcrumb a:hover { color: var(--ds3-header-text); }
.ds3-breadcrumb .ds3-crumb-sep { color: var(--ds3-header-text-faint); font-size: 11px; }
.ds3-breadcrumb .ds3-crumb-current {
    color: var(--ds3-header-text); font-weight: 600; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

.nav-logo-design {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.nav-logo-studio {
    font-size: 18px;
    font-weight: 300;
    color: #111;
}

.nav-logo-num {
    width: 18px;
    height: 18px;
    background: #dc2626;
    border-radius: 50%;
    font-family: Arial;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: super;
}

body.ds3-app .nav-logo-num {
    margin-left: 4px;
}
/* -------- Logo size / context modifiers --------
   The markup is always the same four spans:
   <a class="nav-logo [modifier]" href="...">
       <span class="nav-logo-studio">De</span><span class="nav-logo-design">sign</span><span class="nav-logo-studio">Studio</span><span class="nav-logo-num">3</span>
   </a>
   Only the modifier class changes size/color to fit the surrounding chrome. */
/* Compact — used in the slim top bar (Admin / Privacy / Error pages) */
.nav-logo--compact {
    margin-right: 32px;
}
.nav-logo--compact .nav-logo-design,
.nav-logo--compact .nav-logo-studio { font-size: 17px; }
.nav-logo--compact .nav-logo-num {
    width: 17px;
    height: 17px;
    font-size: 9px;
    margin-left: 2px;
}

/* Dark — used on dark backgrounds (the sign editor bar) */
.nav-logo--dark { margin-right: 16px; }
.nav-logo--dark .nav-logo-design,
.nav-logo--dark .nav-logo-studio { font-size: 14px; color: #fff; }
.nav-logo--dark .nav-logo-num {
    width: 15px;
    height: 15px;
    margin-left: 2px;
}

/* Hero — used on the login page */
.nav-logo--hero { margin-bottom: 4px; margin-right: 0; }
.nav-logo--hero .nav-logo-design,
.nav-logo--hero .nav-logo-studio { font-size: 28px; letter-spacing: -0.5px; }
.nav-logo--hero .nav-logo-num {
    width: 22px;
    height: 22px;
    font-size: 12px;
    margin-left: 3px;
    line-height: 1;
}

/* -------- App shell (Dashboard / Designs / Projects / Signs) --------
   These pages each build a full standalone document (Layout = null) but
   share one identical nav + page-chrome design. Kept unscoped/canonical
   here since every instance was byte-for-byte the same design intent. */

.ds3-app .ds3-nav {
    height: 56px;
    background: var(--ds3-header-bg);
    border-bottom: 1px solid var(--ds3-header-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ds3-app .ds3-main { max-width: 1200px; margin: 0 auto; padding: 40px 28px 80px; }

.ds3-app .nav-spacer { flex: 1; }
.ds3-app .nav-user { display: flex; align-items: center; gap: 10px; }
.ds3-app .nav-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #1a56a0; color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ds3-app .nav-name { font-size: 13px; color: var(--ds3-header-text-dim); }
.ds3-app .nav-link {
    font-size: 13px; color: var(--ds3-header-text-dim); text-decoration: none;
    padding: 6px 12px; border-radius: 6px;
    border: 1px solid var(--ds3-header-border);
    transition: background 0.15s;
}
.ds3-app .nav-link:hover { background: var(--ds3-header-hover-bg); color: var(--ds3-header-text); }
.ds3-app .nav-signout {
    font-size: 13px; color: var(--ds3-header-text-dim); text-decoration: none;
    padding: 6px 12px; border-radius: 6px;
    border: 1px solid var(--ds3-header-border); background: none; cursor: pointer;
    transition: background 0.15s;
}
.ds3-app .nav-signout:hover { background: var(--ds3-header-hover-bg); color: var(--ds3-header-text); }
.ds3-app .nav-back {
    font-size: 13px; color: var(--ds3-header-text-dim); text-decoration: none;
    padding: 6px 14px; border-radius: 6px; border: 1px solid var(--ds3-header-border);
    display: inline-flex; align-items: center; gap: 5px;
    margin-left: 12px;
    transition: background .15s;
}
.ds3-app .nav-back:hover { background: var(--ds3-header-hover-bg); color: var(--ds3-header-text); }
.ds3-app .nav-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-back {
    margin-left: 24px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .nav-back:hover {
        color: #111;
    }

    .nav-back svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

/* Small "← Back to X" link used above admin form headings */
.ss-back-link {
    color: var(--ss-text-muted);
    text-decoration: none;
    font-size: 13px;
}

.ss-back-link:hover {
    color: var(--ss-accent);
    text-decoration: none;
}

/* Required-field marker next to a form label */
.req {
    color: var(--ss-danger);
}

/* -------- Compact top bar (site-wide chrome: Admin / Privacy / Error) -------- */

.ds3-topnav {
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ds3-topnav-spacer { flex: 1; }

.ds3-topnav-links { display: flex; align-items: center; gap: 4px; }

.ds3-topnav-links a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.ds3-topnav-links a:hover { background: #f4f6f9; color: #111; }
.ds3-topnav-links a.active { color: #1a56a0; font-weight: 600; }

.ds3-topnav-signout {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-left: 8px;
    transition: background 0.15s;
}

.ds3-topnav-signout:hover { background: #f4f6f9; color: #444; }

.ds3-content { padding: 0; }

/* -------- Shell layout -------- */

.ss-admin-wrap {
    display: flex;
    min-height: calc(100vh - 60px);  /* room for site's top chrome */
    background: var(--ss-bg);
    color: var(--ss-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.ss-admin-nav {
    width: var(--ss-nav-width);
    flex: 0 0 var(--ss-nav-width);
    background: var(--ss-surface);
    border-right: 1px solid var(--ss-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
}

.ss-admin-main {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;  /* prevents flex children from overflowing */
}

/* -------- Left nav -------- */

.ss-admin-nav-title {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--ss-border);
    margin-bottom: 12px;
}

.ss-admin-nav-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ss-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.ss-admin-nav-heading {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ss-text);
}

.ss-admin-nav-section {
    padding: 16px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ss-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ss-admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--ss-text);
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: background 120ms, color 120ms;
}

.ss-admin-nav-link:hover {
    background: var(--ss-bg);
    text-decoration: none;
    color: var(--ss-accent);
}

.ss-admin-nav-link.active {
    background: var(--ss-accent-bg);
    border-left-color: var(--ss-accent);
    color: var(--ss-accent);
    font-weight: 500;
}

.ss-admin-nav-link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.ss-admin-nav-foot {
    margin-top: 32px;
    padding-top: 12px;
    border-top: 1px solid var(--ss-border);
}

.ss-admin-nav-back {
    color: var(--ss-text-muted);
}

/* -------- Page header -------- */

.ss-page-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ss-page-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--ss-text);
}

.ss-page-header p {
    color: var(--ss-text-muted);
    margin: 0;
    max-width: 600px;
}

.ss-page-header-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

/* -------- Buttons -------- */

.ss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--ss-border-strong);
    background: var(--ss-surface);
    color: var(--ss-text);
    border-radius: var(--ss-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 120ms, border-color 120ms, color 120ms;
    white-space: nowrap;
}

.ss-btn:hover {
    background: var(--ss-bg);
    text-decoration: none;
    color: var(--ss-text);
}

.ss-btn-primary {
    background: var(--ss-accent);
    border-color: var(--ss-accent);
    color: white;
}

.ss-btn-primary:hover {
    background: var(--ss-accent-hover);
    border-color: var(--ss-accent-hover);
    color: white;
}

.ss-btn-danger {
    color: var(--ss-danger);
    border-color: var(--ss-border-strong);
}

.ss-btn-danger:hover {
    background: var(--ss-danger-bg);
    border-color: var(--ss-danger);
    color: var(--ss-danger);
}

.ss-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.ss-btn svg {
    width: 14px;
    height: 14px;
}

/* -------- Cards / panels -------- */

.ss-card {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.ss-card-compact {
    padding: 12px 16px;
}

.ss-card h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
}

.ss-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* -------- Tables -------- */

.ss-table-wrap {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    overflow: hidden;
}

.ss-table {
    width: 100%;
    border-collapse: collapse;
}

.ss-table thead th {
    background: var(--ss-bg);
    border-bottom: 1px solid var(--ss-border);
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--ss-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ss-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--ss-border);
    vertical-align: middle;
}

.ss-table tbody tr:last-child td { border-bottom: none; }

.ss-table tbody tr:hover { background: var(--ss-bg); }

.ss-table tbody tr.is-inactive {
    color: var(--ss-text-faint);
    background: var(--ss-bg);
}

.ss-table tbody tr.is-inactive .ss-swatch-preview { opacity: 0.5; }

.ss-table-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* -------- Forms -------- */

.ss-form-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.ss-form-row label {
    font-size: 13px;
    color: var(--ss-text);
    font-weight: 500;
    margin: 0;
}

.ss-form-row .hint {
    grid-column: 2;
    font-size: 12px;
    color: var(--ss-text-muted);
    margin-top: 4px;
}

.ss-form-control {
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid var(--ss-border-strong);
    border-radius: var(--ss-radius);
    background: var(--ss-surface);
    color: var(--ss-text);
    font-family: inherit;
    width: 100%;
}

.ss-form-control:focus {
    outline: none;
    border-color: var(--ss-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ss-form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ss-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ss-border);
}

/* -------- Filters / toolbar -------- */

.ss-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ss-toolbar .ss-form-control { width: auto; min-width: 200px; }

.ss-toolbar-spacer { flex: 1; }

/* -------- Badges -------- */

.ss-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--ss-bg);
    color: var(--ss-text-muted);
}

.ss-badge-popular {
    background: var(--ss-accent-bg);
    color: var(--ss-accent);
}

.ss-badge-inactive {
    background: var(--ss-danger-bg);
    color: var(--ss-danger);
}

/* -------- Color swatch preview (small) -------- */

.ss-swatch-preview {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--ss-border-strong);
    vertical-align: middle;
}

/* -------- Toast / alert -------- */

.ss-alert {
    padding: 10px 14px;
    border-radius: var(--ss-radius);
    margin-bottom: 16px;
    font-size: 13px;
}

.ss-alert-success {
    background: var(--ss-success-bg);
    color: var(--ss-success);
    border: 1px solid #A7F3D0;
}

.ss-alert-warning {
    background: var(--ss-warning-bg);
    color: var(--ss-warning-text);
    border: 1px solid #FDE68A;
}

.ss-alert-danger {
    background: var(--ss-danger-bg);
    color: var(--ss-danger);
    border: 1px solid #FECACA;
}

/* -------- Overview tiles -------- */

.ss-stat-tile {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 120ms, transform 120ms;
}

.ss-stat-tile:hover {
    border-color: var(--ss-accent);
    text-decoration: none;
}

.ss-stat-tile-label {
    font-size: 12px;
    color: var(--ss-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.ss-stat-tile-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--ss-text);
    line-height: 1.2;
}

.ss-stat-tile-sub {
    font-size: 12px;
    color: var(--ss-text-faint);
}

/* -------- Empty state -------- */

.ss-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ss-text-muted);
}

.ss-empty svg {
    width: 40px;
    height: 40px;
    color: var(--ss-text-faint);
    margin-bottom: 12px;
}

.ss-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ss-text);
    margin: 0 0 4px;
}

/* ============================================================================
   Page: Signs/Design.cshtml (the sign editor shell)
   Scoped under body.ds3-page-editor since it runs full-bleed, dark, with its
   own reset — kept separate from the public app shell below.
   ============================================================================ */

body.ds3-page-editor {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: #1a1f2e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ds3-editor-bar {
    height: 44px;
    background: var(--ds3-header-bg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
}

/* .ds3-breadcrumb (below) replaced .eb-breadcrumb/.eb-breadcrumb a as the
   editor bar's Dashboard/Project trail, 2026-11-30 — same generic partial
   used by every other page now. The bordered-segment look .eb-breadcrumb
   used to supply is restored here since .ds3-nav .ds3-breadcrumb's own
   layout rule doesn't match inside .ds3-editor-bar (no .ds3-nav ancestor).
   .eb-sep is kept: it still separates the breadcrumb from the Concept
   name + product-line/series badges immediately after it (.eb-concept/
   .eb-badge below), which aren't a plain clickable crumb and so stay
   hand-rolled in Signs/Design.cshtml. */
.ds3-editor-bar .ds3-breadcrumb {
    height: 100%; padding: 0 14px; margin-left: 0;
    border-left: 1px solid rgba(255,255,255,0.10);
}
.eb-sep { color: rgba(255,255,255,0.2); font-size: 11px; }
.eb-concept {
    display: flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.85); font-weight: 600;
    white-space: nowrap;
}
.eb-badge {
    font-size: 9px; font-weight: 700; letter-spacing: .04em;
    padding: 1px 6px; border-radius: 3px;
    background: rgba(26,86,160,0.8); color: #fff;
}
.eb-badge-series { background: rgba(22,163,74,0.7); }

.eb-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.10); margin: 0 14px; flex-shrink: 0; }
.eb-docname {
    font-size: 12px; color: rgba(255,255,255,0.55);
    max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 1;
}

.eb-spacer { flex: 1; }
.eb-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.eb-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: #1a56a0; color: #fff;
    font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.eb-name { font-size: 11px; color: rgba(255,255,255,0.5); }
.eb-back {
    font-size: 11px; color: rgba(255,255,255,0.5);
    text-decoration: none; padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 5px;
    margin-left: 12px; flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.eb-back:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.ds3-editor-frame {
    position: fixed;
    top: 44px; left: 0; right: 0; bottom: 0;
    border: none; width: 100%; height: calc(100% - 44px);
}

/* ============================================================================
   Page: Index.cshtml (login)
   Scoped under body.ds3-page-login to keep its generic class names
   (.field-error, .sign-card, etc.) from leaking into other pages.
   ============================================================================ */

body.ds3-page-login {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0d1421;
}

.ds3-page-login .ds3-page { display: flex; min-height: 100vh; }

.ds3-page-login .ds3-left {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 44px 48px;
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    z-index: 10;
    position: relative;
}

.ds3-page-login .ds3-powered { font-size: 12px; color: #888; margin-bottom: 48px; }
.ds3-page-login .ds3-powered strong { color: #555; font-weight: 600; }

.ds3-page-login .ds3-welcome { margin-bottom: 32px; }
.ds3-page-login .ds3-welcome h1 { font-size: 26px; font-weight: 600; color: #111; margin-bottom: 6px; }
.ds3-page-login .ds3-welcome p  { font-size: 14px; color: #666; line-height: 1.5; }

.ds3-page-login .ds3-field { margin-bottom: 20px; }
.ds3-page-login .ds3-field label {
    display: block; font-size: 11px; font-weight: 700;
    color: #555; margin-bottom: 7px; letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ds3-page-login .ds3-field input {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1.5px solid #ddd; border-radius: 7px;
    font-size: 14px; color: #111; background: #fafafa;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.ds3-page-login .ds3-field input:focus {
    border-color: #1a56a0;
    box-shadow: 0 0 0 3px rgba(26,86,160,0.12);
    background: #fff;
}

.ds3-page-login .field-error { font-size: 12px; color: #c0392b; margin-top: 5px; }
.ds3-page-login .alert-error {
    background: #fdf0ef; border: 1px solid #f5c6c2;
    border-radius: 7px; padding: 12px 14px;
    font-size: 13px; color: #8b2020; margin-bottom: 20px;
}

.ds3-page-login .ds3-btn {
    width: 100%; height: 46px;
    background: #1a56a0; color: #fff;
    border: none; border-radius: 7px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s;
}
.ds3-page-login .ds3-btn:hover  { background: #154a8f; }
.ds3-page-login .ds3-btn:active { transform: scale(0.99); }

.ds3-page-login .ds3-forgot { text-align: right; margin-top: 12px; font-size: 13px; }
.ds3-page-login .ds3-forgot a { color: #1a56a0; text-decoration: none; }
.ds3-page-login .ds3-forgot a:hover { text-decoration: underline; }

.ds3-page-login .ds3-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 28px 0; color: #ccc; font-size: 12px;
}
.ds3-page-login .ds3-divider::before,
.ds3-page-login .ds3-divider::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }

.ds3-page-login .ds3-btn-register {
    width: 100%; height: 44px;
    background: transparent; color: #1a56a0;
    border: 1.5px solid #1a56a0; border-radius: 7px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.ds3-page-login .ds3-btn-register:hover { background: #f0f5fb; }

.ds3-page-login .ds3-spacer { flex: 1; }

.ds3-page-login .ds3-footer { font-size: 11px; color: #aaa; text-align: center; line-height: 1.9; }
.ds3-page-login .ds3-footer a { color: #aaa; text-decoration: none; }
.ds3-page-login .ds3-footer a:hover { color: #555; }

.ds3-page-login .ds3-right { flex: 1; position: relative; overflow: hidden; background: #0d1421; }

.ds3-page-login .slide {
    position: absolute; inset: 0; opacity: 0;
    background-size: cover; background-position: center;
    transition: opacity 1.4s ease;
}
.ds3-page-login .slide.active { opacity: 1; }
.ds3-page-login .slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(8,15,35,0.72) 0%, rgba(8,15,35,0.25) 60%, rgba(8,15,35,0.6) 100%);
}

.ds3-page-login .slide-1 { background-image: url('/images/login-image-1.jpg'); background-position: center 30%; }
.ds3-page-login .slide-2 { background-image: url('/images/login-image-2.jpg'); }
.ds3-page-login .slide-3 { background-image: url('/images/login-image-3.jpg'); }

.ds3-page-login .sign-overlay { position: absolute; z-index: 2; opacity: 0; animation: ds3-login-floatIn 1s ease forwards; }
@keyframes ds3-login-floatIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ds3-page-login .sign-card {
    background: rgba(255,255,255,0.11);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 0.5px solid rgba(255,255,255,0.22);
    border-radius: 10px; padding: 16px 20px; color: #fff;
}
.ds3-page-login .sign-card.dark {
    background: rgba(8,15,35,0.78);
    border-color: rgba(255,255,255,0.14);
}

.ds3-page-login .s1-a { top: 14%; right: 7%; width: 185px; animation-delay: 0.5s; }
.ds3-page-login .s1-b { bottom: 20%; left: 5%; width: 165px; animation-delay: 0.85s; }
.ds3-page-login .s2-a { top: 11%; left: 7%; width: 345px; animation-delay: 0.45s; }
.ds3-page-login .s2-b { bottom: 16%; right: 7%; width: 155px; animation-delay: 0.8s; }
.ds3-page-login .s3-a { top: 9%; right: 6%; width: 195px; animation-delay: 0.4s; }
.ds3-page-login .s3-b { bottom: 19%; left: 7%; width: 145px; animation-delay: 0.75s; }

.ds3-page-login .sc-eye  { font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255); text-transform: uppercase; margin-bottom: 8px; }
.ds3-page-login .sc-line { height: 0.5px; background: rgba(255,255,255,0.18); margin: 8px 0; }
.ds3-page-login .sc-row  { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.78); margin-top: 5px; }
.ds3-page-login .sc-arr  { color: #7eb8f7; font-weight: 700; width: 12px; }
.ds3-page-login .sc-h1   { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.ds3-page-login .sc-sub  { font-size: 11px; color: rgba(255,255,255,0.55); }
.ds3-page-login .sc-badge {
    display: inline-block; font-size: 9px; padding: 2px 9px;
    border-radius: 10px; background: rgba(26,86,160,0.75);
    color: #fff; letter-spacing: 0.06em; margin-top: 9px;
}

.ds3-page-login .caption-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    padding: 24px 32px 28px;
    background: linear-gradient(to top, rgba(5,10,25,0.88) 0%, transparent 100%);
}
.ds3-page-login .caption-title {
    font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 5px;
    opacity: 0; animation: ds3-login-fadeUp 0.9s 0.3s forwards;
}
.ds3-page-login .caption-sub {
    font-size: 13px; color: rgba(255,255,255,0.58);
    opacity: 0; animation: ds3-login-fadeUp 0.9s 0.5s forwards;
}
@keyframes ds3-login-fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ds3-page-login .ds3-tag {
    position: absolute; top: 22px; right: 22px; z-index: 4;
    display: flex; align-items: center; gap: 8px;
    background: rgba(8,15,35,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255,255,255,0.15);
    border-radius: 20px; padding: 6px 14px 6px 10px;
}
.ds3-page-login .ds3-tag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80; animation: ds3-login-pulse 2s infinite;
}
@keyframes ds3-login-pulse { 0%,100%{opacity:1;}50%{opacity:0.35;} }
.ds3-page-login .ds3-tag-text { font-size: 11px; color: rgba(255,255,255,0.8); letter-spacing: 0.04em; }

.ds3-page-login .slide-dots {
    position: absolute; bottom: 24px; right: 32px; z-index: 4;
    display: flex; gap: 8px;
}
.ds3-page-login .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer;
    border: none; padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.ds3-page-login .dot.active { background: #fff; transform: scale(1.25); }

/* ============================================================================
   Page: Dashboard.cshtml
   Nav chrome comes from the shared .ds3-app rules above. Everything below
   is specific to this page's cards/grids and is scoped under
   body.ds3-page-dashboard since names like .sign-card, .empty-state and
   .btn-new are reused with different designs on other pages.
   ============================================================================ */

.ds3-page-dashboard { background: #f4f6f9; color: #111; }

.ds3-page-dashboard .section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.ds3-page-dashboard .section-title { font-size: 20px; font-weight: 700; color: #111; }
.ds3-page-dashboard .section-sub { font-size: 13px; color: #64748b; margin-top: 3px; }

.ds3-page-dashboard .btn-new {
    display: inline-flex; align-items: center; gap: 7px;
    background: #1a56a0; color: #fff; text-decoration: none;
    padding: 9px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    transition: background 0.15s;
}
.ds3-page-dashboard .btn-new:hover { background: #154a8f; }
.ds3-page-dashboard .btn-new svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.5; fill: none; }

.ds3-page-dashboard .btn-secondary {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; color: #1a56a0; text-decoration: none;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    border: 1.5px solid #c7d9f0;
    transition: background 0.15s;
}
.ds3-page-dashboard .btn-secondary:hover { background: #eef3fb; }
.ds3-page-dashboard .btn-secondary svg { width: 14px; height: 14px; stroke: #1a56a0; stroke-width: 2.5; fill: none; }

.ds3-page-dashboard .welcome-banner {
    background: #c2c2c2;
background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #cbd5e1 100%);
box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    border-radius: 12px; padding: 28px 32px;
    /*color: #fff;*/ margin-bottom: 15px;
    display: flex; align-items: center; justify-content: space-between;
}
.ds3-page-dashboard .welcome-text h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: rgba(0,0,0,0.75); }
.ds3-page-dashboard .welcome-text p  { font-size: 14px; color: rgba(0,0,0,0.75); }
.ds3-page-dashboard .welcome-actions { margin-bottom: 20px; min-width: 550px; margin: 0px 20px; }
.action-buttons { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.ds3-page-dashboard .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 45px;
    background: #CF0000;
    color: #1a56a0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    /*box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;*/
    /*background-image: linear-gradient(#f7f8fa ,#e7e9ec);*/
    /*background-image: radial-gradient(100% 100% at 100% 0, #FFEDED 0, #F70000 100%);*/
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
    border-color: #adb1b8 #a2a6ac #8d9096;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    box-shadow: rgba(255,255,255,.6) 0 1px 0 inset;
    box-sizing: border-box;
    color: #FFFFFF;
}
.ds3-page-dashboard .btn-white:hover { background: #e31414; }
.ds3-page-dashboard .btn-white svg { width: 18px; height: 18px; stroke: #FFFFFF; stroke-width: 2.5; fill: #FFFFFF; }
.ds3-page-dashboard .btn-ghost {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.15); color: #fff;
    padding: 10px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.15s;
}
.ds3-page-dashboard .btn-ghost:hover { background: rgba(255,255,255,0.25); }
.ds3-page-dashboard .btn-ghost svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.5; fill: none; }

.ds3-page-dashboard .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}
.ds3-page-dashboard .project-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #e8eaed;
    padding: 20px; text-decoration: none; color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
    display: flex; flex-direction: column;
}
.ds3-page-dashboard .project-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    border-color: #c7d9f0;
}
.ds3-page-dashboard .project-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ds3-page-dashboard .project-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: #eef3fb; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ds3-page-dashboard .project-icon svg { width: 20px; height: 20px; stroke: #1a56a0; fill: none; stroke-width: 1.8; }
.ds3-page-dashboard .project-name { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 3px; line-height: 1.3; }
.ds3-page-dashboard .project-client { font-size: 12px; color: #64748b; }
.ds3-page-dashboard .project-meta {
    display: flex; gap: 12px; margin-top: auto; padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.ds3-page-dashboard .meta-item { font-size: 12px; color: #64748b; }
.ds3-page-dashboard .meta-item strong { color: #374151; font-weight: 600; }
.ds3-page-dashboard .product-badge {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    background: #f0f5fb; color: #1a56a0;
    margin-bottom: 8px;
}
.ds3-page-dashboard .project-date { font-size: 11px; color: #9ca3af; margin-top: 8px; }

.ds3-page-dashboard .sign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.ds3-page-dashboard .sign-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #e8eaed;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
    position: relative;
}
.ds3-page-dashboard .sign-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #c7d9f0; }
.ds3-page-dashboard .sign-thumb {
    height: 100px; background: #f8f9fb;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #f0f0f0; overflow: hidden;
}
.ds3-page-dashboard .sign-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ds3-page-dashboard .sign-thumb-empty {
    width: 40px; height: 40px;
    background: #e8edf5; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.ds3-page-dashboard .sign-thumb-empty svg { width: 20px; height: 20px; stroke: #94a3b8; fill: none; stroke-width: 1.5; }
.ds3-page-dashboard .sign-info { padding: 10px 12px; }
.ds3-page-dashboard .sign-name {
    font-size: 12px; font-weight: 600; color: #111; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds3-page-dashboard .sign-date { font-size: 11px; color: #9ca3af; }

.ds3-page-dashboard .empty-state {
    text-align: center; padding: 48px 20px;
    background: #fff; border-radius: 10px;
    border: 2px dashed #e2e8f0;
}
.ds3-page-dashboard .empty-state svg { width: 40px; height: 40px; stroke: #cbd5e1; fill: none; stroke-width: 1.5; margin-bottom: 12px; }
.ds3-page-dashboard .empty-state h3 { font-size: 15px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.ds3-page-dashboard .empty-state p  { font-size: 13px; color: #94a3b8; margin-bottom: 16px; }

.ds3-page-dashboard .section-divider { margin: 40px 0; border: none; border-top: 1px solid #e8eaed; }

/* ============================================================================
   Page: Designs/Index.cshtml (Browse Designs gallery)
   ============================================================================ */

.ds3-page-designs { background: #f4f6f9; color: #111; }

.ds3-page-designs .hero {
    background: linear-gradient(135deg, #1a3a6b 0%, #1a56a0 100%);
    padding: 20px 28px; text-align: center; color: #fff;
}
.ds3-page-designs .hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.ds3-page-designs .hero p  { font-size: 16px; color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto; }

.ds3-page-designs .col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}
.ds3-page-designs .col-grid-sm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.ds3-page-designs .col-card {
    background: #fff; border-radius: 12px; border: 1px solid #e8eaed;
    overflow: hidden; transition: box-shadow .15s, border-color .15s;
    display: flex; flex-direction: column;
}
.ds3-page-designs .col-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); border-color: #c7d9f0; }

/* Collections are usually few per Product Line/Market combo, so the hero
   preview — the only image on the card now that the small per-sign thumbnail
   strip is gone — gets to be the dominant visual instead of a small banner
   over a cramped card. Taller cards when there are more collections just
   mean a longer page scroll, not a usability problem (see Collections.cshtml's
   doc comment: "up to ~20" per combination). */
.ds3-page-designs .col-hero { height: 340px; background: #f1f5f9; overflow: hidden; position: relative; }
.ds3-page-designs .col-hero img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.ds3-page-designs .col-hero-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.ds3-page-designs .col-hero-empty svg { width: 48px; height: 48px; stroke: #cbd5e1; fill: none; stroke-width: 1.5; }
.ds3-page-designs .col-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px);
}

.ds3-page-designs .col-badge {
    background: rgba(26,86,160,.9); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px;
}

.ds3-page-designs .col-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ds3-page-designs .col-name { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 6px; }
.ds3-page-designs .col-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 14px; }

.ds3-page-designs .col-actions { display: flex; gap: 8px; margin-top: auto; }
.ds3-page-designs .btn-use {
    flex: 1; background: #1a56a0; color: #fff; border: none;
    padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; text-align: center;
    transition: background .15s;
}
.ds3-page-designs .btn-use:hover { background: #154a8f; }
.ds3-page-designs .btn-pdf {
    background: #fff; color: #1a56a0; border: 1.5px solid #c7d9f0;
    padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.ds3-page-designs .btn-pdf:hover { background: #eef3fb; }
.ds3-page-designs .btn-pdf svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.ds3-page-designs .empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.ds3-page-designs .empty-state h3 { font-size: 18px; font-weight: 600; color: #475569; margin-bottom: 8px; }

/* ============================================================================
   Page: Designs/Market.cshtml (Browse Design Collections — market picker)
   ============================================================================ */

.ds3-page-market { background: #f4f6f9; color: #111; }

.ds3-page-market .hero {
    background: linear-gradient(135deg, #1a3a6b 0%, #1a56a0 100%);
    padding: 20px 28px; text-align: center; color: #fff;
}
.ds3-page-market .hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.ds3-page-market .hero p  { font-size: 16px; color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto; }

.ds3-page-market .market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 760px;
    margin: 20px auto 0;
}
.ds3-page-market .market-tile {
    background: #fff; border-radius: 14px; border: 2px solid #e8eaed;
    aspect-ratio: 1 / 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; text-decoration: none;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
.ds3-page-market .market-tile:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1); border-color: #1a56a0; transform: translateY(-2px);
}
.ds3-page-market .market-tile-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #eef3fb; display: flex; align-items: center; justify-content: center;
}
.ds3-page-market .market-tile-icon svg { width: 30px; height: 30px; stroke: #1a56a0; fill: none; stroke-width: 1.6; }
.ds3-page-market .market-tile-icon img { width: 34px; height: 34px; object-fit: contain; }
.ds3-page-market .market-tile-name { font-size: 16px; font-weight: 700; color: #111; }

.ds3-page-market .empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.ds3-page-market .empty-state h3 { font-size: 18px; font-weight: 600; color: #475569; margin-bottom: 8px; }

/* ============================================================================
   Page: Projects/Index.cshtml (project detail page)
   ============================================================================ */

.ds3-page-project-detail { background: #f4f6f9; color: #111; }
.ds3-page-project-detail .ds3-main { padding-top: 36px; }


.ds3-page-project-detail .project-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 32px;
}
.ds3-page-project-detail .project-header h1 { font-size: 26px; font-weight: 800; color: #111; margin-bottom: 4px; }
.ds3-page-project-detail .project-client { font-size: 14px; color: #64748b; }
.ds3-page-project-detail .project-desc { font-size: 13px; color: #94a3b8; margin-top: 6px; }

.ds3-page-project-detail .btn-add-concept {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; color: #1a56a0;
    padding: 9px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: 1.5px solid #c7d9f0;
    transition: background 0.15s; white-space: nowrap;
}
.ds3-page-project-detail .btn-add-concept:hover { background: #eef3fb; }
.ds3-page-project-detail .btn-add-concept svg { width: 14px; height: 14px; stroke: #1a56a0; fill: none; stroke-width: 2.5; }

.ds3-page-project-detail .concept-section { margin-bottom: 40px; }
.ds3-page-project-detail .concept-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid #e8eaed;
}
.ds3-page-project-detail .concept-title-area { display: flex; align-items: center; gap: 10px; }
.ds3-page-project-detail .concept-name { font-size: 17px; font-weight: 700; color: #111; }
.ds3-page-project-detail .concept-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f0f5fb; color: #1a56a0;
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 5px;
}
.ds3-page-project-detail .concept-series-badge {
    background: #f0fdf4; color: #16a34a;
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 5px;
}

.ds3-page-project-detail .btn-add-sign {
    display: inline-flex; align-items: center; gap: 6px;
    background: #1a56a0; color: #fff;
    padding: 8px 16px; border-radius: 7px;
    font-size: 12px; font-weight: 600; text-decoration: none;
    transition: background 0.15s;
}
.ds3-page-project-detail .btn-add-sign:hover { background: #154a8f; }
.ds3-page-project-detail .btn-add-sign svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.5; }

.ds3-page-project-detail .sign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.ds3-page-project-detail .sign-card {
    background: #fff; border-radius: 9px;
    border: 1px solid #e8eaed; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
    position: relative;
}
.ds3-page-project-detail .sign-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); border-color: #c7d9f0; }
.ds3-page-project-detail .sign-thumb {
    height: 90px; background: #f8f9fb;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #f0f0f0; overflow: hidden;
}
.ds3-page-project-detail .sign-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ds3-page-project-detail .sign-thumb-empty {
    width: 36px; height: 36px; background: #e8edf5; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
}
.ds3-page-project-detail .sign-thumb-empty svg { width: 18px; height: 18px; stroke: #94a3b8; fill: none; stroke-width: 1.5; }
.ds3-page-project-detail .sign-info { padding: 9px 10px 8px; }
.ds3-page-project-detail .sign-name {
    font-size: 12px; font-weight: 600; color: #111; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds3-page-project-detail .sign-date { font-size: 11px; color: #9ca3af; }
.ds3-page-project-detail .sign-delete {
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(220,38,38,0.85); color: #fff;
    border: none; font-size: 11px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    line-height: 1; padding: 0;
}
.ds3-page-project-detail .sign-card:hover .sign-delete { display: flex; }

.ds3-page-project-detail .sign-duplicate {
    position: absolute; top: 6px; right: 34px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(37,99,235,0.85); color: #fff;
    border: none; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    line-height: 1; padding: 0;
}
.ds3-page-project-detail .sign-card:hover .sign-duplicate { display: flex; }

.ds3-page-project-detail .sign-card-new {
    border: 2px dashed #e2e8f0; border-radius: 9px;
    height: 100%; min-height: 140px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-decoration: none; color: #94a3b8;
    transition: border-color 0.15s, background 0.15s;
    gap: 6px; font-size: 12px; font-weight: 600;
}
.ds3-page-project-detail .sign-card-new:hover { border-color: #93bbee; background: #f8fafd; color: #1a56a0; }
.ds3-page-project-detail .sign-card-new svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.ds3-page-project-detail .concept-empty { color: #94a3b8; font-size: 13px; padding: 8px 0; }

.ds3-page-project-detail .ep-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.45); align-items: center; justify-content: center;
}
.ds3-page-project-detail .ep-overlay.open { display: flex; }
.ds3-page-project-detail .ep-modal {
    background: #fff; border-radius: 12px; width: 100%; max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 28px 32px;
    animation: ds3-modal-in 0.15s ease;
}
@keyframes ds3-modal-in { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
.ds3-page-project-detail .ep-modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: #111; }
.ds3-page-project-detail .ep-field { margin-bottom: 16px; }
.ds3-page-project-detail .ep-field label {
    display: block; font-size: 11px; font-weight: 700; color: #374151;
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px;
}
.ds3-page-project-detail .ep-field input, .ds3-page-project-detail .ep-field textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db;
    border-radius: 7px; font-size: 14px; color: #111; font-family: inherit;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.ds3-page-project-detail .ep-field input:focus, .ds3-page-project-detail .ep-field textarea:focus {
    border-color: #1a56a0; box-shadow: 0 0 0 3px rgba(26,86,160,.10);
}
.ds3-page-project-detail .ep-field textarea { resize: vertical; min-height: 72px; }
.ds3-page-project-detail .ep-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.ds3-page-project-detail .ep-btn-save {
    background: #1a56a0; color: #fff; border: none;
    padding: 9px 22px; border-radius: 7px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.ds3-page-project-detail .ep-btn-save:hover { background: #154a8f; }
.ds3-page-project-detail .ep-btn-cancel {
    background: #fff; color: #64748b; border: 1px solid #e2e8f0;
    padding: 9px 16px; border-radius: 7px; font-size: 13px; cursor: pointer;
    transition: background .15s;
}
.ds3-page-project-detail .ep-btn-cancel:hover { background: #f8fafd; }
.ds3-page-project-detail .ep-select {
    width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db;
    border-radius: 7px; font-size: 14px; color: #111; font-family: inherit;
    outline: none; background: #fff; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.ds3-page-project-detail .ep-select:focus { border-color: #1a56a0; box-shadow: 0 0 0 3px rgba(26,86,160,.10); }
.ds3-page-project-detail .btn-edit-project {
    background: none; border: none; cursor: pointer; padding: 4px 6px;
    color: #94a3b8; border-radius: 5px; transition: color .15s, background .15s;
    margin-left: 6px; vertical-align: middle;
}
.ds3-page-project-detail .btn-edit-project:hover { color: #1a56a0; background: #eef3fb; }
.ds3-page-project-detail .btn-edit-project svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.ds3-page-project-detail .btn-delete-concept {
    background: none; border: 1px solid #fecaca; color: #dc2626;
    padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
    cursor: pointer; transition: background .15s, border-color .15s;
    display: inline-flex; align-items: center; gap: 5px;
}
.ds3-page-project-detail .btn-delete-concept:hover { background: #fef2f2; border-color: #dc2626; }
.ds3-page-project-detail .btn-delete-concept svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.ds3-page-project-detail .btn-delete-project {
    background: none; border: 1px solid #fecaca; color: #dc2626;
    padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background .15s; white-space: nowrap;
}
.ds3-page-project-detail .btn-delete-project:hover { background: #fef2f2; border-color: #dc2626; }

.ds3-page-project-detail .dp-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.45); align-items: center; justify-content: center;
}
.ds3-page-project-detail .dp-overlay.open { display: flex; }
.ds3-page-project-detail .dp-modal {
    background: #fff; border-radius: 12px; width: 100%; max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 28px 32px;
    animation: ds3-modal-in 0.15s ease;
}
.ds3-page-project-detail .dp-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fef2f2; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.ds3-page-project-detail .dp-icon svg { width: 22px; height: 22px; stroke: #dc2626; fill: none; stroke-width: 2; }
.ds3-page-project-detail .dp-modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #111; }
.ds3-page-project-detail .dp-modal p  { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 6px; }
.ds3-page-project-detail .dp-warning  {
    font-size: 12px; color: #dc2626; background: #fef2f2;
    border: 1px solid #fecaca; border-radius: 6px;
    padding: 8px 12px; margin: 12px 0;
}
.ds3-page-project-detail .dp-actions  { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.ds3-page-project-detail .dp-btn-delete {
    background: #dc2626; color: #fff; border: none;
    padding: 9px 20px; border-radius: 7px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.ds3-page-project-detail .dp-btn-delete:hover { background: #b91c1c; }
.ds3-page-project-detail .dp-btn-cancel {
    background: #fff; color: #64748b; border: 1px solid #e2e8f0;
    padding: 9px 16px; border-radius: 7px; font-size: 13px; cursor: pointer;
}
.ds3-page-project-detail .dp-btn-cancel:hover { background: #f8fafd; }

/* ============================================================================
   Page: Projects/New.cshtml (new project / add concept wizard)
   ============================================================================ */

.ds3-page-project-new { background: #f4f6f9; color: #111; }

.ds3-page-project-new .wizard-wrap { max-width: 680px; margin: 48px auto; padding: 0 20px 80px; }

.ds3-page-project-new .step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 36px; }
.ds3-page-project-new .step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #94a3b8; }
.ds3-page-project-new .step.active { color: #1a56a0; }
.ds3-page-project-new .step.done   { color: #16a34a; }
.ds3-page-project-new .step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: #e2e8f0; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.ds3-page-project-new .step.active .step-num { background: #1a56a0; color: #fff; }
.ds3-page-project-new .step.done   .step-num { background: #16a34a; color: #fff; }
.ds3-page-project-new .step-connector { flex: 1; height: 2px; background: #e2e8f0; margin: 0 12px; max-width: 80px; }
.ds3-page-project-new .step-connector.done { background: #16a34a; }

.ds3-page-project-new .wizard-card {
    background: #fff; border-radius: 12px;
    border: 1px solid #e8eaed;
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ds3-page-project-new .wizard-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ds3-page-project-new .wizard-card .sub { font-size: 14px; color: #64748b; margin-bottom: 28px; }

.ds3-page-project-new .field { margin-bottom: 20px; }
.ds3-page-project-new .field label {
    display: block; font-size: 12px; font-weight: 700;
    color: #374151; margin-bottom: 6px; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ds3-page-project-new .field input, .ds3-page-project-new .field textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; color: #111; background: #fafafa;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.ds3-page-project-new .field input:focus, .ds3-page-project-new .field textarea:focus {
    border-color: #1a56a0;
    box-shadow: 0 0 0 3px rgba(26,86,160,0.10);
    background: #fff;
}
.ds3-page-project-new .field textarea { resize: vertical; min-height: 72px; }
.ds3-page-project-new .field-hint { font-size: 12px; color: #94a3b8; margin-top: 5px; }
.ds3-page-project-new .field-error { font-size: 12px; color: #dc2626; margin-top: 4px; }
.ds3-page-project-new .val-summary {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; padding: 12px 16px;
    font-size: 13px; color: #991b1b; margin-bottom: 20px;
}

.ds3-page-project-new .picker-label {
    font-size: 12px; font-weight: 700; color: #374151;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 10px;
}
.ds3-page-project-new .picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px; margin-bottom: 8px;
}
.ds3-page-project-new .picker-card {
    border: 2px solid #e2e8f0; border-radius: 10px;
    padding: 14px 12px; cursor: pointer; text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
}
.ds3-page-project-new .picker-card:hover { border-color: #93bbee; background: #f8fafd; }
.ds3-page-project-new .picker-card.selected {
    border-color: #1a56a0;
    background: #eef3fb;
    box-shadow: 0 0 0 3px rgba(26,86,160,0.12);
}
.ds3-page-project-new .picker-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.ds3-page-project-new .picker-thumb {
    width: 56px; height: 40px; margin: 0 auto 8px;
    background: #f1f5f9; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ds3-page-project-new .picker-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ds3-page-project-new .picker-thumb svg { width: 24px; height: 24px; stroke: #94a3b8; fill: none; stroke-width: 1.5; }
.ds3-page-project-new .picker-name { font-size: 13px; font-weight: 700; color: #111; }
.ds3-page-project-new .picker-desc { font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.3; }
.ds3-page-project-new .picker-check {
    position: absolute; top: 8px; right: 8px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #1a56a0; display: none;
    align-items: center; justify-content: center;
}
.ds3-page-project-new .picker-card.selected .picker-check { display: flex; }
.ds3-page-project-new .picker-check svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 2.5; }

.ds3-page-project-new .series-section { margin-top: 20px; display: none; }
.ds3-page-project-new .series-section.visible { display: block; }
.ds3-page-project-new .series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}
.ds3-page-project-new .series-card {
    border: 2px solid #e2e8f0; border-radius: 8px;
    padding: 10px; cursor: pointer; text-align: center;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.ds3-page-project-new .series-card:hover { border-color: #93bbee; background: #f8fafd; }
.ds3-page-project-new .series-card.selected { border-color: #1a56a0; background: #eef3fb; }
.ds3-page-project-new .series-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.ds3-page-project-new .series-name { font-size: 12px; font-weight: 600; color: #111; }

.ds3-page-project-new .wizard-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid #f1f5f9;
}
.ds3-page-project-new .btn-primary {
    background: #1a56a0; color: #fff; border: none;
    padding: 11px 28px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.ds3-page-project-new .btn-primary:hover { background: #154a8f; }
.ds3-page-project-new .btn-cancel {
    font-size: 13px; color: #64748b; text-decoration: none;
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: #fff;
    cursor: pointer; transition: background 0.15s;
}
.ds3-page-project-new .btn-cancel:hover { background: #f8fafd; }
.ds3-page-project-new .btn-back {
    font-size: 13px; color: #1a56a0; text-decoration: none;
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid #c7d9f0; background: #fff;
    cursor: pointer; transition: background 0.15s;
}
.ds3-page-project-new .btn-back:hover { background: #eef3fb; }

/* ============================================================================
   Page: Signs/Index.cshtml (My Signs)
   ============================================================================ */

.ds3-page-my-signs { background: #f4f6f9; color: #111; }

.ds3-page-my-signs .page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.ds3-page-my-signs .page-header-left h1 { font-size: 26px; font-weight: 600; color: #111; margin-bottom: 4px; }
.ds3-page-my-signs .page-header-left p  { font-size: 14px; color: #666; }
.ds3-page-my-signs .btn-new {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 20px;
    background: #1a56a0; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.ds3-page-my-signs .btn-new:hover { background: #154a8f; }
.ds3-page-my-signs .btn-new svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

.ds3-page-my-signs .stats-row { display: flex; gap: 16px; margin-bottom: 32px; }
.ds3-page-my-signs .stat-card {
    background: #fff; border: 1px solid #e8eaed; border-radius: 10px;
    padding: 18px 22px; flex: 1;
}
.ds3-page-my-signs .stat-label { font-size: 11px; font-weight: 700; color: #888; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.ds3-page-my-signs .stat-value { font-size: 28px; font-weight: 600; color: #111; }
.ds3-page-my-signs .stat-sub   { font-size: 12px; color: #aaa; margin-top: 2px; }

.ds3-page-my-signs .empty-state {
    background: #fff; border: 1px solid #e8eaed; border-radius: 12px;
    padding: 72px 40px; text-align: center;
}
.ds3-page-my-signs .empty-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: #eef3fb; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.ds3-page-my-signs .empty-icon svg { width: 32px; height: 32px; stroke: #1a56a0; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.ds3-page-my-signs .empty-state h2 { font-size: 20px; font-weight: 600; color: #111; margin-bottom: 8px; }
.ds3-page-my-signs .empty-state p  { font-size: 14px; color: #666; max-width: 360px; margin: 0 auto 28px; line-height: 1.6; }

.ds3-page-my-signs .signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.ds3-page-my-signs .sign-card {
    background: #fff; border: 1px solid #e8eaed; border-radius: 12px;
    overflow: hidden; transition: box-shadow 0.18s, transform 0.18s;
    display: flex; flex-direction: column;
}
.ds3-page-my-signs .sign-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }

.ds3-page-my-signs .sign-preview {
    height: 160px; background: #f9fafb;
    border-bottom: 1px solid #e8eaed;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    cursor: pointer;
}
.ds3-page-my-signs .sign-preview img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.ds3-page-my-signs .sign-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ds3-page-my-signs .sign-preview-placeholder svg { width: 36px; height: 36px; stroke: #ccc; fill: none; stroke-width: 1.5; }
.ds3-page-my-signs .sign-preview-placeholder span { font-size: 11px; color: #ccc; }

.ds3-page-my-signs .sign-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.ds3-page-my-signs .sign-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds3-page-my-signs .sign-meta { font-size: 11px; color: #aaa; margin-bottom: 12px; }
.ds3-page-my-signs .sign-dims { font-size: 11px; color: #888; }

.ds3-page-my-signs .sign-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.ds3-page-my-signs .btn-edit {
    flex: 1; height: 34px; background: #1a56a0; color: #fff;
    border: none; border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.ds3-page-my-signs .btn-edit:hover { background: #154a8f; }
.ds3-page-my-signs .btn-delete {
    width: 34px; height: 34px; background: transparent;
    border: 1px solid #e8eaed; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.ds3-page-my-signs .btn-delete:hover { background: #fdf0ef; border-color: #f5c6c2; }
.ds3-page-my-signs .btn-delete svg { width: 14px; height: 14px; stroke: #c0392b; fill: none; stroke-width: 2; stroke-linecap: round; }

.ds3-page-my-signs .btn-pdf {
    width: 34px; height: 34px; background: transparent;
    border: 1px solid #e8eaed; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background 0.15s;
}
.ds3-page-my-signs .btn-pdf:hover { background: #eef3fb; }
.ds3-page-my-signs .btn-pdf svg { width: 14px; height: 14px; stroke: #555; fill: none; stroke-width: 2; stroke-linecap: round; }

/* -------- Catalog admin tools (Logos/Symbols List + Index, QA) -------- */

/* Dense grid: ~100px wide tiles, fills the available width. */
.ss-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    margin: 8px 0 16px;
}

.ss-tile {
    position: relative;
    height: 110px;
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s, transform .12s;
    overflow: hidden;
    user-select: none;
}
.ss-tile:hover {
    border-color: #888;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.ss-tile.is-selected {
    border-color: #2563eb;
    border-width: 2px;
    box-shadow: 0 0 0 1px #2563eb;
}
.ss-tile.is-inactive { opacity: .45; }

/* Image area fills, contains the SVG/PNG cleanly without stretching. */
.ss-tile-img {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 6px;
    background: #f8f9fb;
}
.ss-tile-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;   /* clicks go to the tile, not the img */
}

/* Code label footer strip. */
.ss-tile-code {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 3px 4px;
    background: #fff;
    border-top: 1px solid var(--ss-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Checkbox: top-left corner, visible only on hover OR when checked.
   The whole tile is clickable, so the box is mostly visual feedback. */
.ss-tile-cb {
    position: absolute;
    top: 4px;
    left: 4px;
    margin: 0;
    width: 16px;
    height: 16px;
    z-index: 2;
    opacity: 0;
    transition: opacity .12s;
    cursor: pointer;
    accent-color: #2563eb;
}
.ss-tile:hover .ss-tile-cb,
.ss-tile.is-selected .ss-tile-cb { opacity: 1; }

.ss-batch-bar {
    position: sticky; top: 0; z-index: 10;
    background: var(--ss-surface, #fff); border: 1px solid var(--ss-border);
    border-radius: 6px; padding: 8px 12px; margin: 8px 0;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.ss-tile.batch-removing { transition: opacity .3s, transform .3s; opacity: 0; transform: scale(.85); }
tr.batch-removing { transition: opacity .3s; opacity: 0 !important; }

.ss-pager { margin: 16px 0; display: flex; align-items: center; gap: 4px; }

/* Logos/Symbols QA tool */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.qa-card {
    border: 1px solid var(--ss-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.qa-card.qa-flagged { border-color: var(--ss-danger); box-shadow: 0 0 0 2px rgba(192,57,43,0.15); }
.qa-thumb {
    /* MAGENTA background — the whole point: white knockouts show as white
       blobs, real holes show magenta. */
    background: #ff00ff;
    height: 110px;
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
}
.qa-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qa-meta { padding: 6px 8px; }
.qa-code { font-weight: 600; font-size: 12px; font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.qa-cat { font-size: 11px; color: var(--ss-text-muted); }
.qa-actions { padding: 6px 8px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.qa-flag-note { font-size: 11px; color: var(--ss-danger); }
.qa-copy {
    margin-top: 4px; font-size: 10px; padding: 2px 6px; cursor: pointer;
    border: 1px solid var(--ss-border); border-radius: 4px; background: var(--ss-surface);
    color: var(--ss-text); width: 100%;
}
.qa-copy.copied { background: #2E7D32; color: #fff; border-color: #2E7D32; }
.qa-pager { margin: 16px 0; display: flex; align-items: center; }
/* Toggle between white and magenta background per-card on click of the thumb,
   so you can also see the logo on white. */
.qa-thumb.on-white { background: #fff; }

/* Small uppercase badge next to the code so you can tell Logo from Symbol
   at a glance in mixed-catalog view. */
.qa-kind-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    border-radius: 3px;
    vertical-align: middle;
    color: #fff;
}
.qa-kind-logo   { background: #2563eb; }
.qa-kind-symbol { background: #059669; }

/* -------- Responsive -------- */

@media (max-width: 900px) {
    .ss-admin-wrap {
        flex-direction: column;
    }
    .ss-admin-nav {
        width: 100%;
        flex: 0 0 auto;
        max-height: none;
        position: static;
        padding: 12px 0;
    }
    .ss-admin-nav-section { padding-top: 8px; }
}
