/* Hera Sales · interface refinement. Shared tokens keep public and portal surfaces aligned. */
:root {
  --ink: #192b49;
  --muted: #596b84;
  --line: #dfe6f0;
  --blue: #284b9b;
  --blue-soft: #edf3ff;
  --paper: #f4f6fb;
  --surface: #fff;
  --radius: 16px;
  --shadow-card: 0 3px 5px #16356a03, 0 12px 35px #16356a05;
  --shadow-popover: 0 22px 80px #152b4940;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #d5e4ff; color: #163665; }
button, .button { min-height: 42px; font-size: 13px; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { cursor: progress; }
button[aria-busy=true] { opacity: .7; }
input, select, textarea { min-height: 44px; font-size: 14px; }
input[type=checkbox], input[type=range] { min-height: auto; }
input[type=checkbox] { width: 17px; height: 17px; vertical-align: middle; }
label { font-size: 13px; color: #394d6b; }
summary { min-height: 36px; line-height: 1.6; }
[hidden] { display: none !important; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 200; padding: 12px 20px; border-radius: 8px; background: var(--blue); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: white; }
.public-mode { background: #fcfdff; }
.public-mode header { min-height: 94px; border-bottom-color: #e4eaf4; }
.public-mode nav { gap: 26px; font-size: 13px; }
.public-mode .hero { gap: 60px; padding: 88px 0 74px; }
.public-mode .hero h1 { font-size: clamp(42px, 4.5vw, 66px); line-height: 1.12; letter-spacing: -2.7px; max-width: 690px; }
.public-mode .hero p { color: #536782; font-size: 17px; line-height: 1.85; }
.public-mode .hero .actions .button { padding: 16px 23px; }
.public-mode .micro { color: #5f7089; font-size: 12px; line-height: 1.8; }
.public-mode .visual { border-radius: 24px; box-shadow: inset 0 0 0 7px #ffffff45; }
.public-mode .mock { padding: 28px; border-radius: 15px; box-shadow: 0 18px 50px #284b9b12; }
.public-mode .strip { background: #f6f9ff; padding: 28px 26px; border-radius: 14px; border: 1px solid #e3eaf6; }
.public-mode .strip small { font-size: 12px; color: #5d708d; line-height: 1.6; }
.public-mode .section { padding-block: 78px; }
.public-mode .card { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.public-mode .card p, .public-mode .sectionhead p { font-size: 14px; color: #596d88; }
.public-mode .route-card { border-radius: 20px; padding: 36px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.public-mode .route-card.featured { border-color: #bacff4; background: linear-gradient(140deg,#eef4ff,#fff 80%); }
.public-mode .route-card.featured::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.route-pricing span { color: #5b6e8b; font-size: 12px; }
.public-mode .offer { border-radius: 24px; padding: 48px; box-shadow: 0 16px 38px #284b9b12; }
.public-mode .offer .calculator { background: #ffffff0d; border-radius: 16px; }
.public-mode .offer label { color: #edf3ff; font-size: 13px; }
.public-mode .offer .micro { color: #d2dff6; }
.public-mode .cta { background: linear-gradient(120deg,#edf3ff,#f7faff); border: 1px solid #dce7f8; border-radius: 22px; padding: 52px 30px; }
.public-mode .faq details { padding: 22px 8px; }
.public-mode .formpage { margin-top: 64px; padding: 40px; border-radius: 20px; border-color: #dee6f3; box-shadow: 0 20px 70px #1a3e7f09; }
.public-mode .formpage h1 { font-size: 34px; }
.public-mode .formpage p { font-size: 14px; }
.public-mode .formpage form > button { margin-top: 26px; min-height: 48px; }
.public-mode .formpage a:not(.button) { color: var(--blue); }
.public-mode footer { color: #61728a; font-size: 12px; line-height: 1.8; }
/* Workspace: readable density, consistent surfaces and numeric alignment. */
.portal-mode { background: var(--paper); font-size: 14px; }
.sidebar { border-color: #e0e7f1; padding-top: 25px; scrollbar-width: thin; scrollbar-color: #c8d5e9 transparent; }
.sidebar > .logo { margin-bottom: 25px; }
.workspace-label { background: #f8faff; border-color: #e2e9f5; margin-bottom: 18px; font-size: 12px; }
.workspace-label small { color: #647794; font-size: 11px; }
.nav-caption { font-size: 10px; color: #6b7f9f; padding-top: 20px; letter-spacing: 1.4px; }
.side-link { color: #586b88; font-size: 12px; padding: 11px 13px; min-height: 43px; margin-block: 3px; border-radius: 9px; }
.side-link.active { color: #244c9e; background: #eaf1ff; box-shadow: inset 3px 0 0 var(--blue); }
.side-link .ui-icon { width: 18px; height: 18px; }
.sidebar-bottom { padding-top: 24px; }
.user-card b { font-size: 12px; }
.user-card small { font-size: 11px; color: #647794; }
.topbar { height: 78px; background: #ffffffed; border-color: #e0e7f1; gap: 18px; }
.breadcrumb { font-size: 12px; min-width: 0; }
.breadcrumb b { color: #354c6c; }
.local-pill { display: none; }
.top-actions { gap: 12px !important; }
.workspace-search { display: inline-flex; background: #f7f9fd; border: 1px solid #e0e7f2; color: #637694; border-radius: 9px; padding: 8px 12px; min-height: 38px; gap: 8px; font-size: 12px; }
.workspace-search:hover { background: #edf3ff; color: var(--blue); box-shadow: none; }
kbd { font: 11px inherit; white-space: nowrap; border: 1px solid #dce4ef; background: white; border-radius: 4px; padding: 1px 5px; color: #647591; }
.portal-mode main.portal { padding-top: 34px; padding-bottom: 24px; }
.page-title { margin-bottom: 30px; }
.page-title .eyebrow { font-size: 10px; color: #607697; letter-spacing: 1.5px; }
.portal-mode h1 { font-size: 31px; letter-spacing: -1.1px; color: #192f53; margin-top: 9px; }
.page-title > .button { min-height: 43px; font-size: 12px; padding: 12px 16px; }
.portal-mode h2 { font-size: 24px; letter-spacing: -.7px; }
.portal-mode h3 { font-size: 15px; letter-spacing: -.25px; }
.portal-mode p { font-size: 13px; color: #5d708d; line-height: 1.85; }
.portal-mode .panel { border-radius: var(--radius); padding: 25px; border-color: #e0e7f1; box-shadow: var(--shadow-card); }
.panel-heading { gap: 16px; margin-bottom: 19px; }
.portal-mode .panel-heading a { color: #335ea7; font-size: 12px; font-weight: 600; }
.content-heading { align-items: center; gap: 20px; }
.content-heading h2 { font-size: 25px; }
.content-heading p { max-width: 680px; font-size: 13px; }
.welcome-banner { padding: 32px; border-radius: 20px; background: linear-gradient(120deg,#edf3ff,#e6efff); border-color: #d9e4f6; }
.welcome-banner h2 { font-size: 30px; line-height: 1.25; }
.welcome-banner p { color: #5d7498; font-size: 13px; }
.welcome-banner a { font-size: 12px; }
.welcome-banner .badge { font-size: 10px; }
.section-label { margin-bottom: 16px; }
.section-label h3 { font-size: 14px; }
.section-label > span { font-size: 11px; color: #617594; }
.metrics { gap: 18px; margin-block: 8px 28px; }
.metric { border-radius: var(--radius); padding: 22px; border-color: #e0e7f1; box-shadow: var(--shadow-card); min-width: 0; position: relative; }
.metric > div { font-size: 12px; color: #52698b; line-height: 1.55; align-items: flex-start; }
.metric > div .ui-icon { width: 18px; height: 18px; color: #6081b9; }
.metric > strong { font-size: clamp(25px,2vw,32px); letter-spacing: -.9px; margin-block: 17px 10px; font-variant-numeric: tabular-nums; color: #1c3358; }
.metric > small { font-size: 11px; line-height: 1.7; color: #617594; }
.dashboard-grid { gap: 24px; }
.badge { padding: 6px 10px; font-size: 11px; border-radius: 7px; line-height: 1.5; }
.badge.green { color: #226443; background: #e8f6ee; }
.badge.red { color: #a13d35; background: #fff0ed; }
.badge.blue { color: #345a97; background: #edf3ff; }
.tablewrap { border-color: #e0e7f1; scrollbar-width: thin; scrollbar-color: #c3d1e7 #f4f7fc; }
.tablewrap:focus-visible { outline-offset: 4px; }
.portal-mode th { background: #f5f8fd; padding: 14px 16px; font-size: 10px; font-weight: 700; letter-spacing: .65px; color: #5b708e; white-space: nowrap; }
.portal-mode td { padding: 17px 16px; font-size: 12px; line-height: 1.6; color: #3d5374; font-variant-numeric: tabular-nums; }
.portal-mode tbody tr:hover { background: #f8faff; }
.portal-mode td a:not(.button) { color: #2f589b; }
.company-avatar { width: 33px; height: 33px; color: #4b6ba3; }
.funnel-row { font-size: 12px; margin-block: 20px; }
.funnel-row > span { width: 112px; color: #526c90; }
.funnel-row > b { font-size: 12px; color: #3e5c89; }
.funnel-row > div { height: 8px; }
.funnel-row i { min-height: 8px; background: #6f95db; }
.empty-state { padding: 40px 22px; border-radius: 12px; border-color: #d4e0f2; background: #fafcff; }
.empty-state h3 { font-size: 15px; }
.empty-state p { color: #657b9b; font-size: 12px; }
.empty-state .button { font-size: 12px; min-height: 40px; color: #315b9f; }
.quick-links > a { border-radius: 13px; padding: 22px; }
.quick-links b { font-size: 13px; color: #35527d; }
.quick-links small { font-size: 11px; color: #647b9d; margin-top: 5px; }
.task-preview b { font-size: 13px; }
.task-preview small { font-size: 11px; color: #657b9b; }
.portal-mode label { font-size: 12px; }
.portal-mode form input, .portal-mode form select, .portal-mode form textarea { font-size: 13px; }
.filter-form { gap: 10px; }
.filter-form > select, .filter-form input { min-height: 43px; }
.filter-form > button { font-size: 12px; min-height: 43px; margin: 0; }
.finance-filters > select[name=periode] { flex: 0 1 220px; }
.selection-summary { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin: -6px 0 24px; font-size: 12px; color: #617594; }
.selection-summary a { color: var(--blue); font-weight: 600; }
.export-actions { flex-wrap: wrap; }
.export-actions .button { font-size: 12px; padding: 10px 14px; white-space: nowrap; }
.activity-chart { min-height: 200px; padding-block: 20px; gap: 16px; }
.activity-chart i { background: linear-gradient(#7b9fdf,#b6ccf1); border-radius: 6px 6px 0 0; }
.activity-chart b { font-size: 12px; color: #395d95; }
.activity-chart small { font-size: 10px; color: #596f91; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: #5e7495; }
.pagination .button { min-height: 38px; font-size: 12px; padding: 8px 14px; }
.subtle { font-size: 12px; color: #5d7496; }
.notice { background: #edf4ff; border-color: #d4e2f6; color: #36577f; font-size: 13px; border-radius: 11px; }
.notice.error { background: #fff2ef; color: #a23d31; border-color: #f0d4cb; }
.toast { border-radius: 11px; box-shadow: 0 10px 35px #193e7020; padding: 16px 22px; font-size: 13px; }
.portal-footer { padding-top: 26px; margin-top: 28px; font-size: 11px; color: #657b9b; }
.password-wrap .password-toggle { min-height: 32px; color: #496a9b; font-size: 12px; }
.language-picker { border-radius: 8px; min-height: 36px; }
.language-picker select { min-height: 28px; font-size: 11px; color: #45618d; }
.language-picker button { min-height: 26px; }
.mfa-qr svg { display: block; width: min(280px,65vw); height: auto; }
.mfa-secret { max-width: 580px; font-size: 15px; line-height: 1.8; }
/* Sales workflows use the same readable density as the overview. */
.portal-mode form > button { font-size: 13px; }
.portal-mode label:has(input[type=checkbox]) { font-size: 12px; }
.portal-mode .notice { color: #36577f; font-size: 13px; }
.view-switch { font-size: 12px; border-radius: 9px; }
.view-switch a { padding: 9px 13px; }
.kanban { gap: 18px; scroll-snap-type: x proximity; }
.kanban-column { width: 275px; min-width: 275px; padding: 14px; border-radius: 14px; background: #edf1f8; scroll-snap-align: start; }
.kanban-title > b { font-size: 11px; color: #546e98; }
.deal-card { border-radius: 12px; padding: 19px; box-shadow: var(--shadow-card); }
.deal-category { font-size: 10px; color: #5375aa; }
.portal-mode .deal-card h3 { font-size: 16px; }
.portal-mode .deal-card p { color: #5d7598; font-size: 12px; }
.deal-card > div, .deal-card > small { font-size: 11px; color: #627a9f; }
.kanban-empty { font-size: 12px; color: #627a9f; }
.back-link { font-size: 12px; color: #3a60a2; }
.deal-summary > span:last-child { font-size: 12px; color: #617797; }
.contact-grid small { font-size: 11px; color: #647b9e; }
.contact-grid b { font-size: 13px; color: #3c5579; }
.timeline small, .timeline span { font-size: 11px; color: #647b9e; }
.portal-mode .timeline p { font-size: 13px; }
.message b { font-size: 13px; }
.message small { font-size: 11px; color: #627a9e; }
.portal-mode .message p { font-size: 13px; padding: 16px; border-radius: 0 12px 12px; }
.task-row { padding-block: 18px; }
.task-row b { font-size: 13px; }
.task-row small { font-size: 11px; color: #607799; }
.task-row small.overdue { color: #a34434; }
.task-row form > button { min-height: 36px; width: 36px; font-size: 17px; }
.product-card { border-radius: 16px; box-shadow: var(--shadow-card); }
.product-topline .eyebrow, .product-audience small { font-size: 10px; color: #617a9f; }
.portal-mode .product-card p, .product-card details { font-size: 13px; }
.product-card .button, .product-card > .text-link { font-size: 12px; }
.product-commission { font-size: 12px; color: #536f9a; padding: 17px; }
.checklist { font-size: 13px; color: #566f94; line-height: 1.7; }
.portal-mode .help-note p { font-size: 12px; }
.support-reply b { font-size: 12px; color: #3a609c; }
.cell-sub { font-size: 11px; color: #627a9e; }
.portal-mode td form > button { font-size: 11px; min-height: 36px; }
.portal-mode td form > input:not([type=hidden]) { font-size: 12px; min-height: 38px; }
.portal-mode td details { font-size: 11px; }
.onboard-steps span, .onboarding > a { font-size: 12px; }
body.sidebar-open::before { display: none; }
/* Native dialog keeps focus inside navigation search and supports Escape. */
.workspace-dialog { width: min(560px,calc(100vw - 32px)); max-height: min(640px,85dvh); margin: 12vh auto auto; padding: 0; border: 1px solid #d8e3f4; border-radius: 18px; box-shadow: var(--shadow-popover); color: var(--ink); background: white; }
.workspace-dialog::backdrop { background: #122b4f66; backdrop-filter: blur(3px); }
.workspace-dialog-head { display: flex; align-items: center; padding: 18px; gap: 12px; border-bottom: 1px solid var(--line); }
.workspace-dialog-head input { border: 0; box-shadow: none; padding: 10px 4px; min-width: 0; }
.workspace-dialog-head button { background: #f1f5fc; color: #536e97; min-height: 36px; padding: 8px 11px; }
.workspace-results { overflow: auto; max-height: 390px; padding: 10px; }
.workspace-results a { display: flex; align-items: center; gap: 12px; border-radius: 9px; padding: 13px 15px; font-size: 14px; color: #3d587f; }
.workspace-results a:hover, .workspace-results a:focus { background: #edf3ff; color: var(--blue); outline-offset: -2px; }
.workspace-results .ui-icon { color: #6a88b9; }
.workspace-results p { padding: 15px; font-size: 13px; color: #617594; }
.workspace-dialog-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 11px; color: #607695; background: #f9fbff; }
html[dir=rtl] .side-link.active { box-shadow: inset -3px 0 0 var(--blue); }
@media (max-width:1150px) {
  .workspace-search span, .workspace-search kbd { display: none; }
  .workspace-search { padding: 9px; }
  .metric { padding: 19px; }
  .metric > small { font-size: 11px; }
  .portal-mode main.portal { padding-inline: 26px; }
  .content-heading { flex-wrap: wrap; }
}
@media (max-width:800px) {
  .public-mode nav { gap: 16px; }
  .public-mode .hero { padding-block: 48px; gap: 38px; }
  .public-mode .hero h1 { max-width: 620px; }
  .public-mode .section { padding-block: 52px; }
  .public-mode .offer { padding: 30px; gap: 30px; }
  .public-mode .strip { padding: 26px; }
  .content-heading .export-actions { width: 100%; }
}
@media (max-width:650px) {
  .sidebar { width: min(285px,85vw); z-index: 80; padding-top: 22px; box-shadow: none; }
  .sidebar-open .sidebar { box-shadow: 20px 0 60px #142d4c20; }
  .sidebar .brand-name { font-size: 28px; }
  .sidebar .logo .brand-icon { width: 36px; height: 36px; }
  .side-link { font-size: 13px; min-height: 44px; }
  .sidebar-backdrop { position: fixed; inset: 0; background: #152c4b66; border: 0; padding: 0; z-index: 70; border-radius: 0; min-height: 100vh; }
  .sidebar-backdrop:hover { background: #152c4b66; box-shadow: none; }
  body.sidebar-open { overflow: hidden; }
  .menu-toggle { min-height: 42px; min-width: 38px; padding: 8px; position: relative; }
  .topbar { height: 68px; padding-inline: 14px; gap: 7px; }
  .top-actions { gap: 7px !important; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb b { max-width: 84px; }
  .breadcrumb span { margin-inline: 4px; }
  .portal-mode .language-picker { max-width: 101px; }
  .portal-mode .language-picker select { font-size: 10px; width: 62px; }
  .portal-mode .language-picker button { padding: 2px !important; min-width: 18px; }
  .small-avatar { width: 29px; height: 29px; }
  .workspace-search { min-height: 36px; padding: 7px; }
  .portal-mode main.portal { padding: 26px 16px 18px; }
  .portal-mode h1 { font-size: 26px; }
  .page-title { margin-bottom: 25px; align-items: center; }
  .page-title .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .page-title > .button { font-size: 0; gap: 0; padding: 12px; min-width: 44px; }
  .welcome-banner { padding: 25px; border-radius: 16px; }
  .welcome-banner h2 { font-size: 27px; }
  .welcome-banner p { font-size: 12px; }
  .welcome-banner a { font-size: 12px; }
  .metrics { gap: 12px; margin-bottom: 23px; }
  .metric { padding: 17px 14px; border-radius: 13px; }
  .metric > div { font-size: 11px; }
  .metric > strong { font-size: 25px; }
  .metric > small { font-size: 10px; line-height: 1.7; }
  .portal-mode .panel { padding: 21px 18px; border-radius: 14px; }
  .portal-mode th { padding: 12px; font-size: 10px; }
  .portal-mode td { padding: 14px 12px; font-size: 12px; }
  .content-heading h2 { font-size: 23px; }
  .content-heading p { font-size: 13px; }
  .export-actions { gap: 8px; }
  .export-actions .button { flex: 1 1 140px; font-size: 11px; padding: 10px; }
  .finance-filters > select[name=periode] { flex: 1 1 100%; }
  .selection-summary { font-size: 11px; margin-top: 0; }
  .pagination { gap: 8px; font-size: 11px; }
  .pagination .button { font-size: 11px; padding-inline: 10px; }
  .portal-footer { font-size: 10px; flex-wrap: wrap; gap: 14px; }
  .portal-footer a { max-width: none; }
  .public-mode header { padding: 18px 20px; gap: 16px; }
  .public-mode header nav { gap: 12px; font-size: 12px; }
  .public-mode .hero h1 { font-size: 44px; letter-spacing: -1.9px; }
  .public-mode .hero p { font-size: 16px; }
  .public-mode .visual { padding: 22px; border-radius: 18px; }
  .public-mode .mock { padding: 23px; }
  .public-mode .route-card { padding: 27px; }
  .public-mode .offer { padding: 27px; border-radius: 18px; }
  .public-mode .formpage { margin: 30px 18px 55px; padding: 28px; border-radius: 17px; }
  .public-mode .formpage h1 { font-size: 30px; }
  .workspace-dialog { margin-top: 6vh; }
  .workspace-dialog-foot { font-size: 11px; line-height: 1.7; }
}
@media (max-width:370px) {
  .breadcrumb { display: none; }
  .top-actions { margin-inline-start: auto; }
  .public-mode header .brand-name { font-size: 24px; }
  .public-mode .hero h1 { font-size: 39px; }
  .metric > strong { font-size: 23px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .skip-link, .workspace-search, .workspace-dialog, .sidebar-backdrop, .pagination, .selection-summary, .export-actions { display: none !important; }
  .panel, .metric, .statement-sheet { box-shadow: none !important; }
}
