/* UUDock - SaaS Product Design System */

/* ===== Design Tokens ===== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --primary-lighter: #f0f9ff;
    --cyan: #06b6d4;
    --hero-bg: #0c1222;
    --hero-bg-alt: #0e2a47;
    --hero-text: #ffffff;
    --hero-text-muted: #94a3b8;
    --hero-badge-bg: rgba(14, 165, 233, 0.15);
    --hero-badge-border: rgba(14, 165, 233, 0.3);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-body: #f0f9ff;
    --bg-card: #ffffff;
    --border: #e0f2fe;
    --border-hover: #7dd3fc;
    --sidebar-width: 200px;
    --max-width: 1200px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(14, 165, 233, 0.08);
    --shadow-lg: 0 8px 24px rgba(14, 165, 233, 0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --gradient-blue: linear-gradient(135deg, #0ea5e9, #06b6d4);
    --gradient-green: linear-gradient(135deg, #10b981, #059669);
    --gradient-orange: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-pink: linear-gradient(135deg, #ec4899, #db2777);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-alt) 50%, var(--hero-bg) 100%);
    color: var(--hero-text);
}

.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-nav .brand,
.hero-nav .brand:hover {
    color: inherit;
}

.hero-nav .brand-icon {
    width: 32px; height: 32px;
    background: #0e1f3d;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}

.hero-nav .brand-text {
    font-size: 18px; font-weight: 700; color: var(--hero-text);
}

.hero-nav .nav-links {
    display: flex; align-items: center; gap: 20px; font-size: 14px;
}

.hero-nav .nav-links a { color: var(--hero-text-muted); }
.hero-nav .nav-links a:hover { color: #fff; }

.hero-nav .btn-cta {
    background: var(--primary); color: #fff;
    padding: 7px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; transition: background 0.15s;
}
.hero-nav .btn-cta:hover { background: var(--primary-dark); color: #fff; }

.lang-switch {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--hero-text-muted); font-size: 13px;
    cursor: pointer; padding: 4px 8px; border-radius: 4px;
    background: none; border: none; transition: color 0.15s;
}
.lang-switch:hover { color: #fff; }

.hero-content {
    text-align: center; padding: 48px 24px 56px;
    max-width: 720px; margin: 0 auto;
}

.hero-content-compact {
    padding: 24px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--hero-badge-bg); border: 1px solid var(--hero-badge-border);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; color: #7dd3fc; margin-bottom: 20px;
}

.hero-title {
    font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 14px;
    background: linear-gradient(to right, #fff, #a5f3fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px; color: var(--hero-text-muted);
    margin-bottom: 28px; line-height: 1.7;
}

.hero-search {
    display: flex; max-width: 480px; margin: 0 auto 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; overflow: hidden; transition: border-color 0.2s;
}
.hero-search:focus-within {
    border-color: var(--primary); background: rgba(255,255,255,0.08);
}
.hero-search input {
    flex: 1; background: transparent; border: none;
    padding: 13px 18px; color: #fff; font-size: 14px; outline: none;
}
.hero-search input::placeholder { color: #64748b; }
.hero-search button {
    background: var(--primary); border: none;
    padding: 13px 24px; color: #fff; font-size: 14px;
    font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.hero-search button:hover { background: var(--primary-dark); }

.hero-stats {
    display: flex; justify-content: center; gap: 32px;
    font-size: 13px; color: var(--hero-text-muted);
}
.hero-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-stats .stat-value { color: #e2e8f0; font-weight: 600; }
.hero-note {
    max-width: 640px;
    margin: 20px auto 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--hero-text-muted);
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
    display: flex; max-width: var(--max-width);
    margin: 0 auto; padding: 28px 32px; gap: 24px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width); flex-shrink: 0;
    position: sticky; top: 24px; align-self: flex-start;
}

.sidebar-nav {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}

.sidebar-nav .nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-md);
    font-size: 14px; color: var(--text-muted);
    text-decoration: none; transition: all 0.15s;
}
.sidebar-nav .nav-item:hover {
    background: var(--primary-lighter); color: var(--primary-dark);
}
.sidebar-nav .nav-item.active {
    background: var(--primary-light); color: var(--primary-dark); font-weight: 600;
}
.sidebar-nav .nav-icon { width: 20px; text-align: center; font-size: 15px; }

/* ===== CONTENT ===== */
.content { flex: 1; min-width: 0; }

.section-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 16px;
}
.section-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.section-link { font-size: 13px; color: var(--primary); font-weight: 500; }
.section-link:hover { color: var(--primary-dark); }
.section-intro {
    font-size: 14px;
    color: var(--text-muted);
    margin: -4px 0 16px;
}

.story-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.story-grid-linked,
.roadmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.story-card,
.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.story-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.story-card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    color: inherit;
}

.story-eyebrow,
.roadmap-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.story-card h3,
.roadmap-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.story-card p,
.roadmap-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===== TOOL CARDS ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.tool-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none; color: inherit; display: block;
}
.tool-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-lg);
    border-color: var(--border-hover); color: inherit;
}

.tool-card-shell {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: default;
}

.tool-card-shell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.tool-card-main {
    display: block;
    height: 100%;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.tool-card-main:hover {
    color: inherit;
}

.tool-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.favorite-form {
    margin: 0;
}

.favorite-form.is-loading {
    opacity: 0.7;
}

.favorite-button,
.favorite-cta {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-muted);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-button {
    width: 34px;
    height: 34px;
    font-size: 18px;
    line-height: 1;
}

.favorite-button:hover,
.favorite-cta:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.favorite-button.active,
.favorite-cta.active {
    background: #fff7ed;
    border-color: #fdba74;
    color: #ea580c;
}

.tool-card .card-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.tool-card .card-icon {
    width: 36px; height: 36px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff; flex-shrink: 0;
}
.tool-card .card-icon.blue { background: var(--gradient-blue); }
.tool-card .card-icon.green { background: var(--gradient-green); }
.tool-card .card-icon.orange { background: var(--gradient-orange); }
.tool-card .card-icon.pink { background: var(--gradient-pink); }
.tool-card .card-icon.purple { background: var(--gradient-purple); }
.tool-card .card-icon.red { background: var(--gradient-red); }
.tool-card .card-icon.teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.tool-card .card-icon.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.tool-card .card-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tool-card .card-desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
    margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tool-card .card-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: var(--text-light);
}
.tool-card .card-meta .stars { color: #f59e0b; letter-spacing: -1px; }
.tool-card .card-tag {
    font-size: 10px; padding: 2px 7px; border-radius: 4px;
    background: var(--primary-lighter); color: var(--primary-dark);
    margin-left: auto; font-weight: 500;
}

.tool-card .card-tag-placeholder {
    background: #eff6ff;
    color: #2563eb;
}

/* ===== MESSAGES ===== */
.messages { padding: 12px 0; }
.message-item { padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14px; }
.message-item.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.message-item.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.message-item.info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.message-item.warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }

/* ===== TOOL DETAIL ===== */
.tool-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tool-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.tool-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-detail-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-radius: 16px;
}

.tool-detail-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-detail-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.tool-detail-meta {
    color: var(--text-muted);
    font-size: 14px;
}

.tool-detail-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.tool-detail-actions {
    margin-bottom: 16px;
}

.favorite-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.favorite-cta-link {
    text-decoration: none;
}

.tool-detail-note {
    background: linear-gradient(135deg, #f8fbff, #eef8ff);
    border: 1px solid #cfe9ff;
    border-radius: 14px;
    padding: 16px 18px;
}

.tool-detail-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tool-detail-note p {
    color: var(--text-muted);
    font-size: 14px;
}

.tool-detail-section {
    margin-top: 4px;
}

.shortlink-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.shortlink-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.shortlink-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 26px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 0 18px 48px rgba(14, 165, 233, 0.12);
}

.shortlink-hero-card::after {
    content: '';
    position: absolute;
    inset: auto -26px -26px auto;
    width: 180px;
    height: 180px;
    border-radius: 32px;
    transform: rotate(20deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.shortlink-hero-card-primary {
    background: linear-gradient(145deg, #0a1830 0%, #163a65 48%, #12606e 100%);
    color: #effbff;
}

.shortlink-hero-card-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.98));
}

.shortlink-hero-card h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.shortlink-hero-url {
    position: relative;
    z-index: 1;
    color: rgba(239, 251, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.shortlink-status-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.shortlink-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #effbff;
    font-size: 12px;
    font-weight: 600;
}

.shortlink-status-chip-warning {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.26);
    color: #fde68a;
}

.shortlink-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.shortlink-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 16px 38px rgba(14, 165, 233, 0.08);
}

.shortlink-metric-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.shortlink-metric-card span {
    font-size: 12px;
    color: var(--text-muted);
}

.shortlink-chart-card,
.shortlink-table-card {
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.08);
}

.shortlink-save-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #f8fbff, #eef8ff 52%, #fff7ed 100%);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.12);
}

.shortlink-save-banner strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.shortlink-save-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.shortlink-save-copy {
    color: var(--primary-dark);
    font-weight: 700;
}

.shortlink-save-expiry {
    color: #b45309;
}

.shortlink-save-actions {
    display: grid;
    gap: 12px;
}

.shortlink-copy-button {
    min-height: 48px;
}

.shortlink-anon-note {
    margin-bottom: 4px;
}

.shortlink-gate-shell {
    align-items: stretch;
}

.shortlink-gate-stage {
    min-height: 320px;
}

.shortlink-gate-stage-warning {
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34%),
        linear-gradient(145deg, #2b160e 0%, #7c2d12 48%, #c2410c 100%);
}

.shortlink-gate-card {
    justify-content: center;
}

.shortlink-gate-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-hero {
    max-width: 820px;
}

.auth-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.auth-hero-subtitle {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
    gap: 22px;
    align-items: stretch;
}

.auth-stage,
.auth-card {
    border-radius: 24px;
    overflow: hidden;
}

.auth-stage {
    position: relative;
    min-height: 100%;
    background: radial-gradient(circle at top left, rgba(125, 211, 252, 0.28), transparent 42%),
        linear-gradient(145deg, #071124 0%, #0f2340 45%, #123f64 100%);
    color: #e2f5ff;
    box-shadow: 0 24px 60px rgba(12, 18, 34, 0.22);
}

.auth-stage-login::after,
.auth-stage-register::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 220px;
    height: 220px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(125, 211, 252, 0.03));
    transform: rotate(18deg);
}

.auth-stage-register {
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 36%),
        linear-gradient(145deg, #1a1430 0%, #0f2d46 52%, #0d6b73 100%);
}

.auth-stage-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    height: 100%;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: #c9f2ff;
}

.auth-stage-panel h2,
.auth-card-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
}

.auth-stage-panel p,
.auth-card-header p,
.auth-point span,
.auth-field-help,
.auth-footer p {
    font-size: 14px;
    line-height: 1.7;
}

.auth-stage-points {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.auth-stage-points-compact {
    margin-top: 8px;
}

.auth-point {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.auth-point strong {
    font-size: 15px;
    color: #ffffff;
}

.auth-panel {
    display: flex;
}

.auth-card {
    flex: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.45);
    box-shadow: 0 18px 50px rgba(14, 165, 233, 0.12);
    padding: 28px;
}

.auth-card-header {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-card-header .auth-kicker {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.12));
    color: var(--primary-dark);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form-field {
    display: grid;
    gap: 8px;
}

.auth-form .form-control {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid #cfe9ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    transform: translateY(-1px);
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9, #0891b2);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 42px rgba(14, 165, 233, 0.26);
    filter: saturate(1.05);
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-field-error {
    font-size: 13px;
    color: #dc2626;
}

.auth-field-help,
.auth-footer p {
    color: var(--text-muted);
}

.auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(14, 165, 233, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-footer a {
    font-weight: 700;
}

.account-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-shell-elevated {
    gap: 22px;
}

.account-hero-grid,
.account-workspace-grid {
    display: grid;
    gap: 18px;
}

.account-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.account-workspace-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.account-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 26px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 0 18px 48px rgba(14, 165, 233, 0.12);
}

.account-hero-card::after {
    content: '';
    position: absolute;
    inset: auto -26px -26px auto;
    width: 180px;
    height: 180px;
    border-radius: 32px;
    transform: rotate(20deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.account-hero-card-primary {
    background: linear-gradient(145deg, #08192f 0%, #0f3354 55%, #0b5c71 100%);
    color: #effbff;
}

.account-hero-card-warm {
    background: linear-gradient(145deg, #26140f 0%, #6b2f17 54%, #b45309 100%);
}

.account-hero-card-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.98));
}

.account-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.account-hero-card-primary .account-kicker,
.account-hero-card-warm .account-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: #d7f6ff;
}

.account-hero-card-secondary .account-kicker {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-dark);
}

.account-hero-card h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.account-hero-card p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.7;
}

.account-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.account-hero-stats div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.account-hero-stats strong,
.account-progress-pill strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
}

.account-hero-stats span,
.account-progress-pill span,
.account-meta-note {
    font-size: 12px;
    color: var(--text-muted);
}

.account-hero-card-primary .account-hero-stats span,
.account-hero-card-warm .account-hero-stats span {
    color: rgba(239, 251, 255, 0.72);
}

.account-action-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.account-action-item,
.account-action-static {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    background: rgba(240, 249, 255, 0.72);
    color: inherit;
}

.account-action-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.account-action-item strong,
.account-action-static strong {
    font-size: 15px;
    color: var(--text-primary);
}

.account-action-item span,
.account-action-static span {
    font-size: 13px;
    color: var(--text-muted);
}

.account-progress-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.account-progress-pill strong {
    margin-bottom: 0;
    font-size: 20px;
    color: var(--primary-dark);
}

.account-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.account-panel-ledger,
.account-panel-form,
.account-section-block {
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.08);
}

.account-panel-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
}

.account-section-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.account-summary-item {
    padding: 14px;
    border-radius: 14px;
    background: var(--primary-lighter);
    border: 1px solid var(--border);
}

.account-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.account-summary-item strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
}

.account-bio-block {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fbfdff;
}

.account-bio-block p {
    color: var(--text-secondary);
    font-size: 14px;
}

.account-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.section-header-stack {
    align-items: flex-start;
    gap: 12px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-form-field-wide {
    grid-column: 1 / -1;
}

.account-form .form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text-primary);
}

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

.account-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.account-form-actions {
    display: flex;
    justify-content: flex-start;
}

.workbench-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.workbench-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workbench-metric-card,
.workbench-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.workbench-metric-card {
    padding: 18px;
}

.workbench-metric-label,
.workbench-binding-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.workbench-metric-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.workbench-metric-card small,
.workbench-empty-copy {
    color: var(--text-muted);
    font-size: 13px;
}

.workbench-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.6fr 1.6fr;
    gap: 14px;
}

.workbench-panel {
    padding: 20px;
}

.workbench-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.workbench-panel-head h3 {
    font-size: 18px;
    margin: 0;
}

.workbench-binding-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workbench-binding-item {
    padding: 14px;
    border-radius: 14px;
    background: #fbfdff;
    border: 1px solid var(--border);
}

.workbench-binding-item strong {
    display: block;
    color: var(--text-primary);
}

.workbench-tools-grid {
    grid-template-columns: 1fr;
}

.account-empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.tool-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 20px;
    padding: 28px;
    border-radius: 26px;
    color: #effbff;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: linear-gradient(145deg, #061427 0%, #0f3150 48%, #0c6a72 100%);
    box-shadow: 0 24px 56px rgba(12, 18, 34, 0.18);
}

.tool-hero::before,
.tool-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.tool-hero::before {
    inset: -40px auto auto -50px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 68%);
}

.tool-hero::after {
    inset: auto -54px -72px auto;
    width: 220px;
    height: 220px;
    border-radius: 34px;
    transform: rotate(18deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.tool-hero > * {
    position: relative;
    z-index: 1;
}

.tool-hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d7f6ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tool-hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.tool-hero p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(239, 251, 255, 0.82);
}

.tool-hero-aside {
    display: grid;
    gap: 12px;
    align-content: center;
}

.tool-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #effbff;
    font-size: 12px;
    font-weight: 600;
}

.tool-hero-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.tool-hero-note strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 15px;
}

.tool-hero-note span {
    display: block;
    color: rgba(239, 251, 255, 0.78);
    font-size: 13px;
    line-height: 1.65;
}

.tool-hero-links {
    background: linear-gradient(145deg, #08192f 0%, #0f3354 55%, #0b5c71 100%);
}

.tool-hero-qr {
    background: linear-gradient(145deg, #12192f 0%, #1b2f59 50%, #0d7c7b 100%);
}

.tool-hero-image {
    background: linear-gradient(145deg, #22110f 0%, #5c2c17 46%, #0f766e 100%);
}

.tool-hero-file {
    background: linear-gradient(145deg, #211235 0%, #0f3354 48%, #0d6b73 100%);
}

.tool-workspace-grid,
.tool-dashboard-grid,
.tool-chart-grid,
.tool-form-split,
.tool-stat-grid,
.tool-facts-grid,
.tool-resource-grid {
    display: grid;
    gap: 18px;
}

.tool-workspace-grid {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.tool-dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.tool-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-form-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tool-facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tool-resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tool-panel,
.tool-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.08);
}

.tool-panel {
    padding: 24px;
}

.tool-panel-glow {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
}

.tool-panel-secondary {
    background: linear-gradient(180deg, #fbfdff 0%, #f5fbff 100%);
}

.tool-panel-headline {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.tool-panel-headline-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.tool-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tool-panel-headline h2,
.tool-panel-headline h3,
.tool-panel-headline-inline h2,
.tool-panel-headline-inline h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    color: var(--text-primary);
}

.tool-panel-copy {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.tool-form {
    display: grid;
    gap: 16px;
}

.tool-form-field {
    display: grid;
    gap: 8px;
}

.tool-form-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-form .form-control,
.tool-form .form-select,
.tool-form input[type="file"],
.tool-form textarea,
.tool-form select {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid #cfe9ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-primary);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tool-form .form-control:focus,
.tool-form .form-select:focus,
.tool-form input[type="file"]:focus,
.tool-form textarea:focus,
.tool-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    transform: translateY(-1px);
}

.tool-form textarea,
.tool-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.tool-form input[type="file"],
.tool-form .form-control[type="file"] {
    padding: 12px 14px;
    background: #fbfdff;
}

.tool-form input[type="file"]::file-selector-button,
.tool-form .form-control[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tool-field-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tool-field-error {
    font-size: 13px;
    color: #dc2626;
}

.tool-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-button,
.tool-button-secondary,
.tool-button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.tool-button {
    background: linear-gradient(135deg, #0ea5e9, #0891b2);
    color: #fff;
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
}

.tool-button:hover,
.tool-button-secondary:hover,
.tool-button-danger:hover {
    transform: translateY(-1px);
}

.tool-button:hover {
    color: #fff;
    box-shadow: 0 24px 42px rgba(14, 165, 233, 0.26);
}

.tool-button-secondary {
    background: #fff;
    color: var(--text-primary);
    border-color: var(--border);
}

.tool-button-secondary:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.tool-button-danger {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.tool-button-danger:hover {
    color: #9a3412;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.16);
}

.tool-button-compact {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.tool-note-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #eef8ff);
    border: 1px solid #cfe9ff;
}

.tool-note-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tool-note-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.tool-checklist {
    display: grid;
    gap: 12px;
}

.tool-checklist-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(240, 249, 255, 0.72);
    border: 1px solid rgba(14, 165, 233, 0.12);
}

.tool-checklist-item strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tool-checklist-item span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tool-result-card {
    display: grid;
    gap: 18px;
}

.tool-result-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4fbff 100%);
    border: 1px solid var(--border);
}

.tool-result-preview img {
    max-width: min(100%, 320px);
    max-height: 320px;
    object-fit: contain;
}

.tool-result-summary {
    display: grid;
    gap: 12px;
}

.tool-result-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tool-meta-list {
    display: grid;
    gap: 10px;
}

.tool-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fbfdff;
    border: 1px solid var(--border);
}

.tool-meta-row span {
    font-size: 12px;
    color: var(--text-muted);
}

.tool-meta-row strong,
.tool-meta-row a {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

.tool-meta-row a:hover {
    color: var(--primary-dark);
}

.tool-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-result-actions form {
    margin: 0;
}

.tool-fact-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid var(--border);
}

.tool-fact-card strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tool-fact-card span {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.tool-stat-card {
    padding: 18px;
}

.tool-stat-card span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tool-stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--text-primary);
}

.tool-chart-frame {
    height: 260px;
}

.tool-counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.tool-table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
}

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

.tool-table th,
.tool-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

.tool-table thead th {
    background: #f8fbff;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tool-table tbody tr + tr td {
    border-top: 1px solid var(--border);
}

.tool-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.tool-table-strong {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tool-link-stack {
    display: grid;
    gap: 4px;
}

.tool-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-empty-copy {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.tool-inline-form {
    margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--hero-bg); color: var(--hero-text-muted);
    padding: 40px 32px 24px; text-align: center;
}
.footer-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 16px;
}
.footer-brand .brand-icon {
    width: 24px; height: 24px; background: #0e1f3d;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
}
.footer-brand span { font-size: 15px; font-weight: 600; color: #e2e8f0; }
.footer-links {
    display: flex; justify-content: center; gap: 20px;
    margin-bottom: 16px; font-size: 13px;
}
.footer-links a { color: var(--hero-text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-notice { font-size: 12px; color: #475569; margin-bottom: 8px; }
.footer-copyright { font-size: 12px; color: #475569; }

/* ===== FLOATING ===== */
.floating-actions { position: fixed; right: 24px; bottom: 24px; z-index: 50; }
.floating-actions .fab {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-md);
    transition: all 0.2s; color: var(--text-muted); font-size: 16px;
}
.floating-actions .fab:hover { box-shadow: var(--shadow-lg); color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .workbench-metrics,
    .workbench-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .sidebar { display: none; }
    .main-layout { padding: 20px 16px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-stage { min-height: 280px; }
    .account-hero-grid,
    .account-workspace-grid,
    .account-summary-grid,
    .shortlink-hero-grid,
    .shortlink-save-banner,
    .shortlink-metrics-grid { grid-template-columns: 1fr; }
    .account-form-grid,
    .workbench-grid,
    .tool-hero,
    .tool-workspace-grid,
    .tool-dashboard-grid,
    .tool-chart-grid,
    .tool-form-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .hero-content { padding: 32px 16px 40px; }
    .hero-nav { padding: 12px 16px; }
    .hero-nav .nav-links .nav-text { display: none; }
    .hero-stats { gap: 16px; font-size: 12px; }
    .tools-grid,
    .story-grid,
    .story-grid-linked,
    .roadmap-grid { gap: 10px; }
    .main-layout { padding: 16px; }
    .auth-card,
    .auth-stage-panel { padding: 22px; }
    .account-hero-card,
    .account-section-block { padding: 20px; }
    .account-hero-stats { grid-template-columns: 1fr; }
    .auth-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .tool-detail-card { padding: 20px; }
    .tool-detail-head { flex-direction: column; }
    .tool-detail-title { font-size: 24px; }
    .tool-card-actions { top: 8px; right: 8px; }
    .workbench-metrics { grid-template-columns: 1fr; }
    .tool-panel,
    .tool-hero { padding: 20px; }
    .tool-panel-headline-inline,
    .tool-result-actions,
    .tool-submit-row,
    .tool-meta-row,
    .tool-table-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .tool-table th,
    .tool-table td { padding: 12px 14px; }
}
@media (max-width: 540px) {
    .tools-grid,
    .story-grid,
    .story-grid-linked,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}
