@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

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

:root {
    --navy:         #0f2044;
    --navy2:        #0a1628;
    --blue:         #1a56db;
    --blue2:        #3b82f6;
    --blue-light:   #e8f0fe;
    --green:        #0a7c4c;
    --green-light:  #e6f4ee;
    --amber:        #b45309;
    --amber-light:  #fef3c7;
    --red:          #b91c1c;
    --red-light:    #fee2e2;
    --viber:        #7360f2;
    --viber-light:  #f0eeff;
    --gray-50:      #f8fafc;
    --gray-100:     #f1f5f9;
    --gray-200:     #e2e8f0;
    --gray-400:     #94a3b8;
    --gray-600:     #475569;
    --gray-800:     #1e293b;
    --white:        #ffffff;
    --topbar-h:     52px;
    --sidebar-w:    220px;
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.1);
}

/* ── RESET & BASE ── */
html, body { height: 100%; }
body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
}
a { color: inherit; text-decoration: none; }

/* ── LOGIN PAGE ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy2);
}
.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px 40px 36px;
    width: 360px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.login-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    color: white;
    background: var(--navy);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.login-sub {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 28px;
}
.login-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}
.login-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}
.login-input:focus { border-color: var(--blue); }
.login-btn {
    width: 100%;
    padding: 11px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.login-btn:hover { opacity: 0.88; }
.login-error {
    background: var(--red-light);
    color: var(--red);
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

/* ── LAYOUT ── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 24px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.topbar-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
    background: var(--blue);
    padding: 4px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}
.topbar-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.topbar-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}
.topbar-nav a:hover { background: rgba(255,255,255,0.08); color: white; }
.topbar-nav a.active { background: rgba(255,255,255,0.12); color: white; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    user-select: none;
}
.dropdown-toggle:hover, .dropdown.open .dropdown-toggle {
    background: rgba(255,255,255,0.08);
    color: white;
}
.dropdown-toggle .arrow {
    font-size: 9px;
    transition: transform 0.2s;
    opacity: 0.6;
}
.dropdown.open .arrow { transform: rotate(180deg); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: white; }
.dropdown-menu a.active { background: rgba(26,86,219,0.3); color: white; }
.dropdown-menu .menu-badge {
    font-size: 9px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-user { font-size: 13px; color: rgba(255,255,255,0.6); }
.topbar-logout {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}
.topbar-logout:hover { background: rgba(255,255,255,0.08); color: white; }

/* ── SIDEBAR ── */
.sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: white;
    border-right: 1.5px solid var(--gray-200);
    padding: 20px 12px;
    overflow-y: auto;
    z-index: 90;
}
.sidebar-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 0 8px;
    margin-bottom: 6px;
}
.sidebar-nav { list-style: none; margin-bottom: 20px; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.15s;
    line-height: 1.3;
}
.sidebar-nav li a:hover { background: var(--gray-100); color: var(--gray-800); }
.sidebar-nav li a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.sidebar-nav li a .nav-icon { font-size: 14px; flex-shrink: 0; }

/* ── MAIN CONTENT ── */
.main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    padding: 36px 44px;
    min-height: calc(100vh - var(--topbar-h));
}

/* ── SECTION WRAPPER ── */
.sop-section {
    background: white;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    margin-bottom: 32px;
    overflow: hidden;
    scroll-margin-top: calc(var(--topbar-h) + 20px);
}
.sop-section-header {
    background: var(--navy);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sop-section-icon { font-size: 18px; }
.sop-section-title { font-size: 15px; font-weight: 700; color: white; }
.sop-section-sub { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 2px; }
.sop-section-body { padding: 24px; }

/* ── SHARED COMPONENTS ── */
.section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 10px;
    margin-top: 20px;
}
.section-label:first-child { margin-top: 0; }

/* Priority cards */
.priority-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 4px; }
.priority-card { border-radius: 6px; padding: 12px 14px; border-left: 4px solid; }
.priority-card.high { background: var(--red-light); border-color: var(--red); }
.priority-card.medium { background: var(--amber-light); border-color: var(--amber); }
.priority-card.low { background: var(--green-light); border-color: var(--green); }
.priority-label { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.priority-card.high .priority-label { color: var(--red); }
.priority-card.medium .priority-label { color: var(--amber); }
.priority-card.low .priority-label { color: var(--green); }
.priority-desc { font-size: 14px; color: var(--gray-800); line-height: 1.7; }

/* Package table */
.pkg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pkg-table thead tr { background: var(--navy); color: white; }
.pkg-table th { padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12.5px; }
.pkg-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; line-height: 1.6; }
.pkg-table tbody tr:nth-child(even) { background: var(--gray-50); }
.pkg-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.price-onetime { font-weight: 700; color: var(--navy); }
.price-monthly { color: var(--blue); font-weight: 600; font-size: 12.5px; margin-top: 2px; }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.product-card { border: 1.5px solid var(--gray-200); border-radius: 6px; padding: 12px 14px; background: var(--gray-50); }
.product-card.highlight { background: var(--blue-light); border-color: #93c5fd; }
.product-name { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 5px; }
.product-price { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 15px; color: var(--blue); }
.product-price-sm { font-size: 13px; }
.product-billing { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* Call guide */
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.call-grid-tight { margin-bottom: 4px; }
.call-card { border-radius: 6px; padding: 14px 16px; border: 1.5px solid; }
.call-card.call1 { background: #f0f7ff; border-color: #93c5fd; }
.call-card.call2 { background: #f0fdf4; border-color: #86efac; }
.call-card-muted { border-color: var(--gray-200) !important; background: var(--gray-50) !important; }
.call-num { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.call-card.call1 .call-num { color: var(--blue); }
.call-card.call2 .call-num { color: var(--green); }
.call-num-muted { color: var(--gray-400) !important; }
.call-goal { font-weight: 600; font-size: 14px; color: var(--gray-800); margin-bottom: 8px; }
.call-goal-muted { color: var(--gray-600) !important; }
.call-steps { list-style: none; }
.call-steps li { font-size: 13.5px; color: var(--gray-800); padding: 3px 0 3px 16px; position: relative; line-height: 1.6; }
.call-steps li::before { content: '→'; position: absolute; left: 0; color: var(--gray-400); font-size: 11px; top: 4px; }

/* Objection table */
.obj-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.obj-table th { background: var(--gray-100); padding: 8px 14px; text-align: left; font-weight: 600; font-size: 11.5px; color: var(--gray-600); letter-spacing: 0.5px; text-transform: uppercase; border-bottom: 2px solid var(--gray-200); }
.obj-table td { padding: 8px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; line-height: 1.6; }
.obj-table tr:last-child td { border-bottom: none; }
.obj-table td:first-child { color: var(--gray-600); font-style: italic; width: 35%; }
.obj-table td:last-child { color: var(--navy); font-weight: 500; }

/* Script blocks */
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tone-block { border-radius: 8px; overflow: hidden; border: 1.5px solid; }
.tone-block.formal { border-color: #93c5fd; }
.tone-block.casual { border-color: #a7f3d0; }
.tone-header { padding: 10px 14px; font-size: 13px; font-weight: 700; }
.tone-block.formal .tone-header { background: var(--blue); color: white; }
.tone-block.casual .tone-header { background: var(--green); color: white; }
.tone-sub { font-size: 11px; font-weight: 400; opacity: 0.8; margin-left: 6px; }
.tone-body { padding: 14px; background: white; }
.script-step { margin-bottom: 12px; }
.script-step-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.tone-block.formal .script-step-label { color: var(--blue); }
.tone-block.casual .script-step-label { color: var(--green); }
.script-line { background: var(--gray-50); border-left: 3px solid; border-radius: 0 4px 4px 0; padding: 9px 12px; font-size: 13.5px; color: var(--gray-800); line-height: 1.8; }
.tone-block.formal .script-line { border-color: #93c5fd; }
.tone-block.casual .script-line { border-color: #a7f3d0; }
.script-note { font-size: 11.5px; color: var(--gray-400); margin-top: 3px; font-style: italic; }

/* Branch/gatekeeper boxes */
.branch-box, .gatekeeper-box, .close-box { border: 1.5px solid var(--gray-200); border-radius: 8px; overflow: hidden; margin-top: 16px; }
.box-header { padding: 9px 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: white; }
.branch-box .box-header { background: var(--navy); }
.gatekeeper-box .box-header { background: var(--amber); }
.close-box { background: var(--green-light); border-color: #86efac; }
.close-box .box-header { background: var(--green); }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; }
.branch-col { padding: 14px 16px; }
.branch-col:first-child { border-right: 1.5px solid var(--gray-200); }
.branch-col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; color: var(--blue); }
.branch-col:last-child .branch-col-label { color: var(--viber); }
.branch-line { font-size: 13.5px; color: var(--gray-800); line-height: 1.7; background: var(--gray-50); border-radius: 4px; padding: 9px 12px; margin-bottom: 6px; border-left: 3px solid #93c5fd; }
.branch-col:last-child .branch-line { border-color: #c4b5fd; }
.gatekeeper-body { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gk-label { font-size: 11px; font-weight: 700; color: var(--amber); margin-bottom: 5px; }
.gk-line { font-size: 13.5px; color: var(--gray-800); line-height: 1.7; background: var(--amber-light); border-radius: 4px; padding: 9px 12px; border-left: 3px solid #f59e0b; }
.close-body { padding: 14px 16px; }
.close-line { font-size: 13.5px; color: var(--gray-800); line-height: 1.7; background: white; border-radius: 4px; padding: 9px 12px; border-left: 3px solid #86efac; margin-bottom: 6px; }

/* Reminder strip */
.reminder-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 16px; }
.reminder-card { background: var(--navy); color: white; border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.5; text-align: center; }
.reminder-card strong { display: block; font-size: 13px; margin-bottom: 3px; }

/* Pitch deck */
.deck-nav-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.deck-btn { background: var(--gray-100); color: var(--gray-600); border: 1.5px solid var(--gray-200); border-radius: 6px; padding: 7px 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; cursor: pointer; transition: all 0.15s; }
.deck-btn:hover { background: var(--gray-200); }
.deck-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.deck-counter { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--gray-400); margin-left: auto; }
.slide-wrap { display: none; }
.slide-wrap.active { display: block; }
.slide { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.deck-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.deck-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-200); cursor: pointer; transition: all 0.2s; }
.deck-dot.active { background: var(--navy); width: 20px; border-radius: 4px; }

/* Viber templates */
.viber-template-block { border: 1.5px solid var(--gray-200); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.viber-template-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.call1-header { background: var(--blue); }
.call2-header { background: var(--navy); }
.vt-title { font-size: 14px; font-weight: 700; color: white; }
.vt-sub { font-size: 11.5px; color: rgba(255,255,255,0.68); margin-top: 2px; }
.vt-timing { font-size: 11.5px; color: rgba(255,255,255,0.68); background: rgba(255,255,255,0.1); padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.viber-template-body { padding: 16px; background: white; }
.vt-instruction { background: var(--gray-50); border-left: 3px solid var(--gray-200); border-radius: 0 4px 4px 0; padding: 8px 12px; font-size: 12px; color: var(--gray-600); margin-bottom: 14px; font-style: italic; line-height: 1.6; }
.vt-variant-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--gray-600); margin: 14px 0 8px; }
.viber-sim { background: #f0f0f0; border-radius: 10px; padding: 14px 16px; }
.viber-sim-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--viber); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.viber-dot-sm { width: 7px; height: 7px; border-radius: 50%; background: var(--viber); }
.bubble { background: white; border-radius: 4px 12px 12px 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); font-size: 12px; color: var(--gray-800); line-height: 1.9; white-space: pre-wrap; word-break: break-word; position: relative; }
.bubble::before { content: ''; position: absolute; top: 0; left: -7px; border-width: 0 8px 8px 0; border-style: solid; border-color: transparent white transparent transparent; }
.ph { background: var(--amber-light); border-radius: 3px; padding: 0 3px; color: #92400e; font-weight: 600; }
.copy-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.copy-btn { background: var(--viber); color: white; border: none; border-radius: 6px; padding: 7px 16px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.copy-btn:hover { opacity: 0.85; }
.copy-btn.copied { background: var(--green); }

/* Notes grid */
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.note-card { background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: 6px; padding: 10px 14px; }
.note-card-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.note-card-text { font-size: 13.5px; color: var(--gray-800); line-height: 1.65; }

/* Placeholder page */
.placeholder-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; color: var(--gray-400); }
.placeholder-page h2 { font-size: 22px; color: var(--gray-600); margin-bottom: 8px; }
.placeholder-page p { font-size: 13px; line-height: 1.7; max-width: 360px; }

/* Pitch deck slides (inline) */
.sl { width: 100%; height: 100%; }
.sl-navy { background: var(--navy2); }
.sl-light { background: #f8fafc; }
.sl-white { background: white; }

/* Included section */
.included-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.included-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 7px 12px; border-radius: 5px; margin-bottom: 10px; }
.included-col.domain .included-col-title { background: var(--green-light); color: var(--green); }
.included-col.email .included-col-title { background: var(--blue-light); color: var(--blue); }
.included-col.website .included-col-title { background: var(--amber-light); color: var(--amber); }
.included-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--gray-100); }
.included-item:last-child { border-bottom: none; }
.included-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.included-col.domain .included-dot { background: var(--green); }
.included-col.email .included-dot { background: var(--blue); }
.included-col.website .included-dot { background: #f59e0b; }
.included-text { font-size: 13px; color: var(--gray-800); line-height: 1.6; }
.included-sub { font-size: 11px; color: var(--gray-400); margin-top: 1px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px; text-align: center; }
.stat-val { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; color: #f59e0b; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.trust-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 14px; display: flex; align-items: flex-start; gap: 10px; }
.trust-icon { font-size: 18px; flex-shrink: 0; }
.trust-title { font-size: 13px; font-weight: 700; color: white; margin-bottom: 3px; }
.trust-desc { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* Contact card */
.contact-card { background: var(--navy); border-radius: 10px; padding: 24px; text-align: center; border-top: 3px solid var(--blue); }
.contact-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: white; }
.contact-name { font-size: 17px; font-weight: 700; color: white; margin-bottom: 3px; }
.contact-role { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-detail { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.contact-detail-text { font-size: 13px; color: rgba(255,255,255,0.8); }
.contact-viber-note { margin-top: 14px; background: rgba(255,255,255,0.06); border-radius: 6px; padding: 7px 14px; font-size: 11.5px; color: rgba(255,255,255,0.55); }
.contact-viber-note strong { color: #f59e0b; }

/* Steps list */
.steps-list { list-style: none; }
.step-item { display: flex; gap: 14px; margin-bottom: 16px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; margin-top: 4px; }
.step-desc { font-size: 13px; color: var(--gray-600); line-height: 1.7; }

/* Utility */
.mmk { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.w-13 { width: 13%; }
.w-22 { width: 22%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.delivery-bar { background: var(--gray-100); border-radius: 6px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; }
.delivery-bar strong { color: var(--navy); }
.delivery-bar .right { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--blue); }

/* ── SOP CONTENT (shared by web-dev & delivery) ── */
.sop-content { font-size: 1rem; line-height: 1.7; color: var(--gray-800); }
.sop-content h1 { font-size: 1.7rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.35rem; }
.sop-content .subtitle { font-size: 1rem; color: var(--gray-400); margin-bottom: 0.75rem; }
.version-info { font-size: 0.9rem; color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; padding: 0.6rem 1rem; display: inline-flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.version-info strong { color: var(--gray-800); }
.version-tag { display: inline-block; background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue); border-radius: 20px; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.75rem; }
.version-tag.green { background: var(--green-light); color: var(--green); border-color: var(--green); }
.sop-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.35rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gray-200); }
.sop-content h3 { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); margin: 1.5rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.4px; }
.sop-content p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.sop-content code { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 0.15rem 0.4rem; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--gray-800); }
.sop-content pre { background: var(--navy2); border-radius: 6px; padding: 1rem 1.25rem; overflow-x: auto; margin: 0.75rem 0 1.25rem; }
.sop-content pre code { background: none; border: none; padding: 0; color: #e2e8f0; font-size: 0.8rem; line-height: 1.7; }
.checklist { background: var(--gray-50); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.checklist-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; color: var(--gray-800); }
.checklist-item:last-child { border-bottom: none; }
.checklist-item::before { content: "☐"; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.version-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.version-table thead tr { background: var(--gray-50); }
.version-table th, .version-table td { padding: 0.55rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.sop-footer { text-align: center; padding: 1.5rem 0; border-top: 1px solid var(--gray-200); margin-top: 2rem; color: var(--gray-400); font-size: 0.86rem; }
.sidebar .sidebar-label { margin-top: 14px; }
.sidebar .sidebar-label:first-child { margin-top: 0; }
.sidebar .sidebar-nav { margin-bottom: 4px; }

/* ── WEB-DEV SOP COMPONENTS ── */
.subsection-tabs { display: flex; gap: 0.5rem; margin: 1.25rem 0 0; border-bottom: 2px solid var(--gray-200); }
.subsection-tab { padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--gray-400); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s ease; user-select: none; }
.subsection-tab:hover { color: var(--blue); }
.subsection-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.subsection-panel { display: none; padding-top: 1.25rem; }
.subsection-panel.active { display: block; }
.sop-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 0.75rem 0 1.25rem; background: white; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.sop-table thead th { background: var(--gray-50); padding: 0.6rem 0.9rem; font-weight: 600; color: var(--gray-800); border-bottom: 2px solid var(--gray-200); text-align: left; }
.sop-table tbody td { padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); vertical-align: top; }
.sop-table tbody tr:last-child td { border-bottom: none; }
.sop-table tbody tr:hover { background: var(--gray-50); }
.callout { border-radius: 6px; padding: 1rem 1.1rem; margin: 1rem 0; }
.callout-title { font-weight: 700; margin-bottom: 0.35rem; font-size: 0.875rem; }
.callout p { margin: 0; font-size: 0.875rem; }
.callout-warning { background: var(--amber-light); border: 1px solid var(--amber); }
.callout-warning .callout-title { color: var(--amber); }
.callout-info { background: var(--blue-light); border: 1px solid var(--blue); }
.callout-info .callout-title { color: var(--blue); }
.callout-success { background: var(--green-light); border: 1px solid var(--green); }
.callout-success .callout-title { color: var(--green); }
.callout-danger { background: var(--red-light); border: 1px solid var(--red); }
.callout-danger .callout-title { color: var(--red); }
.content-list { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-list li { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 0.4rem; padding-left: 0.25rem; }
.content-list li strong { color: var(--gray-800); }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0.75rem 0 1.25rem; }
.rule-card { background: var(--gray-50); border-radius: 6px; padding: 1rem; border-left: 3px solid var(--blue); }
.rule-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.35rem; }
.rule-card p { font-size: 0.825rem; color: var(--gray-600); margin: 0; }
.rule-card.danger { border-left-color: var(--red); }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.badge-danger { background: var(--red-light); color: var(--red); border: 1px solid var(--red); }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.75rem 0 1.25rem; }
.do-box, .dont-box { border-radius: 6px; padding: 1rem; }
.do-box { background: var(--green-light); border: 1px solid var(--green); }
.dont-box { background: var(--red-light); border: 1px solid var(--red); }
.do-box h4, .dont-box h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.6rem; }
.do-box h4 { color: var(--green); }
.dont-box h4 { color: var(--red); }
.do-box ul, .dont-box ul { list-style: none; padding: 0; }
.do-box li, .dont-box li { font-size: 0.825rem; color: var(--gray-800); margin-bottom: 0.35rem; padding-left: 1.1rem; position: relative; }
.do-box li::before { content: "\2713"; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.dont-box li::before { content: "\2717"; color: var(--red); position: absolute; left: 0; font-weight: 700; }
.flow-steps { display: flex; flex-direction: column; gap: 0; margin: 0.75rem 0 1.25rem; }
.flow-step { display: flex; align-items: flex-start; gap: 1rem; }
.flow-step-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.flow-step-num { width: 28px; height: 28px; background: var(--blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.flow-step-connector { width: 2px; flex: 1; min-height: 20px; background: var(--gray-200); margin: 2px 0; }
.flow-step:last-child .flow-step-connector { display: none; }
.flow-step-body { background: white; border: 1px solid var(--gray-200); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 0.5rem; flex: 1; }
.flow-step-body strong { font-size: 0.875rem; color: var(--gray-800); display: block; margin-bottom: 0.2rem; }
.flow-step-body p { font-size: 0.825rem; color: var(--gray-600); margin: 0; }
.readme-block { background: var(--navy2); border-radius: 6px; padding: 1.25rem 1.5rem; margin: 0.75rem 0 1.25rem; overflow-x: auto; }
.readme-block pre { background: none; padding: 0; margin: 0; }
.readme-block code { background: none; border: none; padding: 0; color: #e2e8f0; font-size: 0.8rem; line-height: 1.8; }

/* ── PROJECT DELIVERY SOP COMPONENTS ── */
.sop-content .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.sop-content .stat-card { background: var(--white); padding: 1rem; border-radius: 8px; border: 1px solid var(--gray-200); text-align: center; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--blue); display: block; }
.sop-content .stat-label { font-size: 0.82rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; }
.role-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1rem; background: var(--white); padding: 0.65rem 1rem; border-radius: 8px; border: 1px solid var(--gray-200); }
.role-filter-label { font-size: 0.9rem; font-weight: 600; color: var(--gray-600); }
.role-filter-btn { padding: 0.35rem 0.75rem; border-radius: 20px; border: 1px solid var(--gray-200); background: var(--gray-50); font-size: 0.9rem; font-weight: 500; color: var(--gray-800); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.role-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.role-filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.role-legend { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.role-legend h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.65rem; color: var(--gray-800); }
.legend-items { display: flex; flex-wrap: wrap; gap: 1rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; }
.role-badge { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.role-responsible { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue); }
.role-consulted { background: var(--green-light); color: var(--green); border: 1px solid var(--green); }
.role-informed { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber); }
.phase-timeline { position: relative; margin: 1.25rem 0; }
details.phase-item { position: relative; margin-bottom: 1rem; }
details.phase-item.role-hidden { display: none; }
summary.phase-content { background: var(--white); padding: 1.1rem 1.4rem; border-radius: 8px; border: 1px solid var(--gray-200); cursor: pointer; list-style: none; box-shadow: var(--shadow-sm); transition: all 0.2s ease; }
summary.phase-content::-webkit-details-marker { display: none; }
summary.phase-content:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
details[open] > summary.phase-content { border-color: var(--blue); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phase-header { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.phase-number { width: 30px; height: 30px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; color: white; flex-shrink: 0; }
.phase-title { font-size: 1.15rem; font-weight: 600; color: var(--gray-800); }
.phase-description { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 0.5rem; }
.phase-roles { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.phase-toggle { display: flex; align-items: center; gap: 0.35rem; color: var(--blue); font-size: 0.9rem; font-weight: 500; margin-top: 0.35rem; }
.phase-toggle .arrow { transition: transform 0.2s ease; }
details[open] .phase-toggle .arrow { transform: rotate(180deg); }
.phase-details { background: var(--white); border: 1px solid var(--blue); border-top: none; border-radius: 0 0 8px 8px; padding: 1.25rem 1.4rem; }
.detail-section { margin-bottom: 1.1rem; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section h4 { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.55rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--gray-200); text-transform: uppercase; letter-spacing: 0.5px; }
.key-activities { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 0.65rem; margin-bottom: 0.65rem; }
.activity-card { background: var(--gray-50); padding: 0.8rem; border-radius: 6px; border-left: 3px solid var(--blue); }
.activity-card strong { color: var(--blue); display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.activity-card p { color: var(--gray-600); font-size: 0.92rem; margin: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.doc-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; background: var(--blue-light); color: var(--blue); text-decoration: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.doc-link:hover { background: var(--blue); color: white; }
.doc-link::before { content: "📄"; }
.health-check { background: var(--green-light); border: 1px solid var(--green); border-radius: 6px; padding: 0.8rem; margin-top: 0.65rem; }
.health-check h5 { color: var(--green); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.35rem; }
.health-check h5::before { content: "✓"; }
.health-check p { color: var(--gray-800); font-size: 0.92rem; margin: 0; }
.flowchart-section, .cr-section, .escalation-section, .workload-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 1.4rem; margin: 1.25rem 0; }
.flowchart-section h2, .cr-section h2, .escalation-section h2, .workload-section h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.65rem; color: var(--gray-800); }
.escalation-section > p, .workload-section > p { color: var(--gray-600); margin-bottom: 1rem; font-size: 0.95rem; }
.trigger-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 0.65rem; }
.trigger-card { background: var(--gray-50); border-radius: 6px; padding: 0.8rem; border-left: 3px solid var(--red); }
.trigger-card h4 { color: var(--red); font-size: 0.95rem; margin-bottom: 0.35rem; }
.trigger-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0.35rem; }
.trigger-card .action { color: var(--gray-800); font-size: 0.9rem; font-weight: 500; }
.cr-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 0.65rem; margin-bottom: 1rem; }
.cr-rule { background: var(--gray-50); padding: 0.8rem; border-radius: 6px; }
.cr-rule h4 { font-size: 0.95rem; color: var(--gray-800); margin-bottom: 0.35rem; }
.cr-rule p { font-size: 0.9rem; color: var(--gray-600); margin: 0 0 0.25rem; }
.cr-rule .highlight { color: var(--blue); font-weight: 600; }
.workload-example { background: var(--gray-50); border-radius: 6px; padding: 0.8rem; font-size: 0.9rem; margin-bottom: 0.65rem; }
.workload-example .message { background: white; padding: 0.6rem; border-radius: 4px; border: 1px solid var(--gray-200); overflow-x: auto; }
.red-flags-section { background: var(--red-light); border: 2px solid var(--red); border-radius: 8px; padding: 1.4rem; margin: 1.25rem 0; }
.red-flags-section h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--red); display: flex; align-items: center; gap: 0.4rem; }
.red-flags-section h2::before { content: "⚠️"; }
.red-flags-section > p { color: var(--gray-600); margin-bottom: 1rem; font-size: 0.95rem; }
.flags-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 0.65rem; }
.flag-card { background: white; padding: 0.8rem; border-radius: 6px; border: 1px solid var(--red); }
.flag-card h4 { color: var(--red); font-size: 0.95rem; margin-bottom: 0.35rem; }
.flag-card p { color: var(--gray-600); font-size: 0.9rem; margin: 0; }
.header-block { margin-bottom: 1.5rem; }
.legend-items-abbr { flex-wrap: wrap; gap: 0.75rem 2rem; }
.doc-owner { opacity: 0.7; font-weight: 400; }
.muted-note { font-size: 0.86rem; color: var(--gray-600); margin-top: 0.4rem; }
.muted-note-spacious { margin-top: 0.65rem; }
.muted-note-plain { margin-top: 0; }
.section-intro { color: var(--gray-600); margin-bottom: 1rem; font-size: 0.9rem; }
.flowchart-wrap { max-width: 560px; margin: 0 auto; }
.flowchart-svg { width: 100%; height: auto; }
.info-box { background: var(--gray-50); padding: 0.9rem; border-radius: 6px; margin-top: 0.9rem; }
.info-box strong { color: var(--gray-800); }
.info-box p { font-size: 0.9rem; color: var(--gray-600); margin-top: 0.35rem; }
.info-box-compact { margin-top: 1rem; }
.warning-box { background: var(--amber-light); border: 1px solid var(--amber); padding: 0.9rem; border-radius: 6px; margin-top: 1rem; }
.warning-box strong { color: var(--amber); }
.warning-box p { font-size: 0.9rem; color: var(--gray-800); margin-top: 0.35rem; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 0.65rem; }
.auto-grid-spaced { margin-top: 1rem; }
.doc-card { background: var(--gray-50); padding: 0.9rem; border-radius: 6px; }
.doc-card strong { color: var(--gray-800); }
.doc-links-spaced { margin-top: 0.55rem; }
.doc-note { font-size: 0.82rem; color: var(--gray-600); margin-top: 0.35rem; }
.workload-sheet { margin-top: 1.1rem; }
.table-wrap { overflow-x: auto; }
.matrix-table { width: 100%; font-size: 0.86rem; border-collapse: collapse; min-width: 460px; }
.matrix-table th,
.matrix-table td { padding: 0.4rem; text-align: left; border: 1px solid var(--gray-200); }
.matrix-table th { background: var(--gray-50); }
.status-medium { color: var(--green); font-weight: 600; }
.status-heavy { color: var(--red); font-weight: 600; }
.status-low { color: var(--blue); font-weight: 600; }
.brand-note { background: var(--blue-light); border: 1px solid var(--blue); padding: 0.9rem; border-radius: 6px; margin-top: 1rem; }
.brand-note strong { color: var(--blue); }
.brand-note p { font-size: 0.9rem; color: var(--gray-800); margin-top: 0.35rem; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.sidebar-link:focus-visible,
.topbar-logout:focus-visible,
.dropdown-toggle:focus-visible,
.role-filter-btn:focus-visible,
.deck-btn:focus-visible,
.copy-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (max-width: 1120px) {
    :root {
        --sidebar-w: 200px;
    }

    .main {
        padding: 28px;
    }

    .priority-grid,
    .products-grid,
    .included-grid,
    .stat-grid,
    .reminder-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }

    .call-grid,
    .tone-grid,
    .branch-grid,
    .gatekeeper-body,
    .notes-grid,
    .trust-grid,
    .do-dont {
        grid-template-columns: 1fr;
    }

    .pkg-table,
    .obj-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media print {
    .subsection-panel { display: block !important; }
    details { display: block !important; }
    .phase-toggle { display: none; }
    .role-filter { display: none !important; }
}
