:root {
    --bg-page: #f7f8fa;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #fbfcfd;
    --surface-3: #f8fafc;
    --line: #e5e7eb;
    --line-strong: #d8dee6;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #155a99;
    --primary-soft: #eef5fb;
    --primary-dark: #0f3f6d;
    --accent: #f29a00;
    --accent-soft: #fff7eb;
    --success: #067647;
    --success-soft: #ecfdf3;
    --error: #b42318;
    --error-soft: #fef3f2;
    --warning: #b54708;
    --warning-soft: #fff7ed;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.06);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fb 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.site-shell { min-height: 100vh; }
.wrap { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 14px 0;
}
.brandmark {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.brandmark img { height: 38px; }
.topbar-copy {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    max-width: 760px;
}
.top-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.top-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    transition: .2s ease;
}
.top-links a:hover {
    border-color: rgba(21, 90, 153, 0.24);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.hero { padding: 32px 0 24px; }
.hero-grid,
.hero-grid-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
    gap: 24px;
    align-items: stretch;
}
.hero-copy,
.hero-card,
.card,
.auth-card {
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
}
.hero-copy {
    padding: 42px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at right bottom, rgba(242, 154, 0, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}
.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -40px -46px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 90, 153, 0.08), transparent 70%);
}
.hero-copy-compact { padding: 36px; }
.hero-card {
    padding: 20px;
    display: grid;
    gap: 14px;
    align-content: start;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}
.hero-stack-card .metric { min-height: 110px; }

.eyebrow,
.section-kicker,
.section-kicker-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.eyebrow,
.section-kicker {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(21, 90, 153, 0.12);
    margin-bottom: 16px;
}
.section-kicker-light {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(242, 154, 0, 0.14);
    margin-bottom: 16px;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 760px;
}
.lead {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}
.hero-actions,
.form-actions,
.selection-actions,
.table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-actions { margin-top: 26px; }
.form-actions,
.table-actions { margin-top: 18px; }
.hero-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.hero-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}
.metric {
    padding: 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.metric strong {
    display: block;
    font-size: 1.85rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.metric span { color: var(--muted); }
.metric-accent {
    background: linear-gradient(180deg, #fffdf8 0%, #fff7ea 100%);
    border-color: rgba(242, 154, 0, 0.18);
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 44px;
}
.span-all { grid-column: 1 / -1; }
.card,
.auth-card { padding: 28px; }
.auth-form { display: grid; gap: 14px; }
.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 44px;
}
.portal-main,
.portal-sidebar {
    min-width: 0;
}
.portal-main {
    display: grid;
    gap: 20px;
}
.portal-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}
.portal-sidebar .card {
    width: 100%;
}
.card-dark {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.card-dark .muted { color: var(--muted); }

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.card-head > .muted {
    max-width: 320px;
    text-align: right;
}
.card h2,
.auth-card h2 {
    margin: 0 0 6px;
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

.panel {
    padding: 22px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.panel h3 { margin-top: 0; }
.panel-tint { background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%); }
.panel-accent { background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%); }

.form-grid,
.enterprise-form-grid,
.detail-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}
.form-grid,
.enterprise-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid,
.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}
.detail-box,
.stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}
.detail-box span,
.stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.detail-box strong,
.stat strong {
    display: block;
    font-size: 1.2rem;
    margin: 4px 0 8px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
input[type=text],
input[type=password],
input[type=email],
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    transition: .2s ease;
}
input:focus,
select:focus {
    outline: none;
    border-color: rgba(21, 90, 153, 0.4);
    box-shadow: 0 0 0 4px rgba(21, 90, 153, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}
.btn-secondary:hover,
.btn-ghost:hover {
    background: var(--primary-soft);
    border-color: rgba(21, 90, 153, 0.18);
    color: var(--primary-dark);
}
.btn-ghost {
    background: #fff;
    color: var(--primary-dark);
    border-color: var(--line);
}
.btn-full { width: 100%; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.selection-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}
.selection-meta { display: grid; gap: 4px; }
.progress-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    margin-bottom: 16px;
}
.progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.progress-bar {
    height: 10px;
    background: #e8eef5;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #3f80bf);
    border-radius: 999px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}
th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    vertical-align: top;
}
th {
    background: #fafbfc;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #718096;
}

.pill,
.status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.pill-directory,
.status-running {
    background: var(--primary-soft);
    color: var(--primary);
}
.pill-file,
.status-completed,
.status-completed_with_errors {
    background: var(--success-soft);
    color: var(--success);
}
.status-failed {
    background: var(--error-soft);
    color: var(--error);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border-color: #b7efd0;
}
.alert-error {
    background: var(--error-soft);
    color: var(--error);
    border-color: #f7c4c0;
}
.alert-warning {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: #fcd8bd;
}

.job-list,
.log-list { display: grid; gap: 12px; }
.job-item,
.log {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}
.job-item strong { display: block; }
.job-item span { color: var(--muted); }
.log span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.log-success span { color: var(--success); }
.log-error span { color: var(--error); }
.log-info span { color: var(--primary); }

.check-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}
.admin-inline-form {
    display: grid;
    gap: 8px;
    min-width: 260px;
}
.compact-hero { padding-bottom: 20px; }
.portal-sidebar .card:first-child {
    position: sticky;
    top: 92px;
}
.enterprise-form-grid {
    align-items: start;
}
.enterprise-form-grid .panel {
    min-width: 0;
}
.table-wrap,
.job-list,
.log-list {
    min-width: 0;
}
.portal-main .card,
.portal-sidebar .card {
    overflow: hidden;
}
code {
    padding: 4px 8px;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--line);
}

@media (max-width: 980px) {
    .topbar-inner,
    .hero-grid,
    .hero-grid-wide,
    .auth-grid,
    .portal-layout,
    .form-grid,
    .enterprise-form-grid,
    .stats-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .topbar-copy { display: none; }
    .card-head-stack-mobile,
    .selection-toolbar,
    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-head > .muted {
        max-width: none;
        text-align: left;
    }
    .portal-sidebar .card:first-child {
        position: static;
    }
    table { min-width: 640px; }
}

.portal-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,1fr); gap:24px; align-items:start; }
.portal-main, .portal-sidebar { min-width:0; }
.card-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.card-head-stack-mobile { flex-wrap:wrap; }
.card { padding:28px; }
.form-grid, .enterprise-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.panel { border:1px solid var(--line); border-radius:18px; padding:22px; background:var(--surface-2); }
.panel-accent { background:#fffdf8; }
label { display:block; font-weight:600; margin:14px 0 8px; }
input[type="text"], input[type="url"], input[type="password"], input[type="email"], select { width:100%; padding:13px 14px; border-radius:14px; border:1px solid var(--line-strong); background:white; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:18px; }
table { width:100%; border-collapse:separate; border-spacing:0; min-width:760px; }
th, td { padding:16px 18px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); background:#fafbfd; }
tr:last-child td { border-bottom:0; }
.admin-inline-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; min-width:420px; }
.inline-form { display:flex; gap:10px; flex-wrap:wrap; }
.selection-toolbar { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.selection-meta { display:flex; flex-direction:column; gap:4px; }
.progress-card { border:1px solid var(--line); border-radius:18px; padding:16px; background:#fafbfd; margin-bottom:18px; }
.progress-head { display:flex; justify-content:space-between; gap:16px; margin-bottom:10px; }
.progress-bar { height:12px; border-radius:999px; background:#edf2f7; overflow:hidden; }
.progress-bar span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg, var(--primary), #4f87c5); }
.stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0; }
.stat, .detail-box { border:1px solid var(--line); border-radius:18px; padding:18px; background:var(--surface-2); }
.stat strong { display:block; font-size:1.8rem; margin-bottom:4px; }
.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.detail-box span, .muted, .small { color:var(--muted); }
.job-list { display:grid; gap:12px; }
.job-item { display:flex; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.job-item div { display:flex; flex-direction:column; gap:4px; }
.status, .pill { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-weight:700; }
.status-completed, .pill-active { background:var(--success-soft); color:var(--success); }
.status-completed_with_errors { background:var(--warning-soft); color:var(--warning); }
.status-running, .status-queued { background:var(--primary-soft); color:var(--primary); }
.status-failed, .pill-disabled { background:var(--error-soft); color:var(--error); }
.pill-file, .pill-directory { background:#f1f5f9; color:#334155; }
.alert { padding:14px 16px; border-radius:16px; margin-bottom:16px; border:1px solid var(--line); }
.alert-success { background:var(--success-soft); color:var(--success); }
.alert-error { background:var(--error-soft); color:var(--error); }
.auth-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding-bottom:32px; }
.span-all { grid-column:1 / -1; }
.auth-form { display:grid; gap:6px; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:14px; border:1px solid var(--line); background:white; cursor:pointer; }
.btn-primary { background:var(--primary); color:white; border-color:var(--primary); }
.btn-secondary, .btn-ghost { background:white; color:var(--text); }
.btn-full { width:100%; }
.log-list { display:grid; gap:10px; }
.log { display:grid; grid-template-columns:90px 1fr; gap:14px; align-items:start; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.log span { text-transform:uppercase; font-size:12px; font-weight:700; color:var(--muted); }
.log p { margin:0; }
.log-success { border-color:#d1fadf; }
.log-error { border-color:#fecdca; }
.check-list { margin:0; padding-left:20px; display:grid; gap:10px; }
.job-detail-actions { display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width: 980px) {
  .portal-layout, .hero-grid, .auth-grid, .form-grid, .enterprise-form-grid, .stats-grid, .detail-grid { grid-template-columns:1fr; }
  .topbar-inner { grid-template-columns:1fr; }
  .admin-inline-form { grid-template-columns:1fr; min-width:0; }
  table { min-width:640px; }
}

/* v11 compact + navigation responsiveness overrides */
html { font-size: 15px; }
body { line-height: 1.5; }
.wrap { width: min(var(--maxw), calc(100% - 40px)); }
.topbar-inner { padding: 10px 0; gap: 18px; }
.brandmark { padding: 8px 12px; border-radius: 14px; }
.brandmark img { height: 30px; }
.topbar-copy { font-size: 12px; max-width: 620px; }
.top-links a { padding: 8px 12px; font-size: 13px; }
.hero { padding: 22px 0 18px; }
.hero-copy, .hero-card, .card, .auth-card { border-radius: 20px; }
.hero-copy { padding: 28px; }
.hero-copy-compact { padding: 24px; }
.hero-card { padding: 16px; gap: 10px; }
.eyebrow, .section-kicker, .section-kicker-light { padding: 7px 11px; font-size: 11px; margin-bottom: 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); margin: 0 0 10px; max-width: 620px; }
.lead { font-size: 0.95rem; line-height: 1.65; max-width: 640px; }
.hero-points { margin-top: 16px; gap: 8px; }
.hero-points span { padding: 8px 12px; font-size: 12px; }
.metric { padding: 14px; border-radius: 14px; }
.metric strong { font-size: 1.55rem; }
.metric span { font-size: 13px; }
.card, .auth-card { padding: 22px; }
.card h2, .auth-card h2 { font-size: 1.35rem; }
.card-head { margin-bottom: 14px; gap: 12px; }
.panel { padding: 18px; border-radius: 16px; }
.panel h3 { font-size: 1rem; margin: 0 0 10px; }
.form-grid, .enterprise-form-grid, .detail-grid, .stats-grid { gap: 14px; }
label { font-size: 14px; margin: 10px 0 6px; }
input[type=text],
input[type=password],
input[type=email],
select { padding: 11px 12px; border-radius: 12px; font-size: 14px; }
.btn { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.progress-card { padding: 14px 16px; }
.progress-bar { height: 9px; }
.table-wrap { border-radius: 16px; }
table { min-width: 720px; }
th, td { padding: 12px 14px; font-size: 14px; }
th { font-size: 11px; }
.small { font-size: 12px; }
.pill, .status { padding: 6px 10px; font-size: 11px; }
.job-item { padding: 12px 14px; border-radius: 14px; }
.job-item strong { font-size: 14px; }
.log { grid-template-columns: 74px 1fr; padding: 11px 12px; }
.log span { font-size: 11px; }
.check-list { gap: 8px; font-size: 14px; }
.stat strong { font-size: 1.45rem; }
.detail-box strong, .stat strong { margin: 2px 0 6px; }
.portal-sidebar .card:first-child { top: 78px; }
.admin-inline-form { grid-template-columns: 1fr 1fr; min-width: 320px; }
.admin-inline-form .btn { width: 100%; }

@media (max-width: 980px) {
  html { font-size: 14px; }
  .wrap { width: min(var(--maxw), calc(100% - 24px)); }
  .card, .auth-card, .hero-copy, .hero-card { padding: 18px; }
  .admin-inline-form { grid-template-columns: 1fr; min-width: 0; }
  table { min-width: 620px; }
}


/* v12 saas polish + faster nav */
:root {
    --maxw: 1320px;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.035);
    --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.045);
}
html { font-size: 14px; }
body { font-size: 14px; background: linear-gradient(180deg, #fbfcfd 0%, #f4f7fb 100%); }
.topbar { background: rgba(255,255,255,0.88); }
.topbar-inner { gap: 14px; padding: 9px 0; }
.topbar-copy { font-size: 11px; max-width: 560px; }
.top-links { gap: 8px; }
.top-links a { padding: 7px 11px; font-size: 12px; border-radius: 11px; }
.brandmark { padding: 7px 10px; border-radius: 12px; }
.brandmark img { height: 26px; }
.hero { padding: 18px 0 14px; }
.hero-copy, .hero-card, .card, .auth-card { border-radius: 18px; box-shadow: var(--shadow-sm); }
.hero-copy { padding: 24px; }
.hero-copy-compact { padding: 20px; }
.hero-card, .card, .auth-card { padding: 18px; }
.card h2, .auth-card h2 { font-size: 1.2rem; }
h1 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
.lead { font-size: 0.9rem; max-width: 56rem; }
.eyebrow, .section-kicker, .section-kicker-light { padding: 6px 10px; font-size: 10px; margin-bottom: 10px; }
.hero-points span { padding: 7px 10px; font-size: 11px; }
.metric { padding: 12px; border-radius: 12px; }
.metric strong { font-size: 1.35rem; }
.metric span { font-size: 12px; }
.portal-layout { gap: 20px; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.75fr); }
.portal-main { gap: 16px; }
.portal-sidebar { gap: 16px; position: relative; }
.portal-sidebar .card:first-child { position: sticky; top: 72px; }
.card-head { margin-bottom: 12px; }
.panel { padding: 16px; border-radius: 14px; }
.panel h3 { font-size: 0.96rem; }
.form-grid, .enterprise-form-grid, .detail-grid, .stats-grid { gap: 12px; }
label { font-size: 13px; margin: 8px 0 5px; }
input[type=text], input[type=password], input[type=email], select { padding: 10px 11px; font-size: 13px; border-radius: 11px; }
.btn { padding: 9px 13px; font-size: 13px; border-radius: 11px; }
.progress-card { padding: 12px 14px; border-radius: 14px; }
.progress-head { margin-bottom: 8px; }
.progress-bar { height: 8px; }
.table-wrap { border-radius: 14px; }
table { min-width: 700px; }
th, td { padding: 11px 12px; font-size: 13px; }
th { font-size: 10px; }
.small { font-size: 11px; }
.pill, .status { padding: 5px 9px; font-size: 10px; }
.job-list { gap: 10px; }
.job-item { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; }
.job-item-copy { min-width: 0; display: grid; gap: 4px; }
.job-item strong { font-size: 13px; }
.job-item span { font-size: 11px; }
.job-item-side { display: grid; justify-items: end; gap: 6px; }
.job-mini-progress { font-weight: 700; color: var(--muted); }
.log { grid-template-columns: 68px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; }
.log span { font-size: 10px; }
.check-list { gap: 7px; font-size: 13px; }
.detail-box, .stat { padding: 14px; border-radius: 13px; }
.detail-box strong, .stat strong { font-size: 1rem; }
.admin-inline-form { gap: 8px; }
.admin-inline-form select, .admin-inline-form input { min-width: 0; }
@media (max-width: 980px) {
  html { font-size: 13px; }
  .portal-layout, .hero-grid, .auth-grid, .form-grid, .enterprise-form-grid, .stats-grid, .detail-grid { grid-template-columns: 1fr; }
  .portal-sidebar .card:first-child { position: static; }
  .topbar-copy { display: none; }
  .job-item { grid-template-columns: 1fr; }
  .job-item-side { justify-items: start; }
}

.migration-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.toggle-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.toggle-card input {
  margin-top: 3px;
}
.toggle-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.toggle-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}
@media (max-width: 980px) {
  .migration-options-grid {
    grid-template-columns: 1fr;
  }
}


.provider-switch-row{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:18px;flex-wrap:wrap}.provider-panel.is-hidden{display:none}.provider-badge-row{display:flex;gap:10px;align-items:center;margin-bottom:10px}.compact-actions{display:flex;gap:10px;flex-wrap:wrap}.alert-info{background:#eef6ff;color:#295c9d;border:1px solid #d6e6ff}.brandmark img{max-height:34px;width:auto;display:block}.provider-note{font-size:12px}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}


.folder-picker-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}


.folder-picker-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-card {
  width: min(1040px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--line);
  padding: 20px;
}

.modal-head,
.modal-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    padding: 16px;
    border-radius: 18px;
  }
}


.modal-toolbar-compact {
  margin-top: -4px;
  margin-bottom: 14px;
}

.folder-search-input {
  min-width: 280px;
  max-width: 360px;
}

.folder-icon {
  margin-right: 8px;
  font-size: 15px;
}

[data-folder-row] td {
  vertical-align: middle;
}


.dav-debug-table code {
  white-space: normal;
  word-break: break-all;
  font-size: 12px;
}
