:root {
  --bg: #f4f4f2;
  --panel: #ffffff;
  --text: #222;
  --muted: #6b6b6b;
  --line: #d6d6d2;
  --accent: #2b2b2b;
  --work: #fff6c4;  --work-line: #d9c95c;
  --pv: #b9b6dc;    --pv-line: #8d89c2;
  --other: #b8d8f2; --other-line: #7fb2dc;
  --event: #bdf0a8; --event-line: #7cc760;
  --weekend: #f6c9c9;
  --totals: #fffbd6;
  --today: #fff0e0;
  --mine: #fbfbf4;
  --ok: #2e7d32; --short: #c62828;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select { font: inherit; }
button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button:hover { border-color: #999; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--short); border-color: #e5b4b4; }
button.link { border: 0; background: none; padding: 4px 6px; color: inherit; text-decoration: underline; }
input, select { border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; background: #fff; min-width: 0; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.error-text { color: var(--short); min-height: 1em; margin: 6px 0; }

.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px;
  background: var(--accent); color: #fff; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: #ddd; text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.topbar nav a.active { background: rgba(255,255,255,.18); color: #fff; }
.topbar .muted { color: #bbb; }

main { padding: 12px 16px 32px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar h1, .toolbar h2 { font-size: 17px; margin: 0 8px; }
.toolbar .jump { display: inline-flex; gap: 4px; }
label.check { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; }

/* schedule grid */
.grid-wrap { overflow: auto; max-height: calc(100vh - 150px); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; }
table.grid { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.grid th, .grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  vertical-align: top; padding: 4px; min-width: 170px; max-width: 220px; }
.grid thead th { position: sticky; top: 0; z-index: 2; background: #eee; font-size: 12px; padding: 8px 4px; text-align: center; }
.grid .datecol { position: sticky; left: 0; z-index: 1; background: #eee; min-width: 64px; width: 64px;
  font-size: 12px; font-weight: normal; text-align: right; white-space: nowrap; }
.grid thead .datecol { z-index: 3; }
.grid .datecol .week { font-weight: 700; font-size: 13px; }
.grid .datecol.redday { background: var(--weekend); }
.grid .datecol .flag { float: left; margin-top: 2px; }
.grid .datecol .dayname { font-size: 10px; color: var(--muted); white-space: normal; line-height: 1.15; margin-top: 2px; }
.grid .datecol.redday .dayname { color: #8a2b2b; }
.grid tr.weekstart > * { border-top: 2px solid #aaa; }
.grid tr.today > td { background: var(--today); }
.grid td.mine { background: var(--mine); }
.grid tr.today > td.mine { background: var(--today); }
.grid td.editable { cursor: copy; }
.grid tr.totals > * { background: var(--totals); text-align: center; font-weight: 600; }
.grid tr.totals > .datecol { text-align: right; font-weight: normal; background: var(--totals); }
.grid tr.period-totals > * { background: #fff3a8; text-align: center; border-top: 2px solid #aaa; }
.grid tr.period-totals > .datecol { background: #fff3a8; text-align: right; }
.grid tr.period-totals .ok { color: var(--ok); font-weight: 600; }
.grid tr.period-totals .short { color: var(--short); font-weight: 600; }
.grid th.mine { background: #e2e2d4; }

.chip { display: block; border: 1px solid; border-radius: 4px; padding: 2px 5px; margin-bottom: 3px;
  font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .time { font-size: 11px; opacity: .8; }
.chip.work { background: var(--work); border-color: var(--work-line); }
.chip.pv { background: var(--pv); border-color: var(--pv-line); }
.chip.other { background: var(--other); border-color: var(--other-line); }
.chip.event { background: var(--event); border-color: var(--event-line); cursor: pointer; }
.chip.event.manual { background: var(--pv); border-color: var(--pv-line); }
.chip.event.cancelled { text-decoration: line-through; opacity: .6; }
.chip.clickable { cursor: pointer; }
.chip.clickable:hover, .chip.event:hover { filter: brightness(.95); }
td .add { display: block; width: 100%; padding: 0; border: 1px dashed transparent; background: none;
  color: #aaa; font-size: 14px; line-height: 18px; }
td:hover .add { border-color: var(--line); color: #666; }
.legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legend .chip { display: inline-block; margin: 0; color: var(--text); }

/* cards, forms, dialogs */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 8px; }
.login { max-width: 360px; margin: 10vh auto; display: flex; flex-direction: column; }
.login h1 { font-size: 22px; margin: 0 0 12px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field > span { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 10px; }
.row .field { flex: 1; }
.target { display: flex; gap: 6px; align-items: center; }
.target input { width: 80px; }
dialog { border: 0; border-radius: 12px; padding: 18px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h2 { margin: 0 0 12px; font-size: 18px; }
.dlg-buttons { display: flex; gap: 8px; margin-top: 8px; }

.admin { max-width: 900px; }
.table-scroll { overflow-x: auto; }
table.list { border-collapse: collapse; width: 100%; }
table.list th, table.list td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list tr.inactive { color: var(--muted); }
table.list td.center { text-align: center; }
button.lang { border: 1px solid transparent; background: none; padding: 3px 4px; line-height: 0; border-radius: 4px; }
button.lang:hover { border-color: #999; }
button.lang svg { display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title h1 { margin: 0; }
.people-list { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 6px; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu .menu-item { display: block; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text); text-decoration: none; font-size: 15px; cursor: pointer; }
.menu .menu-item:hover { background: #f1f1ec; border-color: #999; }
.menu .menu-note { padding: 6px 12px; color: var(--muted); font-size: 13px; }
.chip .edited-mark { opacity: .7; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 12px; font-size: 13px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
textarea { font: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; resize: vertical; width: 100%; }
.file-list { list-style: none; margin: 0 0 6px; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.file-list .danger { color: var(--short); text-decoration: none; }

/* ---------- Kalenteri (month view) – looks like the old printed calendar ---------- */
.calendar { max-width: 1400px; margin: 0 auto; }
.cal-sheet { background: #fff; color: #111; padding: 10px 12px 12px; border: 1px solid var(--line); }
.cal-header { display: grid; grid-template-columns: minmax(110px, 170px) 1fr minmax(110px, 170px); align-items: center;
  gap: 12px; margin-bottom: 8px; }
.cal-month-title { text-align: center; margin: 0; font: 800 clamp(24px, 3.6vw, 46px)/1.05 "Century Gothic", "Poppins", "Segoe UI",
  Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #000; }
.mini { font-size: clamp(8px, .8vw, 10px); line-height: 1.25; cursor: pointer; }
.mini-title { text-align: center; font-weight: 700; text-transform: uppercase; font-size: clamp(9px, .85vw, 11px); margin-bottom: 1px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: right; }
.mini-grid .hd { font-weight: 700; text-align: right; }
.mini:hover .mini-title { text-decoration: underline; }

.cal-grid { border: 1px solid #333; border-right: 0; border-bottom: 0; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head .cal-dayname { background: #3d3d3d; color: #fff; text-align: center; font-weight: 700; font-size: clamp(9px, 1vw, 13px);
  text-transform: uppercase; padding: 10px 2px; border-right: 1px solid #333; border-bottom: 1px solid #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Weekend headers as in the old calendar: Saturday burgundy, Sunday a redder burgundy */
.cal-head .cal-dayname.sat { background: #6e1a2a; }
.cal-head .cal-dayname.sun { background: #9e1b2f; }
/* Day boxes: at least 4:3 like the printed calendar (--cal-row-h is set from the column width in calendar.js),
   taller when a day has more content. Boxes in the same week share the same height. */
.cal-cell { min-height: var(--cal-row-h, 110px); border-right: 1px solid #333; border-bottom: 1px solid #333; padding: 3px 4px 3px;
  cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.cal-cell:hover { background: #fafaf4; }
/* Weekend boxes: Sundays cream white, Saturdays a much fainter cream */
.cal-cell.sun { background: #fbf1d9; }
.cal-cell.sat { background: #fdf9ef; }
.cal-cell.sun:hover { background: #f7ead0; }
.cal-cell.sat:hover { background: #faf4e6; }
.cal-cell.other, .cal-cell.other:hover { background: #d9d9d9; color: #666; }
.cal-top { display: flex; align-items: center; gap: 4px; min-height: 18px; flex: none; }
.cal-wk { font-weight: 700; font-size: clamp(10px, 1vw, 13px); }
.cal-top .spacer { flex: 1; }
.cal-date { display: flex; align-items: center; gap: 3px; font-size: clamp(10px, 1vw, 13px); flex: none; }
.cal-cell.today .num { border: 2px solid #d4a017; border-radius: 50%; width: 24px; height: 24px; display: inline-flex;
  align-items: center; justify-content: center; }
.cal-holiday { font-size: clamp(8px, .75vw, 9.5px); color: #8a2b2b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; }
/* Pills start at the same height in every box, whatever their size; a day with only a comment centres it */
.cal-body { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding-top: 2px; }
.cal-body:not(:has(.cal-event)) { justify-content: center; padding-top: 0; }
.cal-bottom { flex: none; text-align: left; }
/* Sold-out icon (replaces "Loppuunmyyty! / Sold out!" in titles): ticket with a no-entry sign */
.cal-soldout { display: inline-flex; flex: none; line-height: 0; }
.cal-soldout svg { width: clamp(20px, 1.8vw, 26px); height: auto; }
.menu-item .cal-soldout { margin-left: 6px; vertical-align: middle; }
.menu-item .cal-soldout svg { width: 22px; }

/* Event: a rounded box with the title (at most 3 lines; the full title is in the popup);
   the details line sits at the bottom left of the day */
.cal-event { cursor: pointer; }
/* Every title box is exactly 3 lines tall, with the name centred both ways */
.cal-title { display: flex; align-items: center; justify-content: center; height: calc(3.6em + 8px);
  padding: 4px 6px; border-radius: 5px; text-align: center; font-style: italic; font-weight: 600;
  font-size: clamp(10px, .95vw, 13px); line-height: 1.2; overflow-wrap: anywhere; color: #fff; }
.cal-title-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 100%; }
.cal-event:hover .cal-title { filter: brightness(.94); }
.cal-event.cancelled .cal-title { text-decoration: line-through; opacity: .6; }
.cal-meta { font-style: italic; font-size: clamp(8.5px, .8vw, 10.5px); line-height: 1.25; color: #222; cursor: pointer; }
.cal-meta .off { color: #d40000; font-weight: 700; }
.cal-comment { text-align: center; font-size: clamp(9.5px, .9vw, 11.5px); overflow-wrap: anywhere; }
.cal-tech { font-size: clamp(8.5px, .8vw, 10px); color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-rider { position: absolute; right: 3px; bottom: 3px; font-size: 10px; color: #080; background: #e8f5e9; padding: 0 4px; border-radius: 2px; }
.cal-cell.other .cal-body, .cal-cell.other .cal-bottom, .cal-cell.other .cal-rider, .cal-cell.other .cal-soldout { opacity: .3; }
/* Holiday pictures (retro picture-book style): large in the bottom-right corner on a free day,
   a small icon in the top line on a day with shows or a comment. */
.cal-art { position: absolute; right: 4px; bottom: 4px; width: min(40%, 78px); aspect-ratio: 1; pointer-events: none; z-index: 0; }
.cal-art svg { display: block; width: 100%; height: 100%; }
.cal-art-icon { display: inline-flex; flex: none; line-height: 0; }
.cal-art-icon svg { width: clamp(16px, 1.5vw, 22px); height: auto; }
.cal-cell.other .cal-art-icon { opacity: .3; }
.cal-cell > .cal-top, .cal-cell > .cal-body, .cal-cell > .cal-bottom { position: relative; z-index: 1; }
.cal-cell.other .cal-art { opacity: .3; }
.cal-cell:has(.cal-art) .cal-rider { right: auto; left: 3px; bottom: auto; top: 22px; }

/* Preset colours (the old calendar's palette). Any other colour is set inline from the colour wheel. */
.cal-title.cal-c-blue { background: #8ee0f0; }
.cal-title.cal-c-cyan { background: #70d8f0; }
.cal-title.cal-c-peach { background: #ffe0cc; color: #c65d00; }
.cal-title.cal-c-salmon { background: #ffdac8; color: #cc5500; }
.cal-title.cal-c-red { background: #cc0000; font-weight: 700; }
.cal-title.cal-c-green { background: #a8d46e; }
.cal-title.cal-c-darkgreen { background: #44bb44; font-weight: 700; }
.cal-title.cal-c-yellow { background: #e8b058; }
.cal-title.cal-c-dotted { background-color: #fff; background-image: radial-gradient(circle, #888 1px, transparent 1px);
  background-size: 4px 4px; color: #555; }
.cal-title.cal-c-plain { background: transparent; color: #bbb; font-weight: 400; }
.cal-title.cal-c-beige { background: #f5f0e8; color: #cc5555; font-weight: 700; }
.cal-title.cal-c-grayblue { background: #eef4f8; color: #446688; }
.cal-title.cal-c-purple { background: #c8a8e8; }
.cal-title.cal-c-pink { background: #f0a8d0; }
.cal-title.cal-c-teal { background: #40c0b0; }
.cal-title.cal-c-orange { background: #f08020; }
.cal-title.cal-c-navy { background: #304860; }
.cal-title.cal-c-lime { background: #c8e850; color: #445500; }
.cal-title.cal-c-rose { background: #e86080; }
.cal-title.cal-c-olive { background: #a0a040; }
.cal-title.cal-c-gray { background: #c0c0c0; color: #444; }
.cal-title.cal-c-mint { background: #a8f0c8; color: #226644; }
.cal-title.cal-c-black { background: #000; font-weight: 700; }
.cal-title.cal-c-lavender { background: #dcd6ee; color: #5560c0; }
.cal-title.cal-c-umo { background: #24195d; color: #fff; }
.cal-title.cal-c-cornflower { background: #8eb4e3; color: #ffff66; }

/* Colour swatches (day dialog list and colour picker) */
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px;
  border: 1px solid rgba(0,0,0,.15); }
.color-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.color-picker .sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.color-picker .sw.sel { border-color: #111; }
.color-picker .auto { border-radius: 12px; padding: 2px 10px; font-size: 12px; height: 24px; }
.color-picker .auto.sel { border-color: #111; background: #eee; }
.color-picker label.wheel { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
.color-picker input[type=color] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px;
  background: none; cursor: pointer; }
.color-preview { margin-top: 6px; max-width: 220px; }

@media (max-width: 760px) {
  .cal-header { grid-template-columns: 1fr; }
  .cal-header .mini { display: none; }
  .cal-month-title { font-size: 28px; }
  .cal-head .cal-dayname { font-size: 9px; overflow: hidden; }
  .cal-cell { min-height: 72px; padding: 2px; }
  .cal-title { font-size: 10px; padding: 2px 4px; }
  .cal-meta, .cal-tech, .cal-holiday { display: none; }
}

/* Printing the month: one A4 landscape page like the old printout, no menus. */
@media print {
  @page { size: A4 landscape; margin: 7mm; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .no-print, .toast, dialog { display: none !important; }
  main { padding: 0; }
  .cal-sheet { border: 0; padding: 0; }
  .cal-header { height: 28mm; margin-bottom: 2mm; grid-template-columns: 42mm 1fr 42mm; }
  .cal-month-title { font-size: 34pt; }
  .mini { font-size: 7.5pt; }
  .mini-title { font-size: 8pt; }
  .cal-head .cal-dayname { font-size: 9.5pt; padding: 2.2mm 0; white-space: nowrap; }
  /* 196 mm printable height − header − weekday row, shared by 5 or 6 week rows */
  .cal-cell { min-height: 0; height: 30.5mm; cursor: default; padding: 1mm 1.2mm; gap: .6mm; }
  .cal-body { flex: 1 1 0; min-height: 0; overflow: hidden; justify-content: flex-start; gap: .6mm; padding-top: .3mm; }
  /* Two different shows on one day: 2-line title boxes so both fit on paper */
  .cal-title { height: calc(3.6em + 1.2mm); }
  .cal-body:has(.cal-event + .cal-event) .cal-title { height: calc(2.4em + 1.2mm); }
  .cal-body:has(.cal-event + .cal-event) .cal-title-text { -webkit-line-clamp: 2; }
  .cal-title-text { -webkit-line-clamp: 2; }
  .cal-soldout svg { width: 6mm; }
  .cal-art { width: 15mm; right: 1mm; bottom: 1mm; }
  .cal-art-icon svg { width: 5mm; }
  .cal-cell.other .cal-art-icon { display: none; }
  .cal-cell.other .cal-art { display: none; }
  .cal-grid.six .cal-cell { height: 25.5mm; }
  .cal-row { break-inside: avoid; }
  .cal-wk, .cal-date { font-size: 9.5pt; }
  .cal-holiday { font-size: 6.5pt; }
  .cal-title { font-size: 8pt; padding: .6mm 1.5mm; }
  .cal-meta { font-size: 7pt; }
  .cal-comment { font-size: 8pt; }
  .cal-tech { font-size: 6.5pt; white-space: normal; }
  .cal-cell.today .num { border: 0; width: auto; height: auto; }
  .cal-cell:hover { background: #fff; } .cal-cell.other:hover { background: #d9d9d9; } .cal-event:hover .cal-title { filter: none; }
  .cal-cell.other .cal-soldout, .cal-cell.other .cal-body, .cal-cell.other .cal-bottom, .cal-cell.other .cal-comment, .cal-cell.other .cal-tech, .cal-cell.other .cal-rider { display: none; }
}
.join-link { display: flex; gap: 8px; margin-bottom: 10px; }
.join-link input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #333; color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; max-width: calc(100vw - 32px); }
.toast.error { background: var(--short); }

@media (max-width: 640px) {
  main { padding: 8px 8px 24px; }
  .topbar { padding: 8px; gap: 6px; }
  .topbar #whoami { display: none; }
  .grid th, .grid td { min-width: 140px; }
  .grid .datecol { min-width: 52px; width: 52px; }
  .toolbar h1 { width: 100%; order: -1; margin: 0 0 4px; }
  .grid-wrap { max-height: calc(100vh - 190px); }
  .chip { white-space: normal; }
}

/* ---------- Savoy tools portal: Windows 2000 desktop, laid out at 800×600 and scaled up ---------- */
body[data-view="portal"] { background: #0b2461; overflow: hidden; }
body[data-view="portal"] main { padding: 0; }
.w2k-viewport { position: fixed; inset: 0; background: #0b2461; overflow: hidden; }
.w2k-screen { position: absolute; left: 0; top: 0; width: 800px; height: 600px; transform-origin: 0 0;
  background: #3a6ea5; color: #000; font: 11px Tahoma, "MS Sans Serif", Verdana, sans-serif;
  user-select: none; overflow: hidden; }
.w2k-viewport.fluid .w2k-screen { width: 100vw; height: 100vh; }
.w2k-icon { display: inline-flex; line-height: 0; flex: none; }
.w2k-icon svg { overflow: visible; }

/* classic 3D bevels */
.w2k-btn, .w2k-window, .w2k-start-menu { background: #d4d0c8;
  box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #d4d0c8; }
.w2k-btn { border: 0; font: inherit; color: #000; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; height: 22px; border-radius: 0; }
.w2k-btn.down { box-shadow: inset 1px 1px #404040, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #d4d0c8;
  background: repeating-conic-gradient(#d4d0c8 0 25%, #fff 0 50%) 0 0 / 2px 2px; }

/* wallpaper fills the desktop behind everything (the taskbar sits on top) */
.w2k-wallpaper { position: absolute; inset: 0 0 28px 0; }
.w2k-wallpaper svg { display: block; width: 100%; height: 100%; }
.w2k-icons, .w2k-window { z-index: 1; }
.w2k-taskbar { z-index: 2; }

/* desktop icons */
.w2k-icons { position: absolute; left: 8px; top: 10px; display: flex; flex-direction: column; gap: 18px; }
.w2k-desk-icon { width: 86px; background: none; border: 0; padding: 2px; color: #fff; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.w2k-desk-icon span:last-child { padding: 0 2px; text-shadow: 1px 1px 1px #000; }
.w2k-desk-icon:focus { outline: none; }
.w2k-desk-icon:focus span:last-child { background: #0a246a; outline: 1px dotted #fff; }
.w2k-desk-icon:focus .w2k-icon { filter: sepia(.6) hue-rotate(185deg) saturate(3) brightness(.8); }

/* launcher window */
.w2k-window { position: absolute; left: 120px; top: 60px; width: 480px; padding: 3px; display: flex; flex-direction: column; }
.w2k-title { height: 20px; display: flex; align-items: center; gap: 4px; padding: 0 2px 0 3px; color: #fff; font-weight: 700;
  background: linear-gradient(90deg, #0a246a, #a6caf0); }
.w2k-title span:nth-child(2) { flex: 1; }
.w2k-title-btns { display: flex; gap: 2px; }
.w2k-title-btns i { width: 16px; height: 14px; display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font: 700 10px/1 Tahoma, sans-serif; color: #000; background: #d4d0c8;
  box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080; }
.w2k-title-btns i:last-child { margin-left: 2px; }
.w2k-body { margin: 6px 4px 4px; }
.w2k-hello { margin: 2px 2px 8px; }
.w2k-list { background: #fff; padding: 4px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #404040, inset -2px -2px #d4d0c8; }
.w2k-tool { display: flex; align-items: center; gap: 12px; padding: 7px 8px; background: none; border: 1px dotted transparent;
  font: inherit; color: #000; text-align: left; cursor: pointer; }
.w2k-tool:hover, .w2k-tool:focus { background: #0a246a; color: #fff; outline: none; border-color: #fff; }
.w2k-tool-text { display: flex; flex-direction: column; gap: 2px; }
.w2k-tool-text b { font-size: 12px; }
.w2k-statusbar { display: flex; gap: 2px; margin-top: 2px; }
.w2k-statusbar span { flex: 1; padding: 2px 4px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }

/* taskbar and start menu */
.w2k-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: #d4d0c8; border-top: 1px solid #fff;
  box-shadow: 0 -1px #d4d0c8; display: flex; align-items: center; gap: 3px; padding: 0 2px; }
.w2k-start { height: 22px; padding: 0 5px; }
.w2k-sep { width: 2px; height: 20px; box-shadow: inset 1px 0 #808080, inset -1px 0 #fff; }
.w2k-task { width: 160px; justify-content: flex-start; font-weight: 700; }
.w2k-taskbar .spacer { flex: 1; }
.w2k-tray { height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 8px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.w2k-tray button.lang { padding: 0; }
.w2k-tray button.lang svg { width: 18px; height: 12px; }
.w2k-start-menu { position: absolute; left: 2px; bottom: 28px; width: 250px; padding: 3px; display: flex; z-index: 5; }
.w2k-start-menu[hidden] { display: none; }
.w2k-start-band { width: 22px; background: linear-gradient(0deg, #0a246a, #a6caf0); color: #fff; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 6px; }
.w2k-start-band span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; letter-spacing: .5px; }
.w2k-start-items { flex: 1; display: flex; flex-direction: column; }
.w2k-start-items hr { border: 0; height: 2px; margin: 3px 2px; box-shadow: inset 0 1px #808080, inset 0 -1px #fff; }
.w2k-start-item { display: flex; align-items: center; gap: 10px; padding: 5px 8px; background: none; border: 0; font: inherit; color: #000;
  cursor: pointer; text-align: left; }
.w2k-start-item:hover, .w2k-start-item:focus { background: #0a246a; color: #fff; outline: none; }

/* phones: no scaling, the window fills the width */
.w2k-viewport.fluid .w2k-window { left: 8px; right: 8px; top: 100px; width: auto; }
.w2k-viewport.fluid .w2k-icons { flex-direction: row; }

/* sign-up link on the login page, and the waiting-for-approval list in Ylläpito */
.signup-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.pending-card { border-color: #e3b341; background: #fffbea; }
table.list td.actions { display: flex; gap: 6px; }

/* daily schedule (Päivän aikataulu) and the Teams import preview */
.small { font-size: 12px; }
.schedule-edit { width: 100%; font: 14px/1.5 ui-monospace, Consolas, monospace; }
.today { max-width: 760px; margin: 0 auto; }
.today-date { font-size: 20px; margin: 0; flex: 1; text-align: center; text-transform: capitalize; }
.today-event h2 { margin: 0; font-size: 17px; }
.today-event .day-schedule { margin-top: 10px; }
.day-schedule { list-style: none; margin: 4px 0 10px; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.day-schedule li { display: flex; gap: 12px; padding: 5px 10px; border-bottom: 1px solid var(--line); }
.day-schedule li:last-child { border-bottom: 0; }
.day-schedule li .when { flex: none; min-width: 92px; font-variant-numeric: tabular-nums; font-weight: 600; }
.day-schedule li.heading { background: #f2f1ec; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.paste-box { margin-top: 8px; }
.paste-box summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
.paste-box textarea { margin-bottom: 6px; }
.import-table { border-collapse: collapse; width: 100%; margin-bottom: 4px; }
.import-table td, .import-table th { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); font-weight: normal; }
.import-table th { color: var(--muted); }
.import-table tr.same { opacity: .55; }
dialog h3 { font-size: 14px; margin: 12px 0 6px; }
.bookmarklet { display: inline-block; padding: 8px 14px; border-radius: 8px; background: #4b53bc; color: #fff; text-decoration: none; font-weight: 600; cursor: grab; }
