:root {
    --brand: #3157d5;
    --accent: #13a995;
    --ink: #132039;
    --ink-soft: #5f6b7e;
    --navy: #0d1830;
    --line: #e4e9f1;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --danger: #dc3c50;
    --shadow: 0 18px 45px rgba(32, 55, 101, .10);
    --radius: 20px;
    --font-body: "Manrope", "Helvetica Neue", sans-serif;
    --font-display: "Sora", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font-body); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.icon { display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.035em; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.58); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: #1cba87; box-shadow: 0 0 0 4px rgba(28,186,135,.12); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; padding: 0 18px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 22%, transparent), inset 0 1px rgba(255,255,255,.24); }
.button-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 5px 14px rgba(32,55,101,.05); }
.button-danger { color: #fff; background: var(--danger); }
.button-danger-text { color: var(--danger); background: transparent; margin-top: 6px; }
.button-danger-text:hover { background: rgba(220,60,80,.06); }
.button-block { width: 100%; }
.button-small { min-height: 38px; padding: 0 14px; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: var(--canvas); }
.icon-button.bordered { border: 1px solid var(--line); background: #fff; }
.brand-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--brand); border-radius: 11px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark-light { color: var(--navy); background: #fff; }
.brand-mark-large { width: 64px; height: 64px; border-radius: 17px; font-size: 18px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; object-fit: cover; flex: 0 0 auto; border-radius: 50%; font-weight: 700; }
.avatar-sm { width: 34px; height: 34px; font-size: 11px; color: var(--brand); background: #edf1ff; }
.avatar-lg { width: 44px; height: 44px; font-size: 12px; }
.avatar-color { color: #2457b8; background: #e7efff; }

/* Auth */
.auth-body { min-height: 100vh; background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); }
.auth-story { position: relative; min-height: 720px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 44px 7vw 38px; color: #fff; background: var(--navy); }
.auth-story::before { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: 40px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.auth-story::after { content: ""; position: absolute; top: 0; right: 12%; width: 1px; height: 100%; background: rgba(255,255,255,.07); }
.auth-wordmark { position: relative; z-index: 1; width: fit-content; display: flex; align-items: center; }
.auth-wordmark img { width: 132px; height: auto; }
.auth-story-copy { position: relative; z-index: 1; max-width: 620px; margin: auto 0 28px; padding-top: 70px; }
.auth-story-copy h1 { margin-bottom: 25px; color: #fff; font-size: clamp(42px, 5vw, 72px); line-height: 1.04; }
.auth-story-copy h1 em { position: relative; color: #8fa9ff; font-style: normal; }
.auth-story-copy p { max-width: 520px; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.8; }
.auth-copyright { position: relative; z-index: 1; margin: 36px 0 0; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 56px; background: #fff; }
.auth-form-wrap { width: min(410px, 100%); }
.auth-form-wrap h2 { margin-bottom: 12px; font-size: 32px; }
.auth-form-wrap > p { margin-bottom: 34px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.stack-form { display: flex; flex-direction: column; gap: 20px; }
.inline-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f4ced3; border-radius: 11px; color: #a3293c; background: #fff4f5; font-size: 12px; }
.inline-alert.success { color: #0b7c62; border-color: #bde7dc; background: #edfbf7; }
.auth-help { margin: 28px 0 0 !important; text-align: center; font-size: 13px !important; }
.auth-help a { color: var(--brand); font-weight: 700; }

/* Admin chrome */
.admin-body { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 262px; display: flex; flex-direction: column; padding: 24px 18px 18px; color: #fff; background: var(--navy); }
.sidebar-brand { display: flex; align-items: center; min-height: 50px; padding: 0 6px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 42px; height: 42px; object-fit: contain; padding: 6px; border: 1px solid rgba(255,255,255,.28); border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.brand-lockup > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brand-lockup strong { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 12px; }
.brand-lockup small { color: rgba(255,255,255,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.sidebar-close { display: none; margin-left: auto; color: #fff; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 26px; }
.nav-label { margin: 0 12px 8px; color: rgba(255,255,255,.38); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav a { position: relative; min-height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-radius: 11px; color: rgba(255,255,255,.62); font-size: 14px; font-weight: 600; transition: background .18s, color .18s; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.10); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.sidebar-nav a.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar-bottom { margin-top: auto; }
.site-shortcut { min-height: 42px; display: flex; align-items: center; gap: 10px; margin-bottom: 11px; padding: 0 11px; color: rgba(255,255,255,.53); font-size: 12px; font-weight: 600; }
.site-shortcut:hover { color: #fff; }
.admin-chip { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-chip > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-chip strong, .admin-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-chip strong { font-size: 12px; }
.admin-chip small { color: rgba(255,255,255,.46); font-size: 11px; }
.admin-chip .icon-button { color: rgba(255,255,255,.45); }
.admin-chip .icon-button:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-main { min-height: 100vh; margin-left: 262px; }
.admin-content { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 80px; }
.mobile-header { display: none; }
.sidebar-scrim { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin-bottom: 8px; font-size: 30px; line-height: 1.15; }
.page-heading p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.compact-heading { align-items: center; }
.breadcrumb { display: block; margin-bottom: 8px; color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb span { margin-left: 5px; color: #a8b1c0; }
.heading-actions { display: flex; gap: 9px; }
.panel { border: 1px solid rgba(221,227,237,.9); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(36,57,94,.045); }

/* Dashboard */
.dashboard-heading { margin-bottom: 34px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card { min-height: 154px; position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 14px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: #edf1ff; }
.stat-icon.mint { color: #0c9173; background: #e9f9f4; }
.stat-icon.violet { color: #7957bf; background: #f2edff; }
.stat-card div { display: flex; flex-direction: column; gap: 4px; }
.stat-card div span { color: var(--ink-soft); font-size: 13px; }
.stat-card strong { font-family: var(--font-display); font-size: 28px; letter-spacing: -.04em; }
.stat-card > small { grid-column: 2; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; }
.stat-card > a { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.stat-featured { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 16px 30px color-mix(in srgb, var(--brand) 20%, transparent); }
.stat-featured::after { content: ""; position: absolute; width: 135px; height: 135px; top: -75px; right: -50px; border: 28px solid rgba(255,255,255,.07); border-radius: 50%; }
.stat-featured .stat-icon { color: #fff; background: rgba(255,255,255,.15); }
.stat-featured div span { color: rgba(255,255,255,.6); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 18px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading a { display: flex; align-items: center; gap: 4px; color: var(--brand); font-size: 12px; font-weight: 700; }
.people-list { padding: 0 12px 12px; }
.person-row { display: grid; grid-template-columns: 44px minmax(120px, 1fr) 78px 62px 40px; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid #eff2f6; }
.person-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.person-copy strong, .person-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-copy strong { font-size: 13px; }
.person-copy span { color: var(--ink-soft); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; padding: 6px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.active { color: #0c7b62; background: #eaf9f5; }
.status-pill.active i { background: #1db28a; }
.status-pill.passive { color: #6e7787; background: #f0f2f5; }
.status-pill.passive i { background: #969dac; }
.button-status { border: 0; cursor: pointer; }
.view-count { display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--ink-soft); font-size: 11px; }
.dashboard-side { display: flex; flex-direction: column; gap: 18px; }
.profile-health { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 18px; padding: 24px; }
.ring { --progress: 0deg; width: 86px; height: 86px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress), #edf1f5 0); }
.ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring span { position: relative; z-index: 1; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.ring small { font-size: 11px; }
.profile-health h3 { margin-bottom: 7px; font-size: 14px; }
.profile-health p { margin-bottom: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.profile-health a { display: flex; align-items: center; gap: 3px; color: var(--brand); font-size: 12px; font-weight: 700; }
.quick-panel { padding: 24px 18px 12px; }
.quick-panel > .eyebrow { margin-left: 8px; }
.quick-panel > a { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid #eff2f6; }
.quick-panel > a > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.quick-panel strong { font-size: 13px; }
.quick-panel small { color: var(--ink-soft); font-size: 12px; }
.quick-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; }
.quick-icon.blue { color: var(--brand); background: #edf1ff; }
.quick-icon.green { color: #0c9173; background: #e9f9f4; }

/* Forms and tables */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span:first-child { color: #465166; font-size: 13px; font-weight: 700; }
.field > span b { color: var(--danger); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dce2eb; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: 14px; transition: border .16s, box-shadow .16s; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #abb3c0; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.field > small { color: #7d8798; font-size: 12px; }
.phone-mask { width: 100%; min-height: 46px; display: flex; align-items: center; overflow: hidden; border: 1px solid #dce2eb; border-radius: 10px; background: #fff; transition: border .16s, box-shadow .16s; }
.phone-mask:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.phone-prefix { align-self: stretch; display: flex; align-items: center; padding-left: 13px; color: #465166; font-size: 14px; font-weight: 700; }
.field .phone-mask input { min-height: 44px; padding-left: 7px; border: 0; border-radius: 0; box-shadow: none; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon, .input-icon > .x-symbol { position: absolute; left: 13px; z-index: 1; color: #8e98a8; }
.input-icon input { padding-left: 42px; }
.input-icon button { position: absolute; right: 5px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; color: #8490a2; background: transparent; cursor: pointer; }
.x-symbol { font-size: 12px; }
.editor-layout, .company-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.editor-main { display: flex; flex-direction: column; gap: 18px; }
.form-section { padding: 25px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-heading h2 { margin: 0 0 3px; font-size: 15px; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.section-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: #edf1ff; }
.section-icon.mint { color: #0c9173; background: #e9f9f4; }
.section-icon.amber { color: #a9690f; background: #fff5df; }
.section-icon.violet { color: #7957bf; background: #f2edff; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px 16px; }
.span-2 { grid-column: span 2; }
.sticky-panel { position: sticky; top: 22px; }
.photo-upload, .logo-upload { position: relative; display: block; margin-bottom: 20px; cursor: pointer; }
.photo-upload input, .logo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-preview { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 1px dashed #cdd5e1; border-radius: 15px; color: var(--brand); background: #f8faff; }
.photo-preview img { width: 100%; height: 235px; object-fit: cover; }
.photo-preview strong, .logo-preview strong { color: var(--ink); font-size: 13px; }
.photo-preview small, .logo-preview small { color: var(--ink-soft); font-size: 12px; }
.logo-preview { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border: 1px dashed #cdd5e1; border-radius: 15px; background: #f8faff; }
.logo-preview img { max-width: 180px; max-height: 110px; object-fit: contain; padding: 12px; border: 1px solid #dfe4eb; border-radius: 13px; background: #fff; box-shadow: 0 8px 20px rgba(24,24,24,.07); }
.slug-input { display: flex; align-items: center; min-height: 44px; overflow: hidden; border: 1px solid #dce2eb; border-radius: 10px; background: #f7f9fc; }
.slug-input b { padding-left: 12px; color: #727d8e !important; font-size: 12px; white-space: nowrap; }
.slug-input input { min-width: 0; border: 0; background: transparent; padding-left: 2px; }
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 20px 0; padding: 16px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 4px; }
.switch-row strong { font-size: 13px; }
.switch-row small { color: var(--ink-soft); font-size: 12px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { width: 42px; height: 24px; position: relative; border-radius: 20px; background: #c8ced8; transition: background .2s; }
.switch-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: transform .2s; }
.switch-row input:checked + i { background: var(--accent); }
.switch-row input:checked + i::after { transform: translateX(18px); }
.color-field > span:last-child { height: 44px; display: flex; align-items: center; gap: 10px; padding: 5px; border: 1px solid #dce2eb; border-radius: 10px; }
.color-field input[type=color] { width: 44px; min-height: 32px; height: 32px; flex: 0 0 44px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-field input[type=color]::-moz-color-swatch { border: 0; border-radius: 8px; }
.color-field code { color: var(--ink-soft); font-size: 12px; }
.brand-preview { margin: 20px 0; padding: 16px; border-radius: 13px; color: #fff; background: var(--preview-brand); }
.brand-preview > span { display: block; margin-bottom: 16px; color: rgba(255,255,255,.55); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.brand-preview div { display: flex; align-items: center; gap: 10px; }
.brand-preview i { width: 5px; height: 30px; border-radius: 3px; background: var(--preview-accent); }
.brand-preview strong { font-family: var(--font-display); font-size: 11px; }
.brand-preview b { width: 30px; height: 6px; margin-left: auto; border-radius: 10px; background: rgba(255,255,255,.3); }
.save-note { display: block; margin-top: 12px; color: var(--ink-soft); text-align: center; font-size: 12px; line-height: 1.5; }
.image-remove { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 20px; border: 1px solid #f2cbd1; border-radius: 10px; color: var(--danger); background: #fff7f8; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .18s, border .18s; }
.image-remove input { position: absolute; opacity: 0; pointer-events: none; }
.image-remove:has(input:checked) { border-color: var(--danger); background: #ffecef; box-shadow: 0 0 0 3px rgba(220,60,80,.08); }
.photo-upload.marked-for-removal .photo-preview, .logo-upload.marked-for-removal .logo-preview { opacity: .38; filter: grayscale(1); }
.directory-switch { margin-bottom: 0; }
.account-layout { display: grid; grid-template-columns: minmax(0, 610px) minmax(280px, 1fr); align-items: start; gap: 18px; }
.account-layout .stack-form { max-width: 500px; }
.account-layout .button { align-self: flex-start; }
.security-note { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 26px; }
.security-note h2 { margin-bottom: 10px; font-size: 17px; }
.security-note p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.security-note dl { margin: 20px 0 0; }
.security-note dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; }
.security-note dt { color: var(--ink-soft); }
.security-note dd { margin: 0; font-weight: 700; text-align: right; }
.table-panel { overflow: hidden; }
.table-toolbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.search-box { width: min(440px, 100%); height: 42px; display: flex; align-items: center; gap: 10px; padding-left: 13px; border: 1px solid #dce2eb; border-radius: 11px; background: #fff; }
.search-box > .icon { color: #8f98a8; }
.search-box input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.clear-search { color: var(--brand); font-size: 12px; font-weight: 700; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 13px 18px; color: #7f8999; background: #fafbfc; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 18px; border-top: 1px solid #edf0f4; font-size: 13px; }
.table-person { min-width: 205px; display: flex; align-items: center; gap: 11px; }
.table-person > span:last-child, .table-contact { display: flex; flex-direction: column; gap: 3px; }
.table-person strong { font-size: 13px; }
.table-person small, .table-contact small { color: var(--ink-soft); font-size: 11px; }
.table-contact span { font-size: 12px; }
.copy-link { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 12px; cursor: pointer; }
.copy-link span { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-views { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions .icon-button { width: 34px; height: 34px; }
.employee-mobile-list { display: none; }
.empty-state { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; color: var(--ink-soft); }
.empty-state > .icon { margin-bottom: 15px; color: var(--brand); }
.empty-state h3 { margin-bottom: 8px; color: var(--ink); font-size: 15px; }
.empty-state p { max-width: 430px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.empty-state.spacious { min-height: 390px; }

/* Dialogs and notifications */
dialog { border: 0; }
dialog::backdrop { background: rgba(9,17,34,.65); backdrop-filter: blur(4px); }
.qr-dialog, .confirm-dialog { width: min(430px, calc(100% - 32px)); position: fixed; padding: 32px; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 80px rgba(8,18,38,.25); }
.qr-dialog h2, .confirm-dialog h2 { margin-bottom: 8px; font-size: 20px; }
.qr-dialog > p, .confirm-dialog > p { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.qr-frame { width: 236px; height: 236px; display: grid; place-items: center; margin: 22px auto 16px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(28,44,75,.08); }
.qr-frame img { width: 100%; height: 100%; }
.qr-dialog > code { display: block; overflow: hidden; padding: 10px; border-radius: 8px; color: var(--ink-soft); background: #f5f7fa; font-size: 11px; text-overflow: ellipsis; text-align: center; white-space: nowrap; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.danger-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; color: var(--danger); background: #fff0f2; }
.toast-stack { position: fixed; z-index: 80; top: 22px; right: 24px; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 300px; display: grid; grid-template-columns: 20px 1fr 30px; align-items: center; gap: 9px; padding: 11px 10px 11px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .35s ease both; }
.toast-success > .icon { color: #0c9173; }
.toast-error > .icon { color: var(--danger); }
.toast button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; color: #8993a4; background: transparent; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* Public card */
.public-body { min-height: 100vh; background: #eef2f8; }
.card-page { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 38vw) 1fr; }
.card-brand-panel { position: fixed; inset: 0 auto 0 0; width: 38vw; min-width: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 46px 4.5vw 38px; overflow: hidden; color: #fff; background: radial-gradient(circle at 112% 26%, color-mix(in srgb, var(--accent) 34%, transparent) 0, transparent 42%), linear-gradient(145deg, color-mix(in srgb, var(--brand) 86%, #000) 0%, var(--brand) 100%); }
.card-brand-panel::before { content: ""; position: absolute; width: 460px; height: 460px; right: -310px; top: 20%; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; box-shadow: 0 0 0 70px color-mix(in srgb, var(--accent) 7%, transparent), 0 0 0 140px color-mix(in srgb, var(--accent) 4%, transparent); }
.card-brand-panel::after { content: ""; position: absolute; left: 2.5vw; top: 0; width: 1px; height: 100%; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.public-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.public-brand img { width: 48px; height: 48px; object-fit: contain; padding: 8px; border: 1px solid #dfe4eb; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(24,24,24,.09); }
.brand-statement { position: relative; z-index: 1; max-width: 350px; }
.brand-statement p { margin: 0; color: rgba(255,255,255,.83); font-family: var(--font-display); font-size: clamp(25px, 2.5vw, 42px); font-weight: 600; line-height: 1.25; letter-spacing: -.045em; }
.brand-coordinates { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.38); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.brand-coordinates i { width: 36px; height: 1px; background: var(--accent); }
.vcard-wrap { grid-column: 2; padding: 32px 6vw 64px; }
.vcard { width: min(650px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid rgba(210,219,232,.9); border-radius: 26px; background: #fff; box-shadow: 0 22px 60px rgba(37,59,102,.12); }
.vcard-topline { min-height: 70px; display: flex; align-items: center; justify-content: flex-end; padding: 16px 28px; border-bottom: 1px solid #eef1f5; }
.mobile-public-brand { display: none; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 12px; }
.mobile-public-brand img { width: 38px; height: 38px; object-fit: contain; padding: 5px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(24,24,24,.08); }
.mobile-public-brand .brand-mark { width: 34px; height: 34px; }
.round-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: #fff; cursor: pointer; }
.identity-section { position: relative; display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 30px; padding: 40px 46px 36px; }
.identity-spine { position: absolute; left: 0; top: 34px; bottom: 34px; width: 6px; border-radius: 0 6px 6px 0; background: var(--accent); }
.portrait-wrap { position: relative; }
.portrait { width: 148px; height: 166px; object-fit: cover; border-radius: 20px; box-shadow: 0 15px 32px color-mix(in srgb, var(--brand) 16%, transparent); }
.portrait-placeholder { display: grid; place-items: center; color: #fff; background: var(--brand); font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.available-dot { position: absolute; right: -5px; bottom: 13px; width: 16px; height: 16px; border: 4px solid #fff; border-radius: 50%; background: var(--accent); }
.department-tag { display: inline-block; margin-bottom: 10px; padding: 6px 9px; border-radius: 6px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, white); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.identity-copy h1 { margin-bottom: 7px; font-size: 30px; line-height: 1.12; }
.job-title { margin-bottom: 15px; color: var(--brand); font-size: 14px; font-weight: 700; }
.bio { max-width: 355px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 28px; }
.quick-actions a { min-height: 96px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-content: center; gap: 2px 11px; padding: 16px; border: 1px solid #dfe5ef; border-radius: 15px; background: #fff; box-shadow: 0 8px 20px rgba(32,55,101,.08); transition: transform .18s, box-shadow .18s, border .18s; }
.quick-actions a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, #dfe5ef); box-shadow: 0 12px 25px rgba(32,55,101,.13); }
.quick-actions a:first-child { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 24%, transparent); }
.quick-actions a > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: #edf1ff; }
.quick-actions a:first-child > span { color: #fff; background: rgba(255,255,255,.17); }
.quick-actions a:nth-child(2) > span { color: #0c9173; background: #e9f9f4; }
.quick-actions a:nth-child(3) > span { color: #a9690f; background: #fff5df; }
.quick-actions strong { align-self: end; font-size: 14px; }
.quick-actions small { align-self: start; color: var(--ink-soft); font-size: 12px; }
.quick-actions a:first-child small { color: rgba(255,255,255,.72); }
.save-contact { min-height: 58px; display: grid; grid-template-columns: 22px 1fr 20px; align-items: center; gap: 12px; margin: 18px 28px 0; padding: 0 18px; border-radius: 13px; color: #fff; background: var(--brand); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 20%, transparent); }
.save-contact > span { display: flex; flex-direction: column; gap: 2px; }
.save-contact strong { font-size: 14px; }
.save-contact small { color: rgba(255,255,255,.72); font-size: 11px; }
.contact-details, .location-section { padding: 34px 28px 0; }
.vcard-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: #707b8d; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.vcard-section-heading i { height: 1px; flex: 1; background: var(--line); }
.detail-row { min-height: 67px; display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f4; }
.detail-row:last-child { border-bottom: 0; }
.detail-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: #f0f3fb; }
.detail-row > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.detail-row small { color: #7f8999; font-size: 12px; }
.detail-row strong { overflow: hidden; color: #26334a; font-size: 14px; text-overflow: ellipsis; }
.detail-row > .icon { color: #a0a8b5; }
.map-card { position: relative; display: block; height: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #e9edf4; }
.map-card iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(.92); pointer-events: none; }
.map-overlay { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 66px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 10px 26px rgba(23,40,73,.13); backdrop-filter: blur(8px); }
.map-overlay > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.map-overlay small { color: var(--brand); font-size: 11px; font-weight: 700; }
.map-overlay strong { max-width: 250px; color: #344057; font-size: 12px; line-height: 1.45; }
.map-overlay > b { display: flex; align-items: center; gap: 4px; padding-right: 4px; color: var(--brand); font-size: 11px; }
.social-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 38px; padding: 26px 28px; background: #f7f9fc; }
.social-section .eyebrow { margin-bottom: 4px; font-size: 11px; }
.social-section p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.social-section nav { display: flex; gap: 7px; }
.social-section nav a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #43516a; background: #fff; }
.social-section nav b { font-size: 11px; }
.vcard-footer { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px; color: #8f99a9; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vcard-footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.share-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: 0 14px 34px rgba(9,20,41,.24); font-size: 12px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; }
.share-toast.visible { transform: translate(-50%, 0); opacity: 1; }

/* Company home */
.company-home { min-height: 100vh; display: flex; flex-direction: column; padding: 30px 5vw; overflow: hidden; background: #fff; }
.company-home-header { display: flex; align-items: center; justify-content: space-between; }
.public-brand.dark { color: var(--ink); }
.admin-login-link { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.company-hero { flex: 1; display: grid; grid-template-columns: 1fr minmax(360px, .72fr); align-items: center; gap: 8vw; width: min(1180px, 100%); margin: auto; padding: 70px 0; }
.company-hero-copy h1 { margin-bottom: 24px; font-size: clamp(48px, 7vw, 92px); line-height: .98; }
.company-hero-copy h1 em { color: var(--brand); font-style: normal; }
.company-hero-copy > p { max-width: 510px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.company-hero-actions { display: flex; gap: 10px; margin-top: 30px; }
.company-card-object { position: relative; aspect-ratio: 1.58; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; border-radius: 24px; color: #fff; background: var(--navy); box-shadow: 0 30px 70px rgba(19,34,65,.22); transform: rotate(2deg); }
.company-card-object::after { content: ""; position: absolute; width: 290px; height: 290px; right: -160px; top: -120px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.object-line { position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--accent); }
.object-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; }
.object-brand img { width: 42px; height: 42px; object-fit: contain; padding: 6px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; }
.object-title { display: flex; flex-direction: column; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 52px); font-weight: 600; line-height: .95; letter-spacing: -.06em; }
.object-title span:nth-child(2) { color: #8fa9ff; }
.object-bottom { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.42); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.object-bottom i { width: 32px; height: 1px; background: var(--accent); }
.company-home-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.company-home-footer > div a { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; }
.company-home-footer nav { display: flex; gap: 8px; }
.company-home-footer nav a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; }
.company-home-footer nav b { font-size: 12px; }

/* Firma ana sayfası ve isteğe bağlı personel dizini */
.company-profile-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.company-profile-header { width: min(1200px, calc(100% - 64px)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.company-header-actions { display: flex; align-items: center; gap: 10px; }
.company-header-actions > a { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.company-header-actions > a:first-child { color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); }
.company-profile-hero { width: min(1200px, calc(100% - 64px)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); align-items: center; gap: 72px; margin: auto; padding: 72px 0; }
.company-profile-copy h1 { max-width: 620px; margin-bottom: 16px; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; }
.company-tagline { max-width: 610px; margin-bottom: 32px; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.company-contact-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.company-contact-buttons > a { min-height: 72px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(32,55,101,.05); }
.company-contact-buttons > a.company-contact-primary { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 20%, transparent); }
.company-contact-buttons > a > .icon { justify-self: center; color: var(--brand); }
.company-contact-buttons > a.company-contact-primary > .icon { color: #fff; }
.company-contact-buttons > a > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.company-contact-buttons small { color: var(--ink-soft); font-size: 11px; }
.company-contact-buttons strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.company-contact-primary small { color: rgba(255,255,255,.7); }
.company-socials { display: flex; gap: 8px; margin-top: 24px; }
.company-socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #4c596f; background: #fff; }
.company-socials b { font-size: 13px; }
.company-location-card { position: relative; height: 440px; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #e9edf4; box-shadow: 0 18px 48px rgba(32,55,101,.12); }
.company-location-card iframe { width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(.15) contrast(.94); }
.company-location-info { position: absolute; left: 16px; right: 16px; bottom: 16px; min-height: 86px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: 0 12px 28px rgba(26,45,80,.13); backdrop-filter: blur(10px); }
.company-location-info > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.company-location-info small { color: var(--brand); font-size: 11px; font-weight: 700; }
.company-location-info strong { font-size: 13px; line-height: 1.45; }
.company-location-info > b { display: flex; align-items: center; gap: 5px; color: var(--brand); font-size: 12px; white-space: nowrap; }
.directory-section { width: 100%; padding: 72px max(32px, calc((100% - 1200px) / 2)); border-top: 1px solid var(--line); background: var(--canvas); }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.directory-heading h2 { margin-bottom: 7px; font-size: 30px; }
.directory-heading p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.directory-search { width: min(360px, 100%); height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: #8791a1; background: #fff; box-shadow: 0 6px 18px rgba(32,55,101,.05); }
.directory-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.directory-person { min-height: 104px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 40px; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(32,55,101,.045); transition: transform .18s, box-shadow .18s, border .18s; }
.directory-person[hidden] { display: none; }
.directory-person:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); box-shadow: 0 12px 28px rgba(32,55,101,.09); }
.directory-person > img, .directory-avatar { width: 58px; height: 58px; object-fit: cover; border-radius: 14px; }
.directory-avatar { display: grid; place-items: center; color: #fff; background: var(--brand); font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.directory-person-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.directory-person-copy strong, .directory-person-copy small, .directory-person-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-person-copy strong { font-size: 14px; }
.directory-person-copy small { color: var(--ink-soft); font-size: 12px; }
.directory-person-copy b { color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.directory-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, white); }
.directory-empty-filter { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #cad2df; border-radius: 16px; color: var(--ink-soft); text-align: center; }
.directory-empty-filter .icon { margin-bottom: 4px; color: var(--brand); }
.directory-empty-filter strong { color: var(--ink); font-size: 15px; }
.directory-empty-filter span { font-size: 13px; }
.directory-empty-filter[hidden] { display: none; }
.company-profile-footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(32px, calc((100% - 1200px) / 2)); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; background: #fff; }
.error-code { color: #e9edf7; font-family: var(--font-display); font-size: clamp(100px, 20vw, 220px); font-weight: 700; line-height: .8; letter-spacing: -.1em; }
.error-page h1 { margin: 24px 0 10px; font-size: 32px; }
.error-page p { max-width: 430px; margin-bottom: 24px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

@media (max-width: 1050px) {
    .admin-content { width: calc(100% - 40px); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-side { display: grid; grid-template-columns: 1fr 1fr; }
    .editor-layout, .company-layout { grid-template-columns: minmax(0, 1fr) 290px; }
    .account-layout { grid-template-columns: 1fr; }
    .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
    .card-page { grid-template-columns: 300px 1fr; }
    .card-brand-panel { width: 300px; }
    .vcard-wrap { padding-left: 32px; padding-right: 32px; }
    .company-profile-hero { gap: 40px; }
    .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-form-side { min-height: 100vh; padding: 32px 24px; }
    .sidebar { width: 280px; transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: inline-flex; }
    .sidebar-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(8,17,35,.55); backdrop-filter: blur(3px); }
    .sidebar-scrim.visible { display: block; }
    .admin-main { margin-left: 0; }
    .mobile-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; }
    .mobile-header strong { font-family: var(--font-display); font-size: 13px; }
    .admin-content { width: calc(100% - 32px); padding-top: 28px; }
    .editor-layout, .company-layout { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .card-page { display: block; }
    .card-brand-panel { display: none; }
    .vcard-wrap { padding: 18px 16px 40px; }
    .vcard { margin: 0 auto; }
    .mobile-public-brand { display: flex; }
    .vcard-topline { justify-content: space-between; }
    .company-hero { grid-template-columns: 1fr 360px; gap: 30px; }
    .company-profile-header, .company-profile-hero { width: calc(100% - 40px); }
    .company-profile-hero { grid-template-columns: 1fr; padding: 56px 0; }
    .company-location-card { height: 360px; }
}

@media (max-width: 680px) {
    .page-heading { align-items: flex-start; margin-bottom: 24px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading > .button, .heading-actions { flex: 0 0 auto; }
    .dashboard-heading { flex-direction: column; }
    .dashboard-heading > .button { width: 100%; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:first-child { grid-column: 1 / -1; }
    .dashboard-side { grid-template-columns: 1fr; }
    .data-table-wrap { display: none; }
    .employee-mobile-list { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
    .employee-mobile-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; }
    .mobile-person-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
    .mobile-person-row > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
    .mobile-person-row strong, .mobile-person-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-person-row strong { font-size: 13px; }
    .mobile-person-row small { color: var(--ink-soft); font-size: 11px; }
    .mobile-copy { margin: 13px 0; padding: 9px; border-radius: 8px; background: #f5f7fb; }
    .mobile-card-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .mobile-card-actions a, .mobile-card-actions button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .search-box { width: 100%; }
    .identity-section { grid-template-columns: 112px 1fr; gap: 20px; padding: 32px 28px; }
    .portrait { width: 112px; height: 132px; }
    .identity-copy h1 { font-size: 24px; }
    .quick-actions a { grid-template-columns: 1fr; grid-template-rows: 38px auto auto; justify-items: center; gap: 4px; padding: 12px 6px; text-align: center; }
    .quick-actions a > span { grid-row: auto; }
    .company-hero { grid-template-columns: 1fr; }
    .company-card-object { width: min(420px, 90%); margin: 0 auto; }
    .directory-heading { align-items: stretch; flex-direction: column; }
    .directory-search { width: 100%; }
    .directory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .admin-content { width: calc(100% - 24px); padding-bottom: 45px; }
    .page-heading { flex-direction: column; gap: 16px; }
    .page-heading > .button, .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; padding: 0 10px; }
    .stat-grid { gap: 10px; }
    .stat-card { min-height: 135px; padding: 18px; }
    .stat-card strong { font-size: 23px; }
    .person-row { grid-template-columns: 40px minmax(100px, 1fr) auto 34px; gap: 8px; padding-left: 4px; padding-right: 4px; }
    .person-row .avatar { width: 40px; height: 40px; }
    .person-row .view-count { display: none; }
    .person-row .status-pill { padding: 5px 7px; }
    .panel-heading { padding: 20px 18px 14px; }
    .panel-heading > a { font-size: 0; }
    .panel-heading > a .icon { width: 19px; height: 19px; }
    .form-section { padding: 20px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .social-form-grid { grid-template-columns: 1fr; }
    .qr-dialog, .confirm-dialog { padding: 28px 20px 20px; }
    .dialog-actions { flex-direction: column; }
    .dialog-actions .button, .dialog-actions form, .dialog-actions form .button { width: 100%; }
    .toast-stack { left: 12px; right: 12px; top: 76px; }
    .toast { min-width: 0; width: 100%; }
    .vcard-wrap { padding: 0; }
    .vcard { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
    .vcard-topline { min-height: 64px; padding: 12px 20px; }
    .identity-section { grid-template-columns: 94px 1fr; gap: 17px; padding: 28px 20px 28px 25px; }
    .identity-spine { top: 24px; bottom: 24px; width: 5px; }
    .portrait { width: 94px; height: 112px; border-radius: 16px; }
    .identity-copy h1 { margin-bottom: 5px; font-size: 21px; }
    .job-title { margin-bottom: 10px; font-size: 13px; }
    .bio { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
    .department-tag { margin-bottom: 7px; padding: 4px 6px; font-size: 11px; }
    .quick-actions { margin: 0 16px; }
    .quick-actions a { min-height: 88px; }
    .quick-actions strong { font-size: 14px; }
    .quick-actions small { font-size: 12px; }
    .save-contact { margin: 14px 16px 0; }
    .contact-details, .location-section { padding: 30px 16px 0; }
    .map-card { height: 205px; }
    .map-overlay { grid-template-columns: 36px minmax(0, 1fr); }
    .map-overlay > b { grid-column: 2; }
    .social-section { align-items: flex-start; flex-direction: column; padding: 24px 16px; }
    .vcard-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .company-home { padding: 22px 20px; }
    .admin-login-link { font-size: 0; }
    .company-hero { padding: 55px 0 40px; }
    .company-hero-copy h1 { font-size: 48px; }
    .company-hero-copy > p { font-size: 12px; }
    .company-hero-actions { flex-direction: column; }
    .company-card-object { width: 100%; padding: 22px; }
    .company-home-footer { align-items: flex-start; flex-direction: column; }
    .company-profile-header { min-height: 72px; }
    .company-profile-header .public-brand span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .company-header-actions > a:first-child { display: none; }
    .company-header-actions .admin-login-link { width: 44px; padding: 0; justify-content: center; font-size: initial; }
    .company-header-actions .admin-login-link span { display: none; }
    .company-profile-hero { width: calc(100% - 32px); padding: 40px 0 48px; }
    .company-profile-copy h1 { font-size: 38px; }
    .company-tagline { margin-bottom: 24px; font-size: 15px; }
    .company-contact-buttons { grid-template-columns: 1fr; }
    .company-contact-buttons > a { min-height: 68px; }
    .company-location-card { height: 300px; border-radius: 18px; }
    .company-location-info { grid-template-columns: 38px minmax(0, 1fr); }
    .company-location-info > b { grid-column: 2; }
    .directory-section { padding: 48px 16px; }
    .directory-person { grid-template-columns: 54px minmax(0, 1fr) 36px; padding: 14px; }
    .directory-person > img, .directory-avatar { width: 54px; height: 54px; }
    .company-profile-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
