@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/fraunces-latin-ext-opsz-normal.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: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/fraunces-latin-opsz-normal.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; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/plus-jakarta-sans-latin-ext-wght-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/plus-jakarta-sans-latin-wght-normal.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; }

/* Kompis för organisationer (org-portal-v1). Layout from the approved demo: a fixed left rail and a canvas of cards;
   the rail becomes a top bar with the customer's logo on phones. Kompis fonts, no italics anywhere. */
:root {
  --bg: #F3F5FB; --surface: #FFFFFF; --surface2: #EEF1FA; --line: #DCE2F0;
  --fg: #131A33; --muted: #5B6584; --faint: #6E7896;
  --blue: #2346D8; --blue-soft: #DCE4FF; --sun: #FFC93C; --sun-soft: #FFF1C7;
  --good: #1E8A5F; --good-soft: #DDF3E8; --warn: #9A520A; --bad: #B42318;
  --display: "Fraunces", Georgia, serif; --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; color-scheme: light;
}
* { box-sizing: border-box; font-style: normal; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 14px; line-height: 1.5; }
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column;
  gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand b { font-family: var(--display); font-weight: 650; font-size: 21px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: -2px; }
.cust { padding: 2px 8px 0; }
.cust img { display: block; max-height: 40px; max-width: 180px; width: auto; height: auto; }
.cust span { font-weight: 700; font-size: 13px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 13.5px; }
nav button svg { width: 18px; height: 18px; flex: none; }
nav button:hover { background: var(--surface2); color: var(--fg); }
nav button[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
nav button:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, .lang button:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; }
.lang { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; margin: 0 8px; align-self: flex-start; }
.lang button { all: unset; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--blue); box-shadow: 0 1px 3px rgba(19, 26, 51, .12); }
.railfoot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px; border-radius: 12px; background: var(--surface2); }
.railfoot b { color: var(--fg); display: block; font-size: 13px; }
.railfoot button { all: unset; cursor: pointer; color: var(--blue); font-weight: 700; margin-top: 6px; display: inline-block; }
main { padding: 26px clamp(16px, 3vw, 40px) 48px; min-width: 0; }
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 em { font-style: normal; color: var(--blue); }
.sub { color: var(--muted); margin: 2px 0 0; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select, input, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; width: 100%; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 13px; padding: 9px 15px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: default; }
.view { display: none; } .view.on { display: block; animation: in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.card h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 700; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 26px 0 10px; }
.num { font-family: var(--display); font-weight: 650; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.few { font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--muted); display: inline-block; padding: 6px 0; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.kpi .ic.sun { background: var(--sun-soft); color: var(--warn); }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi p { margin: 0; color: var(--muted); font-size: 12.5px; }
svg text { fill: var(--muted); font-family: var(--body); font-size: 11px; }
.seats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.legend b { color: var(--fg); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.list { display: flex; flex-direction: column; }
.list .it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.list .it:first-child { border-top: 0; }
.it .t { font-weight: 600; } .it .s { color: var(--muted); font-size: 12px; }
.it .c { color: var(--blue); font-weight: 700; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.privacy { background: var(--surface2); border: 1px dashed var(--line); }
.privacy ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--good-soft); color: var(--good); }
.chip.new { background: var(--sun-soft); color: var(--warn); }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface2); color: var(--muted); font-size: 13px; }
.note b { color: var(--fg); }
.note svg { flex: none; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: 12.5px; }
.form textarea { min-height: 70px; resize: vertical; }
.err { color: var(--bad); font-size: 12.5px; margin: 0; min-height: 1em; }
.ok { color: var(--good); font-size: 12.5px; margin: 0; }
.preview { border-radius: 16px; padding: 20px; background: linear-gradient(160deg, var(--blue-soft), var(--surface2)); display: grid; gap: 10px; align-content: start; }
.bubble { background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 12px 14px; max-width: 92%; box-shadow: 0 1px 0 var(--line); }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .08em; padding: 12px 16px;
  border-radius: 12px; background: var(--surface2); display: inline-block; word-break: break-all; }
.poster { border-radius: 18px; padding: 26px; background: var(--blue); color: #fff; display: grid; gap: 14px; justify-items: start; align-content: start; }
.poster h4 { font-family: var(--display); font-weight: 650; font-size: 28px; line-height: 1.1; margin: 0; }
.poster .qr { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; }
.poster .qr img { width: 150px; height: 150px; }
.poster p { margin: 0; opacity: .92; }
.poster .plogo { background: #fff; border-radius: 10px; padding: 8px 10px; line-height: 0; max-width: 100%; box-sizing: border-box; }
.poster .plogo img { max-height: 34px; width: auto; max-width: 100%; }
.poster { min-width: 0; }
.rep dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; }
.rep dt { color: var(--muted); } .rep dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.qa { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qa .card { padding: 14px 16px; }
.qa .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.qa .row b { font-family: var(--display); font-size: 16px; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; z-index: 9; }
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin .card { width: 100%; max-width: 400px; padding: 26px; }
.signin h1 { font-size: 28px; margin: 14px 0 4px; }
.signin form { display: grid; gap: 10px; margin-top: 16px; }
.signin a:not(.btn) { color: var(--blue); font-weight: 600; font-size: 13px; }
.signin .links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.signin .notyet { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.signin .notyet .label { margin: 0 0 4px; }
.signin .notyet .btn { display: inline-flex; margin-top: 12px; text-decoration: none; }
.signin .ok { color: var(--good, #1f7a4d); font-size: 12.5px; margin: 0; min-height: 1em; }
.signin .who { display: flex; flex-direction: column; gap: 2px; background: var(--bg, #f4f6fb); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.signin .who small { color: var(--muted); font-size: 12px; }
.signin .who b { font-size: 14px; word-break: break-all; }
.signin .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.signin .check input { width: auto; margin-top: 2px; }
.invlogo { margin: 16px 0 0; }
.invlogo img { max-height: 40px; max-width: 220px; display: block; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .app > * { min-width: 0; }
  .rail { position: sticky; top: 0; z-index: 5; height: auto; padding: 10px 16px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .railtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .brand { padding: 0; } .brand b { font-size: 18px; } .brand svg { width: 28px; height: 28px; }
  .cust { padding: 0; min-width: 0; flex: 0 1 auto; } .cust img { max-height: 30px; max-width: min(120px, 100%); }
  .brand { flex: none; } .mlang { flex: none; }
  nav { flex-direction: row; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  nav button { padding: 8px 10px; } nav button span { white-space: nowrap; }
  .lang, .railfoot { display: none; }
  .g2, .g3, .qa { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .num { font-size: 26px; }
}
@media (min-width: 821px) { .railtop { display: contents; } .mlang { display: none; } }
.slips { display: none; }
@media print {
  .rail, .tools, .noprint { display: none !important; }
  #koder .top { display: none; }
  .slips { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .slip { border: 1px dashed #999; padding: 18px 16px; break-inside: avoid; min-height: 120px; }
  .slip-org { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
  .toast { display: none !important; }
  .slip-code { white-space: nowrap; font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: .08em; margin: 6px 0 8px; }
  .slip-how { font-size: 12px; line-height: 1.4; color: #333; }
  .app { display: block; } body { background: #fff; } .card { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .view.on { animation: none; } }

/* curriculum-structure-v2.md 3: Veckans station */
.vs-top { margin-top: 28px; }
.vs-top h2 { margin: 0; }
.vs-card .form { margin-top: 12px; }
.vs-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-card .it .btn { white-space: nowrap; flex: none; }
