*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 24.7px; letter-spacing: .5px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, input, textarea, select { border-radius: 5px; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: 'OffBit', monospace; line-height: 1.05; letter-spacing: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; padding: 12px; background: white; transform: translateY(-150%); }.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; padding: 18px 40px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--blue); font: 700 32px/1 'OffBit', monospace; }.wordmark img { object-fit: contain; }
main { max-width: 1920px; margin: auto; padding: 22px 40px calc(var(--footer-height, 70px) + 24px); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 1.7px; margin-bottom: 10px; }
h1 { font-size: clamp(36px, 4vw, 60px); }.heading-dot { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid #c9ced8; background: #f9f9fb; font-size: 14px; line-height: 22px; white-space: nowrap; transition: background .15s; }
.button:hover:not(:disabled) { background: #e8effc; border-color: #8daee3; }.primary { background: var(--blue); border-color: var(--blue); color: white; }.primary:hover:not(:disabled) { background: #003fa9; color: white; }.small { font-size: 12px; padding: 7px 12px; min-height: 38px; }
.settings { border: 1px solid var(--line); border-radius: 6px; background: #f0f1f4; margin-bottom: 20px; font-size: 13px; }
.settings > summary { padding: 13px 18px; list-style: none; display: flex; gap: 10px; align-items: center; }.settings > summary::-webkit-details-marker { display: none; }.settings > summary::after { content: '+'; font-size: 20px; margin-left: auto; color: var(--blue); }.settings[open] > summary::after { content: '−'; }.settings-summary { color: var(--muted); font-size: 12px; margin-left: 10px; }
.settings form { padding: 4px 18px 18px; }.settings fieldset { border: 0; padding: 0; margin: 0 0 14px; }.settings legend { margin-bottom: 8px; font-weight: 600; }
.day-choices { display: flex; gap: 8px; flex-wrap: wrap; }.day-choices label { display: flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }.day-choices label:has(:checked) { background: #e8effc; border-color: #98b3df; }
input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.setting-fields { display: flex; align-items: end; gap: 15px; flex-wrap: wrap; }.setting-fields label { display: flex; flex-direction: column; gap: 6px; }.setting-fields .button { margin-left: auto; }
input, select, textarea { background: white; border: 1px solid #c8ccd4; padding: 9px 10px; min-width: 0; }select { cursor: pointer; }textarea { resize: vertical; }input[type=color] { padding: 3px; height: 39px; width: 64px; cursor: pointer; }
.calendar-sheet { background: white; border: 1px solid #c9ced8; border-radius: 8px; box-shadow: 0 3px 12px #17171703; overflow: hidden; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; }
.timetable-title { width: 100%; padding: 3px 0; border: 1px solid transparent; background: transparent; font: 700 29px/1.2 'OffBit', monospace; border-radius: 2px; color: var(--calendar-text, var(--ink)); }.timetable-title:hover { border-bottom-color: var(--line); }.week-label { color: var(--muted); font-size: 10px; letter-spacing: 1.3px; white-space: nowrap; }
.calendar-scroll { overflow-x: auto; padding: 0 24px 17px 14px; }
.week-grid { --hour-height: 88px; --day-count: 7; display: grid; grid-template-columns: 62px repeat(var(--day-count), minmax(0, 1fr)); min-width: 860px; padding-bottom: 5px; }
.time-corner { background: white; }.day-header { background: var(--header-color, #e8effc); color: var(--calendar-text, #171717); border: 1px solid #c3cbda; border-right: 0; padding: 13px 5px; font-weight: 600; font-size: 13px; text-align: center; }.day-header:last-of-type { border-right: 1px solid #c3cbda; }
.time-axis, .day-column { position: relative; height: var(--grid-height); }.time-axis { font-size: 10px; color: #636b79; }.time-label { position: absolute; right: 10px; transform: translateY(-50%); line-height: 1; }.time-label:first-child { transform: translateY(2px); }.time-label:last-child { transform: translateY(-100%); }
.day-column { border-left: 1px solid #ccd2dc; border-bottom: 1px solid #ccd2dc; background: #fff; }.day-column:last-child { border-right: 1px solid #ccd2dc; }
.time-slot { position: absolute; width: 100%; left: 0; background: transparent; border: 0; border-radius: 0; padding: 0; text-align: center; }.time-slot.hour-line { border-top: 1px solid #e1e5eb; }.time-slot.half-line { border-top: 1px dashed #edf0f4; }.time-slot::after { content: '+'; opacity: 0; color: var(--blue); font-size: 18px; line-height: 1; }.time-slot:hover, .time-slot:focus-visible { background: #edf3ff; z-index: 2; outline-offset: -3px; }.time-slot:hover::after, .time-slot:focus-visible::after { opacity: 1; }
.empty-hint { position: absolute; top: 70px; left: 12px; right: 12px; text-align: center; font-size: 11px; line-height: 1.5; color: #9098a6; pointer-events: none; }.empty-hint span { display: block; font-size: 20px; margin-bottom: 5px; color: #b2c2df; }
.course { position: absolute; z-index: 3; left: 3px; right: 3px; display: flex; padding: 0; border: 1px solid #17171720; border-radius: 5px; overflow: hidden; background: var(--course-color); color: var(--calendar-text); text-align: left; box-shadow: 0 1px 2px #1717170a; letter-spacing: 0; }.course:hover { box-shadow: 0 0 0 2px #024bc87a; z-index: 4; }.course-part { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 5px 6px; overflow: hidden; }.course-part + .course-part { border-left: 1px solid #17171726; }.course-time { font-size: 9px; opacity: .78; line-height: 12px; white-space: nowrap; }.course-subject { display: block; font-size: 12px; line-height: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.course-detail { display: block; font-size: 10px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.course.short .course-part { padding: 1px 5px; }.course.short .course-subject { font-size: 10px; line-height: 13px; }
.notes-area { margin: 0 24px 20px 76px; padding-top: 16px; border-top: 1px solid #e1e5eb; }.notes-area label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; }.notes-area textarea { width: 100%; border-color: transparent; padding: 4px 0; font-size: 13px; color: var(--calendar-text); }.notes-area textarea:hover { border-color: #c8ccd4; }.notes-area textarea::placeholder { color: #959ca8; }
.action-bar { position: fixed; inset: auto 0 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 40px; border-top: 1px solid var(--line); background-color: #fff; opacity: 1; }.edit-actions { display: flex; align-items: stretch; gap: 7px; }.edit-actions .button { min-height: 38px; padding: 7px 12px; font-size: 12px; }.edit-actions .button span { font-size: 18px; line-height: 20px; }.export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-left: auto; }.import-button { color: var(--blue); border-color: #97afd6; }.local-note { color: var(--muted); font-size: 11px; margin: 4px 0; }
.print-title, .print-notes { display: none; }
dialog { width: min(840px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 28px; border: 1px solid white; border-radius: 12px; background: #f9f9fb; color: var(--ink); box-shadow: 0 20px 90px #101d3b30; overflow-y: auto; }dialog::backdrop { background: #101d3b66; backdrop-filter: blur(4px); }body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 24px; }.dialog-heading h2 { font-size: 34px; }.dialog-heading .eyebrow { font-size: 10px; margin-bottom: 8px; }.close-button { flex: none; font-size: 27px; line-height: 28px; width: 36px; height: 36px; border: 1px solid #d5d9e1; background: transparent; }.close-button:hover { background: #e4e5e8; }
.time-fields { display: flex; align-items: end; gap: 12px; padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid #dddfe5; }.time-fields label { flex: 1; }.time-fields label:first-child { flex: 1.5; }.time-arrow { margin-bottom: 10px; color: var(--muted); }.duration { margin-bottom: 10px; color: var(--blue); font-size: 12px; white-space: nowrap; }
dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }dialog label input, dialog label select { width: 100%; font-size: 14px; }.subject-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }.subject-fields fieldset { min-width: 0; border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }.subject-fields fieldset + fieldset { padding-left: 28px; border-left: 1px solid #dddfe5; }.subject-fields legend { font-size: 14px; font-weight: 700; margin-bottom: 16px; }.subject-number { color: var(--blue); font: 20px 'OffBit', monospace; margin-right: 6px; }.optional { color: #737b88; font-size: 10px; font-weight: 400; }.subject-fields label .optional { display: inline; }.subject-fields label:has(.optional) { position: relative; }.subject-fields label .optional { position: absolute; right: 0; top: 2px; }
.second-hint { font-size: 12px; line-height: 1.6; color: var(--muted); min-height: 64px; padding-top: 3px; }.palette-field { font-size: 12px; margin-top: 2px; }.palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }.swatch { width: 23px; height: 23px; padding: 0; border: 1px solid #17171725; border-radius: 4px; }.swatch[aria-pressed=true] { outline: 2px solid var(--blue); outline-offset: 2px; }.swatch:hover { transform: scale(1.1); }.custom-color { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); }.custom-color input[type=color] { height: 27px; width: 40px; }
.display-rules { margin-top: 22px; font-size: 11px; color: var(--muted); }.display-rules p { margin-top: 7px; }.repeat-choice { display: flex; flex-direction: row; align-items: center; margin-top: 19px; font-size: 13px; }.repeat-choice input { width: 17px; height: 17px; }.form-error { padding: 10px 12px; margin: 12px 0 0; border: 1px solid #f1c8c2; background: #fff0ed; border-radius: 4px; font-size: 13px; color: #a12920; }.dialog-actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #dddfe5; margin-top: 24px; padding-top: 20px; }.dialog-actions > div { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; }.danger { color: #b13930; background: transparent; border-color: transparent; }.danger:hover:not(:disabled) { color: #b13930; background: #ffe4df; }
.import-dialog { width: min(580px, calc(100% - 32px)); }.import-dialog > p { font-size: 14px; }.file-zone { margin: 24px 0 15px; padding: 22px; border: 1px dashed #8da5ce; border-radius: 5px; color: var(--blue); background: #eff3fc; gap: 14px; }.file-zone input { font-size: 12px; background: white; }.paste-import { margin: 15px 0; font-size: 12px; }.paste-import textarea { margin: 12px 0; width: 100%; }.import-preview { border: 1px solid #c4d8c7; background: #edf5ee; padding: 16px; margin-top: 20px; border-radius: 5px; font-size: 13px; }.import-preview h3 { font-size: 16px; overflow-wrap: anywhere; }.import-preview p { margin-top: 8px; }.toast { position: fixed; z-index: 20; bottom: calc(var(--footer-height, 70px) + 14px); left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); background: #17243d; color: white; padding: 13px 20px; border-radius: 6px; box-shadow: 0 5px 24px #0002; font-size: 13px; }
@media (max-width: 1000px) { main { padding: 20px 22px calc(var(--footer-height, 70px) + 24px); }.site-header { padding-inline: 22px; }.action-bar { align-items: center; padding-inline: 22px; }.export-actions { gap: 5px; }.export-actions .button { font-size: 11px; padding-inline: 9px; }.sheet-heading { padding-inline: 18px; } }
@media (max-width: 600px) { .site-header { min-height: 72px; padding: 16px; }.wordmark { font-size: 27px; }.wordmark img { width: 32px; height: 32px; }main { padding: 16px 14px calc(var(--footer-height, 166px) + 20px); }h1 { font-size: 42px; }.eyebrow { font-size: 9px; }.settings-summary { display: none; }.settings > summary { font-size: 12px; padding: 12px; }.setting-fields { gap: 12px; }.sheet-heading { padding: 18px 14px; }.timetable-title { font-size: 25px; }.week-label { display: none; }.calendar-scroll { padding-inline: 7px 14px; }.notes-area { margin-left: 20px; margin-right: 20px; }.action-bar { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); gap: 8px; }.edit-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }.edit-actions .button { padding: 7px 8px; font-size: 11px; white-space: normal; line-height: 16px; min-height: 40px; }.export-actions { width: 100%; }.export-actions .button { flex: 1; font-size: 11px; }.local-note { margin-top: 10px; }dialog { padding: 20px; }.dialog-heading h2 { font-size: 29px; }.time-fields { gap: 8px; flex-wrap: wrap; }.time-fields label:first-child { flex-basis: 100%; }.time-fields .duration { flex: none; font-size: 10px; }.subject-fields { grid-template-columns: 1fr; gap: 26px; }.subject-fields fieldset + fieldset { border-left: 0; border-top: 1px solid #dddfe5; padding: 22px 0 0; }.second-hint { min-height: 0; }.dialog-actions { flex-wrap: wrap; }.dialog-actions .button { font-size: 12px; padding-inline: 10px; }.dialog-actions > div { width: 100%; }.swatch { width: 25px; height: 25px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@page { size: A4 landscape; margin: 8mm; }
@media print {
  body { background: white; font-family: var(--body-font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .settings, .action-bar, .local-note, .storage-error, .toast, dialog, .skip-link { display: none !important; }
  main { padding: 0; max-width: none; }.calendar-sheet { border: none; border-radius: 0; box-shadow: none; overflow: visible; break-inside: avoid; }.sheet-heading { padding: 0 0 8px; }.timetable-title { display: none; }.print-title { display: block; font: 700 18px 'OffBit', monospace; color: var(--calendar-text); overflow-wrap: anywhere; }.week-label { display: none; }.calendar-scroll { padding: 0; overflow: visible; }.week-grid { min-width: 0; grid-template-columns: 44px repeat(var(--day-count), minmax(0,1fr)); --grid-height: 148mm !important; }.day-header { padding: 5px 2px; font-size: 10px; }.time-axis { font-size: 8px; }.time-label { right: 6px; }.empty-hint, .time-slot::after { display: none; }.time-slot { pointer-events: none; }.course { box-shadow: none; left: 1px; right: 1px; border-radius: 2px; }.course-part { padding: 1px 3px; }.course-time { font-size: 7px; line-height: 9px; }.course-subject { font-size: 9px; line-height: 11px; }.course-detail { font-size: 7px; line-height: 9px; }.course.short .course-subject { font-size: 7px; line-height: 8px; }.notes-area { margin: 8px 0 0 44px; padding-top: 7px; }.notes-area label { font-size: 8px; margin-bottom: 3px; }.notes-area textarea { display: none; }.print-notes { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 9px; color: var(--calendar-text); }.notes-area:has(.print-notes:empty) { display: none; }
}
@media print {
  .course-time { font-size: calc(7px * var(--print-scale, 1)); line-height: calc(9px * var(--print-scale, 1)); }
  .course-subject { font-size: calc(9px * var(--print-scale, 1)); line-height: calc(11px * var(--print-scale, 1)); }
  .course-detail { font-size: calc(7px * var(--print-scale, 1)); line-height: calc(9px * var(--print-scale, 1)); }
  .course.short .course-subject { font-size: calc(7px * var(--print-scale, 1)); line-height: calc(8px * var(--print-scale, 1)); }
}

.settings-dialog { width: min(700px, calc(100% - 32px)); }
.settings-dialog .settings-summary { display: block; margin: 10px 0 0; font-size: 12px; }
.settings-dialog fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.settings-dialog legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.settings-dialog .day-choices label { flex-direction: row; }
.settings-dialog .day-choices input { width: 16px; }
.settings-dialog .setting-fields input[type=color] { width: 64px; }

@media screen {
  body.timetable-app { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .timetable-app > main { flex: 1; min-height: 0; width: 100%; margin: 0 auto; padding: 12px 24px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
  .calendar-sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .sheet-heading { flex: none; padding: 10px 20px; gap: 14px; }
  .timetable-title { font-size: 22px; }
  .calendar-scroll { flex: 1; min-height: 0; padding: 0 20px 4px 10px; overflow-y: hidden; overscroll-behavior: contain; }
  .week-grid { height: 100%; grid-template-rows: 40px minmax(0, 1fr); padding-bottom: 4px; }
  .day-header { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px; font-size: 12px; }

  .time-axis, .day-column { height: 100%; min-height: 0; }
  .time-axis { font-size: 9px; }
  .time-label:first-child { transform: none; }
  .empty-hint { top: 15%; font-size: 10px; }
  .empty-hint span { font-size: 17px; margin-bottom: 3px; }
  .course { cursor: grab; touch-action: none; user-select: none; }
  .course-part { padding: 2px 5px; }
  .course-part > span { flex-shrink: 0; }
  .course-time { font-size: calc(9px * var(--screen-scale, 1)); line-height: calc(12px * var(--screen-scale, 1)); }
  .course-subject { font-size: calc(12px * var(--screen-scale, 1)); line-height: calc(15px * var(--screen-scale, 1)); }
  .course-detail { font-size: calc(10px * var(--screen-scale, 1)); line-height: calc(13px * var(--screen-scale, 1)); }
  .course.short .course-part { padding: 2px 5px; }
  .course.short .course-subject { font-size: calc(10px * var(--screen-scale, 1)); line-height: calc(13px * var(--screen-scale, 1)); }
  .notes-area { flex: none; margin: 4px 20px 8px 72px; padding-top: 6px; }
  .notes-area label { font-size: 10px; line-height: 15px; margin-bottom: 2px; }
  .notes-area textarea { display: block; height: 38px; min-height: 0; padding: 2px 0; resize: none; overflow-y: auto; font-size: 12px; line-height: 17px; }
  .timetable-app .action-bar { position: relative; inset: auto; flex: none; gap: 8px; padding: 10px 24px max(10px, env(safe-area-inset-bottom)); }
  .edit-actions { flex-wrap: nowrap; }
  .edit-actions .button, .export-actions .button { padding-inline: 10px; }
  .storage-error { flex: none; margin: 0; }
  @media (max-width: 1000px) {
    .timetable-app > main { padding: 10px 16px; }
    .timetable-app .action-bar { padding-inline: 16px; }
  }
  @media (max-width: 600px) {
    .timetable-app > main { padding: 8px; }
    .sheet-heading { padding: 8px 12px; }
    .timetable-title { font-size: 20px; }
    .calendar-scroll { padding-inline: 4px 12px; }
    .week-grid { grid-template-columns: 48px repeat(var(--day-count), minmax(0, 1fr)); grid-template-rows: 34px minmax(0, 1fr); }
    .day-header { font-size: 11px; }

    .notes-area { margin: 4px 12px 6px; }
    .timetable-app .action-bar { padding: 8px 8px max(8px, env(safe-area-inset-bottom)); gap: 6px; }
    .edit-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
    .edit-actions .button { padding: 5px 4px; font-size: 10px; line-height: 13px; gap: 4px; }
    .edit-actions .button span { font-size: 15px; flex: none; }
    .export-actions .button { padding: 5px 7px; min-height: 32px; font-size: 10px; }
  }
  @media (max-height: 600px) {
    .timetable-app > main { padding-block: 5px; }
    .sheet-heading { padding-block: 4px; }
    .timetable-title { font-size: 22px; }
    .week-grid { grid-template-rows: 28px minmax(0, 1fr); }

    .notes-area { padding-top: 2px; margin-block: 2px 4px; }
    .notes-area textarea { height: 24px; }
    .timetable-app .action-bar { padding-block: 5px; gap: 5px; }
    .action-bar .button { min-height: 30px; padding-block: 4px; }
  }
}

.course.is-dragging { opacity: .25; }
body.timetable-dragging, body.timetable-dragging * { cursor: grabbing !important; user-select: none !important; }
.course-drag-preview { position: fixed; z-index: 10020; margin: 0; pointer-events: none; opacity: .9; outline: 2px solid var(--blue); box-shadow: 0 8px 22px #15365e30; }
.course-drag-preview.is-invalid { outline-color: #b63830; opacity: .65; }
.course-drop-target { background: #edf3ff; }
.course-drag-hint { position: fixed; z-index: 10021; max-width: calc(100vw - 16px); padding: 6px 10px; border-radius: 5px; background: #163566; color: white; font: 12px/18px var(--body-font); pointer-events: none; box-shadow: 0 3px 12px #15244020; }
.course-drag-hint.is-invalid { background: #a62d25; }
@media print { .course-drag-preview, .course-drag-hint { display: none !important; } }

/* Reading text uses the shared Vie2profs paragraph typography. */
.import-dialog > p, .second-hint, .display-rules { font-size: var(--body-font-size); line-height: var(--body-line-height); letter-spacing: var(--body-letter-spacing); color: var(--ink); }

/* Compact controls and a white working sheet shared with the other tools. */
.timetable-app .calendar-sheet { background: #fff; border-color: #d0d5df; border-radius: 12px; }
.timetable-app .header-actions .button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.timetable-app .header-actions .button svg { width: 17px; height: 17px; flex: none; }
.share-dialog { width: min(520px, calc(100% - 32px)); }
.share-formats { display: grid; gap: 10px; margin-top: 22px; }
.share-formats .button { justify-content: flex-start; white-space: normal; text-align: left; }
@media (max-width: 600px) {
  .timetable-app .compact-header { gap: 8px; padding-inline: 10px; }
  .timetable-app .compact-header .header-actions { gap: 4px; }
  .timetable-app .header-actions .button { padding-inline: 8px; font-size: 12px; }
  .timetable-app .header-actions .button svg { display: none; }
}
@media print { .timetable-app .calendar-sheet { border: 0; border-radius: 0; } }
