:root {
  --ink: #39123A;
  --surface-page: #e9e3eb;
  --surface-shell: #f6f3f7;
  --surface-card: #fff;
  --ink-raised: #4b2650;
  --ink-raised-2: #55305a;
  --surface-hover: #ece6ee;
  --divider: #e9e3eb;
  --cal-line: #f1ecf3;
  --cal-dash: #ededed;
  --past: #f7f7f7;
  --text: #1f0a21;
  --text-soft: #7d7382;
  --text-faint: #8e8493;
  --on-dark: #fff;
  --on-dark-soft: #c9bccc;
  --on-dark-faint: #b2a3b6;
  --line: #eee8f1;
  --green: #dcc8f2;
  --yellow: #f3d55e;
  --orange: #ef8b5e;
  --blue: #8dbdf8;
  --cream: #f4eccb;
  --purple: #cfc2f7;
  --slate: #627487;
  --free-bg: #e4f4d6; --free-fg: #2f6b1f; --free-dot: #4e9a2f;
  --booked-bg: #fbf0cb; --booked-fg: #8a6400; --booked-dot: #d39b0e;
  --busy-bg: #fde4d6; --busy-fg: #b24a17; --busy-dot: #e0632f;
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-xl: 28px; --r-shell: 32px; --r-pill: 999px;
  --shadow: 0 1px 2px #0000000a, 0 10px 30px #0000000d;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar: 245px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: 'Geist', 'Geist Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface-shell); color: var(--text); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- typografi ---------- */
.display { font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
h1, .h1 { font-size: 44px; font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
h2, .h2 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
h3, .h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.small { font-size: 13px; line-height: 1.4; }
.caption { font-size: 12px; font-weight: 500; line-height: 1.3; }
.soft { color: var(--text-soft); }
.eyebrow { font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }

/* ---------- skall ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; transition: grid-template-columns .25s var(--ease); }
.app.min { grid-template-columns: 76px 1fr; }
.side { position: sticky; top: 0; height: 100vh; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; min-height: 52px; }
.brand b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.brand small { font-size: 11px; color: var(--text-soft); }
.icon-btn { width: 30px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--text-soft); flex: none; }
.icon-btn:hover { background: var(--surface-hover); color: var(--ink); }
.nav a, .nav button.nav-i {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; color: #3a3a3a; width: 100%; text-align: left; white-space: nowrap; transition: background .15s;
}
.nav a:hover { background: var(--surface-hover); }
.nav a.on { background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; }
.nav .badge { margin-left: auto; min-width: 22px; height: 20px; border-radius: var(--r-pill); background: #f6efc4; color: #6b5200; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 6px; }
.nav-group { font-size: 11px; color: var(--text-soft); padding: 18px 16px 6px; border-top: 1px solid var(--divider); margin: 12px 8px 0; padding-left: 8px; }
.nav.info a { height: 34px; font-size: 12.5px; color: #4a4a4a; }
.app.min .brand b, .app.min .brand small, .app.min .nav a span, .app.min .nav .badge, .app.min .nav-group, .app.min .me-txt { display: none; }
.app.min .nav a { padding: 0; justify-content: center; }
.app.min .brand { justify-content: center; }
.app.min .brand > div { display: none; }
.me-card { margin-top: auto; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 10px; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.avatar { width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; letter-spacing: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }
.avatar.c0 { background: #dcd5f5; color: #3a2d7a; } .avatar.c1 { background: #d6ecc3; color: #2f5a1c; } .avatar.c2 { background: #f6e3b5; color: #6b4b00; }
.avatar.c3 { background: #cfe3fb; color: #1e4e8c; } .avatar.c4 { background: #f8d9cb; color: #8f3b14; } .avatar.c5 { background: #e9e4d2; color: #55502f; } .avatar.c6 { background: #d9e2e8; color: #364b5c; }
.avatar.ink { background: var(--ink); color: #fff; }
.me-txt b { display: block; font-size: 12.5px; line-height: 1.2; } .me-txt small { font-size: 11px; color: var(--text-soft); }

.main { padding: 26px 26px 60px 12px; min-width: 0; }
.page { max-width: 1500px; }
.page.in { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.page-head.tight { margin-bottom: 12px; }
.date-block { text-align: right; } .date-block b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; } .date-block span { font-size: 13px; color: var(--text-soft); }

/* ---------- kort ---------- */
.card { background: var(--surface-card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.card.dark { background: var(--ink); color: var(--on-dark); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.card-head a, .link-soft { font-size: 12.5px; color: var(--text-soft); } .card-head a:hover { color: var(--ink); }
.grid { display: grid; gap: 14px; }
.chip-ic { width: 32px; height: 32px; border-radius: var(--r-pill); background: #fff; display: grid; place-items: center; flex: none; color: #5a3560; }
.dark .chip-ic { background: #5a3560; color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.free { background: var(--free-bg); color: var(--free-fg); } .pill.busy { background: var(--busy-bg); color: var(--busy-fg); } .pill.booked { background: var(--booked-bg); color: var(--booked-fg); }
.pill.plain { background: transparent; color: var(--text-soft); padding: 0; height: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.free .dot, .dot.free { background: var(--free-dot); } .pill.busy .dot, .dot.busy { background: var(--busy-dot); } .pill.booked .dot { background: var(--booked-dot); }

/* ---------- knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; transition: transform .15s var(--ease), opacity .15s; white-space: nowrap; }
.btn:hover { opacity: .88; } .btn:active { transform: scale(.97); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost.dim { color: var(--text-faint); } .btn.ghost:disabled { opacity: .5; cursor: default; }
.btn.light { background: #fff; color: var(--ink); }
.btn.danger { background: var(--busy-bg); color: var(--busy-fg); width: 44px; padding: 0; }
.btn.green { background: var(--green); color: #39123A; }
.btn .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.btn.green { padding-right: 8px; } .btn.green.off { padding-right: 20px; }
.circle-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.circle-btn:hover { background: var(--surface-hover); }
.seg { display: inline-flex; background: #fff; border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow); gap: 2px; }
.seg button { height: 30px; padding: 0 16px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.seg button.on { background: var(--ink); color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tab.on { background: var(--ink); color: #fff; }
.tab .dot.free { background: var(--free-dot); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px; align-items: center; }
.login-form { max-width: 316px; justify-self: center; width: 100%; }
.login-form h1 { font-size: 30px; letter-spacing: -.03em; } .login-form .sub { font-size: 24px; font-weight: 600; color: #9a9a9a; letter-spacing: -.03em; margin-bottom: 36px; }
.field { width: 100%; height: 46px; border: 1px solid #39123A; border-radius: var(--r-pill); background: transparent; padding: 0 18px; font-size: 13.5px; }
.field::placeholder { color: #7b7b7b; }
.login-form .btn { width: 100%; margin-top: 10px; height: 46px; }
.login-form .help { font-size: 11.5px; color: var(--text-soft); margin-top: 18px; line-height: 1.45; }
.login-form .err { color: var(--busy-fg); font-size: 12.5px; margin-top: 10px; }
.login-art { height: calc(100vh - 36px); border-radius: var(--r-shell); overflow: hidden; position: relative; background:
  radial-gradient(120% 90% at 18% 12%, #f4e4f1 0%, transparent 55%), radial-gradient(90% 80% at 85% 20%, #d8cdef 0%, transparent 60%),
  radial-gradient(120% 100% at 60% 100%, #39123A 0%, #240a27 55%, transparent 100%), #e9dfee; }
.login-art .lamp { position: absolute; top: 0; right: 22%; width: 2px; height: 28%; background: #1b1b1b; }
.login-art .lamp::after { content: ''; position: absolute; bottom: -22px; left: -34px; width: 70px; height: 40px; border-radius: 70px 70px 0 0; background: #232323; box-shadow: 0 30px 80px 22px #e9c3f288; }
.login-art .tbl { position: absolute; bottom: 14%; left: 14%; width: 62%; height: 12px; border-radius: 12px; background: #d8cdb8; box-shadow: 0 -60px 0 -2px #cfc3ab, 0 40px 60px #0006; }
.login-art .mark { position: absolute; left: 34px; bottom: 30px; color: #fff; font-size: 56px; font-weight: 600; letter-spacing: -.05em; opacity: .92; }

/* ---------- dashboard ---------- */
.dash-top { display: grid; grid-template-columns: 1.75fr 1fr 1fr; gap: 14px; }
.hero { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.hero > * { position: relative; }
.hero .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--on-dark-soft); }
.hero .row .l { display: flex; align-items: center; gap: 10px; }
.hero h2.t { font-size: 44px; line-height: 1.05; letter-spacing: -.035em; color: #fff; margin-top: 28px; }
.hero .sub { font-size: 12.5px; color: var(--on-dark-soft); display: flex; gap: 8px; align-items: center; margin: 10px 0 26px; }
.tiles { display: flex; gap: 12px; align-items: stretch; }
.tile { background: var(--ink-raised); border-radius: 16px; padding: 12px 16px; min-width: 150px; text-align: left; transition: background .15s; }
.tile:hover { background: #5a3560; }
.tile small { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--on-dark-faint); } .tile b { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 600; color: #fff; }
.tile b.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #777; } .tile b.g { color: var(--green); }
.tiles .grow { flex: 1; }
.small-card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.small-card .big { font-size: 38px; font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.small-card.blue { background: #e7dcf4; } .small-card.sage { background: #f5e3da; }
.small-card .hd { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.small-card .foot { font-size: 12.5px; color: #5d4a68; } .small-card.sage .foot { color: #7a5a4a; }
.small-card .rank { font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.section-t { font-size: 17px; font-weight: 600; margin: 26px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.section-t span { font-size: 12.5px; font-weight: 400; color: var(--text-soft); }
.rooms-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.room-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 22px; transition: transform .2s var(--ease); }
.room-card:hover { transform: translateY(-2px); }
.room-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text-soft); }
.room-card h3 { font-size: 15px; margin-bottom: 8px; }
.dash-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.dash-bottom .card { min-height: 340px; overflow: hidden; display: flex; flex-direction: column; }
.empty { background: #f3eef5; border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.empty b { display: block; font-size: 13px; } .empty p { font-size: 12px; color: var(--text-soft); }
.mini-list { display: flex; flex-direction: column; overflow: auto; flex: 1; margin: 0 -6px; padding: 0 6px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.mini-row .rk { width: 18px; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.mini-row .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; line-height: 1.2; } .mini-row .nm small { display: block; color: var(--text-soft); font-weight: 400; font-size: 11.5px; }
.mini-row .pts { font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ev-mini { display: flex; gap: 12px; padding: 12px; background: #f6f2f8; border-radius: 16px; width: 100%; text-align: left; margin-bottom: 8px; align-items: center; }
.ev-mini:hover { background: #eee8f1; } .ev-mini b { display: block; font-size: 14px; } .ev-mini small { font-size: 12px; color: var(--text-soft); }
.ev-mini .go { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 99px; }
.ev-mini .go.on { background: var(--green); color: #39123A; }

/* ---------- møterom ---------- */
.rm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.meta { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; font-size: 12px; color: var(--text-soft); flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.nav-wk { display: flex; align-items: center; gap: 8px; }
.rm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.cal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin-top: 14px; user-select: none; -webkit-user-select: none; }
.cal-days { display: grid; grid-template-columns: 56px repeat(var(--cols, 5), 1fr); padding: 14px 10px 6px 0; border-bottom: 1px solid var(--cal-line); }
.cal-days .d { display: flex; align-items: center; gap: 8px; padding-left: 10px; font-size: 12px; }
.cal-days .d .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.cal-days .d.today .n { background: var(--ink); color: #fff; }
.cal-days .d b { display: block; font-size: 11.5px; line-height: 1.1; } .cal-days .d span { font-size: 11px; color: var(--text-soft); }
.cal-scroll { height: 560px; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: thin; }
.cal-body { display: grid; grid-template-columns: 56px repeat(var(--cols, 5), 1fr); position: relative; padding-right: 10px; padding-top: 8px; }
.hrs { position: relative; }
.hrs div { height: 50px; font-size: 11px; color: var(--text-faint); padding-left: 14px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.col { position: relative; border-left: 1px solid var(--cal-line); cursor: crosshair; touch-action: pan-y; }
.col.nodrag { cursor: default; }
.col::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(to bottom, var(--cal-line) 0 1px, transparent 1px 50px); pointer-events: none; }
.col::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(to bottom, transparent 0 25px, var(--cal-dash) 25px 26px, transparent 26px 50px); pointer-events: none; opacity: .0; }
.col .past { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(135deg, #f7f7f7 0 6px, #fcfcfc 6px 12px); pointer-events: none; z-index: 1; }
.now-line { position: absolute; left: -4px; right: 0; height: 2px; background: var(--orange); z-index: 6; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.blk { position: absolute; left: 4px; right: 5px; border-radius: 10px; padding: 6px 9px; font-size: 11.5px; line-height: 1.25; overflow: hidden; z-index: 3; text-align: left; background: #efe8cf; color: #3d3410; border: 0; }
.blk b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .blk span { opacity: .75; font-size: 11px; }
.blk.mine { background: var(--ink); color: #fff; cursor: grab; } .blk.mine:active { cursor: grabbing; }
.blk.mine.sel { outline: 2px solid #fff; box-shadow: 0 0 0 4px var(--ink); }
.blk.ev { background: var(--cream); color: #6b5200; background-image: repeating-linear-gradient(135deg, #0000 0 6px, #ffffff55 6px 12px); }
.blk.ghost { background: #39123Acc; color: #fff; z-index: 5; pointer-events: none; }
.blk .rz { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; } .blk .rz::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 2px; border-radius: 2px; background: #fff7; transform: translateX(-50%); }
.blk.c0 { background: #e3dcf8; color: #2e2368; } .blk.c1 { background: #dcefc9; color: #2a4a17; } .blk.c2 { background: #f3e7c0; color: #5f4300; }
.blk.c3 { background: #d8e8fb; color: #1b447d; } .blk.c4 { background: #f8dfd2; color: #7e3410; } .blk.c5 { background: #e7e3d3; color: #4c472b; } .blk.c6 { background: #dde5ea; color: #31475a; }
.side-col { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.room-info { display: flex; gap: 12px; font-size: 12.5px; padding: 16px 18px; } .room-info b { display: block; font-size: 13px; margin-bottom: 2px; } .room-info p { color: #4a4a4a; font-size: 12.5px; line-height: 1.4; }
.howto { padding: 22px; } .howto small { font-size: 11px; color: var(--on-dark-faint); } .howto h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 16px; }
.howto ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.howto li { display: flex; gap: 12px; font-size: 12.5px; line-height: 1.4; color: #e8e8e8; }
.howto li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: #5a3560; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.mine-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .mine-h h3 { font-size: 15px; }
.count { min-width: 24px; height: 22px; border-radius: 99px; background: var(--green); color: #39123A; font-size: 12px; font-weight: 600; display: grid; place-items: center; padding: 0 7px; }
.mine-row { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.mine-row:first-of-type { border-top: 0; } .mine-row .dt { font-size: 12px; color: var(--text-soft); width: 46px; line-height: 1.25; } .mine-row .dt b { color: var(--ink); display: block; font-size: 13px; }
.mine-row .t { flex: 1; font-weight: 600; font-size: 13.5px; line-height: 1.25; } .mine-row .t small { display: block; font-weight: 400; color: var(--text-soft); font-size: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-soft); padding: 4px 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 8px; height: 8px; border-radius: 50%; background: #e7e3d3; }
.editor { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; }
.editor .ed-top { display: flex; justify-content: space-between; align-items: center; }
.editor label.l { font-size: 11.5px; color: var(--text-soft); }
.editor .inp { height: 44px; background: #f3eef5; border: 0; border-radius: 14px; padding: 0 14px; font-weight: 600; width: 100%; }
.editor .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .editor .row b { font-weight: 600; }
.editor select { border: 0; background: #f3eef5; border-radius: 99px; height: 30px; padding: 0 10px; font-weight: 600; font-size: 12.5px; }
.durs { display: grid; grid-template-columns: repeat(4, 1fr); background: #f3eef5; border-radius: 99px; padding: 3px; gap: 2px; }
.durs button { height: 30px; border-radius: 99px; font-size: 12px; font-weight: 500; color: #555; } .durs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.durs button:disabled { opacity: .35; cursor: default; }
.ed-actions { display: flex; gap: 8px; margin-top: 4px; } .ed-actions .btn:first-child { flex: 1; justify-content: space-between; padding-right: 8px; }
.cal-connect { padding: 18px 20px; } .cal-connect h3 { font-size: 14px; margin: 8px 0 6px; } .cal-connect p { font-size: 12.5px; color: #555; line-height: 1.4; margin-bottom: 12px; }
.cal-connect .btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- eventer ---------- */
.evt { padding: 26px; margin-bottom: 14px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.evt > * { position: relative; }
.evt.dark { background-color: var(--ink); color: #fff; }
.evt.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.evt .top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; gap: 12px; }
.evt.dark .top { color: var(--on-dark-soft); } .evt.light .top { color: var(--text-soft); }
.evt .top .l { display: flex; align-items: center; gap: 10px; } .evt .top b { color: inherit; }
.evt.dark .top b { color: #fff; }
.evt h2 { font-size: 44px; letter-spacing: -.035em; line-height: 1.05; margin: 22px 0 8px; }
.evt .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.evt .desc { font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.evt.dark .desc { color: var(--on-dark-soft); } .evt.light .desc { color: var(--text-soft); }
.evt .tiles .tile { background: #ffffff1c; backdrop-filter: blur(8px); }
.evt.light .tile { background: #f3eef5; } .evt.light .tile small { color: var(--text-soft); } .evt.light .tile b { color: var(--ink); } .evt.light .tile:hover { background: #eaeaea; }
.evt .tag-row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.tag { height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; }
.tag.sosial { background: var(--booked-bg); color: var(--booked-fg); } .tag.arrangement { background: #e3eefe; color: #1e4e8c; } .tag.lunsj { background: var(--free-bg); color: var(--free-fg); }
.evt-empty { display: flex; gap: 14px; align-items: center; padding: 16px; background: #f3eef5; border-radius: 16px; } .evt-empty b { display: block; font-size: 13.5px; } .evt-empty p { font-size: 12.5px; color: var(--text-soft); }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: #2d0e3066; backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 22px; padding: 24px; width: min(440px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px #0004; animation: pop .3s var(--ease) both; position: relative; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; } .modal p { font-size: 13px; line-height: 1.45; } .modal .drinks { font-size: 11.5px; color: var(--text-soft); margin-top: 8px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal.dark { background: #2d0e30; color: #fff; text-align: center; width: min(430px, 100%); padding: 28px 26px 22px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #55305a; color: #fff; display: grid; place-items: center; }
.opts { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 6px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: #f3eef5; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.opt input { appearance: none; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid #bbb; background: #fff; display: grid; place-items: center; flex: none; }
.opt input:checked { background: var(--ink); border-color: var(--ink); } .opt input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.opt:has(input:checked) { background: #ece0f6; }
.textarea, .modal .field { width: 100%; border: 0; background: #f3eef5; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.modal .field { height: 44px; border-radius: 99px; } .textarea { resize: vertical; min-height: 90px; }
.form-grid { display: grid; gap: 10px; } .form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .form-grid label { font-size: 11.5px; color: var(--text-soft); display: block; margin: 0 0 4px 4px; }
.wheel-wrap { position: relative; width: 250px; height: 250px; margin: 14px auto 6px; }
.wheel-wrap svg.w { width: 100%; height: 100%; display: block; transition: transform 5.4s cubic-bezier(.12, .7, .1, 1); }
.wheel-wrap .pointer { position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(180deg); clip-path: polygon(50% 0, 0 100%, 100% 100%); z-index: 2; }
.modal.dark .kicker { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 10px; }
.modal.dark h3 { font-size: 20px; margin-bottom: 0; }
.game-name { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin-top: 10px; color: #b7c8fb; line-height: 1.05; }
.modal.dark .lead { color: #bdbdbd; font-size: 12.5px; margin-top: 8px; }
.tagdark { display: inline-block; background: #55305a; border-radius: 99px; padding: 5px 12px; font-size: 11px; font-weight: 600; margin-top: 12px; }
.rules-btn { display: block; margin: 10px auto 0; font-size: 11.5px; text-decoration: underline; color: #ddd; } .rules { text-align: left; font-size: 11.5px; color: #cfcfcf; margin-top: 10px; line-height: 1.5; }
.modal.dark .cta { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
.modal.dark .foot { color: #8f8f8f; font-size: 11px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 14px 12px 20px; border-radius: 99px; font-size: 13px; z-index: 80; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 30px #0003; animation: pop .3s var(--ease) both; }
.toast.err { background: #b24a17; } .toast button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
.pop { position: fixed; z-index: 60; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px #0003; padding: 8px; width: 270px; animation: pop .2s var(--ease) both; }
.pop button, .pop a { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; text-align: left; } .pop button:hover, .pop a:hover { background: #f3eef5; }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- tabell ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.pod { border-radius: var(--r-lg); padding: 22px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; } .pod.p1 { background: #ece0a0; } .pod.p2 { background: #e0e0e6; } .pod.p3 { background: #e5cfb0; }
.pod .t { display: flex; justify-content: space-between; align-items: center; } .pod .rk { background: var(--ink); color: #fff; border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.pod .b { display: flex; justify-content: space-between; align-items: flex-end; } .pod .b b { font-size: 17px; display: block; letter-spacing: -.01em; } .pod .b small { font-size: 11.5px; color: #5c5c5c; } .pod .pt { font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: .85; }
.tb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.tb { padding: 12px 10px; }
.tb table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.tb th { font-size: 11px; color: var(--text-faint); font-weight: 400; text-align: left; padding: 6px 14px; }
.tb td { padding: 9px 14px; font-size: 13.5px; } .tb td:first-child { border-radius: 14px 0 0 14px; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; } .tb td:last-child { border-radius: 0 14px 14px 0; text-align: right; font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb th:last-child { text-align: right; }
.tb tr.me td { background: var(--ink); color: #fff; } .tb tr.me td:first-child { color: #aaa; }
.tb .who { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.chg { display: inline-grid; place-items: center; min-width: 26px; height: 20px; border-radius: 99px; background: #f1f1f1; color: #777; font-size: 11px; font-weight: 600; padding: 0 6px; } .chg.up { background: var(--free-bg); color: var(--free-fg); } .chg.down { background: var(--busy-bg); color: var(--busy-fg); }
.tr-me .chg { background: #5a3560; color: #fff; }
.next-game { padding: 22px; } .next-game small { font-size: 11px; color: var(--on-dark-faint); } .next-game h3 { font-size: 26px; letter-spacing: -.03em; margin: 6px 0 4px; } .next-game p { font-size: 12px; color: var(--on-dark-soft); }
.next-game .you { display: flex; justify-content: space-between; background: var(--ink-raised); border-radius: 14px; padding: 10px 14px; font-size: 12px; margin-top: 18px; } .next-game .you b { color: var(--green); font-weight: 600; }
.winners { padding: 20px; } .winners h3 { font-size: 15px; margin-bottom: 8px; } .win-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; } .win-row small { color: var(--text-soft); display: block; font-size: 11.5px; }

/* ---------- innboks / info ---------- */
.inbox-wrap, .info-wrap { max-width: 760px; margin: 0 auto; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.note { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-soft); align-items: center; margin-bottom: 22px; }
.msg { padding: 18px 20px; margin-bottom: 10px; } .msg .h { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); margin-bottom: 6px; } .msg b { font-size: 14px; } .msg p { font-size: 13.5px; white-space: pre-wrap; margin-top: 4px; }
.msg.host { background: #f4f9ee; }
.big-empty { text-align: center; padding: 60px 20px; } .big-empty b { display: block; font-size: 15px; margin-bottom: 4px; } .big-empty p { color: var(--text-soft); font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; margin-bottom: 22px; }
.info-wrap .tabs { margin: 20px 0 14px; overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 6px; scrollbar-width: none; }
.info-card { padding: 22px 24px; } .info-card h3 { font-size: 16px; margin: 0 0 8px; } .info-card h3:not(:first-child) { margin-top: 22px; } .info-card p { font-size: 13.5px; margin-bottom: 8px; color: #5a3560; }
.info-card ul { padding-left: 20px; font-size: 13.5px; color: #5a3560; display: flex; flex-direction: column; gap: 4px; }
.pw { display: inline-flex; align-items: center; gap: 8px; } .pw code { background: #f3eef5; border-radius: 8px; padding: 2px 10px; font-family: inherit; letter-spacing: .1em; } .pw button { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; background: #f3eef5; border-radius: 99px; padding: 3px 10px; font-weight: 600; }

/* ---------- mobil ---------- */
.tabbar { display: none; }
@media (max-width: 1100px) {
  .dash-top { grid-template-columns: 1fr 1fr; } .hero { grid-column: 1 / -1; }
  .dash-bottom { grid-template-columns: 1fr 1fr; } .rm-layout, .tb-layout { grid-template-columns: 1fr; }
  .side-col { margin-top: 0; }
}
@media (max-width: 800px) {
  body { padding-bottom: 96px; }
  .app, .app.min { display: block; }
  .side { display: none; }
  .main { padding: 18px 14px 40px; }
  .display { font-size: 44px; } h1 { font-size: 34px; }
  .page-head { flex-direction: column; gap: 6px; margin-bottom: 16px; } .date-block { text-align: left; } .date-block b { font-size: 20px; }
  .dash-top { grid-template-columns: 1fr 1fr; } .hero { min-height: 0; padding: 20px; } .hero h2.t { font-size: 32px; margin-top: 20px; }
  .tiles { overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; flex-wrap: nowrap; } .tile { flex: none; }
  .small-card { min-height: 0; gap: 22px; padding: 18px; } .small-card .big { font-size: 28px; }
  .rooms-row { grid-template-columns: 1fr 1fr; } .dash-bottom { grid-template-columns: 1fr; } .dash-bottom .card { min-height: 0; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; box-shadow: 0 -8px 30px #0000000d; align-items: center; justify-items: center; }
  .tabbar a, .tabbar button.tb-i { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: #555; padding: 6px 12px; border-radius: 99px; }
  .tabbar a.on { background: #f3eef5; color: var(--ink); font-weight: 600; } .tabbar svg.i { width: 20px; height: 20px; }
  .tabbar .plus { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 20px #0003; } .tabbar .plus svg { width: 24px; height: 24px; }
  .rm-head { flex-direction: column; gap: 10px; } .cal-days, .cal-body { grid-template-columns: 44px repeat(var(--cols, 5), 1fr); } .cal-days .d { padding-left: 4px; flex-direction: column; gap: 2px; align-items: center; } .cal-days .d div { display: none; }
  .cal-days .d .n { width: 28px; height: 28px; font-size: 12px; } .hrs div { padding-left: 6px; font-size: 10px; } .cal-scroll { height: 480px; }
  .blk span { display: none; } .blk { padding: 4px 6px; }
  .evt { padding: 20px; } .evt h2 { font-size: 32px; } .evt .tiles { flex-wrap: wrap; }
  .podium { grid-template-columns: 1fr; } .pod { min-height: 110px; } .tb td:nth-child(4), .tb th:nth-child(4) { display: none; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
  .sheet { align-self: end; border-radius: 28px 28px 0 0 !important; width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 800px) {
  .hero .tiles { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .hero .tiles .tile { flex: 1 1 140px; } .hero .tiles .grow { display: none; } .hero .tiles .btn { width: 100%; }
}

/* ---------- avstemning og sted ---------- */
.poll { margin-top: 16px; background: #ffffff14; border-radius: 18px; padding: 16px; max-width: 560px; }
.evt.light .poll, .modal .poll, .empty .poll { background: var(--surface-shell); }
.poll.compact { max-width: none; width: 100%; padding: 12px; background: #fff; }
.poll-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13.5px; } .poll-h b { font-weight: 600; }
.evt.dark .poll-h .small { color: var(--on-dark-soft); }
.po-list { display: flex; flex-direction: column; gap: 6px; }
.po { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; background: #ffffff1c; overflow: hidden; font-size: 13.5px; font-weight: 500; text-align: left; transition: transform .15s var(--ease); }
.evt.light .po, .modal .po, .poll.compact .po { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.poll.compact .po { background: var(--surface-shell); box-shadow: none; }
.po i { position: absolute; left: 0; top: 0; bottom: 0; background: #dcc8f288; transition: width .4s var(--ease); }
.evt.light .po i, .modal .po i, .poll.compact .po i { background: #e4d3f5; }
.po .lab { position: relative; display: inline-flex; align-items: center; gap: 8px; } .po .n { position: relative; font-weight: 600; font-variant-numeric: tabular-nums; }
.po.mine { box-shadow: inset 0 0 0 2px currentColor; } .po.win .lab { font-weight: 700; }
.po:not(:disabled):hover { transform: translateY(-1px); } .po:disabled { cursor: default; }
.po-add { display: flex; gap: 8px; margin-top: 10px; }
.po-in { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 99px; padding: 0 14px; background: #ffffff1c; color: inherit; font-size: 13px; }
.po-in::placeholder { color: var(--on-dark-faint); } .evt.light .po-in, .modal .po-in, .poll.compact .po-in { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); } .evt.light .po-in::placeholder, .modal .po-in::placeholder { color: var(--text-soft); }
.po-host { margin-top: 10px; }
.place { font-size: 12.5px; } .place.ext { color: inherit; }
.evt.ext { border-left: 5px solid var(--green); }
.ext-info { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 12.5px; align-items: center; } .ext-info span { display: inline-flex; gap: 6px; align-items: center; } .ext-info a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
[hidden] { display: none !important; }
.note { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-soft); align-items: center; }

/* ---------- nedtelling ---------- */
.cd { font-variant-numeric: tabular-nums; font-weight: 700; }
.active-now { padding: 18px 20px; background: var(--busy-bg); box-shadow: none; }
.active-now .small { color: var(--busy-fg); }
.big-cd { font-size: 54px; font-weight: 600; letter-spacing: -.05em; line-height: 1; margin: 8px 0 12px; color: #7d330f; display: flex; align-items: baseline; gap: 10px; }
.big-cd span:last-child { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--busy-fg); }
.active-now .bar { height: 8px; border-radius: 99px; background: #ffffffaa; overflow: hidden; margin-bottom: 8px; } .active-now .bar i { display: block; height: 100%; background: var(--busy-dot); border-radius: 99px; transition: width 1s linear; }

/* ---------- kontoret, plasser, gjester, kjøkken ---------- */
.dash-bottom.second .card { min-height: 280px; }
.big-n { font-size: 54px; font-weight: 600; letter-spacing: -.05em; line-height: 1; display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.big-n span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-soft); }
.av-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.avatar.fade { opacity: .45; }
.who-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 12px 3px 3px; border-radius: 99px; background: var(--surface-shell); }
.who-chip b { font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.or { text-align: center; font-size: 12px; color: var(--text-soft); margin: 0 0 12px; }
a.btn { text-decoration: none; }
.zone + .zone { margin-top: 22px; }
.desk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.desk { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 18px; min-height: 92px; background: var(--surface-shell); transition: transform .15s var(--ease), background .15s; }
.desk b { font-size: 14px; } .desk span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; margin-top: auto; }
.desk.free { background: var(--free-bg); color: var(--free-fg); } .desk.free:not(:disabled):hover { transform: translateY(-2px); }
.desk.taken { background: #f1ecf3; color: #5b4a62; } .desk.mine { background: var(--ink); color: #fff; }
.desk:disabled { cursor: default; opacity: .75; }
.plan-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.plan { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 10px 0; border-radius: 14px; background: var(--surface-shell); font-size: 12px; } .plan b { font-size: 11.5px; color: var(--text-soft); font-weight: 500; }
.plan.on { background: var(--green); color: var(--ink); font-weight: 600; } .plan.on b { color: var(--ink); } .plan:disabled { opacity: .5; cursor: default; }
.matrix { width: 100%; border-collapse: collapse; font-size: 12.5px; } .matrix th { font-weight: 500; color: var(--text-soft); text-align: center; padding: 4px; } .matrix th.today { color: var(--ink); font-weight: 700; }
.matrix td { text-align: center; padding: 6px 4px; border-top: 1px solid var(--line); } .matrix td:first-child { text-align: left; }
.matrix small { display: block; font-size: 10px; color: var(--text-soft); }
.m { display: inline-block; width: 11px; height: 11px; border-radius: 50%; } .m.in { background: var(--free-dot); } .m.plan { box-shadow: inset 0 0 0 2px var(--free-dot); }
.guest { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); } .guest:first-of-type { border-top: 0; }
.guest .g-main { flex: 1; min-width: 0; } .guest .g-main b { display: block; font-size: 14px; } .guest .g-main small { color: var(--text-soft); font-size: 12px; }
.guest .g-when { font-size: 12px; color: var(--text-soft); text-align: right; } .guest .g-when b { display: block; color: var(--ink); font-size: 14px; }
.guest .g-act { display: flex; gap: 6px; align-items: center; } .guest.gått { opacity: .5; } .guest.ankommet .g-main b { color: var(--free-fg); }
.kw { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; margin-bottom: 6px; } .kw.now { background: var(--surface-shell); }
.kw-n { width: 70px; } .kw-n b { display: block; font-size: 13px; } .kw-n small { color: var(--text-soft); font-size: 11.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips .tab { height: 30px; font-size: 12px; font-weight: 500; box-shadow: none; background: var(--surface-shell); }
.shop-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .shop-line:first-child { border-top: 0; } .shop-line.done span { text-decoration: line-through; color: var(--text-soft); }
.shop-row { display: flex; align-items: center; gap: 12px; flex: 1; font-size: 13.5px; cursor: pointer; padding: 3px 0; }
.shop-row input { appearance: none; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid #b9aabf; background: #fff; flex: none; display: grid; place-items: center; } .shop-row input:checked { background: var(--ink); border-color: var(--ink); } .shop-row input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
pre.digest { white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55; background: var(--surface-shell); border-radius: 16px; padding: 16px; max-height: 480px; overflow: auto; }
code { background: var(--surface-shell); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.terr { display: flex; align-items: center; }
.pop button small { display: block; font-size: 11px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } .rooms-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .desk-grid { grid-template-columns: repeat(2, 1fr); } .big-n { font-size: 44px; } .dash-bottom.second { grid-template-columns: 1fr; } }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.card .form-grid .field { border: 0; background: var(--surface-shell); height: 44px; } .card .form-grid select.field { padding-right: 12px; }

.col.wk { background: #faf7fb; } .cal-days .d.wk b { color: var(--text-soft); }
.blk.priv { background: repeating-linear-gradient(135deg, #e6d6f4 0 7px, #efe3f8 7px 14px); color: #39123A; }

/* ---------- husvert ---------- */
.urow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.urow:first-of-type { border-top: 0; }
.u-main { flex: 1; min-width: 180px; } .u-main b { display: block; font-size: 14px; } .u-main small { color: var(--text-soft); font-size: 12px; }
.u-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.drow { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; margin-bottom: 6px; align-items: center; }
.drow .field { height: 40px; border: 0; background: var(--surface-shell); }
textarea.textarea { border: 0; }

/* ---------- faste plasser og ukeplan ---------- */
.desk small { font-size: 11.5px; color: inherit; opacity: .75; margin-top: -8px; }
.desk.fixed { background: #ece4ef; color: #4a3a52; } .desk.mine.fixed { background: var(--ink); color: #fff; }
.desk.free.own { background: #fff; box-shadow: inset 0 0 0 2px var(--free-dot); }
.drow { grid-template-columns: 1fr 1fr 1fr 34px; }
.plan.off { background: repeating-linear-gradient(135deg, #f0eaf2 0 6px, #f8f4f9 6px 12px); color: var(--text-soft); font-weight: 500; }
.m.off { width: 11px; height: 11px; border-radius: 50%; background: #d9cfdc; position: relative; } .m.off::after { content: ''; position: absolute; left: 2px; right: 2px; top: 5px; height: 1.5px; background: #fff; }
.plan-card.urgent { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.plan-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; background: #ece0f6; box-shadow: none; } .plan-banner b { font-size: 14.5px; } .plan-banner p { font-size: 12.5px; color: #5d4a68; } .plan-banner .btn { margin-left: auto; }
.plan-status { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal.plan { width: min(560px, 100%); padding: 30px; }
.pm-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px; }
.modal.plan h3 { font-size: 30px; letter-spacing: -.035em; margin-bottom: 4px; } .pm-lead { font-size: 15px; color: #4a3a52; margin-bottom: 20px; }
.pm-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pm-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 4px 12px; border-radius: 18px; background: var(--ink); color: #fff; transition: transform .15s var(--ease), background .15s; }
.pm-day b { font-size: 16px; } .pm-day span { font-size: 11.5px; opacity: .8; } .pm-day i { font-style: normal; font-size: 11px; font-weight: 600; margin-top: 10px; padding: 3px 8px; border-radius: 99px; background: #ffffff26; }
.pm-day.ute { background: repeating-linear-gradient(135deg, #efe8f2 0 7px, #f7f2f9 7px 14px); color: #7d6f84; } .pm-day.ute i { background: #ffffffaa; }
.pm-day.past { background: var(--surface-shell); color: var(--text-faint); cursor: default; } .pm-day:not(:disabled):active { transform: scale(.96); }
.pm-sum { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 4px; font-size: 14px; } .pm-n { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; } .pm-sum .grow { flex: 1; }
.link-btn { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--text-soft); margin-left: 10px; }
.pm-desk { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #5d4a68; background: var(--surface-shell); border-radius: 14px; padding: 12px 14px; margin: 14px 0 4px; line-height: 1.45; } .pm-desk svg { margin-top: 2px; }
@media (max-width: 800px) { .drow { grid-template-columns: 1fr 1fr; } .pm-days { gap: 5px; } .modal.plan { padding: 22px; } .modal.plan h3 { font-size: 24px; } .plan-banner { flex-wrap: wrap; } .plan-banner .btn { margin-left: 0; width: 100%; } }

/* ---------- daglig lunsj ---------- */
.pm-col { display: flex; flex-direction: column; gap: 6px; }
.pm-lunch { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 12px; background: var(--surface-shell); color: var(--text-soft); font-size: 11.5px; font-weight: 600; transition: background .15s; }
.pm-lunch.on { background: var(--green); color: var(--ink); } .pm-lunch:disabled { opacity: .45; cursor: default; } .pm-lunch svg { width: 14px; height: 14px; }
.pm-prefs { margin: 14px 0 4px; } .pm-prefs .chips .tab { height: 30px; font-size: 12px; font-weight: 500; box-shadow: none; background: var(--surface-shell); } .pm-prefs .chips .tab.on { background: var(--ink); color: #fff; }
.chips .tab.on { background: var(--ink); color: #fff; }
.lunch-today { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-shell); border-radius: 16px; margin-bottom: 14px; } .lunch-today b { display: block; font-size: 13.5px; } .lunch-today small { color: var(--text-soft); font-size: 11.5px; } .lunch-today .btn { margin-left: auto; }
.lday { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-top: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; } .lday.today { background: var(--surface-shell); border-top-color: transparent; }
.ld-when { width: 96px; } .ld-when b { display: block; font-size: 14px; } .ld-when small { color: var(--text-soft); font-size: 11.5px; }
.ld-n { width: 64px; } .ld-n b { font-size: 22px; letter-spacing: -.03em; display: block; line-height: 1; } .ld-n small { color: var(--text-soft); font-size: 11px; }
.ld-ppl { flex: 1; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; min-width: 40px; } .ld-act { display: flex; gap: 6px; align-items: center; margin-left: auto; }
@media (max-width: 800px) { .ld-ppl { display: none; } .pm-lunch span { display: none; } }

/* ---------- forslag og admin-plasser ---------- */
.sugg-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; background: linear-gradient(100deg, #39123A, #5a2a60); color: #fff; box-shadow: none; }
.sugg-banner b { font-size: 15px; display: block; } .sugg-banner p { font-size: 12.5px; color: #e3d3e8; } .sugg-banner .chip-ic { background: #ffffff26; color: #fff; }
.sb-act { margin-left: auto; display: flex; align-items: center; gap: 8px; } .sugg-banner .btn { background: var(--green); color: var(--ink); } .sugg-banner .btn.ghost { background: #ffffff26; color: #fff; box-shadow: none; } .sugg-banner .icon-btn { color: #fff; }
.rooms-admin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.drow.head { font-size: 11.5px; color: var(--text-soft); margin-bottom: 4px; padding-left: 2px; }
.drow select.field { padding: 0 12px; }
@media (max-width: 1100px) { .rooms-admin { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .sugg-banner { flex-wrap: wrap; } .sb-act { margin-left: 0; width: 100%; } }

/* ---------- påmelding / avmelding ---------- */
.su-wrap { display: inline-flex; align-items: center; gap: 10px; }
.su-out { font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text-soft); padding: 6px 4px; } .su-out:hover { color: var(--ink); }
.evt.dark .su-out, .hero .su-out, .modal.dark .su-out { color: #e3d3e8; } .evt.dark .su-out:hover, .hero .su-out:hover { color: #fff; }
