/* NALARUNA Workspace UI v2.0
 * Interaction model inspired by research workspaces with three coordinated areas,
 * while preserving NALARUNA branding and domain-specific workflows.
 */
:root {
    --nl-bg: #f4f7f8;
    --nl-surface: #ffffff;
    --nl-surface-soft: #f8fafb;
    --nl-ink: #17222b;
    --nl-muted: #66737d;
    --nl-line: #dde4e7;
    --nl-line-strong: #cfd9dd;
    --nl-accent: #176b63;
    --nl-accent-strong: #0d514b;
    --nl-accent-soft: #e7f3f1;
    --nl-blue: #365ccf;
    --nl-blue-soft: #edf1ff;
    --nl-gold: #a97923;
    --nl-gold-soft: #fff5df;
    --nl-danger: #a13d3d;
    --nl-shadow: 0 12px 40px rgba(22, 43, 50, .08);
    --nl-radius: 18px;
    --nl-radius-sm: 12px;
}

body.nalaruna-lab-ui {
    background: var(--nl-bg);
    color: var(--nl-ink);
}

body.nalaruna-lab-ui .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--nl-line);
    backdrop-filter: blur(18px);
}

body.nalaruna-lab-ui .site-header__inner {
    min-height: 68px;
}

body.nalaruna-lab-ui .site-nav {
    gap: 6px;
}

body.nalaruna-lab-ui .site-nav a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #42515b;
}

body.nalaruna-lab-ui .site-nav a:hover {
    background: var(--nl-surface-soft);
    color: var(--nl-ink);
}

body.nalaruna-lab-ui.nalaruna-user-auth .site-footer {
    margin-top: 0;
    border-top: 1px solid var(--nl-line);
    background: #eef3f4;
}

/* App workspace */
.nl-app {
    padding: 18px 18px 32px;
}

.nl-app__shell {
    width: min(1600px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(270px, 340px);
    gap: 14px;
    align-items: start;
}

.nl-panel {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    min-width: 0;
    box-shadow: 0 1px 2px rgba(22, 43, 50, .02);
}

.nl-panel--sources,
.nl-panel--studio {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 105px);
    overflow: auto;
}

.nl-panel__header {
    min-height: 62px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--nl-line);
}

.nl-panel__header h2,
.nl-panel__header h3,
.nl-panel__header p { margin: 0; }
.nl-panel__header h2 { font-size: 16px; }
.nl-panel__header small { color: var(--nl-muted); }

.nl-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--nl-line);
    background: #fff;
    color: var(--nl-ink);
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    font-weight: 800;
    transition: .18s ease;
}
.nl-icon-button:hover { transform: translateY(-1px); border-color: var(--nl-line-strong); box-shadow: 0 5px 14px rgba(22,43,50,.07); }

.nl-panel__body { padding: 14px; }
.nl-panel__body--flush { padding: 0; }

.nl-source-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 12px;
    padding: 11px 13px;
    background: var(--nl-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    border: 1px solid var(--nl-accent);
}
.nl-source-primary:hover { background: var(--nl-accent-strong); color: #fff; }

.nl-source-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 2px 8px;
    color: var(--nl-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.nl-project-stack { display: grid; gap: 7px; }
.nl-project-item {
    display: block;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 11px;
    text-decoration: none;
    color: inherit;
    background: transparent;
}
.nl-project-item:hover { background: var(--nl-surface-soft); border-color: var(--nl-line); }
.nl-project-item strong { display: block; font-size: 13px; line-height: 1.35; }
.nl-project-item small { display: block; color: var(--nl-muted); margin-top: 4px; }
.nl-project-item__meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.nl-dot { width: 7px; height: 7px; border-radius: 999px; background: #aeb9be; flex: 0 0 auto; }
.nl-dot.is-active { background: #279d75; }
.nl-dot.is-done { background: var(--nl-blue); }

.nl-source-empty {
    padding: 18px 8px;
    text-align: center;
    color: var(--nl-muted);
    font-size: 13px;
}

.nl-backup-mini {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--nl-line);
}
.nl-backup-mini article { padding: 8px 2px; border-bottom: 1px dashed var(--nl-line); }
.nl-backup-mini strong { display:block; font-size: 12px; }
.nl-backup-mini small { color: var(--nl-muted); }

.nl-workspace {
    min-height: 660px;
    overflow: hidden;
}

.nl-workspace__top {
    padding: 24px clamp(18px, 3vw, 36px) 18px;
    border-bottom: 1px solid var(--nl-line);
    background:
        radial-gradient(circle at 88% 20%, rgba(54,92,207,.09), transparent 28%),
        radial-gradient(circle at 10% 0%, rgba(23,107,99,.10), transparent 35%),
        #fff;
}

.nl-workspace__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.nl-workspace__title span {
    display: block;
    color: var(--nl-muted);
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 5px;
}
.nl-workspace__title h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.03;
    letter-spacing: -.035em;
}
.nl-workspace__title p {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--nl-muted);
    font-size: 15px;
    line-height: 1.65;
}

.nl-prompt-launcher {
    margin-top: 24px;
    padding: 10px;
    border: 1px solid var(--nl-line-strong);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 30px rgba(30,58,66,.06);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.nl-prompt-launcher__copy { padding: 4px 8px; }
.nl-prompt-launcher__copy strong { display: block; font-size: 14px; }
.nl-prompt-launcher__copy small { display: block; margin-top: 3px; color: var(--nl-muted); }

.nl-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}
.nl-quick-action {
    min-height: 86px;
    padding: 12px;
    border-radius: 13px;
    border: 1px solid var(--nl-line);
    background: rgba(255,255,255,.78);
    text-decoration: none;
    color: inherit;
    transition: .18s ease;
}
.nl-quick-action:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 8px 20px rgba(20,50,60,.07); }
.nl-quick-action b { display: block; font-size: 13px; }
.nl-quick-action small { display: block; color: var(--nl-muted); margin-top: 5px; line-height: 1.35; }
.nl-quick-action__icon { width: 28px; height: 28px; border-radius: 9px; display:grid; place-items:center; margin-bottom: 11px; background: var(--nl-accent-soft); color: var(--nl-accent); font-weight: 900; }
.nl-quick-action:nth-child(2) .nl-quick-action__icon { background: var(--nl-blue-soft); color: var(--nl-blue); }
.nl-quick-action:nth-child(3) .nl-quick-action__icon { background: var(--nl-gold-soft); color: var(--nl-gold); }

.nl-workspace__content { padding: 20px clamp(18px, 3vw, 36px) 30px; }
.nl-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
    margin-bottom: 22px;
}
.nl-metric { border: 1px solid var(--nl-line); border-radius: 12px; padding: 12px 13px; background: var(--nl-surface-soft); }
.nl-metric strong { display:block; font-size: 22px; }
.nl-metric small { color: var(--nl-muted); }

.nl-section-title { display:flex; justify-content:space-between; gap:12px; align-items:end; margin: 22px 0 10px; }
.nl-section-title h2 { margin:0; font-size:18px; }
.nl-section-title p { margin:0; color:var(--nl-muted); font-size:12px; }

.nl-work-card-list { display:grid; gap:9px; }
.nl-work-card {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    border:1px solid var(--nl-line);
    border-radius:14px;
    padding:14px 15px;
    text-decoration:none;
    color:inherit;
    background:#fff;
}
.nl-work-card:hover { border-color:#bdcbd0; box-shadow:0 7px 20px rgba(20,45,55,.06); }
.nl-work-card h3 { margin:0; font-size:14px; }
.nl-work-card p { margin:4px 0 0; color:var(--nl-muted); font-size:12px; }
.nl-work-card__status { text-align:right; }
.nl-work-card__status strong { display:block; font-size:13px; }
.nl-work-card__status small { color:var(--nl-muted); }

/* Studio */
.nl-studio-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.nl-studio-card {
    min-height: 116px;
    border:1px solid var(--nl-line);
    border-radius:14px;
    padding:12px;
    background:#fff;
    text-decoration:none;
    color:inherit;
    position:relative;
    overflow:hidden;
}
.nl-studio-card:hover { border-color:#bdcbd0; box-shadow:0 7px 20px rgba(20,45,55,.06); }
.nl-studio-card__icon { width:34px;height:34px;border-radius:10px;background:var(--nl-accent-soft);color:var(--nl-accent);display:grid;place-items:center;font-weight:900;margin-bottom:14px; }
.nl-studio-card:nth-child(2n) .nl-studio-card__icon { background:var(--nl-blue-soft);color:var(--nl-blue); }
.nl-studio-card h3 { margin:0; font-size:13px; }
.nl-studio-card p { margin:4px 0 0; color:var(--nl-muted); font-size:11px; line-height:1.45; }
.nl-studio-card em { position:absolute;top:10px;right:10px;font-style:normal;font-size:9px;color:var(--nl-muted);background:var(--nl-surface-soft);border:1px solid var(--nl-line);border-radius:999px;padding:3px 6px; }

.nl-wallet-mini { margin-top:12px; border:1px solid var(--nl-line); border-radius:14px; padding:14px; background:linear-gradient(145deg,#f4faf8,#fff); }
.nl-wallet-mini > span { color:var(--nl-muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800; }
.nl-wallet-mini strong { display:block;font-size:30px;line-height:1;margin:7px 0 4px; }
.nl-wallet-mini small { color:var(--nl-muted); }
.nl-wallet-mini a { display:inline-block;margin-top:11px;font-size:12px;font-weight:800;color:var(--nl-accent);text-decoration:none; }

.nl-payment-mini { margin-top:10px;border-radius:12px;padding:11px;background:#fff9ec;border:1px solid #efdfb8;font-size:11px;color:#6e592f;line-height:1.5; }

/* Template library */
.nl-template-library { padding: 42px 0 70px; }
.nl-template-library__hero {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:30px;
    align-items:end;
    padding:32px;
    border:1px solid var(--nl-line);
    border-radius:24px;
    background:
        radial-gradient(circle at 88% 15%, rgba(54,92,207,.11), transparent 24%),
        radial-gradient(circle at 8% 0%, rgba(23,107,99,.11), transparent 28%),
        #fff;
}
.nl-template-library__hero h1 { margin:8px 0 10px;font-size:clamp(34px,5vw,62px);letter-spacing:-.045em;line-height:1;max-width:780px; }
.nl-template-library__hero p { margin:0;max-width:760px;color:var(--nl-muted);font-size:16px;line-height:1.7; }
.nl-template-library__hero-actions { display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end; }

.nl-template-policy { margin:16px 0 34px;display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:8px;align-items:center; }
.nl-template-policy > div { background:#fff;border:1px solid var(--nl-line);border-radius:13px;padding:12px;min-height:86px; }
.nl-template-policy > div span { width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:var(--nl-accent-soft);color:var(--nl-accent);font-size:11px;font-weight:900;margin-bottom:8px; }
.nl-template-policy strong { display:block;font-size:12px; }
.nl-template-policy small { display:block;color:var(--nl-muted);margin-top:3px;font-size:10px; }
.nl-template-policy > b { color:#9aa7ad; }

.nl-template-category { margin-top:32px; }
.nl-template-category > header { display:grid;grid-template-columns:1fr auto;align-items:end;margin-bottom:12px; }
.nl-template-category > header .eyebrow { grid-column:1; }
.nl-template-category > header h2 { grid-column:1;margin:3px 0 0;font-size:24px; }
.nl-template-category > header small { grid-column:2;grid-row:1 / span 2;color:var(--nl-muted); }
.nl-template-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px; }
.nl-template-card { background:#fff;border:1px solid var(--nl-line);border-radius:16px;padding:16px;min-width:0;transition:.18s ease; }
.nl-template-card:hover { transform:translateY(-2px);box-shadow:var(--nl-shadow);border-color:#c4d0d4; }
.nl-template-card__icon { width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--nl-accent-soft);color:var(--nl-accent);font-weight:900;margin-bottom:14px; }
.nl-template-card__heading { display:flex;align-items:start;justify-content:space-between;gap:10px; }
.nl-template-card__heading h3 { margin:0;font-size:15px; }
.nl-template-card__heading small { color:var(--nl-muted); }
.nl-template-card__heading > span { font-size:9px;text-transform:uppercase;letter-spacing:.08em;background:var(--nl-surface-soft);border:1px solid var(--nl-line);border-radius:999px;padding:4px 6px;color:var(--nl-muted); }
.nl-template-card > p { color:var(--nl-muted);font-size:12px;line-height:1.55;min-height:56px; }
.nl-template-card__structure { display:flex;flex-wrap:wrap;gap:5px;margin:12px 0; }
.nl-template-card__structure span { font-size:9px;line-height:1.2;padding:5px 7px;border:1px solid var(--nl-line);border-radius:999px;background:var(--nl-surface-soft);color:#53616a; }
.nl-template-card footer { display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid var(--nl-line);padding-top:11px;margin-top:13px; }
.nl-template-card footer small { color:var(--nl-muted);font-size:9px; }
.nl-template-card footer a { color:var(--nl-accent);font-weight:800;text-decoration:none;font-size:11px;white-space:nowrap; }
.nl-template-disclaimer { margin-top:28px;padding:17px 19px;border:1px solid #e5d6ae;background:#fff9ea;border-radius:14px; }
.nl-template-disclaimer strong { display:block;font-size:13px; }
.nl-template-disclaimer p { margin:5px 0 0;color:#6f6040;font-size:12px;line-height:1.55; }

/* Generator and review surfaces */
body.nalaruna-lab-ui .nalaruna-workspace-page,
body.nalaruna-lab-ui .nalaruna-review-launch { background:var(--nl-bg); }
body.nalaruna-lab-ui .nalaruna-workspace-shell { max-width:1180px; }
body.nalaruna-lab-ui .nalaruna-workspace-card,
body.nalaruna-lab-ui .nalaruna-template-summary,
body.nalaruna-lab-ui .nalaruna-structure-card,
body.nalaruna-lab-ui .nalaruna-section-form,
body.nalaruna-lab-ui .nalaruna-plan-note { border-color:var(--nl-line);box-shadow:none;border-radius:var(--nl-radius); }

.nl-active-template-banner {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    margin:0 0 14px;
    padding:14px 16px;
    background:#fff;
    border:1px solid var(--nl-line);
    border-radius:14px;
}
.nl-active-template-banner strong { display:block;font-size:13px; }
.nl-active-template-banner p { margin:3px 0 0;color:var(--nl-muted);font-size:11px;line-height:1.45; }
.nl-active-template-banner a { color:var(--nl-accent);font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap; }

body.nalaruna-lab-ui .nalaruna-review-dialog {
    background:var(--nl-bg);
}
body.nalaruna-lab-ui .nalaruna-review-app {
    background:var(--nl-bg);
}
body.nalaruna-lab-ui .nalaruna-review-app__header,
body.nalaruna-lab-ui .nalaruna-review-toolbar {
    background:#fff;
    border-color:var(--nl-line);
}
body.nalaruna-lab-ui .nalaruna-review-nav,
body.nalaruna-lab-ui .nalaruna-review-inspector {
    background:#fff;
    border-color:var(--nl-line);
}
body.nalaruna-lab-ui .nalaruna-review-stage { background:#eef2f3; }
body.nalaruna-lab-ui .nalaruna-template-paper { box-shadow:0 12px 36px rgba(17,36,43,.10); }

/* Small utility */
.nl-chip { display:inline-flex;align-items:center;gap:5px;border:1px solid var(--nl-line);background:#fff;border-radius:999px;padding:6px 9px;font-size:10px;color:var(--nl-muted); }
.nl-chip b { color:var(--nl-ink); }
.nl-mobile-tabs { display:none; }

@media (max-width: 1180px) {
    .nl-app__shell { grid-template-columns:240px minmax(0,1fr); }
    .nl-panel--studio { grid-column:1 / -1;position:static;max-height:none; }
    .nl-panel--studio .nl-panel__body { display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:12px; }
    .nl-studio-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .nl-wallet-mini { margin-top:0; }
    .nl-template-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .nl-app { padding:10px 10px 24px; }
    .nl-app__shell { grid-template-columns:1fr; }
    .nl-panel--sources,.nl-panel--studio { position:static;max-height:none; }
    .nl-panel--sources { order:2; }
    .nl-workspace { order:1; }
    .nl-panel--studio { order:3;grid-column:auto; }
    .nl-panel--studio .nl-panel__body { display:block; }
    .nl-quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nl-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nl-studio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nl-template-library__hero { grid-template-columns:1fr;align-items:start;padding:23px; }
    .nl-template-library__hero-actions { justify-content:flex-start; }
    .nl-template-policy { grid-template-columns:1fr 1fr; }
    .nl-template-policy > b { display:none; }
    .nl-template-grid { grid-template-columns:1fr; }
}

@media (max-width: 560px) {
    .nl-workspace__top { padding:18px 16px 15px; }
    .nl-workspace__content { padding:16px; }
    .nl-workspace__topbar { margin-bottom:20px; }
    .nl-workspace__title h1 { font-size:34px; }
    .nl-prompt-launcher { grid-template-columns:1fr; }
    .nl-quick-actions,.nl-metrics,.nl-studio-grid { grid-template-columns:1fr; }
    .nl-template-policy { grid-template-columns:1fr; }
    .nl-template-library { padding-top:22px; }
    .nl-template-library__hero h1 { font-size:38px; }
}

.nl-template-tools {
    position: sticky;
    top: 82px;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
    gap: 9px;
    align-items: center;
    margin: 0 0 24px;
    padding: 10px;
    border: 1px solid var(--nl-line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(22,43,50,.05);
}
.nl-template-tools input,
.nl-template-tools select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--nl-line);
    border-radius: 11px;
    background: #fff;
    padding: 0 12px;
    color: var(--nl-ink);
    font: inherit;
}
.nl-template-tools > span { color: var(--nl-muted); font-size: 11px; font-weight: 800; white-space: nowrap; padding-right: 4px; }
.nl-template-card[hidden], .nl-template-category[hidden] { display: none !important; }

@media (max-width: 700px) {
    .nl-template-tools { grid-template-columns: 1fr; position: static; }
}

/* SNC-MANUAL-005 · authenticated workspace brand polish */
body.nalaruna-lab-ui .site-header .brand {
    gap: 10px;
}
body.nalaruna-lab-ui .site-header .brand__mark--nalaruna {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}
body.nalaruna-lab-ui .site-header .brand__copy strong {
    color: var(--nl-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.018em;
}
body.nalaruna-lab-ui .site-header .brand__copy small {
    margin-top: 2px;
    color: var(--nl-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .075em;
}
body.nalaruna-lab-ui .site-header .brand:hover .brand__copy strong {
    color: var(--nl-accent-strong);
}
@media (max-width: 860px) {
    body.nalaruna-lab-ui .site-header .brand__mark--nalaruna {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }
}

/* ==========================================================================
   SNC-MANUAL-005 FULL UI · NALARUNA Professional Application Shell v2.0
   Visual direction: airy research workspace, soft surfaces, pastel action cards,
   floating 3D brand mark, compact information hierarchy, desktop/mobile parity.
   ========================================================================== */
:root {
    --nl-50: #f5fbfa;
    --nl-100: #e7f6f3;
    --nl-200: #cdebe6;
    --nl-300: #9fd9d1;
    --nl-500: #158779;
    --nl-600: #0f7569;
    --nl-700: #0a5d54;
    --nl-800: #084b45;
    --nl-navy: #10263a;
    --nl-canvas: #f4f7f8;
    --nl-canvas-2: #eef3f5;
    --nl-surface: #ffffff;
    --nl-surface-muted: #f8fafb;
    --nl-border: #e1e8eb;
    --nl-border-strong: #d3dde1;
    --nl-text: #17283a;
    --nl-text-2: #667784;
    --nl-text-3: #8b99a3;
    --nl-blue: #3d66cf;
    --nl-blue-soft: #eef3ff;
    --nl-violet: #7856d9;
    --nl-violet-soft: #f3efff;
    --nl-gold: #c59128;
    --nl-gold-soft: #fff6e6;
    --nl-sky: #2f9bd7;
    --nl-sky-soft: #eef9ff;
    --nl-green: #32a76f;
    --nl-green-soft: #edf9f2;
    --nl-red: #b84c4c;
    --nl-red-soft: #fff0f0;
    --nl-shadow-xs: 0 1px 2px rgba(18, 38, 51, .04);
    --nl-shadow-sm: 0 8px 24px rgba(18, 38, 51, .06);
    --nl-shadow-md: 0 20px 54px rgba(18, 38, 51, .09);
    --nl-radius-xs: 10px;
    --nl-radius-sm: 13px;
    --nl-radius-md: 17px;
    --nl-radius-lg: 22px;
    --nl-radius-xl: 28px;
    --nl-sidebar: 248px;
    --nl-topbar: 72px;
}

body.nalaruna-lab-ui {
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--nl-text);
    background: var(--nl-canvas);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.nalaruna-lab-ui h1,
body.nalaruna-lab-ui h2,
body.nalaruna-lab-ui h3,
body.nalaruna-lab-ui h4,
body.nalaruna-lab-ui .brand__copy strong {
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}
body.nalaruna-lab-ui a:focus-visible,
body.nalaruna-lab-ui button:focus-visible,
body.nalaruna-lab-ui input:focus-visible,
body.nalaruna-lab-ui select:focus-visible,
body.nalaruna-lab-ui textarea:focus-visible {
    outline: 3px solid rgba(21, 135, 121, .22);
    outline-offset: 2px;
}
.nl-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.nl-overline { color: var(--nl-text-3); font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .09em; text-transform: uppercase; }
.nl-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:50%; color:#fff; background:linear-gradient(145deg,var(--nl-500),var(--nl-800)); font-size:12px; font-weight:850; box-shadow:inset 0 0 0 2px rgba(255,255,255,.55),0 3px 10px rgba(10,93,84,.15); }

/* Authenticated application shell */
body.nalaruna-user-auth { overflow-x: hidden; }
body.nalaruna-user-auth > .skip-link + .nl-global-shell { min-height: 100vh; }
.nl-global-shell { display:grid; grid-template-columns:var(--nl-sidebar) minmax(0,1fr); min-height:100vh; background:var(--nl-canvas); }
.nl-global-sidebar { position:sticky; top:0; z-index:110; align-self:start; height:100vh; display:flex; flex-direction:column; padding:14px 13px 12px; border-right:1px solid var(--nl-border); background:rgba(255,255,255,.98); box-shadow:1px 0 0 rgba(255,255,255,.55); }
.nl-global-sidebar__head { display:flex; align-items:center; min-height:57px; padding:0 8px 11px; border-bottom:1px solid #eff3f4; }
.nl-global-brand { min-width:0; display:flex; align-items:center; gap:9px; color:inherit; text-decoration:none; }
.nl-global-brand__mark { position:relative; width:42px; height:42px; flex:0 0 42px; perspective:420px; }
.nl-global-brand__mark::after { content:""; position:absolute; left:7px; right:7px; bottom:-1px; height:7px; border-radius:50%; background:rgba(10,75,69,.15); filter:blur(4px); }
.nl-global-brand__mark img { position:relative; z-index:1; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 5px 5px rgba(9,64,59,.17)); transform:rotateY(-5deg) rotateX(2deg); }
.nl-global-brand__copy { min-width:0; display:grid; gap:1px; }
.nl-global-brand__copy strong { color:#0f263a; font-size:16px; line-height:1.1; letter-spacing:-.025em; white-space:nowrap; }
.nl-global-brand__copy small { overflow:hidden; color:#6d7d89; font-size:8px; font-weight:650; line-height:1.2; letter-spacing:.015em; text-overflow:ellipsis; white-space:nowrap; }
.nl-sidebar-close { display:none; margin-left:auto; width:34px; height:34px; border:0; border-radius:10px; color:var(--nl-text-2); background:#f3f6f7; font-size:23px; cursor:pointer; }

.nl-global-nav { flex:1; min-height:0; overflow:auto; padding:12px 2px; scrollbar-width:thin; scrollbar-color:#d8e1e4 transparent; }
.nl-global-nav__group { display:grid; gap:3px; margin-bottom:13px; }
.nl-global-nav__group > span { padding:8px 10px 5px; color:#93a0aa; font-size:8px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.nl-global-nav__item { display:flex; align-items:center; gap:10px; min-height:39px; padding:8px 10px; border-radius:10px; color:#536674; font-size:11px; font-weight:650; text-decoration:none; transition:background .16s ease,color .16s ease,transform .16s ease; }
.nl-global-nav__item .nl-icon { width:17px; height:17px; }
.nl-global-nav__item:hover { color:var(--nl-700); background:#f1f8f6; transform:translateX(1px); }
.nl-global-nav__item.is-active { color:#fff; background:linear-gradient(135deg,#0f7569,#0a6158); box-shadow:0 7px 16px rgba(15,117,105,.16); }
.nl-global-nav__item.is-active .nl-icon { stroke-width:1.9; }

.nl-global-sidebar__foot { display:grid; gap:8px; padding:10px 1px 0; border-top:1px solid #eff3f4; }
.nl-plan-card { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:9px; align-items:center; min-height:54px; padding:9px 10px; border:1px solid #dbe9e6; border-radius:12px; color:inherit; background:linear-gradient(140deg,#eff9f7,#f9fcfc); text-decoration:none; }
.nl-plan-card__icon { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:#a67514; background:#fff4d5; }
.nl-plan-card__icon .nl-icon { width:16px; height:16px; }
.nl-plan-card span:nth-child(2) { min-width:0; display:grid; }
.nl-plan-card strong { overflow:hidden; color:#23423f; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.nl-plan-card small { margin-top:2px; color:#77908c; font-size:8px; }
.nl-plan-card b { color:#78908d; font-size:17px; }
.nl-sidebar-account { display:grid; grid-template-columns:34px minmax(0,1fr) 30px; gap:8px; align-items:center; padding:7px 5px; }
.nl-sidebar-account > span { min-width:0; display:grid; }
.nl-sidebar-account strong { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.nl-sidebar-account small { color:var(--nl-text-3); font-size:8px; }
.nl-sidebar-account form button { width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:9px; color:#87949e; background:transparent; cursor:pointer; }
.nl-sidebar-account form button:hover { color:var(--nl-red); background:var(--nl-red-soft); }
.nl-sidebar-account form button .nl-icon { width:15px; height:15px; }

.nl-global-main { min-width:0; min-height:100vh; }
.nl-global-topbar { position:sticky; top:0; z-index:95; height:var(--nl-topbar); display:grid; grid-template-columns:minmax(280px,640px) auto; align-items:center; justify-content:space-between; gap:20px; padding:10px 22px; border-bottom:1px solid var(--nl-border); background:rgba(255,255,255,.94); backdrop-filter:blur(18px) saturate(140%); }
.nl-sidebar-toggle,.nl-mobile-brand { display:none; }
.nl-command-wrap { position:relative; min-width:0; }
.nl-command { min-height:43px; display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:9px; align-items:center; padding:0 11px; border:1px solid #e0e7ea; border-radius:13px; background:#f7f9fa; transition:border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.nl-command:focus-within { border-color:#bdd8d3; background:#fff; box-shadow:0 0 0 4px rgba(21,135,121,.06); }
.nl-command .nl-icon { width:17px; height:17px; color:#31536e; }
.nl-command input { min-width:0; border:0; outline:0; color:var(--nl-text); background:transparent; font-size:10px; }
.nl-command input::placeholder { color:#91a0aa; }
.nl-command kbd { padding:4px 7px; border:1px solid #e0e6e9; border-radius:7px; color:#84929d; background:#fff; box-shadow:0 1px 0 #edf1f2; font:650 9px/1 system-ui; }
.nl-command-results { position:absolute; top:calc(100% + 7px); right:0; left:0; z-index:200; display:grid; gap:3px; max-height:300px; overflow:auto; padding:7px; border:1px solid var(--nl-border); border-radius:13px; background:#fff; box-shadow:var(--nl-shadow-md); }
.nl-command-results[hidden] { display:none; }
.nl-command-results a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:9px; color:var(--nl-text-2); font-size:10px; font-weight:650; text-decoration:none; }
.nl-command-results a:hover,.nl-command-results a.is-selected { color:var(--nl-700); background:#eef7f5; }
.nl-command-results small { color:#9aa6ad; font-size:8px; }
.nl-topbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.nl-topbar-icon { position:relative; width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--nl-border); border-radius:12px; color:#345066; background:#fff; }
.nl-topbar-icon .nl-icon { width:17px; height:17px; }
.nl-topbar-icon i { position:absolute; top:8px; right:8px; width:6px; height:6px; border:2px solid #fff; border-radius:50%; background:#e24949; }
.nl-credit-pill { min-height:43px; display:grid; grid-template-columns:28px auto; gap:7px; align-items:center; padding:5px 10px 5px 7px; border:1px solid var(--nl-border); border-radius:12px; color:inherit; background:#fff; text-decoration:none; }
.nl-credit-pill > span { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; color:#a36f00; background:#fff2c9; }
.nl-credit-pill > span .nl-icon { width:15px; height:15px; }
.nl-credit-pill small { display:grid; color:#7b8993; font-size:7px; font-style:normal; line-height:1.05; }
.nl-credit-pill strong { margin-top:2px; color:#243a4b; font-size:10px; }
.nl-user-pill { min-height:43px; display:grid; grid-template-columns:34px auto 10px; gap:7px; align-items:center; padding:4px 8px 4px 5px; border-radius:12px; color:inherit; text-decoration:none; }
.nl-user-pill:hover { background:#f5f8f9; }
.nl-user-pill small { min-width:72px; display:grid; font-style:normal; }
.nl-user-pill strong { max-width:100px; overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.nl-user-pill em { margin-top:2px; color:#88969f; font-size:7px; font-style:normal; }
.nl-user-pill b { color:#7e8c95; font-size:16px; }

.nl-global-content { min-width:0; padding:18px 20px 34px; }
.nl-global-content > .section,
.nl-global-content > .nalaruna-workspace-page,
.nl-global-content > .nl-template-library,
.nl-global-content > .payment-hero,
.nl-global-content > .payment-status-page { margin-left:auto; margin-right:auto; }
body.nalaruna-user-auth .nl-global-content .shell { width:100%; max-width:none; padding-right:0; padding-left:0; }
body.nalaruna-user-auth .site-footer { display:none; }
.nl-global-notice { width:min(1180px,100%); display:flex; gap:9px; align-items:flex-start; margin:0 auto 14px; padding:11px 13px; border:1px solid #cfe7df; border-radius:12px; color:#2c5d50; background:#f1faf7; font-size:10px; }
.nl-global-notice.is-error { border-color:#edcece; color:#824040; background:#fff5f5; }
.nl-global-notice .nl-icon { width:17px; height:17px; }
.nl-global-notice ul { margin:5px 0 0; padding-left:17px; }
.nl-sidebar-scrim { display:none; }

/* Dashboard composition */
.nl-dashboard-page { width:100%; max-width:1460px; margin:0 auto; }
.nl-dashboard-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px; align-items:start; }
.nl-dashboard-primary { min-width:0; display:grid; gap:14px; }
.nl-dashboard-studio { position:sticky; top:calc(var(--nl-topbar) + 18px); display:grid; gap:12px; }
.nl-hero-card { position:relative; isolation:isolate; min-height:188px; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) 260px; border:1px solid #dce8e9; border-radius:18px; background:linear-gradient(110deg,#fbfdff 0%,#f1f8fa 58%,#eaf7f6 100%); box-shadow:var(--nl-shadow-xs); }
.nl-hero-card::before { content:""; position:absolute; z-index:-1; right:-5%; bottom:-75%; width:73%; height:160%; border-radius:50% 48% 0 0; background:radial-gradient(circle at 50% 35%,rgba(155,226,214,.6),rgba(125,205,211,.26) 43%,rgba(111,169,214,.12) 64%,transparent 70%); transform:rotate(-8deg); filter:blur(.2px); }
.nl-hero-card::after { content:""; position:absolute; z-index:-1; right:19%; bottom:-92px; width:390px; height:180px; border-radius:50%; border-top:1px solid rgba(255,255,255,.75); background:linear-gradient(150deg,rgba(255,255,255,.48),rgba(119,207,198,.14)); transform:rotate(7deg); box-shadow:0 -1px 0 rgba(255,255,255,.7); }
.nl-hero-card__content { min-width:0; padding:22px 20px 18px; }
.nl-hero-card__content h1 { margin:5px 0 3px; color:#10253a; font-size:22px; line-height:1.12; letter-spacing:-.025em; }
.nl-hero-card__content > p { margin:0 0 16px; color:#70818d; font-size:10px; }
.nl-hero-command { width:min(610px,100%); min-height:49px; display:grid; grid-template-columns:minmax(0,1fr) 39px; gap:9px; align-items:center; padding:5px 5px 5px 17px; border:1px solid #d9e5e7; border-radius:999px; color:#8a9aa4; background:rgba(255,255,255,.96); box-shadow:0 8px 24px rgba(33,75,83,.07); text-decoration:none; }
.nl-hero-command span { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.nl-hero-command b { width:39px; height:39px; display:grid; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(145deg,#15927f,#08705f); box-shadow:0 6px 14px rgba(14,117,105,.2); }
.nl-hero-command b .nl-icon { width:17px; height:17px; }
.nl-hero-command:hover b { transform:translateX(1px); }
.nl-hero-shortcuts { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.nl-hero-shortcuts a { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:5px 9px; border:1px solid #d9e5e8; border-radius:999px; color:#4f6a7b; background:rgba(255,255,255,.58); font-size:8px; font-weight:650; text-decoration:none; }
.nl-hero-shortcuts a:hover { color:var(--nl-700); background:#fff; }
.nl-hero-shortcuts .nl-icon { width:12px; height:12px; }
.nl-hero-card__visual { position:relative; display:grid; place-items:center; }
.nl-hero-card__visual img { position:relative; z-index:2; width:105px; height:105px; object-fit:contain; filter:drop-shadow(0 16px 12px rgba(10,73,69,.22)); transform:perspective(400px) rotateY(-7deg) rotateX(2deg); }
.nl-hero-orb { position:absolute; z-index:1; width:155px; height:155px; border-radius:50%; background:radial-gradient(circle at 38% 34%,rgba(255,248,196,.88),rgba(149,222,209,.42) 37%,rgba(97,166,204,.12) 64%,transparent 70%); filter:blur(1px); }

.nl-dashboard-section { display:grid; gap:9px; }
.nl-dashboard-heading,.nl-card-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.nl-dashboard-heading h2,.nl-card-heading h2 { margin:3px 0 0; color:#1c3142; font-size:13px; line-height:1.2; }
.nl-dashboard-heading > small { max-width:360px; color:#89969f; font-size:8px; text-align:right; }
.nl-card-heading a { display:inline-flex; align-items:center; gap:5px; color:#547184; font-size:8px; font-weight:750; text-decoration:none; }
.nl-card-heading a b { font-size:12px; }
.nl-action-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.nl-action-card { min-width:0; min-height:112px; display:flex; flex-direction:column; padding:12px 11px; border:1px solid #e1e8eb; border-radius:13px; color:inherit; background:#fff; text-decoration:none; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.nl-action-card:hover { transform:translateY(-2px); border-color:#d0dcdf; box-shadow:var(--nl-shadow-sm); }
.nl-action-card > span { width:33px; height:33px; display:grid; place-items:center; margin-bottom:12px; border-radius:11px; color:var(--nl-600); background:#dff6ee; }
.nl-action-card > span .nl-icon { width:17px; height:17px; }
.nl-action-card strong { margin-top:auto; color:#273b4a; font-size:9px; }
.nl-action-card small { margin-top:3px; color:#80909b; font-size:7px; line-height:1.3; }
.nl-action-card.is-blue { background:#f8fbff; }.nl-action-card.is-blue > span{color:#2e72d5;background:#e7f1ff}
.nl-action-card.is-violet { background:#fcfaff; }.nl-action-card.is-violet > span{color:#8059da;background:#f0e8ff}
.nl-action-card.is-gold { background:#fffcf7; }.nl-action-card.is-gold > span{color:#bf7a08;background:#fff0cc}
.nl-action-card.is-sky { background:#f8fdff; }.nl-action-card.is-sky > span{color:#278fc8;background:#e6f7ff}
.nl-action-card.is-green { background:#f9fefb; }.nl-action-card.is-green > span{color:#2d9864;background:#e3f8eb}

.nl-dashboard-split { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr); gap:12px; }
.nl-dashboard-card,.nl-studio-panel,.nl-wallet-panel,.nl-backup-panel { min-width:0; padding:14px; border:1px solid var(--nl-border); border-radius:15px; background:#fff; box-shadow:var(--nl-shadow-xs); }
.nl-project-list { display:grid; gap:1px; margin-top:8px; }
.nl-project-row { display:grid; grid-template-columns:34px minmax(0,1fr) 104px; gap:9px; align-items:center; padding:8px 5px; border-top:1px solid #eff3f4; color:inherit; text-decoration:none; }
.nl-project-row:first-child { border-top:0; }
.nl-project-row:hover { background:#fbfcfc; }
.nl-project-row__icon { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; color:var(--nl-600); background:#e6f7f3; }
.nl-project-row__icon .nl-icon { width:16px;height:16px; }
.nl-project-row__copy { min-width:0; display:grid; gap:2px; }
.nl-project-row__copy strong { overflow:hidden; color:#2a3f50; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.nl-project-row__copy small { overflow:hidden; color:#8c99a2; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.nl-project-row__copy small b { color:#598aa0; font-weight:750; }
.nl-project-row__progress { display:grid; grid-template-columns:minmax(0,1fr) 28px; gap:6px; align-items:center; }
.nl-project-row__progress i { height:4px; overflow:hidden; border-radius:999px; background:#e8eef0; }
.nl-project-row__progress i b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#31a6df,#15927f); }
.nl-project-row__progress small { color:#607887; font-size:7px; text-align:right; }
.nl-empty-state { display:grid; justify-items:center; padding:24px 16px 14px; text-align:center; }
.nl-empty-state > span { width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:var(--nl-600);background:#e9f7f4; }
.nl-empty-state strong { margin-top:10px;font-size:11px; }.nl-empty-state p{max-width:380px;margin:5px 0 12px;color:#82909a;font-size:8px;line-height:1.5}
.nl-stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:9px; }
.nl-stat-grid article { position:relative; min-height:93px; display:grid; grid-template-columns:31px 1fr; grid-template-rows:auto auto auto; column-gap:8px; padding:10px; border:1px solid #e7edef; border-radius:11px; background:#fbfcfd; }
.nl-stat-grid article > span { grid-row:1 / span 3; width:29px; height:29px; display:grid; place-items:center; border-radius:9px; color:#3975d1; background:#eaf2ff; }
.nl-stat-grid article > span .nl-icon{width:15px;height:15px}.nl-stat-grid article > span.is-green{color:#288e60;background:#e8f8ef}.nl-stat-grid article > span.is-violet{color:#7552cf;background:#f0ebff}.nl-stat-grid article > span.is-gold{color:#ae770f;background:#fff2d2}
.nl-stat-grid article small { color:#71828e;font-size:7px; }.nl-stat-grid article strong{color:#213747;font-size:17px;line-height:1.05}.nl-stat-grid article em{color:#36a36f;font-size:6px;font-style:normal}
.nl-soft-notice { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px 12px; border:1px solid #f0dfb9; border-radius:12px; background:#fffaf0; }
.nl-soft-notice > span { width:32px;height:32px;display:grid;place-items:center;border-radius:10px;color:#b47700;background:#fff0c8}.nl-soft-notice strong{display:block;color:#6e572d;font-size:9px}.nl-soft-notice p{margin:2px 0 0;color:#8a7958;font-size:7px}.nl-soft-notice a{color:#8f6817;font-size:8px;font-weight:800;text-decoration:none}

.nl-studio-panel { padding:14px 12px 9px; }
.nl-studio-list { display:grid; margin-top:8px; }
.nl-studio-list > a { min-height:54px; display:grid; grid-template-columns:33px minmax(0,1fr) auto; gap:9px; align-items:center; padding:7px 5px; border-top:1px solid #eff3f4; color:inherit; text-decoration:none; }
.nl-studio-list > a:first-child { border-top:0; }
.nl-studio-list > a:hover { background:#fbfcfc; }
.nl-studio-list > a > span { width:32px;height:32px;display:grid;place-items:center;border-radius:10px;color:#3474d0;background:#eaf2ff}.nl-studio-list > a > span.is-violet{color:#7552cf;background:#f0ebff}.nl-studio-list > a > span.is-gold{color:#ad7209;background:#fff2cf}.nl-studio-list > a > span.is-green{color:#278c5f;background:#e9f7ef}.nl-studio-list > a > span.is-sky{color:#278fc8;background:#e7f7ff}.nl-studio-list > a > span .nl-icon{width:16px;height:16px}
.nl-studio-list b { display:grid;color:#314555;font-size:8px;font-weight:750}.nl-studio-list b small{margin-top:2px;color:#8b98a1;font-size:7px;font-weight:500}.nl-studio-list em{color:#9ca8af;font-size:15px;font-style:normal}
.nl-wallet-panel { display:grid; grid-template-columns:1fr auto; gap:9px; align-items:end; background:linear-gradient(145deg,#f0faf7,#fff); }.nl-wallet-panel > div{display:grid}.nl-wallet-panel span{color:#80918e;font-size:7px;text-transform:uppercase;letter-spacing:.08em}.nl-wallet-panel strong{margin-top:2px;color:#1e443f;font-size:25px;line-height:1}.nl-wallet-panel small{margin-top:3px;color:#8c9b98;font-size:7px}.nl-wallet-panel a{color:var(--nl-700);font-size:8px;font-weight:800;text-decoration:none}
.nl-backup-panel > p { margin:9px 0 0;color:#80909a;font-size:8px;line-height:1.5}.nl-backup-rows{display:grid;margin-top:7px}.nl-backup-rows > div{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;padding:7px 2px;border-top:1px solid #eff3f4}.nl-backup-rows > div:first-child{border-top:0}.nl-backup-rows span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;color:#278c5f;background:#e9f7ef}.nl-backup-rows .nl-icon{width:14px;height:14px}.nl-backup-rows b{display:grid;color:#405260;font-size:8px}.nl-backup-rows small{margin-top:2px;color:#8d99a2;font-size:6px;font-weight:500}

/* Bring every authenticated page into the same product system. */
body.nalaruna-user-auth .nalaruna-workspace-page,
body.nalaruna-user-auth .nalaruna-review-launch,
body.nalaruna-user-auth .nl-template-library,
body.nalaruna-user-auth .section,
body.nalaruna-user-auth .payment-hero,
body.nalaruna-user-auth .payment-status-page { padding-top:4px; padding-bottom:22px; background:transparent; }
body.nalaruna-user-auth .nalaruna-workspace-shell,
body.nalaruna-user-auth .form-shell,
body.nalaruna-user-auth .passport-shell { max-width:1180px; margin:0 auto; }
body.nalaruna-user-auth .nalaruna-journey-back,
body.nalaruna-user-auth .back-link { display:inline-flex; align-items:center; min-height:30px; margin:0 0 9px; color:#748691; font-size:9px; font-weight:700; text-decoration:none; }
body.nalaruna-user-auth .nalaruna-workspace-heading,
body.nalaruna-user-auth .form-hero__inner,
body.nalaruna-user-auth .nl-template-library__hero,
body.nalaruna-user-auth .payment-hero__inner { overflow:hidden; padding:22px 24px; border:1px solid var(--nl-border); border-radius:18px; background:radial-gradient(circle at 90% 20%,rgba(94,196,184,.18),transparent 25%),radial-gradient(circle at 68% 120%,rgba(61,102,207,.11),transparent 35%),#fff; box-shadow:var(--nl-shadow-xs); }
body.nalaruna-user-auth .nalaruna-workspace-heading h1,
body.nalaruna-user-auth .form-hero h1,
body.nalaruna-user-auth .nl-template-library__hero h1,
body.nalaruna-user-auth .payment-hero h1 { margin:5px 0 7px; color:#142b3e; font-size:clamp(25px,3vw,36px); font-weight:780; line-height:1.08; letter-spacing:-.035em; }
body.nalaruna-user-auth .nalaruna-workspace-heading p,
body.nalaruna-user-auth .form-hero p,
body.nalaruna-user-auth .nl-template-library__hero p,
body.nalaruna-user-auth .payment-hero p { max-width:760px; color:#71828e; font-size:10px; line-height:1.6; }
body.nalaruna-user-auth .nalaruna-workspace-form,
body.nalaruna-user-auth .intake-form,
body.nalaruna-user-auth .nalaruna-workspace-card,
body.nalaruna-user-auth .payment-plan-card,
body.nalaruna-user-auth .payment-topup-card,
body.nalaruna-user-auth .payment-summary-card,
body.nalaruna-user-auth .payment-instruction-card { border:1px solid var(--nl-border); border-radius:16px; background:#fff; box-shadow:var(--nl-shadow-xs); }
body.nalaruna-user-auth .nalaruna-workspace-form fieldset,
body.nalaruna-user-auth .intake-form fieldset { border-color:#e7edef; }
body.nalaruna-user-auth .field input,
body.nalaruna-user-auth .field select,
body.nalaruna-user-auth .field textarea,
body.nalaruna-user-auth input[type="text"],
body.nalaruna-user-auth input[type="email"],
body.nalaruna-user-auth input[type="password"],
body.nalaruna-user-auth input[type="search"],
body.nalaruna-user-auth select,
body.nalaruna-user-auth textarea { border-color:#dce5e8; border-radius:11px; background:#fbfcfd; }
body.nalaruna-user-auth .field input:focus,
body.nalaruna-user-auth .field select:focus,
body.nalaruna-user-auth .field textarea:focus { border-color:#9acbc3; background:#fff; box-shadow:0 0 0 4px rgba(21,135,121,.06); }
body.nalaruna-user-auth .button { min-height:39px; border-radius:10px; font-size:9px; box-shadow:none; }
body.nalaruna-user-auth .button--primary { background:linear-gradient(145deg,#158779,#0d6d62); box-shadow:0 8px 18px rgba(21,135,121,.14); }
body.nalaruna-user-auth .button--ghost { border-color:#dbe4e7; background:#fff; }
body.nalaruna-user-auth .global-notice { border-radius:12px; }

/* Template Library: denser, card-driven catalogue like the dashboard reference. */
body.nalaruna-user-auth .nl-template-library { width:100%; max-width:1320px; margin:0 auto; }
body.nalaruna-user-auth .nl-template-library__hero { grid-template-columns:minmax(0,1fr) auto; }
body.nalaruna-user-auth .nl-template-library__hero h1 { font-size:32px; }
body.nalaruna-user-auth .nl-template-policy { margin:10px 0 18px; }
body.nalaruna-user-auth .nl-template-policy > div { min-height:67px; padding:9px 10px; border-color:#e3e9ec; border-radius:11px; }
body.nalaruna-user-auth .nl-template-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
body.nalaruna-user-auth .nl-template-card { padding:13px; border-color:#e1e8eb; border-radius:13px; box-shadow:var(--nl-shadow-xs); }
body.nalaruna-user-auth .nl-template-card__icon { width:31px;height:31px;border-radius:10px;margin-bottom:11px; }
body.nalaruna-user-auth .nl-template-card__heading h3 { font-size:11px; }
body.nalaruna-user-auth .nl-template-card > p { min-height:44px; font-size:8px; }
body.nalaruna-user-auth .nl-template-card__structure span { font-size:7px; }

/* Review workspace keeps the paper metaphor but adopts the same chrome. */
body.nalaruna-user-auth .nalaruna-review-dialog { inset:var(--nl-topbar) 0 0 var(--nl-sidebar); background:var(--nl-canvas-2); }
body.nalaruna-user-auth .nalaruna-review-app { border:0; border-radius:0; box-shadow:none; }
body.nalaruna-user-auth .nalaruna-review-app__header { min-height:58px; border-color:var(--nl-border); box-shadow:var(--nl-shadow-xs); }
body.nalaruna-user-auth .nalaruna-review-nav { background:#f9fbfb; }
body.nalaruna-user-auth .nalaruna-review-inspector { background:#fff; }
body.nalaruna-user-auth .nalaruna-review-stage { background:#edf2f4; }
body.nalaruna-user-auth .nalaruna-template-paper { border:1px solid #e3e8ea; border-radius:3px; box-shadow:0 14px 38px rgba(25,45,55,.10); }

/* Billing/payment pages */
body.nalaruna-lab-ui .payment-plan-card,
body.nalaruna-lab-ui .payment-topup-card,
body.nalaruna-lab-ui .payment-safety-card,
body.nalaruna-lab-ui .payment-policy-note,
body.nalaruna-lab-ui .wallet-balance-grid > *,
body.nalaruna-lab-ui .payment-summary-card,
body.nalaruna-lab-ui .payment-instruction-card { border-color:var(--nl-border); border-radius:15px; box-shadow:var(--nl-shadow-xs); }
body.nalaruna-lab-ui .payment-plan-card--featured { border-color:#9bd4ca; box-shadow:0 15px 36px rgba(21,135,121,.10); }
body.nalaruna-lab-ui .payment-status { border-radius:999px; }

/* Guest/public NALARUNA gets the same visual vocabulary. */
body.nalaruna-lab-ui:not(.nalaruna-user-auth) { background:#f4f7f8; color:#17283a; font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) main { overflow:clip; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header { min-height:72px; border-bottom-color:#e2e9eb; background:rgba(255,255,255,.94); box-shadow:0 5px 24px rgba(22,45,57,.035); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header__inner { min-height:72px; gap:22px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .brand { gap:10px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .brand__mark--nalaruna { width:44px; height:44px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .brand__copy strong { color:#173044; font-size:13px; font-weight:800; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .brand__copy small { margin-top:2px; color:#75858f; font-size:8px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-nav { gap:3px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-nav a { padding:9px 11px; color:#61717d; font-size:10px; font-weight:650; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-nav a:hover { color:#0a5d54; background:#edf7f4; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header__actions { gap:12px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header__actions .text-link { color:#506471; font-size:10px; font-weight:750; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header__actions .button { border-radius:11px; background:linear-gradient(145deg,#158779,#0d6d62); box-shadow:0 9px 22px rgba(21,135,121,.17); }

body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-landing { padding:clamp(38px,5.8vw,72px) 0 68px; background:radial-gradient(circle at 78% 8%,rgba(139,218,207,.32),transparent 26%),radial-gradient(circle at 96% 62%,rgba(75,111,205,.09),transparent 23%),linear-gradient(150deg,#fbfdfd 0%,#f1f8f7 58%,#f7f9fc 100%); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-landing::before { opacity:.28; background-size:72px 72px; background-image:linear-gradient(rgba(24,104,95,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(24,104,95,.045) 1px,transparent 1px); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro { grid-template-columns:154px minmax(0,760px); gap:32px; margin-bottom:34px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-logo-frame { width:154px; height:137px; border:0; border-radius:0; background:transparent !important; box-shadow:none; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-logo-frame::after { content:none; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-logo-frame::before { right:13%; bottom:0; left:13%; height:15%; opacity:.72; filter:blur(9px); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-logo-frame img { position:relative; z-index:2; width:100%; height:100%; object-fit:contain; opacity:1; filter:drop-shadow(0 8px 7px rgba(6,55,79,.15)) drop-shadow(0 18px 16px rgba(6,55,79,.16)); transform:rotateY(-3deg); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro .eyebrow { color:#13796f; font-size:9px; letter-spacing:.1em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro h1 { margin:10px 0 11px; color:#142b3e; font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif; font-size:clamp(38px,4.8vw,62px); font-weight:820; line-height:1.02; letter-spacing:-.052em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro p { max-width:660px; color:#647681; font-size:14px; line-height:1.65; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-grid { gap:12px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card { position:relative; isolation:isolate; overflow:hidden; min-height:clamp(276px,22vw,350px); display:block; padding:0; border-color:rgba(17,74,76,.18); border-radius:18px; background:#174f52; box-shadow:0 15px 34px rgba(25,55,67,.10); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card::after { content:""; position:absolute; z-index:2; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(6,31,43,.06) 0%,rgba(6,31,43,.10) 35%,rgba(6,31,43,.56) 67%,rgba(5,27,35,.96) 100%); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card:hover { transform:translateY(-3px); border-color:#7fbdb4; box-shadow:0 22px 48px rgba(20,58,63,.17); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card:focus-visible { outline:3px solid rgba(21,135,121,.23); outline-offset:3px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card > span { position:absolute; z-index:4; top:17px; left:17px; width:34px; height:34px; border:1px solid rgba(255,255,255,.42); border-radius:10px; color:#0b5f58; background:rgba(240,253,250,.91); box-shadow:0 7px 18px rgba(6,31,43,.12); font-size:8px; backdrop-filter:blur(8px); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card > b { position:absolute; z-index:4; top:17px; right:17px; width:34px; height:34px; color:#0b5f58; background:rgba(240,253,250,.91); box-shadow:0 7px 18px rgba(6,31,43,.12); backdrop-filter:blur(8px); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art { position:absolute; z-index:1; inset:0; width:100%; height:100%; border:0; border-radius:0; background:#f4f8f9; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art img { top:50%; width:400%; transition:transform .35s ease,filter .35s ease; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--1 { --art-x:0%; --art-y:-31%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--2 { --art-x:-100%; --art-y:-31%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--3 { --art-x:-200%; --art-y:-31%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--4 { --art-x:-300%; --art-y:-31%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--5 { --art-x:0%; --art-y:-63.5%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--6 { --art-x:-100%; --art-y:-63.5%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--7 { --art-x:-200%; --art-y:-63.5%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-art--8 { --art-x:-300%; --art-y:-63.5%; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card:hover .nalaruna-assistant-art img { filter:saturate(1.06) contrast(1.02); transform:translateY(var(--art-y)) scale(1.025); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card > div { position:absolute; z-index:4; right:18px; bottom:18px; left:18px; display:block; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card h2 { color:#fff; font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif; font-size:19px; font-weight:790; line-height:1.12; letter-spacing:-.03em; text-shadow:0 2px 12px rgba(3,23,30,.38); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card p { margin-top:6px; color:rgba(239,250,249,.86); font-size:10px; line-height:1.55; text-shadow:0 1px 8px rgba(3,23,30,.45); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card--primary { border-color:rgba(17,110,101,.44); background:#174f52; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card--primary h2 { color:#fff; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card--primary p { color:rgba(239,250,249,.86); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-note { width:fit-content; max-width:100%; margin:24px auto 0; padding:10px 14px; border:1px solid #dce8e7; border-radius:999px; color:#657780; background:rgba(255,255,255,.72); font-size:10px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-note strong { color:#24554f; }

body.nalaruna-lab-ui:not(.nalaruna-user-auth) .section--tint { background:#f4f7f8; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow { gap:58px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow h2,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment h2 { font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif; font-size:clamp(32px,4vw,50px); font-weight:790; line-height:1.06; letter-spacing:-.045em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow li { min-height:112px; border-color:#e0e8ea; border-radius:15px; box-shadow:0 7px 20px rgba(25,55,67,.035); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow li > span { color:#13796f; background:#e8f5f2; font-family:inherit; font-weight:800; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow strong { color:#233b4c; font-size:12px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow small { color:#74838c; font-size:9px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .section--dark { background:radial-gradient(circle at 82% 18%,rgba(69,172,157,.19),transparent 28%),linear-gradient(145deg,#102b2a,#0b2224); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment { gap:72px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment p { color:#a9c0bc; font-size:12px; line-height:1.7; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment ul { border-color:rgba(255,255,255,.13); border-radius:17px; background:rgba(255,255,255,.045); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment li { padding:19px 21px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment strong { font-size:11px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment span { color:#9db3af; font-size:9px; }

body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-hero { min-height:calc(100vh - 72px); padding:44px 0 82px; background:radial-gradient(circle at 84% 7%,rgba(139,218,207,.30),transparent 25%),linear-gradient(150deg,#fbfdfd,#f1f7f7 62%,#f5f7fb); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-back { min-height:34px; align-items:center; margin-bottom:34px; padding:0 12px; border:1px solid #dce7e7; border-radius:999px; color:#38645f; background:rgba(255,255,255,.76); font-size:9px; text-decoration:none; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-heading .eyebrow { color:#13796f; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-heading h1 { margin:11px 0 12px; color:#142b3e; font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif; font-size:clamp(38px,5vw,62px); font-weight:810; line-height:1.02; letter-spacing:-.05em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-heading p { color:#647681; font-size:13px; line-height:1.7; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid { gap:11px; margin-top:30px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid > a { min-height:142px; padding:18px; border-color:#dee7e9; border-radius:16px; box-shadow:0 10px 28px rgba(25,55,67,.05); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid > a:hover { border-color:#9acbc3; box-shadow:0 17px 35px rgba(25,70,73,.09); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid > a > span,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid > a > b { color:#158779; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid strong,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-flow strong,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-services > strong,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-action strong { color:#1c3547; font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif; font-size:18px; font-weight:760; line-height:1.15; letter-spacing:-.025em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid small { color:#71818b; font-size:10px; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-profile-form,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry { border-color:#dce6e8; border-radius:18px; box-shadow:0 16px 42px rgba(25,55,67,.07); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-flow article { border-color:#dfe7e9; border-radius:15px; box-shadow:0 8px 24px rgba(25,55,67,.04); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-services,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-action { background:linear-gradient(145deg,#0b4f49,#167d73); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-services > strong,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-action strong { color:#fff; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li > span { color:#13796f; background:#e8f5f2; font-family:inherit; font-weight:800; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li strong { color:#253d4e; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-action p { color:#c7e2dd; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-action .button { color:#0b4f49; background:#d9f4ee; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .branch-hero--nalaruna,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-hero { background:radial-gradient(circle at 79% 30%,rgba(146,224,212,.45),transparent 24%),radial-gradient(circle at 89% 63%,rgba(68,113,203,.10),transparent 24%),linear-gradient(135deg,#fbfdfd,#eef8f7); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .branch-hero h1 { color:#112b3e; font-family:Inter,"Segoe UI",sans-serif; font-weight:800; letter-spacing:-.045em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .module-card,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .auth-card { border-color:#e0e7ea; border-radius:18px; box-shadow:0 14px 38px rgba(25,55,67,.07); }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .auth-card__heading h2 { color:#173044; font-family:Inter,"Segoe UI",sans-serif; font-weight:780; letter-spacing:-.035em; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .auth-card { background:rgba(255,255,255,.97); }

body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer { padding-top:60px; color:#61727c; border-top:1px solid #e0e8ea; background:#edf3f4; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer__grid strong { color:#263d4c; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer p,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer__grid a,
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer__grid span { color:#687983; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer__grid a:hover { color:#0a5d54; }
body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-footer__bottom { border-top-color:#d8e1e3; color:#7a8991; }

@media (max-width:1080px) {
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow { grid-template-columns:1fr; gap:30px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment { gap:46px; }
}
@media (max-width:760px) {
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header,
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .site-header__inner { min-height:64px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .brand__mark--nalaruna { width:38px; height:38px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro { grid-template-columns:92px minmax(0,1fr); gap:18px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-logo-frame { width:92px; height:82px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro h1 { font-size:clamp(31px,8vw,43px); }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro p { font-size:12px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-commitment { grid-template-columns:1fr; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-hero { min-height:calc(100vh - 64px); padding:30px 0 58px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-back { margin-bottom:26px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-journey-heading h1 { font-size:clamp(34px,9vw,46px); }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li:nth-child(2) { border-right:0; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li { border-bottom:1px solid #e3ecef; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li:nth-last-child(-n+2) { border-bottom:0; }
}
@media (max-width:520px) {
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .brand__copy small { display:none; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-landing { padding-top:30px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro { grid-template-columns:74px minmax(0,1fr); gap:12px; margin-bottom:25px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-logo-frame { width:74px; height:66px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro h1 { margin-top:7px; font-size:30px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-intro p { grid-column:auto; font-size:11px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-grid { grid-template-columns:1fr; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistant-card { min-height:270px; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-assistance-note { border-radius:14px; line-height:1.55; text-align:left; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-simple-flow ol { grid-template-columns:1fr; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-choice-grid { grid-template-columns:1fr; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-overview-flow,
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry ol { grid-template-columns:1fr; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li { min-height:112px; border-right:0; border-bottom:1px solid #e3ecef !important; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-entry li:last-child { border-bottom:0 !important; }
    body.nalaruna-lab-ui:not(.nalaruna-user-auth) .nalaruna-generator-action { align-items:flex-start; flex-direction:column; }
}

/* responsive */
@media (max-width: 1260px) {
    :root { --nl-sidebar: 222px; }
    .nl-dashboard-grid { grid-template-columns:minmax(0,1fr) 270px; }
    .nl-action-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .nl-action-card { min-height:100px; }
    .nl-dashboard-split { grid-template-columns:1fr; }
    body.nalaruna-user-auth .nl-template-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1040px) {
    .nl-credit-pill small,.nl-user-pill small,.nl-user-pill b { display:none; }
    .nl-credit-pill { grid-template-columns:28px; padding:5px 7px; }
    .nl-user-pill { grid-template-columns:34px; padding:4px; }
    .nl-dashboard-grid { grid-template-columns:1fr; }
    .nl-dashboard-studio { position:static; grid-template-columns:1.3fr .7fr; align-items:start; }
    .nl-backup-panel { grid-column:1 / -1; }
}
@media (max-width: 880px) {
    :root { --nl-sidebar: 248px; --nl-topbar:64px; }
    .nl-global-shell { display:block; }
    .nl-global-sidebar { position:fixed; top:0; bottom:0; left:0; width:var(--nl-sidebar); height:100dvh; transform:translateX(-104%); transition:transform .22s ease; box-shadow:20px 0 50px rgba(16,38,58,.15); }
    .nl-global-shell.is-sidebar-open .nl-global-sidebar { transform:translateX(0); }
    .nl-sidebar-close { display:grid; place-items:center; }
    .nl-sidebar-scrim { position:fixed; inset:0; z-index:105; display:block; visibility:hidden; background:rgba(13,31,43,.30); opacity:0; transition:opacity .2s ease,visibility .2s ease; }
    .nl-global-shell.is-sidebar-open .nl-sidebar-scrim { visibility:visible; opacity:1; }
    .nl-global-topbar { grid-template-columns:auto auto minmax(0,1fr) auto; gap:8px; padding:8px 11px; }
    .nl-sidebar-toggle { width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--nl-border);border-radius:11px;color:#34556c;background:#fff;cursor:pointer; }
    .nl-sidebar-toggle .nl-icon { width:17px;height:17px; }
    .nl-mobile-brand { display:flex;align-items:center;gap:4px;color:#173044;text-decoration:none; }.nl-mobile-brand img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(9,64,59,.13))}.nl-mobile-brand strong{display:none;font-size:11px}
    .nl-command kbd { display:none; }
    .nl-global-content { padding:12px 10px 25px; }
    body.nalaruna-user-auth .nalaruna-review-dialog { inset:var(--nl-topbar) 0 0 0; }
    .nl-hero-card { grid-template-columns:1fr 160px; }
    .nl-hero-card__visual img { width:86px;height:86px; }
    .nl-dashboard-studio { grid-template-columns:1fr 1fr; }
    .nl-studio-panel { grid-column:1 / -1; }
}
@media (max-width: 650px) {
    .nl-global-topbar { grid-template-columns:auto minmax(0,1fr) auto; }
    .nl-mobile-brand { display:none; }
    .nl-topbar-icon { display:none; }
    .nl-command { min-height:39px; }
    .nl-user-pill { display:none; }
    .nl-hero-card { min-height:220px; grid-template-columns:1fr; }
    .nl-hero-card__content { padding:18px 15px 14px; }
    .nl-hero-card__content h1 { font-size:20px; }
    .nl-hero-card__visual { position:absolute; top:12px; right:11px; opacity:.24; }
    .nl-hero-card__visual img { width:78px;height:78px; }
    .nl-hero-card__content { position:relative; z-index:3; }
    .nl-hero-command { padding-left:13px; }
    .nl-hero-shortcuts { max-width:92%; }
    .nl-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nl-dashboard-split { display:block; }.nl-dashboard-split > * + *{margin-top:12px}
    .nl-dashboard-studio { display:block; }.nl-dashboard-studio > * + *{margin-top:12px}
    .nl-project-row { grid-template-columns:32px minmax(0,1fr); }.nl-project-row__progress{grid-column:2}
    .nl-stat-grid { grid-template-columns:1fr 1fr; }
    .nl-soft-notice { grid-template-columns:32px minmax(0,1fr); }.nl-soft-notice a{grid-column:2}
    body.nalaruna-user-auth .nl-template-library__hero { grid-template-columns:1fr; padding:17px; }
    body.nalaruna-user-auth .nl-template-library__hero h1 { font-size:26px; }
    body.nalaruna-user-auth .nl-template-grid { grid-template-columns:1fr; }
    .nl-template-tools { position:static; }
}
@media (max-width: 420px) {
    .nl-credit-pill { display:none; }
    .nl-global-topbar { grid-template-columns:auto minmax(0,1fr); }
    .nl-action-grid { grid-template-columns:1fr 1fr; gap:7px; }
    .nl-action-card { min-height:104px; }
    .nl-stat-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .nl-global-sidebar,.nl-sidebar-scrim,.nl-action-card,.nl-global-nav__item { transition:none !important; }
}
body.nl-sidebar-lock { overflow: hidden; }
