:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --text: #1c2430;
  --muted: #6a7586;
  --border: #dde3eb;
  --accent: #2f6fde;
  --accent-text: #ffffff;
  --ok: #1f9d55;
  --warn: #b7791f;
  --bad: #d64545;
  --bad-bg: #fde8e8;
  --warn-bg: #fff4dc;
  --ok-bg: #e5f6ec;
  --info-bg: #e8f0fd;
  --we: rgba(120, 140, 170, .13);
  --hol: rgba(230, 70, 70, .2);
  --today: #e5484d;
  --t-vacation: #ffd84d;
  --t-training: #8fbfec;
  --t-internship: #aab3c8;
  --t-trip: #c3a6ec;
  --t-social: #f7b27a;
  --t-sick: #f19a9a;
  --t-childcare: #7fd0c2;
  --t-other: #cfd4dc;
  --t-guest_internship: #8fd14f;
  --t-guest_practice: #bfe39c;
  --bar-text: #1c2430;
  --shadow: 0 6px 24px rgba(20, 30, 50, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c; --surface: #1b2129; --surface-2: #232a34; --text: #e6ebf2; --muted: #95a1b3; --border: #2e3744;
    --accent: #5b8ff0; --ok: #43c47a; --warn: #e2a84b; --bad: #f06b6b; --bad-bg: #3a1f22; --warn-bg: #3a3020; --ok-bg: #1d3427; --info-bg: #1f2b40;
    --we: rgba(150, 170, 200, .08); --hol: rgba(240, 90, 90, .22);
    --t-vacation: #e9c33b; --t-training: #6fa3d6; --t-internship: #8d97ad; --t-trip: #a58bd0; --t-social: #dc965f;
    --t-sick: #d97f7f; --t-childcare: #5fb5a7; --t-other: #a5adb9; --t-guest_internship: #75b83a; --t-guest_practice: #a2c97f;
    --shadow: 0 6px 24px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: transform 0.08s ease, background .15s, border-color .15s; }
button:active { transform: scale(0.95); }
button:disabled { opacity: .5; cursor: default; transform: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.pos { color: var(--ok); }
.spacer { flex: 1; }
.note { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.lead { margin: 4px 0 14px; color: var(--muted); }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 14px 0 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); text-decoration: none; white-space: nowrap; min-height: 38px;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-danger { color: var(--bad); border-color: transparent; background: transparent; }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad-bg); }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.icon-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; font-size: 18px; line-height: 1; }
.icon-btn:hover { background: var(--surface-2); }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; width: 22px; height: 22px; padding: 0; line-height: 1; margin-left: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand h1 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.year-switch { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 16px; }
.year-switch span { min-width: 76px; text-align: center; }
.top-right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; }
.role-badge { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.role-badge.admin { color: var(--accent); border-color: var(--accent); }

.tabs {
  display: flex; gap: 4px; padding: 6px 16px 0; background: var(--surface); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: transparent; padding: 9px 12px; border-bottom: 3px solid transparent; white-space: nowrap; color: var(--muted); font-weight: 600;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; color: #fff; }
.badge:empty { display: none; }
.badge.bad { background: var(--bad); }
.badge.warn { background: var(--warn); }

main { padding: 14px 16px 90px; max-width: 1700px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; }

/* Overview */
.overview { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; font-size: 14px; }
.ov-item { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ov-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.ov-bad .link { color: var(--bad); }

/* Calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 13px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: var(--accent); color: var(--accent-text); }
.seg-wrap { flex-wrap: wrap; margin-bottom: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--c, #ccc); flex: none; }
.sw-plan { background: repeating-linear-gradient(135deg, var(--t-vacation) 0 3px, transparent 3px 6px); border: 1px dashed var(--warn); }
.sw-hol { background: var(--hol); }
.sw.striped { background: repeating-linear-gradient(135deg, var(--c) 0 4px, transparent 4px 7px); border: 1px dashed var(--c); }
.t-vacation { --c: var(--t-vacation); } .t-training { --c: var(--t-training); } .t-internship { --c: var(--t-internship); }
.t-trip { --c: var(--t-trip); } .t-social { --c: var(--t-social); } .t-sick { --c: var(--t-sick); } .t-childcare { --c: var(--t-childcare); }
.t-other { --c: var(--t-other); } .t-guest_internship { --c: var(--t-guest_internship); } .t-guest_practice { --c: var(--t-guest_practice); }

.cal-scroll {
  overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  max-height: calc(100vh - 250px); min-height: 260px; position: relative; overscroll-behavior-x: contain;
}
.cal-inner { position: relative; }
.cal-bg { position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 0; }
.bgc { position: absolute; top: 0; bottom: 0; }
.bgc.we { background: var(--we); }
.bgc.hol { background: var(--hol); }
.bgm { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.bgt { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--today); opacity: .8; }
.cal-head { position: sticky; top: 0; z-index: 6; display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.cell-name {
  position: sticky; left: 0; z-index: 4; width: var(--nw); flex: none; background: var(--surface);
  border-right: 1px solid var(--border); padding: 4px 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.cell-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cell-name small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corner { z-index: 7; }
.head-track { position: relative; height: 44px; }
.hm { position: absolute; top: 0; height: 20px; font-size: 12px; font-weight: 700; padding-left: 4px; border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.hd { position: absolute; top: 20px; height: 24px; font-size: 10px; text-align: center; color: var(--muted); line-height: 12px; padding-top: 2px; overflow: hidden; }
.hd small { display: block; font-size: 9px; }
.hd.narrow { overflow: visible; font-size: 9px; }
.hd.we { color: var(--text); }
.hd.hol { color: var(--bad); font-weight: 700; }
.hd.today { background: var(--today); color: #fff; border-radius: 4px; }
.row { display: flex; position: relative; border-bottom: 1px solid var(--border); }
.track { position: relative; height: 36px; z-index: 1; }
.person-row .track { cursor: cell; }
.person-row .cell-name { cursor: pointer; }
.person-row .cell-name:hover b { color: var(--accent); }
.person-row.me .cell-name { box-shadow: inset 3px 0 0 var(--accent); }
.me-dot { font-size: 10px; background: var(--accent); color: #fff; border-radius: 5px; padding: 0 4px; vertical-align: 1px; }
.group-row .cell-name { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; flex-direction: row; align-items: center; }
.group-row .track, .empty-row .track { height: 26px; }
.load-row .track { height: 30px; }
.load { position: absolute; top: 6px; height: 18px; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; overflow: hidden; }
.load.ok { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.load.bad { background: var(--bad); color: #fff; }
.load.guest { background: color-mix(in srgb, var(--t-guest_internship) 45%, transparent); color: var(--text); top: 4px; }
.bar {
  position: absolute; top: 6px; height: 24px; border-radius: 6px; background: var(--c); color: var(--bar-text);
  font-size: 11px; font-weight: 600; line-height: 24px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: clip;
  cursor: pointer; border: 1px solid color-mix(in srgb, var(--c) 70%, #000 30%); box-sizing: border-box; z-index: 2;
}
.bar.plan { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 45%, var(--surface)) 6px 10px); border-style: dashed; }
.bar.conflict { outline: 2px solid var(--bad); outline-offset: 1px; }
.bar:hover { filter: brightness(1.05); z-index: 3; box-shadow: var(--shadow); }
.bday { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; z-index: 3; pointer-events: auto; line-height: 1; }
.ghost { position: absolute; top: 5px; height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 30%, transparent); border: 1px dashed var(--accent); z-index: 4; font-size: 11px; text-align: center; line-height: 26px; color: var(--accent); font-weight: 700; pointer-events: none; }
.hint { font-size: 12px; color: var(--muted); }

/* List */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
select, input[type=text], input[type=date], input[type=number], input:not([type]), textarea {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 8px 10px; min-height: 38px; max-width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 0; border-color: var(--accent); }
.month-h { font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; margin: 16px 0 6px; }
.li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer; }
.li:hover { border-color: var(--accent); }
.li .sw { width: 10px; height: 34px; border-radius: 4px; }
.li-main { flex: 1; min-width: 0; }
.li-sub { font-size: 13px; color: var(--muted); }
.st { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.st.approved { background: var(--ok-bg); color: var(--ok); }
.st.plan { background: var(--warn-bg); color: var(--warn); }
.list-actions { margin-bottom: 6px; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.empty .btn { margin-top: 12px; }
.empty.ok { color: var(--ok); border-style: solid; }

/* Balance */
.bal-table { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bal-head, .bal-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) 1.5fr .6fr .8fr .8fr .8fr 1.2fr .9fr auto; gap: 8px; align-items: center; padding: 9px 14px; }
.bal-head { font-size: 12px; color: var(--muted); background: var(--surface-2); font-weight: 600; }
.bal-row { border-top: 1px solid var(--border); cursor: pointer; }
.bal-row:hover { background: var(--surface-2); }
.bal-row.open { background: var(--surface-2); }
.bn { display: flex; flex-direction: column; min-width: 0; }
.bn small { color: var(--muted); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.num.big { font-size: 17px; }
.span-all { grid-column: 2 / 8; }
.bal-detail { padding: 6px 14px 14px; background: var(--surface-2); border-top: 1px dashed var(--border); }
.pool { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pool-h { font-weight: 600; }
.pool-n { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.parts { display: flex; flex-wrap: wrap; gap: 6px; }
.part { border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 3px 9px; font-size: 13px; }
.part.approved { border-color: var(--ok); }
.part.plan { border-style: dashed; border-color: var(--warn); }

/* Checks */
.issue { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; flex-wrap: wrap; }
.issue.error { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-bg) 60%, var(--surface)); }
.issue.warn { border-left-color: var(--warn); }
.issue.info { border-left-color: var(--accent); }
.issue .it { flex: 1; min-width: 200px; }

/* People */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.sec-h h2 { margin: 0; }
.sec-h + .cards + .note { margin-top: -4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 22px; }
.pcard { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.pcard.me { border-color: var(--accent); }
.pcard.archived { opacity: .55; }
.pc-main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.pc-main small { color: var(--muted); }
.pc-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pc-act { display: flex; gap: 2px; }

/* More */
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.panel.wide { grid-column: 1 / -1; }
.panel hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.panel .btn { margin: 4px 6px 4px 0; }
.settings .field { margin-bottom: 10px; }
.hol-list { padding-left: 18px; margin: 0; columns: 2; font-size: 14px; }
.law ul { padding-left: 18px; margin: 0; }
.law li { margin-bottom: 7px; }
.xh { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; }
.xh-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.log { list-style: none; padding: 0; margin: 0; font-size: 13px; max-height: 460px; overflow: auto; }
.log li { padding: 5px 0; border-bottom: 1px solid var(--border); }

/* Dialogs */
dialog.sheet {
  border: 0; padding: 0; border-radius: 16px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog.sheet::backdrop { background: rgba(10, 15, 25, .45); }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 40px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-body { padding: 12px 16px; overflow: auto; flex: 1; }
.sheet-foot { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.field > input, .field > select, .field > textarea { color: var(--text); font-size: 15px; width: 100%; }
.dates { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; color: var(--text); }
.tchip.active { border-color: var(--accent); background: var(--info-bg); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.quick-days { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.quick-days:empty { display: none; }
.mini-chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 7px; padding: 3px 10px; font-size: 13px; }
.info-box { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.info-box p { margin: 4px 0; }
.info-box .bad { color: var(--bad); font-weight: 600; }
#eventForm.locked .tchip { opacity: .7; }
.me-list { display: flex; flex-direction: column; gap: 6px; }
.me-item { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 12px; text-align: left; }
.me-item small { color: var(--muted); }
.me-item.active { border-color: var(--accent); background: var(--info-bg); }

/* FAB */
.fab { display: none; position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 30px; box-shadow: var(--shadow); z-index: 40; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #2b3340; color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 1000;
  max-width: min(520px, calc(100vw - 32px)); transition: opacity .2s, transform .2s; font-size: 14px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--bad); }
.toast-success { background: var(--ok); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.login-card h1 { font-size: 20px; margin: 10px 0 4px; }
.login-card .btn { width: 100%; margin-top: 4px; }
.login-error { color: var(--bad); min-height: 1.2em; margin: 0 0 6px; font-size: 14px; }

/* Mobile */
@media (max-width: 900px) {
  .bal-head { display: none; }
  .bal-row { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .bal-row .bn { grid-column: 1 / -1; }
  .bal-row [data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 400; font-size: 12px; }
  .bal-row .actions { grid-column: 1 / -1; }
  .span-all { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 6px; padding: 6px 12px; }
  .brand { flex-basis: 100%; }
  .brand h1 { font-size: 15px; }
  .top-right { flex: 1; }
  .tabs { padding: 4px 8px 0; }
  main { padding: 10px 12px 96px; }
  .fab { display: block; }
  #addBtnCal, #addBtnList { display: none; }
  .cal-scroll { max-height: calc(100vh - 210px); }
  .dates { grid-template-columns: 1fr 1fr; }
  .days-field { grid-column: 1 / -1; }
  .row2 { grid-template-columns: 1fr; }
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92vh; }
  dialog.sheet form { max-height: 92vh; }
  .hol-list { columns: 1; }
  .cards { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .overview { gap: 6px; font-size: 13px; padding: 8px 10px; }
  .legend { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .me-chip { max-width: 130px; }
}

@media print {
  .topbar, .tabs, .cal-toolbar, .fab, .hint, .overview, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .cal-scroll { max-height: none; overflow: visible; border: 0; }
  body { background: #fff; }
}
