/* Vareflow web – same warm light palette as the Android app (Theme.kt, WARM_LIGHT). */
:root {
  --nav: #FFF9F3;
  --page: #FFF8F1;
  --text: #1F2937;
  --ink: #202235;
  --muted: #6B7280;
  --muted2: #758199;
  --primary: #FF7A00;
  --primary-dark: #C25E00;
  --primary-soft: #FFF1E3;
  --card: #FFFFFF;
  --line: #E8E0D5;
  --line-strong: #E5DED4;
  --divider: #EFE8DF;
  --green: #18774A;
  --amber: #9A6400;
  --grey: #6F7788;
  --indigo: #4E51E9;
  --red: #AD3D3D;
  --brown: #7A5A00;
  --blue: #2864A8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(32, 34, 53, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
/* Intro (as on the phone): Glød backdrop, frosted panel, "Vareflow by Garasjestudio" */
.boot {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  background: #A9B3BD url(backdrop-glod.svg) center / cover no-repeat;
}
.boot-glass {
  min-width: 260px; padding: 34px 44px 28px; border-radius: 28px; text-align: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 18px 50px rgba(40,50,60,.18), inset 0 1px 0 rgba(255,255,255,.3);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: boot-in .7s ease-out both;
}
.boot-brand { font-size: 46px; font-weight: 600; letter-spacing: -1px; color: #fff; text-shadow: 0 2px 16px rgba(60,40,30,.25); }
.boot-by { margin-top: 4px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); letter-spacing: .3px; }
.boot-bar { margin: 22px auto 0; width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: #fff; animation: boot-bar 1.1s ease-in-out infinite; }
@keyframes boot-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes boot-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .boot-glass, .boot-bar span { animation: none; } }
.boot.still .boot-glass { animation: none; }

/* ---------- utilities ---------- */
.muted { color: var(--muted2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 650; }
.accent { color: var(--primary); }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.ok-text { color: #4A8A68; }
.warn-text { color: var(--amber); }
.error-text { color: var(--red); font-size: 13px; font-weight: 600; }
.warning-text { color: var(--amber); font-size: 12px; }
.danger-text { color: var(--red) !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #F06F00; }
.btn.tonal { background: var(--primary-soft); color: var(--primary-dark); }
.btn.outline { border-color: var(--line-strong); background: #fff; }
.btn.outline:hover:not(:disabled) { border-color: var(--primary); }
.btn.text { color: var(--primary-dark); padding: 0 10px; }
.btn.text:hover:not(:disabled) { background: var(--primary-soft); }
.btn.danger { background: var(--red); color: #fff; }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.btn.back { margin: -6px 0 2px -10px; align-self: flex-start; }
.link { background: none; border: 0; padding: 2px 8px 2px 0; color: var(--primary); font-weight: 600; cursor: pointer; text-align: left; }
.link:disabled { color: #C9B9A8; cursor: default; }
.icon-btn {
  width: 42px; height: 42px; flex: none; border-radius: 14px; border: 1px solid transparent;
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.icon-btn.primary { background: var(--primary); color: #fff; font-size: 24px; }
.icon-btn.outline { background: #fff; border-color: var(--line-strong); color: var(--ink); font-size: 16px; }
:focus-visible { outline: 3px solid rgba(255, 122, 0, .45); outline-offset: 2px; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 22px; }
.login-hero { text-align: center; }
.login-brand { font-size: 40px; font-weight: 900; color: #151719; letter-spacing: -.5px; }
.login-tagline { color: #5E6065; }
.lang-switch { display: inline-flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); }
.lang-option { border: 0; background: transparent; color: #3D4046; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; cursor: pointer; min-height: 30px; }
.lang-option:hover { background: rgba(255,255,255,.6); }
.lang-option.active { background: #fff; color: #151719; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.lang-option:focus-visible { outline: 2px solid var(--primary, #E8751E); outline-offset: 2px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .lang-switch { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .lang-option { color: rgba(255,255,255,.9); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .lang-option:hover { background: rgba(255,255,255,.14); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .lang-option.active { background: rgba(255,255,255,.92); color: #2A1A12; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; }
.login-card .forgot-link { align-self: flex-end; margin-top: -8px; min-height: 30px; font-size: 13px; }
.login-title { font-size: 27px; font-weight: 900; color: #191B1F; }
.remember { align-items: flex-start; }
.remember-title { font-weight: 600; font-size: 13.5px; }
.login-foot { text-align: center; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.side-nav { display: none; }
.main-col { min-width: 0; padding-bottom: 76px; }
.app-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  background: var(--nav); padding: 8px 18px; border-bottom: 1px solid #F3E8DB;
}
.header-text { flex: 1; min-width: 0; }
.brand { font-size: 20px; font-weight: 900; color: var(--primary); line-height: 1.1; }
.header-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { border-radius: 20px; padding: 7px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill-local { background: #FFF1D8; color: var(--amber); }
.pill-timer { background: #EEF0FF; color: #514FE6; font-size: 12px; font-variant-numeric: tabular-nums; }
.pill-cloud { border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.pill-cloud.ok { background: #DDF3E6; color: #18774A; }
.pill-cloud.warn { background: #FFF1D8; color: var(--amber); }
.pill-cloud.err { background: #FBE3E3; color: #AD3D3D; }
.center { text-align: center; }
.company-choice { gap: 12px; }
.company-monogram { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.conflict-card { gap: 4px; }
.content { max-width: 920px; margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 10px; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: 68px;
  display: flex; background: var(--nav); border-top: 1px solid #F3E8DB;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; color: var(--text); cursor: pointer; font-size: 11px; min-width: 0;
}
.bottom-item .glyph { padding: 3px 8px; border-radius: 10px; display: grid; place-items: center; }
.bottom-item.active { color: var(--primary); font-weight: 650; }
.bottom-item.active .glyph { background: rgba(255, 122, 0, .10); }
.nav-label { white-space: nowrap; }

@media (min-width: 600px) {
  .shell { display: flex; }
  .bottom-nav { display: none; }
  .main-col { flex: 1; padding-bottom: 0; }
  .side-nav {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
    width: 96px; flex: none; background: var(--nav); padding: 14px 10px; border-right: 1px solid #F3E8DB;
  }
  .side-brand { font-size: 17px; font-weight: 900; color: var(--primary); padding: 6px 6px 12px; }
  .side-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px;
    border: 0; border-radius: 14px; background: none; color: var(--text); cursor: pointer; font-size: 11.5px;
  }
  .side-item:hover { background: rgba(255, 122, 0, .06); }
  .side-item.active { color: var(--primary); background: rgba(255, 122, 0, .10); font-weight: 650; }
  .content { padding: 20px 24px 40px; }
  .app-header .brand { display: none; }
  .header-sub { font-size: 14px; color: var(--text); font-weight: 600; }
}
@media (min-width: 1100px) {
  .side-nav { width: 220px; padding: 18px 14px; }
  .side-brand { font-size: 24px; padding: 6px 10px 16px; }
  .side-item { flex-direction: row; gap: 12px; padding: 11px 12px; font-size: 15px; justify-content: flex-start; }
  .content { max-width: 1040px; }
}

/* ---------- page parts ---------- */
.page-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-titles { flex: 1; min-width: 180px; }
.page-titles h1 { font-size: 27px; font-weight: 900; letter-spacing: -.3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-size: 16px; font-weight: 700; margin-top: 6px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px;
}
.card.empty { color: var(--muted2); padding: 20px; }
.card-title { font-size: 16px; font-weight: 700; }
.card-heading { font-size: 18px; font-weight: 700; }
.card-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.badge { border-radius: 12px; padding: 5px 9px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.tone-green { color: var(--green); background: rgba(24, 119, 74, .12); }
.tone-amber { color: var(--amber); background: rgba(154, 100, 0, .12); }
.tone-grey { color: var(--grey); background: rgba(111, 119, 136, .12); }
.tone-indigo { color: var(--indigo); background: rgba(78, 81, 233, .12); }
.tone-red { color: var(--red); background: rgba(173, 61, 61, .12); }
.tone-brown { color: var(--brown); background: rgba(122, 90, 0, .12); }
.tone-blue { color: var(--blue); background: rgba(40, 100, 168, .12); }

.session-month { font-size: 22px; font-weight: 900; }
.progress { height: 8px; border-radius: 8px; background: #F3ECE3; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 8px; }
.sync-note { color: var(--green); font-size: 11.5px; font-weight: 650; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.button-row > .btn { flex: 1; }

/* ---------- counting ---------- */
.segment-strip {
  display: flex; overflow-x: auto; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 18px; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.segment {
  flex: 1 0 88px; min-width: 88px; height: 64px; padding: 6px; border: 0; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  scroll-snap-align: start; color: var(--ink);
}
.segment + .segment { box-shadow: inset 1px 0 0 var(--divider); }
.segment:hover:not(.selected) { background: #FFFAF4; }
.segment.selected { background: var(--primary); color: #fff; }
.segment-name {
  height: 26px; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; line-height: 12px; font-weight: 700;
}
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.segment-count { font-size: 10px; color: var(--muted); white-space: nowrap; }
.segment.selected .segment-count { color: rgba(255, 255, 255, .9); }
.segment-count.done { color: var(--green); font-weight: 700; }
@media (min-width: 600px) { .segment { flex-basis: 104px; } }

.department-row { display: flex; align-items: center; gap: 8px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; height: 42px; padding: 0 16px; border-radius: 14px; border: 1px solid #E6E0D7;
  background: #FFFCF8; font-weight: 600; font-size: 13px; cursor: pointer;
}
.chip.selected { border: 1.5px solid var(--primary); background: rgba(255, 122, 0, .08); font-weight: 750; }
.assign-list .chip, .user-card .chip { height: 34px; padding: 0 12px; }
.status-row { display: flex; align-items: center; gap: 8px; min-height: 36px; }

.search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E6E4E1;
  border-radius: 16px; padding: 0 16px; height: 52px;
}
.search:focus-within { border-color: var(--primary); }
.search-icon { color: #8B8F98; display: grid; }
.search-input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; min-width: 0; }
.list-meta { display: flex; justify-content: space-between; padding: 0 2px; }

.count-list, .list { display: flex; flex-direction: column; gap: 8px; }
.count-row {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 10px 10px 10px 12px; box-shadow: var(--shadow);
}
.count-row.locked { background: #FFFCF9; }
.glyph-dot {
  width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255, 122, 0, .08);
  color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.count-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.count-name {
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-weight: 700;
  font-size: 13.5px; line-height: 16px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.count-name:hover { color: var(--primary-dark); }
.count-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.step {
  width: 40px; height: 40px; border-radius: 13px; border: 0; font-size: 22px; line-height: 1; cursor: pointer;
  background: rgba(255, 122, 0, .08); color: var(--primary);
}
.step.plus { background: var(--primary); color: #fff; }
.step:disabled { background: #F1F1F1; color: #B0B5BD; cursor: default; }
.qty {
  width: 62px; height: 48px; border-radius: 14px; border: 1px solid #E2DAD0; background: #fff;
  text-align: center; font-size: 18px; color: var(--ink); outline: 0; font-variant-numeric: tabular-nums;
}
.qty:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 0, .15); }
.qty:disabled { background: #FAF8F5; color: #7D828C; }
.qty::placeholder { color: #505562; }
@media (min-width: 600px) { .qty { width: 76px; } }

/* ---------- lists, history, products ---------- */
.nav-card, .product-row { flex-direction: row; align-items: center; text-align: left; cursor: pointer; width: 100%; }
.nav-card:hover, .product-row:hover { border-color: #F2C9A0; }
.product-row { padding: 11px 14px; border-radius: 15px; }
.product-row.inactive { opacity: .65; }
.chevron { font-size: 26px; color: #A79A8C; line-height: 1; }
.snapshot { padding: 0; gap: 0; }
.snapshot-head { display: flex; align-items: center; gap: 10px; padding: 16px; cursor: pointer; list-style: none; }
.snapshot-head::-webkit-details-marker { display: none; }
.snapshot[open] .snapshot-head { border-bottom: 1px solid #F1EBE3; }
.lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lines th { text-align: left; font-size: 11.5px; color: var(--muted2); font-weight: 600; padding: 10px 16px 6px; }
.lines td { padding: 7px 16px; border-top: 1px solid #F5F0EA; vertical-align: top; }
.lines .num { text-align: right; white-space: nowrap; }
.snapshot-total { padding: 12px 16px 16px; border-top: 1px solid #E9EDF5; }
.metric-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.metric-value { font-size: 23px; font-weight: 900; color: var(--primary); }
.metric-label { font-size: 12px; color: var(--muted2); }
.top-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.top-list li { display: list-item; }
.top-list li span { display: inline-block; }
.top-list li .strong { float: right; }

/* ---------- more / admin ---------- */
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.rights { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid #E9EDF5; padding-top: 10px; }
.rights-col { display: flex; flex-direction: column; gap: 4px; }
.audit-row { gap: 3px; padding: 12px 14px; }

/* ---------- forms and dialogs ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12.5px; font-weight: 650; color: #4B5160; }
.field-hint { font-size: 11.5px; color: var(--muted2); }
.input {
  height: 46px; border: 1px solid #DDD5CA; border-radius: 14px; background: #fff; padding: 0 14px; outline: 0; width: 100%;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 0, .15); }
.textarea { height: auto; padding: 10px 14px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 3px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(32, 34, 53, .38);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dialog {
  width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff;
  border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 50px rgba(32, 34, 53, .25);
}
.dialog-title { font-size: 20px; font-weight: 800; padding-right: 10px; }
.dialog-subtitle { font-size: 17px; font-weight: 800; }
.dialog-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.details { display: flex; flex-direction: column; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #F3EEE8; font-size: 14px; }
.detail-label { color: var(--muted2); }
.detail-value { font-weight: 600; text-align: right; }
.assign-list { display: flex; flex-direction: column; gap: 12px; }
.assign-category { font-weight: 700; margin-bottom: 6px; }
.picker-list { display: flex; flex-direction: column; gap: 6px; }
.picker-item {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.picker-item.selected { border-color: var(--primary); background: rgba(255, 122, 0, .05); }
@media (max-width: 599px) {
  .overlay { align-items: flex-end; padding: 0; }
  .dialog { border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

.toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 30;
  background: #2B2A28; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px);
}
@media (min-width: 600px) { .toast { bottom: 24px; } }

/* ---------- Moderne visning (test switch in Mer → Visning) ---------- */
.mbadge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px 4px 8px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.mbadge-icon { display: grid; }
.tone-orange { color: var(--primary-dark); background: rgba(255, 122, 0, .12); }
.led {
  width: 8px; height: 8px; border-radius: 50%; background: #22B573; position: relative; flex: none;
  box-shadow: 0 0 0 0 rgba(34, 181, 115, .55); animation: led-pulse 1.8s ease-out infinite;
}
@keyframes led-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 181, 115, .55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 181, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0); }
}

.session-modern { display: flex; gap: 18px; align-items: center; }
.session-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.session-info > .row { flex-wrap: wrap-reverse; align-items: flex-start; row-gap: 6px; }
.session-info .session-month { white-space: nowrap; }
.ring { position: relative; width: 128px; height: 128px; flex: none; }
.ring-svg, .ring-svg svg { display: block; }
.ring-svg svg { transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #F3ECE3; }
.ring-value { fill: none; stroke-linecap: round; }
.ring-inner { stroke: #4C8DFF; }
.ring-anim { animation: ring-fill 1.1s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes ring-fill { from { stroke-dashoffset: var(--from); } to { stroke-dashoffset: var(--to); } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-percent { font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: var(--ink); line-height: 1; }
.ring-caption { font-size: 11px; color: var(--muted2); margin-top: 3px; }
.legend-row { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-orange { background: linear-gradient(135deg, #FFB040, #FF5500); }
.dot-blue { background: #4C8DFF; }
@media (max-width: 420px) {
  .session-modern .session-month { font-size: 19px; }
  .ring { width: 112px; height: 112px; }
  .ring-svg svg { width: 112px; height: 112px; }
  .ring-percent { font-size: 23px; }
  .session-modern { gap: 14px; }
}

.spark { display: block; margin: 2px -2px 0; }
.spark svg { display: block; overflow: visible; }
.spark-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { stroke: none; opacity: .14; }
.spark-line.spark-green { stroke: #22A06B; } .spark-area.spark-green { fill: #22A06B; }
.spark-line.spark-amber { stroke: #E89A1C; } .spark-area.spark-amber { fill: #E89A1C; }
.spark-line.spark-orange { stroke: #FF8A1F; } .spark-area.spark-orange { fill: #FF8A1F; }
.spark-base { stroke: #EADFD2; stroke-width: 2; stroke-dasharray: 3 5; fill: none; }
.mini-progress { height: 5px; border-radius: 5px; background: #F3ECE3; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 5px; transition: width .6s ease; }
.fill-green { background: linear-gradient(90deg, #3CC48A, #18774A); }
.fill-amber { background: linear-gradient(90deg, #FFC15A, #E08A00); }
.fill-orange { background: linear-gradient(90deg, #FFB040, #FF5500); }

body.modern .btn.primary {
  background: linear-gradient(90deg, #FF8C00, #FF5500);
  box-shadow: 0 6px 16px rgba(255, 85, 0, .28), 0 1px 2px rgba(255, 85, 0, .2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
body.modern .btn.primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #FF9512, #FF5A08);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 85, 0, .34), 0 2px 4px rgba(255, 85, 0, .2);
}
body.modern .btn.primary:active:not(:disabled) { transform: translateY(0) scale(.985); box-shadow: 0 4px 10px rgba(255, 85, 0, .25); }
body.modern .btn.cta { min-height: 50px; border-radius: 16px; font-size: 16px; }
body.modern .card.category-card { transition: transform .18s ease, box-shadow .18s ease; }
body.modern .card.category-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(32, 34, 53, .08); }

.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch {
  appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; flex: none;
  background: #DCD5CC; position: relative; cursor: pointer; transition: background .2s ease; margin: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(20px); }

@media (prefers-reduced-motion: reduce) {
  .ring-anim, .led { animation: none; }
  body.modern .btn.primary, body.modern .card.category-card, .mini-fill { transition: none; }
}

/* ---------- month tabs (Oversikt), sub-tabs (Analyse | Historikk) — 2026-10-07 ---------- */
.month-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 18px; scrollbar-width: thin;
}
.month-tab {
  flex: 1 0 auto; min-width: 140px; min-height: 52px; padding: 6px 14px; border: 0; border-radius: 14px;
  background: transparent; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.month-tab:hover:not(.selected) { background: #FFFAF4; }
.month-tab.selected { background: var(--primary); color: #fff; }
.month-tab-name { font-weight: 750; font-size: 14.5px; white-space: nowrap; }
.month-tab-sub { font-size: 11px; opacity: .85; white-space: nowrap; }
.month-tab-status { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--muted2); }
.month-tab-status.status-active { color: var(--green); }
.month-tab-status.status-draft { color: var(--brown); }
.month-tab.selected .month-tab-status { color: rgba(255, 255, 255, .92); }
body.modern .month-tab.selected { background: linear-gradient(135deg, #FFB040, #FF5500); }

.sub-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; align-self: flex-start; }
.sub-tab { border: 0; background: transparent; border-radius: 10px; padding: 8px 18px; font-weight: 650; cursor: pointer; color: var(--ink); }
.sub-tab:hover:not(.selected) { background: #FFFAF4; }
.sub-tab.selected { background: var(--primary-soft); color: var(--primary-dark); }

/* close dialog summary */
.close-summary { display: flex; flex-direction: column; margin: 4px 0 8px; }
.close-warning { background: rgba(173, 61, 61, .08); color: var(--red); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }

/* live analysis */
.card > .lines { margin: 0 -16px; width: calc(100% + 32px); }
.lines tfoot td { border-top: 1.5px solid var(--line-strong); padding-top: 10px; }
.value-bar { height: 5px; border-radius: 5px; background: #F3ECE3; margin-top: 5px; overflow: hidden; max-width: 260px; }
.value-fill { height: 100%; border-radius: 5px; background: var(--primary); }
body.modern .value-fill { background: linear-gradient(90deg, #FFB040, #FF5500); }

/* history */
.year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.snapshot-figures { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.change { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 2px 7px; white-space: nowrap; }
.change.up { color: var(--green); background: rgba(24, 119, 74, .10); }
.change.down { color: var(--red); background: rgba(173, 61, 61, .10); }
.snapshot-body { padding: 4px 0 12px; }
.card-subheading { font-size: 14px; font-weight: 700; padding: 10px 16px 0; }
.all-lines { margin-top: 8px; }
.all-lines > summary { padding: 6px 16px; cursor: pointer; }

/* Fordel arbeid — 2026-10-07 */
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; padding: 2px 0; }
.check-list .check { padding: 8px 4px; border-bottom: 1px solid #F3EEE8; }
.invite-note { background: rgba(24, 119, 74, .08); color: var(--green); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.invite-note .muted { color: var(--muted2); }
.dialog .picker-item .avatar { width: 36px; height: 36px; font-size: 14px; }
.dialog .picker-list { max-height: 50vh; overflow-y: auto; }

/* Analyse: compact, centred total — 2026-10-07 */
.metric-total { display: flex; justify-content: center; }
.metric-total .metric { width: 100%; max-width: 300px; padding: 12px 16px; align-items: center; text-align: center; gap: 2px; }
.metric-total .metric-value { font-size: 22px; }

/* Mer-verktøy (Utseende, Utskriftsliste, Datakvalitet) — 2026-10-07 */
.theme-swatch { width: 64px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.theme-swatch .sw-bar { height: 12px; border-radius: 6px; border: 1px solid rgba(0,0,0,.06); }
.theme-swatch .sw-page { height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.06); }
.theme-check { font-size: 22px; font-weight: 800; width: 22px; text-align: center; }
.print-preview { max-height: 40vh; overflow-y: auto; border: 1px solid #DDE5F2; border-radius: 14px; }
.print-preview .lines td { padding: 6px 12px; }
.print-box { width: 50px; height: 26px; border: 1px solid #9AA5B8; border-radius: 5px; margin-left: auto; }
.quality-note { background: #FFF8E7; border-color: #F0E2BC; color: #75643A; }
.quality-box { background: #FFF8E7; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; color: #75643A; }

/* Fargetema (same palettes as the phone) */
body[data-theme="apricot"] { --nav: #FCEAD7; --page: #F6A43A; --primary: #C96A04; --primary-dark: #9C5200; --primary-soft: #FFF1E3; }
body[data-theme="dark"] { --nav: #2B2A28; --page: #F59A23; --primary: #FF9B22; --primary-dark: #C25E00; }
body[data-theme="apricot"] .content > .page-header .muted,
body[data-theme="dark"] .content > .page-header .muted,
body[data-theme="apricot"] .content > .muted,
body[data-theme="dark"] .content > .muted { color: #4A3218; }
body[data-theme="dark"] .app-header, body[data-theme="dark"] .side-nav, body[data-theme="dark"] .bottom-nav { border-color: #3A3835; }
body[data-theme="dark"] .side-item, body[data-theme="dark"] .bottom-item, body[data-theme="dark"] .header-sub { color: #F7F1E8; }
body[data-theme="dark"] .side-item.active, body[data-theme="dark"] .bottom-item.active { color: var(--primary); background: rgba(255, 155, 34, .14); }
body[data-theme="dark"] .side-item:hover { background: rgba(255, 255, 255, .06); }
body[data-theme="apricot"] .app-header, body[data-theme="apricot"] .side-nav, body[data-theme="apricot"] .bottom-nav { border-color: #EBCDAE; }

/* ===== Themes Alpin and Lavendel (Mer → Utseende) — 2026-10-08 ===== */
/* ===== Themes Skumring and Glød: frosted cards on a warm dusk backdrop ===== */
:is(body[data-theme="skumring"], body[data-theme="glod"]) {
  --page: transparent; --nav: rgba(255,255,255,.10); --text: #F2F5F8; --ink: #F2F5F8;
  --muted: rgba(235,240,245,.72); --muted2: rgba(235,240,245,.68);
  --primary: #F3A06B; --primary-dark: #FFD2B3; --primary-soft: rgba(255,255,255,.16);
  --card: rgba(255,255,255,.12); --line: rgba(255,255,255,.28); --line-strong: rgba(255,255,255,.30); --divider: rgba(255,255,255,.18);
  --green: #9FE3BF; --amber: #FFD08A; --indigo: #C6CBFF; --brown: #FFD9A8; --grey: #D5DBE2; --red: #FFB3B3; --blue: #B8D8FF;
  background: #8E7A86 center / cover fixed no-repeat;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
:is(body[data-theme="skumring"], body[data-theme="glod"]) .shell { position: relative; }
/* frosted shell panel like the reference's outer glass frame */
:is(body[data-theme="skumring"], body[data-theme="glod"]) .main-col { background: rgba(255,255,255,.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .app-header, :is(body[data-theme="skumring"], body[data-theme="glod"]) .side-nav, :is(body[data-theme="skumring"], body[data-theme="glod"]) .bottom-nav {
  background: rgba(30,40,50,.28); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-color: rgba(255,255,255,.16);
}
:is(body[data-theme="skumring"], body[data-theme="glod"]) .brand, :is(body[data-theme="skumring"], body[data-theme="glod"]) .side-brand { color: #fff; font-weight: 800; letter-spacing: -.3px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .side-item, :is(body[data-theme="skumring"], body[data-theme="glod"]) .bottom-item, :is(body[data-theme="skumring"], body[data-theme="glod"]) .header-sub { color: rgba(240,244,248,.85); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .side-item.active, :is(body[data-theme="skumring"], body[data-theme="glod"]) .bottom-item.active { color: #fff; background: rgba(255,255,255,.18); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .bottom-item.active .glyph { background: rgba(255,255,255,.18); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .side-item:hover { background: rgba(255,255,255,.10); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .pill-local { background: rgba(255,255,255,.18); color: #fff; }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .page-titles h1 { font-size: 40px; font-weight: 500; letter-spacing: -.8px; color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .section-title { color: #fff; font-weight: 500; font-size: 18px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .muted { color: var(--muted2); }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .card, :is(body[data-theme="skumring"], body[data-theme="glod"]) .month-tabs, :is(body[data-theme="skumring"], body[data-theme="glod"]) .segment-strip, :is(body[data-theme="skumring"], body[data-theme="glod"]) .sub-tabs, :is(body[data-theme="skumring"], body[data-theme="glod"]) .search {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 30px rgba(10,20,30,.18), inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 22px; color: var(--text);
}
:is(body[data-theme="skumring"], body[data-theme="glod"]) .card-title, :is(body[data-theme="skumring"], body[data-theme="glod"]) .session-month, :is(body[data-theme="skumring"], body[data-theme="glod"]) .card-heading, :is(body[data-theme="skumring"], body[data-theme="glod"]) .strong { color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-month { font-weight: 500; font-size: 30px; letter-spacing: -.4px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .metric-value { color: #fff; font-weight: 400; font-size: 30px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .metric-label { color: var(--muted2); }

/* light "profile" style card (the reference's lighter panel) for the key summary */
:is(body[data-theme="skumring"], body[data-theme="glod"]) .metric-total .metric, :is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card {
  background: rgba(232,236,240,.80); color: #22303C; border-color: rgba(255,255,255,.6);
}
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .session-month, :is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .strong, :is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .small,
:is(body[data-theme="skumring"], body[data-theme="glod"]) .metric-total .metric-value { color: #1E2A35; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .muted, :is(body[data-theme="skumring"], body[data-theme="glod"]) .metric-total .metric-label { color: #5A6773; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .sync-note { color: #2F6E9E; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .ring-track { stroke: rgba(30,42,53,.12); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .ring-percent { color: #1E2A35; }

/* buttons: pill shapes, steel blue primary like "Book a tour", grey glass secondary */
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn { border-radius: 999px; font-weight: 600; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn.primary, :is(body[data-theme="skumring"], body[data-theme="glod"]).modern .btn.primary {
  background: #2F6E9E; color: #fff; box-shadow: 0 6px 16px rgba(47,110,158,.35); background-image: none;
}
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn.primary:hover:not(:disabled) { background: #3A7DB0; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn.outline { background: rgba(110,118,128,.55); color: #fff; border-color: rgba(255,255,255,.25); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .btn.outline { background: rgba(30,42,53,.08); color: #1E2A35; border-color: rgba(30,42,53,.12); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn.text { color: #FFD2B3; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn.tonal { background: rgba(255,255,255,.18); color: #fff; }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .month-tab { color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .month-tab.selected, :is(body[data-theme="skumring"], body[data-theme="glod"]).modern .month-tab.selected { background: rgba(255,255,255,.88); color: #1E2A35; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .month-tab.selected .month-tab-status { color: #2F6E9E; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .month-tab-status.status-active { color: #9FE3BF; }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment { background: transparent; color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment + .segment { box-shadow: inset 1px 0 0 rgba(255,255,255,.18); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment:hover:not(.selected) { background: rgba(255,255,255,.08); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment.selected { background: rgba(255,255,255,.88); color: #1E2A35; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment.selected .segment-count { color: #2F6E9E; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment-count { color: rgba(240,244,248,.75); }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; border-radius: 999px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .chip.selected { background: rgba(255,255,255,.88); color: #1E2A35; border-color: transparent; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .icon-btn.primary { background: #2F6E9E; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .icon-btn.outline { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .search-input { color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .search-input::placeholder { color: rgba(240,244,248,.65); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .count-row { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .count-name { color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .count-sub { color: rgba(240,244,248,.7); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .glyph-dot { background: rgba(255,255,255,.18); color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .qty { background: rgba(255,255,255,.88); color: #1E2A35; border-color: transparent; border-radius: 14px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .step { background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .step.plus { background: #2F6E9E; color: #fff; }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .lines th { color: rgba(240,244,248,.65); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .lines td { border-top-color: rgba(255,255,255,.14); color: #F2F5F8; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .lines tfoot td { border-top-color: rgba(255,255,255,.35); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .value-bar, :is(body[data-theme="skumring"], body[data-theme="glod"]) .mini-progress, :is(body[data-theme="skumring"], body[data-theme="glod"]) .progress { background: rgba(255,255,255,.16); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .value-fill, :is(body[data-theme="skumring"], body[data-theme="glod"]).modern .value-fill { background: linear-gradient(90deg, #F7C29C, #F3A06B); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .mini-fill { background: linear-gradient(90deg, #F7C29C, #F3A06B) !important; }

/* sparkline: thin white line with white dots feel */
:is(body[data-theme="skumring"], body[data-theme="glod"]) .spark-line { stroke: rgba(255,255,255,.95) !important; stroke-width: 1.6; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .spark-area { fill: #fff !important; opacity: .10; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .spark-base { stroke: rgba(255,255,255,.35); }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .sub-tab { color: #fff; border-radius: 999px; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .sub-tab.selected { background: rgba(255,255,255,.88); color: #1E2A35; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-green { background: rgba(159,227,191,.20); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .mbadge { backdrop-filter: blur(4px); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .toast { background: rgba(30,40,50,.75); backdrop-filter: blur(12px); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .page-titles h1, :is(body[data-theme="skumring"], body[data-theme="glod"]) .page-titles .muted, :is(body[data-theme="skumring"], body[data-theme="glod"]) .section-title, :is(body[data-theme="skumring"], body[data-theme="glod"]) .content > .muted, :is(body[data-theme="skumring"], body[data-theme="glod"]) .list-meta { text-shadow: 0 1px 12px rgba(20,30,40,.35); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .page-titles .muted, :is(body[data-theme="skumring"], body[data-theme="glod"]) .content > .muted { color: rgba(255,255,255,.88); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .status-row .btn.text { color: #fff; background: rgba(255,255,255,.14); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .mbadge.tone-green { color: #18774A; background: rgba(24,119,74,.12); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .ring-caption { color: #5A6773; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .count-row .link, :is(body[data-theme="skumring"], body[data-theme="glod"]) .count-info .link { color: #FFD2B3; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .list-meta, :is(body[data-theme="skumring"], body[data-theme="glod"]) .list-meta .muted { color: rgba(255,255,255,.9); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment-strip, :is(body[data-theme="skumring"], body[data-theme="glod"]) .search, :is(body[data-theme="skumring"], body[data-theme="glod"]) .sub-tabs, :is(body[data-theme="skumring"], body[data-theme="glod"]) .month-tabs { background: rgba(30,42,53,.30); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .segment-count { color: rgba(255,255,255,.85); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .chip { background: rgba(30,42,53,.28); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .mbadge.tone-green { color: #DFFBEA; background: rgba(24,119,74,.45); }
/* ===== Preview: "Lavendel" theme (soft gradient, translucent tiles, thin white outline buttons) ===== */
body[data-theme="lavendel"] {
  --page: transparent; --nav: transparent; --text: #FFFFFF; --ink: #FFFFFF;
  --muted: rgba(255,255,255,.78); --muted2: rgba(255,255,255,.74);
  --primary: #FFFFFF; --primary-dark: #FFFFFF; --primary-soft: rgba(255,255,255,.18);
  --card: rgba(255,255,255,.16); --line: rgba(255,255,255,.0); --line-strong: rgba(255,255,255,.55); --divider: rgba(255,255,255,.22);
  --green: #FFFFFF; --amber: #FFFFFF; --indigo: #FFFFFF; --brown: #FFFFFF; --grey: #FFFFFF; --red: #FFE1E8; --blue: #FFFFFF;
  background: linear-gradient(180deg, #8C9BF2 0%, #9EA0F1 45%, #B4A5EF 100%) fixed;
  color: #fff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
body[data-theme="lavendel"] .app-header, body[data-theme="lavendel"] .side-nav, body[data-theme="lavendel"] .bottom-nav { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
body[data-theme="lavendel"] .brand, body[data-theme="lavendel"] .side-brand { color: #fff; font-weight: 700; letter-spacing: -.2px; }
body[data-theme="lavendel"] .side-item, body[data-theme="lavendel"] .bottom-item, body[data-theme="lavendel"] .header-sub { color: rgba(255,255,255,.85); }
body[data-theme="lavendel"] .side-item.active, body[data-theme="lavendel"] .bottom-item.active { color: #fff; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
body[data-theme="lavendel"] .bottom-item.active { background: transparent; box-shadow: none; }
body[data-theme="lavendel"] .bottom-item.active .glyph { background: transparent; box-shadow: 0 0 0 1.5px #fff; border-radius: 12px; }
body[data-theme="lavendel"] .side-item:hover { background: rgba(255,255,255,.10); }
body[data-theme="lavendel"] .pill-local { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
body[data-theme="lavendel"] .pill-timer { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }

body[data-theme="lavendel"] .page-titles h1 { font-size: 34px; font-weight: 500; letter-spacing: -.5px; color: #fff; }
body[data-theme="lavendel"] .section-title { color: #fff; font-weight: 500; }

/* tiles */
body[data-theme="lavendel"] .card, body[data-theme="lavendel"] .month-tabs, body[data-theme="lavendel"] .segment-strip, body[data-theme="lavendel"] .sub-tabs, body[data-theme="lavendel"] .search, body[data-theme="lavendel"] .count-row {
  background: rgba(255,255,255,.16); border: 1.5px solid transparent; box-shadow: none; border-radius: 16px; color: #fff;
}
body[data-theme="lavendel"] .card-title, body[data-theme="lavendel"] .session-month, body[data-theme="lavendel"] .card-heading, body[data-theme="lavendel"] .strong, body[data-theme="lavendel"] .count-name { color: #fff; }
body[data-theme="lavendel"] .session-month { font-weight: 500; font-size: 26px; }
body[data-theme="lavendel"] .metric-value { color: #fff; font-weight: 400; font-size: 28px; }
body[data-theme="lavendel"] .metric-total .metric { border-color: rgba(255,255,255,.9); }
body[data-theme="lavendel"] .muted, body[data-theme="lavendel"] .count-sub, body[data-theme="lavendel"] .sync-note { color: rgba(255,255,255,.78); }

/* thin white outline buttons, like the reference */
body[data-theme="lavendel"] .btn, body[data-theme="lavendel"].modern .btn.primary {
  border-radius: 999px; background: transparent; background-image: none; color: #fff; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.9); box-shadow: none;
}
body[data-theme="lavendel"] .btn:hover:not(:disabled), body[data-theme="lavendel"].modern .btn.primary:hover:not(:disabled) { background: rgba(255,255,255,.14); transform: none; box-shadow: none; }
body[data-theme="lavendel"] .btn.primary, body[data-theme="lavendel"].modern .btn.primary { background: rgba(255,255,255,.14); }
body[data-theme="lavendel"] .btn.cta, body[data-theme="lavendel"].modern .btn.cta { background: #fff; color: #6D72E0; border-color: #fff; }
body[data-theme="lavendel"] .btn.text { border-color: transparent; }
body[data-theme="lavendel"] .btn.outline { background: transparent; }

/* round icon buttons (+, edit) and steppers: circles with a white ring */
body[data-theme="lavendel"] .icon-btn, body[data-theme="lavendel"] .icon-btn.primary, body[data-theme="lavendel"] .icon-btn.outline, body[data-theme="lavendel"] .step, body[data-theme="lavendel"] .step.plus {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: none;
}
body[data-theme="lavendel"] .step:disabled { opacity: .45; }
body[data-theme="lavendel"] .qty { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; }
body[data-theme="lavendel"] .qty::placeholder { color: rgba(255,255,255,.7); }
body[data-theme="lavendel"] .qty:focus { border-color: #fff; box-shadow: none; }

/* selection = thin white frame on a tile */
body[data-theme="lavendel"] .month-tabs, body[data-theme="lavendel"] .segment-strip, body[data-theme="lavendel"] .sub-tabs { background: transparent; padding: 0; gap: 8px; display: flex; overflow-x: auto; }
body[data-theme="lavendel"] .month-tab, body[data-theme="lavendel"] .segment, body[data-theme="lavendel"] .sub-tab { background: rgba(255,255,255,.16); border-radius: 16px; color: #fff; border: 1.5px solid transparent; }
body[data-theme="lavendel"] .segment + .segment { box-shadow: none; }
body[data-theme="lavendel"] .segment { height: 74px; }
body[data-theme="lavendel"] .month-tab.selected, body[data-theme="lavendel"].modern .month-tab.selected, body[data-theme="lavendel"] .segment.selected, body[data-theme="lavendel"] .sub-tab.selected {
  background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.95);
}
body[data-theme="lavendel"] .segment-count, body[data-theme="lavendel"] .segment.selected .segment-count, body[data-theme="lavendel"] .month-tab-status, body[data-theme="lavendel"] .month-tab-status.status-active,
body[data-theme="lavendel"] .month-tab.selected .month-tab-status { color: rgba(255,255,255,.85); }
body[data-theme="lavendel"] .chip { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid transparent; border-radius: 999px; }
body[data-theme="lavendel"] .chip.selected { border-color: #fff; background: rgba(255,255,255,.22); }
body[data-theme="lavendel"] .glyph-dot { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
body[data-theme="lavendel"] .search-input { color: #fff; }
body[data-theme="lavendel"] .search-input::placeholder { color: rgba(255,255,255,.75); }
body[data-theme="lavendel"] .search-icon { color: #fff; }
body[data-theme="lavendel"] .link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* progress & charts in white */
body[data-theme="lavendel"] .ring-track { stroke: rgba(255,255,255,.22); }
body[data-theme="lavendel"] .ring-value { stroke: #fff !important; }
body[data-theme="lavendel"] .ring-inner { stroke: rgba(255,255,255,.6) !important; }
body[data-theme="lavendel"] .ring-percent { color: #fff; }
body[data-theme="lavendel"] .ring-caption { color: rgba(255,255,255,.8); }
body[data-theme="lavendel"] .legend-dot.dot-orange { background: #fff; }
body[data-theme="lavendel"] .legend-dot.dot-blue { background: rgba(255,255,255,.55); }
body[data-theme="lavendel"] .spark-line { stroke: #fff !important; stroke-width: 1.6; }
body[data-theme="lavendel"] .spark-area { fill: #fff !important; opacity: .12; }
body[data-theme="lavendel"] .spark-base { stroke: rgba(255,255,255,.4); }
body[data-theme="lavendel"] .value-bar, body[data-theme="lavendel"] .mini-progress, body[data-theme="lavendel"] .progress { background: rgba(255,255,255,.2); }
body[data-theme="lavendel"] .value-fill, body[data-theme="lavendel"].modern .value-fill, body[data-theme="lavendel"] .mini-fill { background: #fff !important; }
body[data-theme="lavendel"] .lines th { color: rgba(255,255,255,.7); }
body[data-theme="lavendel"] .lines td { border-top-color: rgba(255,255,255,.18); color: #fff; }
body[data-theme="lavendel"] .mbadge, body[data-theme="lavendel"] .badge { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
body[data-theme="lavendel"] .led { background: #fff; }
body[data-theme="lavendel"] .toast { background: rgba(70,72,150,.85); }
body[data-theme="lavendel"] .bottom-nav, body[data-theme="lavendel"] .app-header { background: rgba(150,155,240,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* dialogs, forms and lists in the Alpin theme */
:is(body[data-theme="skumring"], body[data-theme="glod"]) .overlay { background: rgba(20,24,40,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .dialog { background: rgba(40,52,66,.82); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 20px 50px rgba(10,15,30,.35); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .dialog-title, :is(body[data-theme="skumring"], body[data-theme="glod"]) .dialog-subtitle { color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .field-label, :is(body[data-theme="skumring"], body[data-theme="glod"]) .field-hint { color: rgba(255,255,255,.8); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .input { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .input::placeholder { color: rgba(255,255,255,.6); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .input:focus { border-color: #fff; box-shadow: none; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) select.input option { color: #1F2937; background: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .check input { accent-color: #2F6E9E; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .detail-row { border-bottom-color: rgba(255,255,255,.18); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .detail-label { color: rgba(255,255,255,.75); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .picker-item { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .picker-item.selected { border-color: #fff; background: rgba(255,255,255,.2); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .avatar { background: rgba(255,255,255,.18); color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .chevron { color: rgba(255,255,255,.75); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .nav-card:hover, :is(body[data-theme="skumring"], body[data-theme="glod"]) .product-row:hover { border-color: rgba(255,255,255,.7); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .error-text, :is(body[data-theme="skumring"], body[data-theme="glod"]) .danger-text { color: #FFD1D9 !important; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .ok-text { color: #CFF7DF; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .warn-text, :is(body[data-theme="skumring"], body[data-theme="glod"]) .warning-text, :is(body[data-theme="skumring"], body[data-theme="glod"]) .accent { color: #FFE2B8; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .switch { background: rgba(255,255,255,.25); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .switch:checked { background: #2F6E9E; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .close-warning, :is(body[data-theme="skumring"], body[data-theme="glod"]) .invite-note, :is(body[data-theme="skumring"], body[data-theme="glod"]) .quality-box, :is(body[data-theme="skumring"], body[data-theme="glod"]) .quality-note { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .print-preview { border-color: rgba(255,255,255,.3); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .print-box { border-color: rgba(255,255,255,.7); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .card.empty { color: rgba(255,255,255,.85); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .snapshot[open] .snapshot-head { border-bottom-color: rgba(255,255,255,.18); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .change.up { color: #CFF7DF; background: rgba(24,119,74,.35); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .change.down { color: #FFD1D9; background: rgba(173,61,61,.35); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-green, :is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-amber, :is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-grey, :is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-indigo, :is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-red, :is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-brown, :is(body[data-theme="skumring"], body[data-theme="glod"]) .tone-blue { color: #fff; background: rgba(255,255,255,.18); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .btn.danger { background: rgba(200,60,80,.75); border-color: transparent; color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .stepper .step:disabled { background: transparent; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .theme-check { text-shadow: 0 0 6px rgba(0,0,0,.25); }

/* dialogs, forms and lists in the Lavendel theme */
body[data-theme="lavendel"] .overlay { background: rgba(20,24,40,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
body[data-theme="lavendel"] .dialog { background: rgba(132,138,226,.90); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 20px 50px rgba(10,15,30,.35); }
body[data-theme="lavendel"] .dialog-title, body[data-theme="lavendel"] .dialog-subtitle { color: #fff; }
body[data-theme="lavendel"] .field-label, body[data-theme="lavendel"] .field-hint { color: rgba(255,255,255,.8); }
body[data-theme="lavendel"] .input { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
body[data-theme="lavendel"] .input::placeholder { color: rgba(255,255,255,.6); }
body[data-theme="lavendel"] .input:focus { border-color: #fff; box-shadow: none; }
body[data-theme="lavendel"] select.input option { color: #1F2937; background: #fff; }
body[data-theme="lavendel"] .check input { accent-color: #FFFFFF; }
body[data-theme="lavendel"] .detail-row { border-bottom-color: rgba(255,255,255,.18); }
body[data-theme="lavendel"] .detail-label { color: rgba(255,255,255,.75); }
body[data-theme="lavendel"] .picker-item { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
body[data-theme="lavendel"] .picker-item.selected { border-color: #fff; background: rgba(255,255,255,.2); }
body[data-theme="lavendel"] .avatar { background: rgba(255,255,255,.18); color: #fff; }
body[data-theme="lavendel"] .chevron { color: rgba(255,255,255,.75); }
body[data-theme="lavendel"] .nav-card:hover, body[data-theme="lavendel"] .product-row:hover { border-color: rgba(255,255,255,.7); }
body[data-theme="lavendel"] .error-text, body[data-theme="lavendel"] .danger-text { color: #FFD1D9 !important; }
body[data-theme="lavendel"] .ok-text { color: #CFF7DF; }
body[data-theme="lavendel"] .warn-text, body[data-theme="lavendel"] .warning-text, body[data-theme="lavendel"] .accent { color: #FFE2B8; }
body[data-theme="lavendel"] .switch { background: rgba(255,255,255,.25); }
body[data-theme="lavendel"] .switch:checked { background: #FFFFFF; }
body[data-theme="lavendel"] .close-warning, body[data-theme="lavendel"] .invite-note, body[data-theme="lavendel"] .quality-box, body[data-theme="lavendel"] .quality-note { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
body[data-theme="lavendel"] .print-preview { border-color: rgba(255,255,255,.3); }
body[data-theme="lavendel"] .print-box { border-color: rgba(255,255,255,.7); }
body[data-theme="lavendel"] .card.empty { color: rgba(255,255,255,.85); }
body[data-theme="lavendel"] .snapshot[open] .snapshot-head { border-bottom-color: rgba(255,255,255,.18); }
body[data-theme="lavendel"] .change.up { color: #CFF7DF; background: rgba(24,119,74,.35); }
body[data-theme="lavendel"] .change.down { color: #FFD1D9; background: rgba(173,61,61,.35); }
body[data-theme="lavendel"] .tone-green, body[data-theme="lavendel"] .tone-amber, body[data-theme="lavendel"] .tone-grey, body[data-theme="lavendel"] .tone-indigo, body[data-theme="lavendel"] .tone-red, body[data-theme="lavendel"] .tone-brown, body[data-theme="lavendel"] .tone-blue { color: #fff; background: rgba(255,255,255,.18); }
body[data-theme="lavendel"] .btn.danger { background: rgba(200,60,80,.75); border-color: transparent; color: #fff; }
body[data-theme="lavendel"] .stepper .step:disabled { background: transparent; }
body[data-theme="lavendel"] .theme-check { text-shadow: 0 0 6px rgba(0,0,0,.25); }

:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .legend-row .small, :is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .row .muted { color: #3E4B57; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .session-card .btn.text { color: #2F6E9E; }
body[data-theme="lavendel"] .btn.cta:hover:not(:disabled), body[data-theme="lavendel"].modern .btn.cta:hover:not(:disabled) { background: #F2F2FF; }

/* backdrops: Skumring = sunset into plum, Glød = soft blurred colour fields (default theme) */
body[data-theme="skumring"] { background-image: url(backdrop-skumring.svg); }
body[data-theme="glod"] { background-image: url(backdrop-glod.svg); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .login-brand { color: #fff; font-weight: 600; letter-spacing: -1px; text-shadow: 0 2px 16px rgba(60,40,30,.25); }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .login-tagline, :is(body[data-theme="skumring"], body[data-theme="glod"]) .login-title { color: #fff; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .login-card .muted, :is(body[data-theme="skumring"], body[data-theme="glod"]) .remember-title { color: rgba(255,255,255,.9); }

/* Analyse | Historikk + Lag rapport — 2026-10-08 */
.analyse-tabs-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.analyse-tabs-row .sub-tabs { align-self: auto; }
.report-option { display: flex; flex-direction: column; gap: 6px; }
.lock-note { gap: 6px; align-items: flex-start; }
.lock-note .btn { margin-top: 2px; }

/* Firebase pill and company picker on the glass themes */
:is(body[data-theme="skumring"], body[data-theme="glod"], body[data-theme="lavendel"]) .pill-cloud.ok { background: rgba(207,247,223,.9); color: #18573A; }
:is(body[data-theme="skumring"], body[data-theme="glod"], body[data-theme="lavendel"]) .pill-cloud.warn { background: rgba(255,226,184,.92); color: #6B4500; }
:is(body[data-theme="skumring"], body[data-theme="glod"], body[data-theme="lavendel"]) .pill-cloud.err { background: rgba(255,214,214,.92); color: #8A2B2B; }
:is(body[data-theme="skumring"], body[data-theme="glod"], body[data-theme="lavendel"]) .company-monogram { background: rgba(255,255,255,.88); color: #1E2A35; }
:is(body[data-theme="skumring"], body[data-theme="glod"]) .login-card .center { color: rgba(255,255,255,.85); }

/* ---------- company in the header (Firebase): logo on a white badge and/or the name ---------- */
.company-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.company-logo { flex: none; display: flex; align-items: center; justify-content: center; height: 40px; padding: 4px 8px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.company-logo img { display: block; max-height: 32px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.app-header .brand.company-name { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .company-logo img { max-width: 110px; } }
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(0,0,0,.08); }
.logo-preview img { max-height: 64px; max-width: 100%; object-fit: contain; }
.file-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.file-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Eier page and support ---------- */
.pill-owner { border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; background: #2B2A28; color: #FFD9A8; }
.pill-owner.active { background: #FF7A00; color: #fff; }
.owner-metrics { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 12px 0; }
.owner-metrics .metric { padding: 12px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.owner-company.no-access { opacity: .82; }
.owner-company.has-access { border-left: 4px solid #2FA36B; }
.access-chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.access-chip.yes { background: #DDF3E6; color: #18774A; }
.access-chip.no { background: #ECEDF0; color: #5E6470; }
.big-code { font-size: 32px; font-weight: 900; letter-spacing: 3px; text-align: center; padding: 10px; }
.support-row { position: relative; text-align: left; }
.support-row.unread .card-title { font-weight: 900; }
.unread-dot, .nav-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; flex: none; }
.nav-dot { position: absolute; top: 6px; margin-left: 18px; }
.bottom-item, .side-item { position: relative; }
.support-thread { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; margin: 8px 0; }
.bubble { max-width: 88%; border-radius: 14px; padding: 8px 12px; background: rgba(0,0,0,.06); }
.bubble.mine { align-self: flex-end; background: rgba(255,122,0,.16); }
.bubble.theirs { align-self: flex-start; }
.bubble-head { font-size: 11px; opacity: .75; margin-bottom: 2px; }
.bubble-line { white-space: pre-wrap; word-break: break-word; min-height: 1em; }
:is(body[data-theme="skumring"], body[data-theme="glod"], body[data-theme="lavendel"]) .bubble { background: rgba(255,255,255,.14); }
:is(body[data-theme="skumring"], body[data-theme="glod"], body[data-theme="lavendel"]) .bubble.mine { background: rgba(255,255,255,.30); }
@media (max-width: 420px) { .owner-metrics .metric-value { font-size: 20px; } }
