/* ==========================================================================
   FSUN3 – designsystem
   Rekkefølge: 1 tokens, 2 reset, 3 layout, 4 komponenter, 5 sider, 6 responsivt
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef0f5;
  --border: #e3e6ed;
  --border-strong: #cdd2dd;
  --text: #171a26;
  --text-2: #444a5c;
  --muted: #7a8093;
  --primary: #3b5bdb;
  --primary-hover: #3150c6;
  --primary-soft: #e8edfd;
  --primary-text: #2b46b3;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --highlight: #fff1b8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 38, 0.06);
  --shadow: 0 1px 2px rgba(23, 26, 38, 0.05), 0 6px 20px rgba(23, 26, 38, 0.07);
  --shadow-lg: 0 10px 40px rgba(23, 26, 38, 0.18);
  --ring: 0 0 0 3px rgba(59, 91, 219, 0.25);
  --speed: 140ms;
}

/* Mørk modus: følger systemet, eller valgt manuelt via data-theme på <html> */
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #171b24; --surface-2: #1c2130; --surface-3: #252b3a;
    --border: #2a3040; --border-strong: #3a4154;
    --text: #e8eaf0; --text-2: #b8bfcc; --muted: #8b93a6;
    --primary: #6c8cff; --primary-hover: #86a1ff; --primary-soft: #1e2a4f; --primary-text: #a3b6ff;
    --success: #4ade80; --success-soft: #12331f; --warning: #fbbf24; --warning-soft: #3b2b08;
    --danger: #f87171; --danger-soft: #3d1717; --highlight: #3d3610;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6); --ring: 0 0 0 3px rgba(108, 140, 255, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #171b24; --surface-2: #1c2130; --surface-3: #252b3a;
  --border: #2a3040; --border-strong: #3a4154;
  --text: #e8eaf0; --text-2: #b8bfcc; --muted: #8b93a6;
  --primary: #6c8cff; --primary-hover: #86a1ff; --primary-soft: #1e2a4f; --primary-text: #a3b6ff;
  --success: #4ade80; --success-soft: #12331f; --warning: #fbbf24; --warning-soft: #3b2b08;
  --danger: #f87171; --danger-soft: #3d1717; --highlight: #3d3610;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6); --ring: 0 0 0 3px rgba(108, 140, 255, 0.35);
}

/* 2. Reset og basis ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
p { margin: 0 0 8px; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font: 600 11px/1 var(--font); padding: 2px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
svg.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
svg.icon-xs { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ml-auto { margin-left: auto; }
.grow { flex: 1 1 auto; min-width: 0; }
.inline { display: inline; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }

/* 3. Layout ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; }
.logo { display: block; height: 26px; width: auto; color: var(--text); }
.logo text, .hero-logo text { font-family: var(--font); }
.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500;
}
.topnav a:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.topnav a.is-active { background: var(--primary-soft); color: var(--primary-text); }
.topsearch {
  margin-left: auto; position: relative; width: 300px; max-width: 40vw;
}
.topsearch .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.topsearch input[type="search"] {
  width: 100%; padding: 7px 12px 7px 34px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface-2);
}
.topsearch input[type="search"]:focus { background: var(--surface); border-color: var(--primary); box-shadow: var(--ring); outline: none; }

.page { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; }
.page-wide { max-width: 1440px; }
.footer {
  max-width: 1440px; margin: 0 auto; padding: 16px 24px; width: 100%;
  display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.breadcrumb { text-transform: none; letter-spacing: 0; font-size: 13px; }
.section { margin-top: 28px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-3); padding: 1px 8px; border-radius: 999px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.center-card { max-width: 520px; margin: 40px auto; text-align: center; }
.center-card h1 { margin: 8px 0; }

/* 4. Komponenter -------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px 22px; }
.card-danger { border-color: var(--danger-soft); background: color-mix(in srgb, var(--danger-soft) 25%, var(--surface)); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 500; line-height: 1.2;
  transition: background var(--speed), border-color var(--speed), transform var(--speed), box-shadow var(--speed);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: #b9bfcc; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-danger { color: #0f1218; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-danger { color: #0f1218; font-weight: 600; } }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-lg { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-xs);
  border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background var(--speed), color var(--speed);
}
.iconbtn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.iconbtn-danger:hover { background: var(--danger-soft); color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field small { font-weight: 400; }
.field-inline { max-width: 240px; }
.quick-dates { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 4px; }
.quick-dates .btn { padding: 2px 7px; font-size: 12px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
input[type="text"], input[type="password"], input[type="search"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color var(--speed), box-shadow var(--speed);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input:disabled, select:disabled { background: var(--surface-3); color: var(--muted); }
textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.input-sm { padding: 5px 9px; font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select-lg { font-size: 20px; font-weight: 700; padding: 6px 36px 6px 10px; border-color: transparent; background: transparent; width: auto; max-width: 100%; letter-spacing: -0.01em; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237a8093'><path d='M5.3 7.3a1 1 0 011.4 0L10 10.6l3.3-3.3a1 1 0 111.4 1.4l-4 4a1 1 0 01-1.4 0l-4-4a1 1 0 010-1.4z'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; background-size: 18px; }
.select-lg:hover { background-color: var(--surface-3); }
.select-lg option { font-size: 14px; font-weight: 400; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 999px; font-weight: 600; color: #fff; letter-spacing: 0.02em;
  border: 2px solid var(--surface); box-sizing: content-box;
}
.avatar-xs { width: 18px; height: 18px; font-size: 8px; border-width: 1px; }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.avatar-md { width: 30px; height: 30px; font-size: 11px; }
.avatar-more { background: var(--surface-3); color: var(--text-2); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -8px; }
.hue-0 { background: #3b5bdb; } .hue-1 { background: #0e9f6e; } .hue-2 { background: #d6336c; } .hue-3 { background: #e8590c; }
.hue-4 { background: #7048e8; } .hue-5 { background: #0c8599; } .hue-6 { background: #a61e4d; } .hue-7 { background: #5c7cfa; }
.with-avatar { display: inline-flex; align-items: center; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1.5;
  border: 1px solid transparent; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.chip-empty { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-weight: 400; }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-warning { background: var(--warning-soft); color: var(--warning); }
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-muted { background: var(--surface-3); color: var(--muted); }
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: var(--muted); }
.tag-primary { background: var(--primary-soft); color: var(--primary-text); }

.progress { display: inline-block; width: 84px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; vertical-align: middle; flex: none; }
.progress-lg { width: 140px; height: 8px; }
.progress-bar { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 400ms cubic-bezier(.2,.8,.2,1); }
.progress.is-done .progress-bar { background: var(--success); }
.progress-wrap { display: inline-flex; align-items: center; gap: 8px; }
.pct { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--text-2); min-width: 34px; text-align: right; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 12px; margin-top: 4px; }
.stat-danger .stat-value { color: var(--danger); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
.data-table th, .task-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
.data-table td, .task-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td, .task-table tbody:last-of-type tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover, .task-table tr.task-row:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-title { font-weight: 600; color: var(--text); display: block; }
.row-title:hover { color: var(--primary-text); }
.row-sub { display: block; font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px !important; }
.col-actions { text-align: right; white-space: nowrap; width: 1%; }
.col-actions .iconbtn { opacity: 0.55; }
tr:hover .col-actions .iconbtn, .col-actions .iconbtn:focus-visible { opacity: 1; }
.col-progress { width: 150px; white-space: nowrap; }
.col-people { white-space: nowrap; }
.is-inactive td { opacity: 0.55; }
.is-overdue .row-title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-left: 7px; vertical-align: middle; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { width: 32px; height: 18px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background var(--speed); flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform var(--speed); box-shadow: var(--shadow-sm); }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }

.check { display: inline-flex; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all var(--speed); }
.check:hover .check-box { border-color: var(--primary); }
.check input:checked + .check-box { background: var(--success); border-color: var(--success); color: #fff; }
:root[data-theme="dark"] .check input:checked + .check-box { color: #0f1218; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .check input:checked + .check-box { color: #0f1218; } }
.check input:focus-visible + .check-box { box-shadow: var(--ring); }
.check-box .icon { width: 14px; height: 14px; }

.usermenu { position: relative; }
.usermenu-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 0; background: transparent; border-radius: 999px; color: var(--text-2); }
.usermenu-btn:hover { background: var(--surface-3); }
.usermenu-name { font-weight: 500; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
[data-dropdown].is-open .dropdown { display: block; animation: pop var(--speed) ease-out; }
.dropdown-header { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; font-size: 13px; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; border-radius: var(--radius-xs); color: var(--text); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); text-decoration: none; }

dialog.modal { border: 0; padding: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(560px, 92vw); background: var(--surface); color: var(--text); }
dialog.modal::backdrop { background: rgba(23, 26, 38, 0.45); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop 160ms cubic-bezier(.2,.8,.2,1); }
.modal-body { padding: 20px 22px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { pointer-events: auto; background: #1f2333; color: #fff; border: 1px solid #343a4f; padding: 10px 14px 10px 12px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 360px; border-left: 3px solid var(--primary); animation: slidein 200ms cubic-bezier(.2,.8,.2,1); }
.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: #ef4444; }
.toast-info { border-left-color: #60a5fa; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all 200ms; }

.empty-state { text-align: center; padding: 48px 20px; }
.member-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.member-list li:last-child { border-bottom: 0; }
.member-list { margin-bottom: 14px; }
.copy-cell { display: flex; gap: 6px; align-items: center; min-width: 320px; }

@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash-row { 0% { background: var(--highlight); } 70% { background: var(--highlight); } 100% { background: transparent; } }

/* 5. Sider --------------------------------------------------------------- */

/* Oppgaveliste */
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; margin-bottom: 18px; }
.switcher-row { display: flex; align-items: center; gap: 4px; margin-left: -10px; }
.project-desc { color: var(--text-2); margin: 2px 0 0; max-width: 60ch; }
.project-meta { display: flex; gap: 28px; align-items: center; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.toolbar { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.toolbar-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.toolbar-search input[type="search"] { padding-left: 34px; background: var(--surface-2); border-color: var(--border); }
.toolbar-toggles { display: flex; gap: 18px; margin-left: auto; }

.task-table { min-width: 960px; }
.task-table th.col-title { width: 24%; }
.task-table th.col-latest { width: 34%; }
.col-toggle { width: 34px; padding-right: 0 !important; text-align: center; }
.col-done { width: 44px; text-align: center; }
.task-table .col-actions { width: 76px; }
.task-table .col-progress { width: 150px; }
.col-assignee { width: 140px; }
.col-deadline { width: 110px; white-space: nowrap; }

.chevron { width: 24px; height: 24px; border: 0; background: transparent; border-radius: 6px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: transform var(--speed), background var(--speed); transform: rotate(90deg); }
.chevron:hover { background: var(--surface-3); color: var(--text); }
.task-group.collapsed .chevron { transform: rotate(0deg); }
.task-group.collapsed .subtask-row, .task-group.collapsed .subtask-form-row { display: none; }
.hide-subtasks .subtask-row { display: none; }
.hide-completed tr[data-done="1"] { display: none; }
.task-group.filtered-out { display: none; }
.task-anchor { display: none; }

.task-row .task-title { font-weight: 600; color: var(--text); }
.task-row .task-title:hover { color: var(--primary-text); text-decoration: none; }
.task-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.subtask-row .task-title { font-weight: 500; color: var(--text-2); }
.subtask-row td { background: var(--surface-2); border-bottom-color: var(--border); }
.subtask-row:hover td { background: var(--surface-3) !important; }
.sub-connector { display: block; width: 14px; height: 18px; margin: -18px auto 0; border-left: 1.5px solid var(--border-strong); border-bottom: 1.5px solid var(--border-strong); border-bottom-left-radius: 6px; transform: translateX(6px); }
.subtask-row .col-title { padding-left: 4px; }
.task-row.is-done .task-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task-row.is-done .latest-text { color: var(--muted); }
.task-row.is-updated td { animation: flash-row 2.8s ease-out; }

.col-latest { position: relative; }
.latest { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 2px 30px 2px 6px; margin-left: -6px; border-radius: var(--radius-xs); color: var(--text-2); line-height: 1.4; }
.latest:hover { background: var(--surface-3); }
.latest-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; word-break: break-word; }
.latest-meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.latest-empty { color: var(--muted); font-style: italic; }
.add-activity { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); opacity: 0; background: var(--surface); border-color: var(--border); }
.task-row:hover .add-activity, .add-activity:focus-visible { opacity: 1; }
.add-activity:hover { background: var(--primary-soft); color: var(--primary-text); border-color: var(--primary-soft); }

.inline-cell .inline-view { border: 0; background: transparent; padding: 2px 6px; margin: 0 -6px; border-radius: var(--radius-xs); text-align: left; }
.inline-cell .inline-view:hover { background: var(--surface-3); }
.inline-cell .inline-edit input { padding: 4px 8px; font-size: 13px; }
.inline-cell .inline-edit input[type="number"] { width: 72px; }
.inline-cell .inline-edit input[type="date"] { width: 150px; }
.is-auto { cursor: help; }
.is-auto .tag { margin-left: 2px; }

.subtask-form-row td { background: var(--primary-soft); border-bottom-color: var(--border); }
.subtask-form { display: flex; gap: 8px; align-items: center; }
.subtask-form input { padding: 6px 10px; font-size: 13px; background: var(--surface); }
.subtask-form input[type="date"] { width: 150px; }
.subtask-form input[name="assigned_to"] { width: 150px; }

/* Oppgavedetalj */
h1.is-done { text-decoration: line-through; color: var(--muted); }
.more-fields summary { cursor: pointer; font-weight: 500; color: var(--text-2); padding: 6px 0; }
.more-fields[open] summary { margin-bottom: 8px; }
.subtask-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.subtask-list li:last-child { border-bottom: 0; }
.subtask-list li.is-done a { text-decoration: line-through; color: var(--muted); }
.activity-card { position: sticky; top: 76px; }
.activity-form textarea { min-height: 72px; }
.activity-list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.activity { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid transparent; }
.activity:hover { border-color: var(--border); }
.activity-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.activity-who { font-weight: 600; }
.activity-actions { opacity: 0; display: inline-flex; gap: 2px; }
.activity:hover .activity-actions, .activity:focus-within .activity-actions { opacity: 1; }
.activity-actions form { display: inline; }
.activity-body { margin: 0; white-space: pre-line; word-break: break-word; color: var(--text); }

/* Innlogging */
.auth-body { background: radial-gradient(1200px 600px at 10% -10%, var(--primary-soft) 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, var(--success-soft) 0%, transparent 60%), var(--bg); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; min-height: calc(100vh - 140px); max-width: 1040px; margin: 0 auto; }
.hero-logo { height: 38px; width: auto; display: block; margin-bottom: 26px; color: var(--text); }
.hero h1 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 12px; }
.lead { font-size: 17px; color: var(--text-2); margin-bottom: 30px; }
.value-list { display: flex; flex-direction: column; gap: 14px; }
.value-list li { display: flex; gap: 14px; align-items: center; }
.value-list img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface); box-shadow: var(--shadow-sm); }
.value-list strong { display: block; }
.value-list span { color: var(--text-2); font-size: 13px; }
.login-card { padding: 28px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 20px; margin-bottom: 16px; }
.login-help { margin: 16px 0 0; }

/* 6. Responsivt --------------------------------------------------------- */
@media (max-width: 1100px) {
  .project-head { grid-template-columns: 1fr; gap: 14px; }
  .grid-detail { grid-template-columns: 1fr; }
  .activity-card { position: static; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 0 14px; gap: 10px; }
  .topnav { display: none; }
  .usermenu-name { display: none; }
  .topsearch { width: auto; flex: 1; max-width: none; }
  .page { padding: 18px 14px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 20px 0; }
  .hero h1 { font-size: 30px; }
  .project-meta { gap: 18px; flex-wrap: wrap; }
  .toolbar-toggles { margin-left: 0; }
  .footer { flex-direction: column; align-items: center; }
  .add-activity { opacity: 1; }

  /* Oppgavelisten som kort (samme markering som tabellen, kun CSS) */
  .task-table { min-width: 0; }
  .task-table-wrap { overflow-x: visible; padding: 10px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
  .task-table, .task-table tbody, .task-table tr, .task-table td { display: block; width: auto; }
  .task-table td { padding: 0; border-bottom: 0; }
  .task-table thead { display: block; overflow-x: auto; margin: -4px 0 8px; scrollbar-width: none; }
  .task-table thead tr { display: flex; gap: 6px; white-space: nowrap; }
  .task-table thead th, .task-table thead th.col-title, .task-table thead th.col-latest { display: block; flex: none; width: auto; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
  .task-table thead th.col-toggle, .task-table thead th.col-done, .task-table thead th.col-actions { display: none; }
  .task-table tbody.task-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
  .task-table tbody.group-head { margin: 6px 0 8px; }
  .task-table tbody.group-head td { padding: 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .task-table tr.task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; }
  .task-table tr.task-row:hover { background: transparent; }
  .task-table tr.subtask-row { border-top: 1px solid var(--border); padding-left: 24px; }
  .task-table tr.subtask-row td { background: transparent; }
  .task-table tr.subtask-row:hover td { background: transparent !important; }
  .task-table .col-toggle { order: 0; width: 24px; text-align: left; }
  .task-table .col-toggle:not(:has(.chevron)) { display: none; }
  .task-table .col-title { order: 1; flex: 1 1 0; min-width: 0; }
  .task-table .col-done { order: 2; width: auto; }
  .task-table .col-latest { order: 3; flex: 1 1 100%; }
  .task-table .col-assignee { order: 4; width: auto; }
  .task-table .col-deadline { order: 5; width: auto; }
  .task-table .col-progress { order: 6; width: auto; }
  .task-table .col-actions { order: 7; width: auto; margin-left: auto; display: flex; gap: 2px; }
  .task-table .col-actions .iconbtn { opacity: 1; }
  .task-table .col-actions a.iconbtn { display: none; } /* tittelen er allerede lenke */
  .task-table .col-progress .progress { width: 64px; }
  .task-table .latest { margin-left: 0; padding-left: 0; }
  .task-table .add-activity { right: 0; }
  .inline-cell .inline-view { margin: 0; padding: 2px 0; }
  .task-table tr.subtask-form-row { display: block; border-top: 1px solid var(--border); padding: 10px 12px; }
  .subtask-form { flex-wrap: wrap; }
  .subtask-form .grow { flex: 1 1 100%; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .task-table-wrap { background: var(--bg); }
}
@media (max-width: 760px) {
  :root[data-theme="dark"] .task-table-wrap { background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 7. Varsler, Mine oppgaver, handlingssider (lagt til 2026-09-07) ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff;
  --badge-fg: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; }
.topnav a.is-active .badge { background: var(--primary-text); }
.bell { position: relative; }
.bell-btn { position: relative; width: 34px; height: 34px; }
.badge-dot { position: absolute; top: -2px; right: -4px; background: var(--danger); }
.dropdown-wide { min-width: 340px; max-width: 90vw; padding: 0; overflow: hidden; }
.dropdown-wide .dropdown-header { margin: 0; padding: 12px 14px; }
.dropdown-row { flex-direction: row; align-items: center; }
.link-btn { border: 0; background: none; color: var(--primary-text); padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.dropdown form { margin: 0; }
.notif-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent; border-radius: 0; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.is-unread { background: var(--primary-soft); }
.notif-item.is-unread:hover { background: var(--surface-3); }
.notif-kind { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.notif-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 11px; }
.dropdown-footer { display: block; text-align: center; padding: 10px; font-weight: 500; border-radius: 0 !important; }
.notif-list li { border-bottom: 1px solid var(--border); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list form { margin: 0; }
.notif-btn { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 16px; border: 0; background: transparent; }
.notif-btn:hover { background: var(--surface-2); }
.notif.is-unread .notif-btn { background: var(--primary-soft); }
.notif-body { display: flex; flex-direction: column; gap: 2px; }
.notif-sys { background: var(--warning); }
.notif-list .empty { padding: 28px; text-align: center; color: var(--muted); }

.notice { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid transparent; }
.notice-info { background: var(--primary-soft); color: var(--primary-text); border-color: var(--primary-soft); }
.notice-success { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.notice-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.notice-bar { margin-bottom: 18px; }
.notice a { font-weight: 600; }

.fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.fieldset legend { font-size: 13px; font-weight: 500; color: var(--text-2); padding: 0 4px; }

.assignee-view { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.assignee-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-legacy { border: 1px dashed var(--border-strong); background: transparent; color: var(--muted); font-style: italic; }
.inline-cell .inline-edit select { padding: 4px 8px; font-size: 13px; width: 150px; }
.subtask-form select { padding: 6px 10px; font-size: 13px; background: var(--surface); width: 150px; }
.my-table { min-width: 760px; }
.my-table th:first-child { width: 32%; }

.action-card { max-width: 560px; }
.action-meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.action-latest { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-2); white-space: pre-line; }
.action-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.action-reply { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.action-snooze { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-row form { margin: 0; }

/* 8. Begrenset oppgaveside og deling ------------------------------------- */
.limited-wrap { max-width: 1100px; margin: 0 auto; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; }
.dl dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.dl dd { margin: 0; }
.pre { white-space: pre-line; word-break: break-word; }

.group-head td { background: var(--surface-2); padding: 8px 12px 6px 46px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.group-head a { color: var(--text-2); }
.my-group .col-toggle { border-left: 3px solid transparent; }

.dash-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.sortable th[data-sort]:hover { color: var(--text); }
table.sortable th[aria-sort]::after { content: " ↑"; color: var(--primary-text); }
table.sortable th[aria-sort="descending"]::after { content: " ↓"; }
.hide-completed-projects tr[data-completed="1"] { display: none; }
.tag-done { background: var(--success-soft); color: var(--success); margin-left: 6px; vertical-align: middle; }

/* 9. Temavelger ----------------------------------------------------------- */
.theme-row { display: flex; gap: 4px; padding: 6px 10px 8px; border-top: 1px solid var(--border); margin-top: 6px; }
.theme-row .btn { flex: 1; justify-content: center; padding: 5px 6px; font-size: 12px; }
.theme-row .btn.is-active { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-text); }
.value-list img { background: var(--surface); }
:root[data-theme="dark"] .value-list img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .value-list img { filter: invert(1) hue-rotate(180deg); } }

:root[data-theme="dark"] .badge, :root[data-theme="dark"] .notif-sys, :root[data-theme="dark"] .tag-primary { color: #0f1218; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge, :root:not([data-theme="light"]) .notif-sys { color: #0f1218; } }

tr.filtered-out { display: none; }
.toolbar-select { display: flex; align-items: center; gap: 8px; }
.toolbar-select select { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; background-color: var(--surface-2); border-color: var(--border); }
tr.filter-context > td { opacity: 0.5; }

/* 10. Forside, invitasjoner og tofaktor ---------------------------------- */
.ways-head { margin-top: 30px; margin-bottom: 0; font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.ways { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ways li { display: flex; gap: 14px; align-items: flex-start; }
.way-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ways strong { display: block; }
.ways span { color: var(--text-2); font-size: 13px; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; max-width: 560px; transform: rotate(-1deg); }
.demo-row { display: grid; grid-template-columns: 1.3fr 1.5fr auto 84px; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.demo-row:last-child { border-bottom: 0; }
.demo-row.is-sub { padding-left: 34px; background: var(--surface-2); }
.demo-row.is-sub .demo-title { font-weight: 500; color: var(--text-2); }
.demo-title { font-weight: 600; }
.demo-latest { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-input { font-size: 22px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.qr { background: #fff; padding: 10px; border-radius: var(--radius-sm); display: inline-block; margin: 8px 0; }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 14px 0 18px; }
.codes code { font-size: 15px; letter-spacing: 0.05em; }
.notice-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice-row form { margin: 0; }
@media (max-width: 760px) { .demo-card { transform: none; } .demo-row { grid-template-columns: 1fr auto; } .demo-latest, .demo-row .progress { display: none; } }

.is-readonly .inline-view, .is-readonly .check, .is-readonly .add-activity, .is-readonly [data-subtask-form], .is-readonly .latest { pointer-events: none; }
.is-readonly .check-box, .is-readonly .edit-icon { opacity: 0.5; }

.chip-external { background: var(--warning-soft); color: var(--warning); }
.chip-external small { font-weight: 400; opacity: 0.8; margin-left: 2px; }
.inline-cell .inline-edit [data-email-input] { width: 190px; margin-top: 4px; }
.subtask-form [data-email-input] { width: 190px; }
.join-card { border-color: var(--primary-soft); background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface)); }

.stats-5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.stat-link { color: inherit; text-decoration: none; transition: border-color var(--speed), box-shadow var(--speed); }
.stat-link:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }

.prose h2 { margin-top: 20px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
.prose li { margin-bottom: 4px; }
.prose { max-width: 760px; }
.stack-btn { background: none; border: 0; padding: 0; cursor: pointer; }

/* 11. Arbeidsområder og autocomplete ----------------------------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head .section-title { margin-bottom: 0; }
.ws-group { margin-bottom: 14px; }
.ws-group > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 2px; list-style: none; color: var(--text-2); }
.ws-group > summary::-webkit-details-marker { display: none; }
.ws-group > summary::before { content: "▾"; font-size: 11px; color: var(--muted); transition: transform var(--speed); }
.ws-group:not([open]) > summary::before { transform: rotate(-90deg); }
.ws-group > .card { margin-top: 6px; }
.ws-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.color-input { width: 34px; height: 34px; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: var(--surface); cursor: pointer; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; }
.suggest { position: relative; }
.suggest-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 50; padding: 4px; max-height: 260px; overflow: auto; }
.suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px 8px; border: 0; background: transparent; border-radius: var(--radius-xs); }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-3); }
.suggest-name { font-weight: 500; }

/* 8. Innlogging uten passord (1.9.0) */
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 6px 0 2px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* 9. Klikkbar oppgavekolonne og dra-bar fremdrift (1.9.1) */
.task-table td.col-title[data-href] { cursor: pointer; }
.task-table td.col-title[data-href]:hover { background: var(--surface-3); }
.task-table td.col-title[data-href]:hover .task-title { color: var(--primary-text); }
.task-table td.col-title[data-href]:hover .task-title::after { content: "Åpne ↗"; margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--primary-text); white-space: nowrap; }
.inline-view .progress { cursor: ew-resize; touch-action: none; transition: height var(--speed); }
.inline-view:hover .progress, .progress-wrap.is-dragging .progress { height: 10px; }
.progress-wrap.is-dragging .progress-bar { transition: none; }
.progress-wrap.is-dragging .pct { color: var(--primary-text); font-weight: 600; }
.progress-wrap.is-dragging { background: var(--surface-3); }
.is-readonly .inline-view .progress { cursor: default; }

/* 10. /features (1.9.2) */
.features { max-width: 1040px; margin: 0 auto; }
.features-head { max-width: 720px; margin: 16px 0 26px; }
.features-head h1 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 10px; }
.features-head .lead { margin-bottom: 0; }
.features-cta { margin: 18px 0 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.features-grid h2 { font-size: 17px; margin-bottom: 10px; }
.features-grid ul { list-style: disc; padding-left: 18px; }
.features-grid li { margin-bottom: 6px; color: var(--text-2); }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } .features-head h1 { font-size: 26px; } }
