/* Private IFC workspace. System-local sans; no remote fonts or animation loops. */
:root {
  --bg:#f4f3ef; --surface:#fff; --surface-strong:#fff; --surface-soft:#f9f9f6;
  --border:#e1e2d9; --border-strong:#c7c9be; --text:#262822; --muted:#6b6d64; --muted-2:#777b70;
  --primary:#8b692d; --primary-soft:#f4eddd; --success:#3d7057; --success-soft:#edf4ed;
  --warning:#896227; --warning-soft:#faf0dd; --danger:#9f453c; --danger-soft:#fbefed;
  --shadow-xl:0 8px 26px rgba(37,41,31,.04); --shadow-lg:0 3px 12px rgba(37,41,31,.025); --shadow-sm:none;
  --radius-xl:18px; --radius-lg:16px; --radius-md:10px; --sidebar-width:248px;
  --sans:"Avenir Next","Avenir","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
.ifc-admin { margin:0; color:var(--text); background:var(--bg); font-family:var(--sans); font-size:14px; line-height:1.55; -webkit-font-smoothing:antialiased; font-variant-numeric:tabular-nums; }
.ifc-admin *, .ifc-admin *::before, .ifc-admin *::after { box-sizing:border-box; }
.ifc-admin [hidden] { display:none!important; }
.ifc-admin a { color:inherit; }
.ifc-admin button, .ifc-admin input, .ifc-admin select, .ifc-admin textarea { font:inherit; }
.ifc-admin button, .ifc-admin a { -webkit-tap-highlight-color:transparent; }
.ifc-admin :focus-visible { outline:3px solid #a47a31; outline-offset:4px; }
.ifc-admin h1, .ifc-admin h2, .ifc-admin h3, .ifc-admin h4 { color:var(--text); font-family:var(--sans); letter-spacing:-.035em; }
.ifc-admin .muted, .ifc-admin .text-muted { color:var(--muted)!important; }
.ifc-admin .muted-2 { color:var(--muted-2)!important; }
.ifc-admin .visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.skip-link { position:fixed; inset:10px auto auto 10px; z-index:60; transform:translateY(-160%); padding:12px 20px; border-radius:8px; background:#fff; color:var(--text); font-weight:700; }
.skip-link:focus { transform:translateY(0); }
.app-shell { min-height:100dvh; display:grid; grid-template-columns:var(--sidebar-width) minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100dvh; color:#efefe6; background:#20231f; border-right:1px solid #30352e; z-index:30; }
.sidebar-panel { height:100%; display:flex; flex-direction:column; padding:29px 16px 16px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#555b50 transparent; }
.sidebar-brand-row { display:flex; align-items:center; gap:8px; padding:0 10px 28px; border-bottom:1px solid #373c33; }
.brand-wrap { display:flex; align-items:center; gap:12px; text-decoration:none; min-width:0; }
.brand-mark { width:44px; height:44px; object-fit:contain; flex:0 0 auto; }
.brand-title { display:block; color:#f5f4ec; font-weight:650; font-size:14px; line-height:1.28; letter-spacing:-.015em; }
.brand-subtitle { display:block; margin-top:5px; color:#a4ac9d; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.sidebar-nav { padding-top:4px; }
.nav-section-label { color:#9ea694; font-size:10px; font-weight:650; text-transform:uppercase; letter-spacing:.11em; margin:24px 14px 9px; }
.nav-list { display:grid; gap:3px; }
.nav-link-panel { display:flex; align-items:center; gap:12px; position:relative; padding:11px 14px; min-height:43px; border:1px solid transparent; border-radius:8px; color:#c9cfc2!important; font-size:12px; font-weight:500; line-height:1.4; text-decoration:none; transition:background .15s ease,color .15s ease; }
.nav-link-panel:hover { background:#2b3028; color:#fff!important; }
.nav-link-panel.active { color:#eadab5!important; background:#34372d; border-color:#484c3d; }
.nav-link-panel.active::before { content:""; position:absolute; left:-1px; top:10px; bottom:10px; width:3px; border-radius:2px; background:#c5a467; }
.shell-icon { display:inline-block; vertical-align:middle; flex:0 0 auto; width:20px; height:20px; }
.nav-link-panel > .shell-icon:last-child:not(:first-child) { margin-left:auto; width:14px; height:14px; opacity:.65; }
.sidebar-foot { margin-top:auto; padding-top:32px; }
.sidebar-public-link { display:flex; align-items:center; gap:10px; color:#b8c0af!important; padding:12px 14px; text-decoration:none; font-size:11px; }
.sidebar-public-link .shell-icon:last-child { margin-left:auto; width:15px; }
.sidebar-public-link:hover { color:#eadab5!important; }
.sidebar-session { display:flex; align-items:center; gap:9px; margin-top:12px; padding:16px 5px 2px; border-top:1px solid #373c33; }
.session-monogram { width:32px; height:32px; display:grid; place-items:center; color:#ddc898; background:#353b30; border:1px solid #4c5543; border-radius:50%; font-size:12px; font-weight:650; }
.session-details { min-width:0; flex:1; }
.session-details strong { display:block; max-width:130px; overflow:hidden; text-overflow:ellipsis; color:#eeeede; font-size:11px; font-weight:600; }
.session-details > span { display:block; color:#a2aa99; font-size:9px; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; background:transparent; color:inherit; border:0; border-radius:8px; cursor:pointer; text-decoration:none; }
.session-logout { width:34px; color:#acb5a3!important; }
.session-logout:hover { background:#343a2e; color:#fff!important; }
.content { min-width:0; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:98px; padding:23px 36px; border-bottom:1px solid var(--border); background:#fafaf7; }
.topbar-context { display:flex; gap:14px; align-items:center; min-width:0; }
.topbar-kicker { display:block; color:var(--muted); text-transform:uppercase; font-size:9px; font-weight:600; letter-spacing:.12em; margin-bottom:3px; }
.topbar-heading { font-size:18px; font-weight:650; letter-spacing:-.025em; line-height:1.3; }
.topbar-subtitle { display:none; }
.topbar-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:19px; }
.workspace-label { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:10px; }
.workspace-label .shell-icon { width:13px; height:13px; }
.workspace-body { padding:34px 36px 22px; max-width:1440px; margin-inline:auto; }
.workspace-body:focus { outline:none; }
.workspace-footer { display:flex; justify-content:space-between; gap:16px; margin-top:34px; padding-top:19px; border-top:1px solid var(--border); color:var(--muted); font-size:10px; }
.dashboard-messages { margin-bottom:20px; }
.sidebar-backdrop, .mobile-nav-toggle, .sidebar-close { display:none; }

/* Shared components also support the existing operational forms and lists. */
.ifc-admin .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; border-radius:8px; border:1px solid var(--border-strong); font-size:12px; font-weight:600; box-shadow:none; transition:background .15s ease,border-color .15s ease; }
.ifc-admin .btn-sm { padding:8px 12px; font-size:11px; }
.ifc-admin .btn .shell-icon { width:16px; height:16px; }
.ifc-admin .btn:active, .login-submit:active { transform:translateY(1px); }
.ifc-admin .btn-primary { --bs-btn-bg:var(--primary); --bs-btn-border-color:var(--primary); background:var(--primary); color:#fff; border-color:var(--primary); }
.ifc-admin .btn-primary:hover { background:#755625; border-color:#755625; color:#fff; }
.ifc-admin .btn-outline-secondary { background:#fff; color:var(--text); border-color:var(--border-strong); }
.ifc-admin .btn-outline-secondary:hover { background:#efefe8; color:var(--text); border-color:#adb19f; }
.ifc-admin .btn-dark { background:#30352b; border-color:#30352b; color:#fff; }
.ifc-admin .btn-success { background:var(--success); border-color:var(--success); color:#fff; }
.ifc-admin .btn-outline-danger { color:var(--danger); border-color:#d9b8b0; background:#fff; }
.ifc-admin .btn-outline-danger:hover { color:#fff; background:var(--danger); border-color:var(--danger); }
.ifc-admin .card, .surface-card, .soft-card, .table-shell, .filters-bar, .ifc-panel { border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-lg); min-width:0; }
.ifc-admin .card-header { background:transparent; border-bottom:1px solid var(--border); padding:19px 22px; }
.ifc-admin .card-body, .ifc-panel-body { padding:22px; }
.ifc-admin .card { overflow:hidden; }
.soft-card { box-shadow:none; background:var(--surface-soft); }
.hero-card, .detail-hero { padding:25px; border-radius:16px; border:1px solid var(--border); background:#fff; margin-bottom:22px; }
.detail-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.hero-eyebrow, .ifc-eyebrow { display:block; color:var(--primary); font-size:10px; text-transform:uppercase; letter-spacing:.12em; font-weight:650; }
.hero-title { font-size:clamp(24px,2.5vw,34px); line-height:1.2; font-weight:650; letter-spacing:-.04em; margin:12px 0 10px; }
.hero-copy { max-width:65ch; color:var(--muted); font-size:13px; line-height:1.7; }
.hero-stat { padding:16px; background:var(--surface-soft); border:1px solid var(--border); border-radius:10px; }
.hero-stat-label, .kpi-label, .info-label { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
.hero-stat-value { font-size:26px; font-weight:600; letter-spacing:-.04em; margin-top:5px; }
.kpi-card { padding:22px; height:100%; }
.kpi-value { font-size:30px; font-weight:650; letter-spacing:-.04em; margin:7px 0; }
.kpi-meta { font-size:11px; color:var(--muted); }
.kpi-card-dark { background:#292e24; color:#fff; border-color:#292e24; }
.kpi-card-dark .kpi-label, .kpi-card-dark .kpi-meta { color:#bdc7b2; }
.section-heading, .ifc-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.section-title, .ifc-panel-head h2 { font-size:15px; font-weight:650; margin:0 0 4px; letter-spacing:-.025em; }
.section-copy, .ifc-panel-head p { color:var(--muted); font-size:11px; margin:0; }
.quick-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.quick-link { display:block; text-decoration:none; border:1px solid var(--border); border-radius:10px; padding:16px; }
.quick-link:hover { border-color:#b6bcac; background:#f8f8f3; }
.quick-link .label { display:block; color:var(--primary); font-size:10px; letter-spacing:.08em; margin-bottom:10px; }
.quick-link .title { font-size:13px; font-weight:600; margin-bottom:5px; }
.quick-link .copy { font-size:11px; color:var(--muted); }
.timeline-list, .info-list { display:grid; gap:0; }
.timeline-item { display:flex; align-items:flex-start; gap:12px; padding:16px 0; border-bottom:1px solid var(--border); }
.timeline-item:last-child { border-bottom:0; }
.timeline-dot { width:7px; height:7px; border-radius:50%; flex:0 0 auto; margin-top:7px; }
.timeline-body { flex:1; min-width:0; }
.status-pill { display:inline-flex; align-items:center; gap:6px; border-radius:5px; padding:4px 8px; font-size:10px; font-weight:550; line-height:1.5; border:1px solid transparent; }
.status-pending { color:var(--warning); background:var(--warning-soft); }
.status-approved { color:var(--success); background:var(--success-soft); }
.status-rejected { color:var(--danger); background:var(--danger-soft); }
.status-default { color:#62685b; background:#eff0eb; }
.progress-rail { display:flex; height:8px; border-radius:3px; overflow:hidden; background:#eef0e8; }
.progress-segment { height:100%; }
.progress-segment.pending { background:#bd985b; } .progress-segment.approved { background:#60775b; } .progress-segment.rejected { background:#b7bab0; }
.table-shell { overflow:hidden; }
.table-responsive { overflow-x:auto; }
.ifc-admin .table { --bs-table-bg:transparent; --bs-table-color:var(--text); --bs-table-hover-bg:#f7f7f1; margin:0; font-size:12px; }
.ifc-admin .table thead th { background:#f8f9f4; color:var(--muted); font-size:9px; font-weight:650; text-transform:uppercase; letter-spacing:.07em; padding:14px 18px; border-bottom:1px solid var(--border); white-space:nowrap; }
.ifc-admin .table tbody td { padding:15px 18px; vertical-align:middle; border-color:var(--border); }
.ifc-admin .table tbody tr:last-child td { border-bottom:0; }
.table-title { font-weight:600; }
.table-subtitle { color:var(--muted); font-size:11px; margin-top:3px; overflow-wrap:anywhere; }
.table-actions { display:inline-flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
.filters-bar { padding:18px; }
.filters-meta { color:var(--muted); font-size:11px; }
.ifc-admin .form-control, .ifc-admin .form-select { min-height:42px; border:1px solid var(--border-strong); border-radius:8px; background-color:#fff; color:var(--text); font-size:13px; }
.ifc-admin .form-control:focus, .ifc-admin .form-select:focus { border-color:#ab8b53; box-shadow:0 0 0 3px #f2eadb; }
.ifc-admin .form-label { font-size:12px; color:var(--text); font-weight:600; margin-bottom:7px; }
.ifc-admin textarea.form-control { min-height:120px; }
.detail-meta-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.detail-meta-card { border:1px solid var(--border); background:#f9faf5; border-radius:10px; padding:16px; }
.detail-section-title { font-size:15px; font-weight:600; margin-bottom:15px; }
.info-item { border-bottom:1px solid var(--border); padding:16px 0; }
.info-item:last-child { border-bottom:0; }
.info-label { margin-bottom:6px; }
.sticky-panel { position:sticky; top:20px; }
.action-stack { display:grid; gap:10px; }
.ifc-admin .alert { border:1px solid var(--border); border-radius:10px; padding:14px 18px; box-shadow:none; font-size:12px; }
.ifc-admin .alert-info { background:#f0f2e9; color:#46523c; }
.ifc-admin .alert-success { background:var(--success-soft); color:var(--success); }
.ifc-admin .alert-warning { background:var(--warning-soft); color:var(--warning); }
.ifc-admin .alert-danger, .ifc-admin .alert-error { background:var(--danger-soft); color:var(--danger); }
.ifc-admin .pagination { gap:5px; }
.ifc-admin .page-link { min-width:36px; text-align:center; border:1px solid var(--border); border-radius:7px!important; color:var(--text); background:#fff; font-size:12px; }
.ifc-admin .page-item.active .page-link { background:var(--primary); border-color:var(--primary); color:#fff; }
.ifc-admin .page-item.disabled .page-link { background:#f1f2ec; color:var(--muted); }
.card-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--border); margin-top:16px; padding-top:16px; }
.card-pager-meta { color:var(--muted); font-size:11px; }
.card-pager-actions { display:flex; flex-wrap:wrap; gap:6px; }

/* Reusable analytics primitives: semantic stocks, periods, charts and empty states. */
.ifc-page-heading { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-bottom:25px; }
.ifc-page-heading h1 { font-size:30px; font-weight:650; line-height:1.2; margin:7px 0 9px; }
.ifc-page-heading p { margin:0; font-size:12px; color:var(--muted); max-width:62ch; }
.ifc-period-form, .ifc-filter { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.ifc-period-form label { display:block; color:var(--muted); font-size:10px; margin:0; }
.ifc-period-form select, .ifc-filter select, .ifc-filter input { min-height:38px; border:1px solid var(--border-strong); border-radius:7px; background:#fff; padding:8px 30px 8px 11px; color:var(--text); font-size:11px; }
.ifc-tabs { display:flex; gap:24px; overflow-x:auto; padding-bottom:0; margin-bottom:24px; border-bottom:1px solid var(--border); }
.ifc-tabs a { padding:0 0 13px; color:var(--muted); text-decoration:none; white-space:nowrap; font-size:12px; border-bottom:2px solid transparent; }
.ifc-tabs a:hover { color:var(--text); }
.ifc-tabs a[aria-current="page"] { color:var(--text); border-bottom-color:var(--primary); font-weight:650; }
.ifc-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.ifc-metric { padding:21px 22px 19px; background:#fff; border:1px solid var(--border); border-radius:13px; min-width:0; }
.ifc-metric-heading { display:flex; align-items:center; justify-content:space-between; gap:9px; color:var(--muted); font-size:11px; margin-bottom:12px; }
.ifc-metric-heading .shell-icon { width:17px; height:17px; color:#929989; }
.ifc-metric-value { display:block; font-size:34px; font-weight:650; line-height:1.2; letter-spacing:-.045em; margin:0 0 10px; }
.ifc-metric-meta { display:flex; align-items:baseline; gap:6px; font-size:10px; color:var(--muted); flex-wrap:wrap; }
.ifc-metric-meta strong { color:#465d3d; font-weight:600; }
.ifc-metric-scope { display:block; margin-top:10px; padding-top:10px; border-top:1px solid #eceee5; color:var(--muted); font-size:9px; }
.ifc-metric.is-highlight { background:#293025; color:#fff; border-color:#293025; }
.ifc-metric.is-highlight .ifc-metric-heading, .ifc-metric.is-highlight .ifc-metric-meta, .ifc-metric.is-highlight .ifc-metric-heading .shell-icon { color:#bfc9b3; }
.ifc-metric.is-highlight .ifc-metric-scope { color:#bfc9b3; border-color:#414a39; }
.ifc-grid-wide { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr); gap:22px; margin-bottom:24px; }
.ifc-grid-equal { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-bottom:24px; }
.ifc-panel { padding:24px; }
.ifc-panel-link { display:inline-flex; align-items:center; gap:6px; color:var(--primary)!important; font-size:10px; font-weight:600; text-decoration:none; white-space:nowrap; }
.ifc-panel-link .shell-icon { width:15px; height:15px; }
.ifc-panel-link:hover { text-decoration:underline; }
.ifc-data-note { display:flex; align-items:flex-start; gap:8px; color:var(--muted); font-size:10px; line-height:1.6; padding-top:16px; margin:0; border-top:1px solid var(--border); }
.ifc-empty { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; min-height:185px; padding:23px; border:1px dashed #d4d8ca; border-radius:10px; color:var(--muted); background:#fafbf6; }
.ifc-empty h3 { font-size:15px; margin:0 0 7px; font-weight:600; }
.ifc-empty p { font-size:12px; max-width:50ch; margin:0; }
.ifc-empty .btn { margin-top:16px; }
.ifc-bar-list { display:grid; gap:17px; padding:0; margin:0; list-style:none; }
.ifc-bar-label { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:11px; margin-bottom:7px; }
.ifc-bar-label strong { font-weight:650; }
.ifc-bar-track { height:7px; background:#eff1e8; border-radius:3px; overflow:hidden; }
.ifc-bar-fill { display:block; height:100%; background:#8c9b7d; border-radius:3px; max-width:100%; }
.ifc-bar-fill.is-gold { background:#b29762; }
.ifc-bar-list li:nth-child(even) .ifc-bar-fill { background:#b5bfaa; }
.ifc-table { width:100%; border-collapse:collapse; font-size:12px; }
.ifc-table th { text-align:left; color:var(--muted); padding:10px 0; font-size:9px; text-transform:uppercase; letter-spacing:.06em; font-weight:600; border-bottom:1px solid var(--border); }
.ifc-table td { padding:14px 0; border-bottom:1px solid #eceee5; vertical-align:middle; }
.ifc-table tr:last-child td { border-bottom:0; }
.ifc-table td:not(:first-child), .ifc-table th:not(:first-child) { padding-left:14px; }
.ifc-table a { color:var(--text); font-weight:600; text-decoration:none; }
.ifc-table a:hover { text-decoration:underline; }
.ifc-table small { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.ifc-queue { list-style:none; padding:0; margin:0; }
.ifc-queue li { display:grid; grid-template-columns:33px minmax(0,1fr) auto; gap:11px; align-items:center; padding:15px 0; border-bottom:1px solid #eceee5; }
.ifc-queue li:last-child { border-bottom:0; }
.ifc-queue-index { color:#8c957f; font-size:12px; align-self:start; padding-top:1px; }
.ifc-queue strong { display:block; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.ifc-queue small { color:var(--muted); font-size:10px; }
.ifc-queue a { display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:6px; width:30px; height:30px; }
.ifc-queue a:hover { background:var(--primary-soft); }
.ifc-stats-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 18px; margin:0 0 24px; }
.ifc-stats-list dt { color:var(--muted); font-size:10px; font-weight:500; }
.ifc-stats-list dd { margin:3px 0 0; font-size:23px; font-weight:600; letter-spacing:-.035em; }
.ifc-chart { min-height:220px; }
.ifc-chart svg { display:block; width:100%; height:auto; overflow:visible; }
.ifc-chart-legend { display:flex; flex-wrap:wrap; gap:18px; color:var(--muted); font-size:10px; margin-bottom:16px; }
.ifc-chart-legend span { display:inline-flex; align-items:center; gap:6px; }
.ifc-chart-legend i { width:7px; height:7px; border-radius:2px; display:inline-block; background:#8b692d; }
.ifc-chart-legend span:nth-child(2) i { background:#5c7251; }
.ifc-chart-details { margin-top:12px; margin-bottom:16px; }
.ifc-chart-details summary { cursor:pointer; color:var(--muted); font-size:10px; }
.ifc-chart-details .ifc-table { margin-top:12px; }
.ifc-section-spacer { margin-bottom:24px; }
.ifc-traffic-summary { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:14px; padding:18px 22px; margin-bottom:24px; border:1px solid #dce0d1; border-radius:12px; background:#edf0e5; }
.ifc-traffic-summary-icon { display:grid; place-items:center; width:36px; height:36px; border:1px solid #cbd2be; border-radius:9px; color:#647650; }
.ifc-traffic-summary h2 { display:flex; align-items:baseline; gap:13px; flex-wrap:wrap; font-size:12px; font-weight:650; margin:0 0 5px; }
.ifc-traffic-summary h2 span { font-size:12px; font-weight:500; color:#526346; }
.ifc-traffic-summary p { font-size:10px; line-height:1.6; color:#636e59; margin:0; max-width:95ch; }

/* Authentication is independent from the legacy Bootstrap dependency. */
.login-layout { min-height:100dvh; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
.login-story { display:flex; flex-direction:column; padding:44px 56px 30px; color:#f4f3e9; background:#22281f; position:relative; }
.login-story::after { content:""; position:absolute; width:180px; height:180px; border:1px solid #434b39; border-radius:50%; right:-90px; top:26%; pointer-events:none; }
.login-story .brand-title { font-size:16px; }
.login-story-content { margin:auto 0; padding:90px 0; max-width:470px; position:relative; }
.login-eyebrow { display:block; font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:#c7b486; margin-bottom:30px; }
.ifc-admin .login-story h1 { color:#f4f3e9; font-size:clamp(34px,3.8vw,55px); font-weight:500; letter-spacing:-.055em; line-height:1.12; margin:0 0 27px; }
.login-story h1 span { color:#c6b384; }
.login-story p { color:#acb7a0; max-width:40ch; font-size:13px; line-height:1.8; margin:0; }
.login-story-topics { display:flex; flex-wrap:wrap; gap:20px; padding-top:38px; margin-top:36px; border-top:1px solid #414938; color:#d2d8c8; font-size:11px; }
.login-story-foot { display:flex; justify-content:space-between; gap:14px; color:#8f9e81; font-size:9px; }
.login-access { display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; padding:64px 44px 90px; background:#f8f8f3; }
.login-form-wrap { width:100%; max-width:356px; }
.login-access-label { display:flex; align-items:center; gap:7px; color:var(--primary); text-transform:uppercase; font-size:9px; letter-spacing:.12em; font-weight:650; margin-bottom:20px; }
.login-access-label .shell-icon { width:15px; height:15px; }
.login-access h2 { margin:0 0 10px; font-size:30px; line-height:1.2; font-weight:650; }
.login-intro { color:var(--muted); font-size:12px; margin:0 0 34px; }
.login-form { display:grid; gap:20px; }
.login-field label { display:block; font-size:11px; font-weight:600; color:var(--text); margin-bottom:8px; }
.login-field input { display:block; min-height:47px; width:100%; border:1px solid #cfd3c4; border-radius:8px; background:#fff; color:var(--text); padding:12px 14px; outline:none; }
.login-field input:focus { border-color:#9e803f; box-shadow:0 0 0 3px #eae1cc; }
.login-password { position:relative; }
.login-password input { padding-right:50px; }
.password-toggle { position:absolute; top:4px; right:4px; color:var(--muted); }
.password-toggle:hover { background:#f1f2e9; }
.login-submit { display:flex; align-items:center; justify-content:space-between; min-height:47px; margin-top:7px; padding:12px 16px; color:#fff; background:#806332; border:1px solid #806332; border-radius:8px; cursor:pointer; font-weight:600; font-size:12px; }
.login-submit:hover { background:#6d5127; }
.login-help { color:var(--muted); font-size:10px; line-height:1.7; margin:19px 0 28px; }
.login-other-access { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--border); padding-top:24px; font-size:11px; color:var(--muted); }
.login-other-access a { display:inline-flex; align-items:center; gap:6px; color:var(--text); font-weight:600; text-decoration:none; }
.login-other-access a:hover { text-decoration:underline; }
.login-other-access .shell-icon { width:16px; height:16px; }
.login-back { position:absolute; bottom:28px; display:inline-flex; align-items:center; gap:5px; color:var(--muted)!important; text-decoration:none; font-size:10px; }
.login-back:hover { text-decoration:underline; }
.login-back .shell-icon { width:14px; height:14px; }
.login-errors { padding:13px 15px; border-radius:8px; border:1px solid #e1c7bf; background:var(--danger-soft); color:var(--danger); margin-bottom:24px; font-size:12px; }
.login-errors p { margin:0; }

@media (min-width:1680px) { .workspace-body { padding-top:40px; } }
@media (max-width:1199.98px) {
  :root { --sidebar-width:226px; }
  .sidebar-panel { padding-inline:12px; }
  .nav-link-panel { font-size:11px; padding-inline:11px; gap:10px; }
  .brand-title { font-size:13px; } .brand-mark { width:39px; height:39px; }
  .workspace-body { padding:27px 26px 20px; } .topbar { padding-inline:26px; }
  .ifc-metric-grid { gap:12px; } .ifc-metric { padding:18px; } .ifc-metric-value { font-size:29px; }
  .ifc-grid-wide { grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr); gap:18px; }
  .ifc-panel { padding:20px; } .workspace-label { display:none; }
  .login-story { padding-inline:36px; }
}
@media (max-width:991.98px) {
  .app-shell { grid-template-columns:minmax(0,1fr); }
  .sidebar { position:fixed; inset:0 auto 0 0; width:min(292px,calc(100vw - 36px)); height:100dvh; transform:translateX(-101%); visibility:hidden; transition:transform .18s ease; }
  .sidebar-panel { padding:24px 16px 16px; } .nav-link-panel { font-size:13px; min-height:46px; }
  .brand-title { font-size:14px; } .sidebar-brand-row { padding-inline:8px; justify-content:space-between; }
  .sidebar-open .sidebar { transform:translateX(0); visibility:visible; }
  .sidebar-open .sidebar-backdrop { display:block; position:fixed; inset:0; width:100%; height:100dvh; border:0; background:rgba(25,30,22,.45); z-index:25; }
  .mobile-nav-toggle, .sidebar-close { display:inline-flex; flex:0 0 auto; }
  .mobile-nav-toggle { border:1px solid var(--border); background:#fff; }
  .sidebar-close { width:32px; color:#d3dbc7; }
  body.ifc-navigation-open { overflow:hidden; }
  .topbar { min-height:84px; padding:18px 22px; } .topbar-heading { font-size:16px; }
  .workspace-body { padding:27px 22px 20px; }
  .ifc-grid-wide { grid-template-columns:minmax(0,1fr); }
  .ifc-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .login-story-content { padding-block:60px; }
  .login-story h1 { font-size:36px; } .login-story::after { display:none; }
}
@media (max-width:767.98px) {
  .ifc-admin { font-size:13px; }
  .topbar { padding:15px 16px; gap:10px; }
  .topbar-context { gap:10px; }
  .topbar-kicker { font-size:8px; letter-spacing:.08em; }
  .topbar-heading { font-size:14px; }
  .topbar-actions .btn { padding:8px 10px; font-size:9px; }
  .topbar-actions .btn .shell-icon { display:none; }
  .workspace-body { padding:23px 17px 18px; }
  .workspace-footer { font-size:9px; flex-direction:column; gap:4px; }
  .ifc-page-heading { align-items:flex-start; gap:16px; margin-bottom:21px; }
  .ifc-page-heading h1 { font-size:27px; } .ifc-page-heading p { font-size:11px; }
  .ifc-period-form { width:100%; }
  .ifc-tabs { gap:21px; margin-bottom:20px; }
  .ifc-tabs a { font-size:11px; }
  .ifc-metric-grid { gap:10px; margin-bottom:20px; }
  .ifc-metric { padding:16px 14px; border-radius:11px; }
  .ifc-metric-value { font-size:27px; }
  .ifc-metric-heading { font-size:10px; align-items:flex-start; gap:5px; }
  .ifc-metric-heading .shell-icon { width:14px; height:14px; }
  .ifc-metric-meta { font-size:9px; }
  .ifc-metric-scope { font-size:8px; }
  .ifc-grid-equal, .detail-meta-grid { grid-template-columns:minmax(0,1fr); }
  .ifc-traffic-summary { grid-template-columns:30px minmax(0,1fr); padding:16px; gap:10px; }
  .ifc-traffic-summary-icon { width:30px; height:30px; align-self:start; }
  .ifc-traffic-summary > .ifc-panel-link { grid-column:2; }
  .ifc-panel { padding:19px 17px; }
  .ifc-panel-head h2 { font-size:14px; } .ifc-panel-head { gap:12px; margin-bottom:19px; }
  .ifc-panel-head p { font-size:10px; } .ifc-panel-link { font-size:9px; }
  .detail-hero { flex-direction:column; padding:20px; }
  .hero-card { padding:20px; } .hero-title { font-size:25px; }
  .hero-stat { min-width:0; padding:13px; }
  .hero-actions { display:flex; flex-wrap:wrap; }
  .section-heading { flex-wrap:wrap; }
  .ifc-admin .card-body { padding:18px; }
  .ifc-admin .table thead th, .ifc-admin .table tbody td { padding:12px; }
  .card-pager { align-items:flex-start; flex-direction:column; }
  .login-layout { grid-template-columns:minmax(0,1fr); }
  .login-story { padding:24px 25px 27px; }
  .login-story .brand-mark { width:35px; height:35px; } .login-story .brand-title { font-size:13px; }
  .login-story .brand-subtitle { display:none; }
  .login-story-content { padding:33px 0 0; max-width:none; }
  .login-eyebrow { margin-bottom:13px; font-size:8px; }
  .ifc-admin .login-story h1 { font-size:29px; max-width:20ch; margin-bottom:0; }
  .login-story p, .login-story-topics, .login-story-foot { display:none; }
  .login-access { padding:38px 25px 80px; }
  .login-form-wrap { max-width:420px; }
  .login-access-label { margin-bottom:16px; }
  .login-access h2 { font-size:26px; }
  .login-intro { margin-bottom:27px; }
  .login-other-access { padding-top:20px; }
}
@media (max-width:359px) { .ifc-metric-grid { grid-template-columns:minmax(0,1fr); } .topbar-actions .btn { max-width:96px; white-space:normal; } }
@media (prefers-reduced-motion:reduce) { .ifc-admin *, .ifc-admin *::before, .ifc-admin *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { .sidebar,.topbar,.workspace-footer,.ifc-period-form { display:none!important; } .app-shell { display:block; } .workspace-body { padding:0; max-width:none; } .ifc-panel,.ifc-metric { box-shadow:none; break-inside:avoid; } }
