:root { color-scheme: light; }
body { margin: 0; }
.app-header { min-height: 92px; padding: 18px 32px; }
.header-actions { flex-wrap: nowrap; }
.year-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .83rem; }
.year-label select { font-weight: 800; color: var(--ink); background: var(--ground); }
.planning-shell { display: grid; grid-template-columns: 225px minmax(0,1fr); max-width: 1800px; margin: auto; min-height: calc(100dvh - 92px); }
.sidebar { min-width: 0; padding: 30px 16px; background: white; border-right: 1px solid var(--line); }
#navigation { display: grid; gap: 7px; }
#navigation button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: transparent; border-color: transparent; text-align: left; font-size: .9rem; font-weight: 700; }
#navigation button[aria-current=page] { background: var(--accent-soft); color: #4537a4; }
#navigation button:hover { background: var(--ground); }
.local-note { margin: 36px 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.local-note strong { color: var(--ink); }
.local-note p { margin: 8px 0 12px; }
#save-state { display: block; color: var(--green); font-size: .78rem; }
.app-links { display: grid; gap: 14px; margin: 28px 12px; font-size: .82rem; }
main { min-width: 0; padding: 36px 38px 70px; outline: none; }
h1 { font-size: 1.8rem; line-height: 1.25; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading p { color: var(--muted); font-size: .9rem; margin-top: 9px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading h2 { font-size: 1.08rem; }
.section-heading p { color: var(--muted); font-size: .85rem; }
.section-heading button { font-size: .83rem; }
.hour-overview { background: #ebe9f6; padding: 26px; border-radius: 12px; margin-bottom: 28px; }
.hour-overview > .help { margin-top: 20px; color: #57516f; font-size: .78rem; }
.hour-overview .section-heading p { color: #57516f; }
.hour-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.hour-item h3 { font-size: .87rem; font-weight: 700; color: #57516f; margin-bottom: 14px; }
.hour-numbers { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hour-numbers strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.025em; }
.hour-numbers span { color: #57516f; font-size: .85rem; }
progress { appearance: none; width: 100%; height: 7px; margin: 14px 0 9px; border: 0; border-radius: 4px; overflow: hidden; background: #d5d0e8; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #d5d0e8; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.hour-item .remaining { font-size: .82rem; color: #57516f; }
.over { color: #8c2530; font-weight: 800; font-size: .82rem; }
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
.paper { background: white; border-radius: 12px; min-width: 0; }
.paper > .section-heading { margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.entry { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.entry:last-child { border-bottom: 0; }
.entry-body { min-width: 0; flex: 1; }
.entry-title { font-weight: 800; font-size: .98rem; text-align: left; padding: 5px 0; background: none; border: 0; min-height: 44px; line-height: 1.35; overflow-wrap: anywhere; }
.entry-title:hover { background: none; color: var(--accent); }
.entry-body p, .upcoming-row p { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.entry-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.entry-actions button { font-size: .8rem; padding: 8px; }
.date-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; flex-shrink: 0; align-self: flex-start; padding-top: 4px; font-variant-numeric: tabular-nums; }
.date-stamp strong { font-size: 1.4rem; line-height: 1.2; }
.date-stamp span { font-size: .75rem; color: var(--muted); }
.upcoming-row { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.upcoming-row:last-child { border-bottom: 0; }
.upcoming-row time { color: var(--accent); font-weight: 800; font-size: .9rem; }
.empty { padding: 40px 24px; }
.empty h2 { font-size: 1.1rem; }
.empty p { font-size: .9rem; margin-bottom: 18px; max-width: 45ch; }
.empty button { font-size: .85rem; }
.tag { white-space: normal; text-align: center; }
.tag.planned, .tag.violet { background: var(--accent-soft); color: #4537a4; }
.tag.amber { background: #fcf0d9; color: #80520b; }
.tag.green { background: var(--green-soft,#e7f3eb); color: var(--green); }
.tag.blue { background: #e9f2ff; color: #27548b; }
.filter-bar { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar label { min-width: 140px; }
.grow { flex: 1; min-width: 0; }
.result-count { margin: 0 0 12px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; text-decoration: none; font-size: .83rem; font-weight: 700; }
.button-link:hover { background: var(--ground); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.success { padding: 14px 32px; background: #e7f3eb; color: #276344; border-bottom: 1px solid #bfd9c9; font-size: .9rem; }
.error { font-size: .9rem; }
.calendar-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav h2 { font-size: 1.1rem; min-width: 170px; text-align: center; text-transform: capitalize; }
.month-nav > button:first-child,.month-nav > button:nth-of-type(2) { width: 46px; padding: 5px; font-size: 1.6rem; }
.calendar-controls label { font-size: .8rem; }
.legend { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.weekday { font-size: .8rem; text-align: center; padding: 12px 0; color: var(--muted); background: #f0eef7; }
.day { min-width: 0; border: 0; border-radius: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 9px; min-height: 112px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; font-size: .83rem; }
.day:nth-child(7n) { border-right: 0; }
.day-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-variant-numeric: tabular-nums; border-radius: 6px; }
.today .day-number { background: var(--accent); color: white; }
.day.selected { background: #eeecff; box-shadow: inset 0 0 0 2px var(--accent); }
.day:disabled { background: #f4f3f8; opacity: .55; cursor: default; }
.day-items { display: grid; gap: 3px; width: 100%; }
.calendar-item { font-size: .7rem; padding: 3px 5px; border-radius: 4px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.calendar-item.planned,.day-dots .planned { background: #ded9fa; color: #4537a4; }
.calendar-item.held,.day-dots .held { background: #d8ecdf; color: #276344; }
.calendar-item.event-amber,.day-dots .event-amber { background: #fae9c5; color: #80520b; }
.calendar-item.event-green,.day-dots .event-green { background: #d8ecdf; color: #276344; }
.calendar-item.event-blue,.day-dots .event-blue { background: #dceafd; color: #27548b; }
.calendar-item.event-violet,.day-dots .event-violet { background: #ded9fa; color: #4537a4; }
.more { font-size: .7rem; color: var(--muted); }
.day-dots { display: none; }
.day-detail,.upcoming { margin-top: 24px; }
.day-empty { color: var(--muted); padding: 22px; font-size: .9rem; }
.editor { padding: 28px; }
.editor h2 { font-size: 1.15rem; margin-bottom: 18px; }
.editor > h2:not(:first-child) { margin-top: 30px; }
.editor .section-heading h2 { margin: 0; }
.editor label { margin-top: 16px; }
.editor .form-grid label { margin-top: 0; }
.editor textarea { width: 100%; min-height: 110px; }
.editor [name=notes] { min-height: 230px; }
.editor .form-grid { margin-top: 18px; }
.editor-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.editor-section:last-of-type { margin-bottom: 0; }
.editor .section-heading { margin-bottom: 18px; align-items: flex-start; }
.editor .section-heading .help { margin-top: 8px; }
.repeat-row { display: flex; gap: 12px; align-items: flex-end; margin: 12px 0; }
.repeat-row label { margin: 0; min-width: 0; }
.repeat-row > label:not(.grow) { flex: 0 1 180px; }
.repeat-row button { padding-inline: 8px; font-size: .8rem; }
.repeat-row input { width: 100%; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.summary-grid label { margin: 0; }
.summary-grid label:first-child,.summary-grid label:nth-child(2),.summary-grid label:last-child { grid-column: 1/-1; }
.summary-preview { padding: 24px; margin-top: 24px; background: var(--ground); border-radius: 10px; }
.summary-preview h1 { font-size: 1.5rem; }
.summary-preview section { margin-top: 22px; }
.summary-preview h2 { margin: 0 0 8px; font-size: 1rem; }
.summary-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 24px; }
.editor-footer .danger { margin-right: auto; }
.editor-tools { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; margin: -12px 0 22px; background: white; border-bottom: 1px solid var(--line); }
.editor-tools nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; }
.editor-tools button { font-size: .85rem; }
.editor-section { scroll-margin-top: 90px; }
.settings-section { padding: 28px; margin-bottom: 24px; }
.settings-section h2 { margin-bottom: 16px; }
.settings-section h3 { margin: 28px 0 10px; }
.settings-section p { margin: 14px 0; color: var(--muted); font-size: .9rem; }
.settings-section .actions { margin: 22px 0; }
.settings-section .form-grid { margin-top: 18px; }
.narrow { max-width: 650px; }
.narrow > .help { margin-top: 18px; }
.dropzone { border: 1px dashed #aaa3ca; border-radius: 12px; padding: 24px; margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: #eeecf8; }
.dropzone strong { font-size: .95rem; }
.dropzone span { color: #57516f; font-size: .8rem; flex: 1; }
.dropzone.dragging { background: #ded9fa; outline: 2px solid var(--accent); }
.file-mark { width: 48px; height: 52px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.document-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: start; gap: 24px; }
.document-layout .form-grid { grid-template-columns: minmax(0,1fr); }
.document-layout label { min-width: 0; }
.document-layout input,.document-layout select,.document-layout textarea { width: 100%; min-width: 0; }
.document-preview { padding: 24px; }
.document-preview h2 { margin-bottom: 18px; }
.document-preview .actions { margin-top: 20px; }
.document-preview img { display: block; max-width: 100%; max-height: 75vh; object-fit: contain; margin: auto; }
.document-preview iframe { width: 100%; height: 580px; border: 1px solid var(--line); border-radius: 8px; }
.document-preview pre { max-height: 650px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .85rem; background: var(--ground); padding: 18px; }
.document-preview .help { margin-top: 12px; }
#impression { display: none; }
@media (max-width:1200px) { .planning-shell { grid-template-columns: 195px minmax(0,1fr); } main { padding: 28px 24px 60px; } .page-heading { flex-direction: column; gap: 18px; } .hour-grid { gap: 18px; } .hour-item h3 { min-height: 38px; } .dashboard-columns { grid-template-columns: 1fr; } .hour-numbers strong { font-size: 1.45rem; } .document-layout { grid-template-columns: 1fr; } .entry-actions { flex-direction: column; align-items: flex-end; } }
@media (max-width:900px) { .app-header { padding: 18px 22px; flex-wrap: wrap; } .header-actions { flex-wrap: wrap; } .planning-shell { grid-template-columns: 1fr; } .sidebar { border: 0; border-bottom: 1px solid var(--line); padding: 12px 18px; } #navigation { display: flex; overflow-x: auto; gap: 8px; padding: 3px; } #navigation button { width: auto; flex-shrink: 0; white-space: nowrap; font-size: .83rem; } .local-note,.app-links { display: none; } .hour-item h3 { min-height: 0; } .hour-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; } .hour-numbers strong { font-size: 1.7rem; } .calendar-controls { align-items: flex-end; } .action-row { flex-wrap: wrap; } .action-row .grow { flex-basis: 100%; } .action-row > label:not(.grow) { flex: 1 1 130px; } }
@media (max-width:600px) { .app-header { padding: 16px; gap: 18px; } .brand { font-size: 1.05rem; } .brand small { font-size: .78rem; } .header-actions { width: 100%; gap: 8px; justify-content: flex-start; } .year-label { flex: 1; display: grid; gap: 4px; min-width: 120px; } .year-label select { width: 100%; padding-inline: 9px; } .header-actions button { padding: 9px 10px; font-size: .78rem; margin-top: 22px; } .sidebar { padding: 10px 12px; } #navigation button { padding: 10px 12px; } #navigation svg { width: 17px; height: 17px; } main { padding: 25px 16px calc(40px + env(safe-area-inset-bottom)); } h1 { font-size: 1.55rem; } .page-heading { margin-bottom: 24px; gap: 18px; } .page-heading p { font-size: .85rem; } .heading-actions { width: 100%; gap: 8px; } .heading-actions button { flex: 1; font-size: .83rem; } .hour-overview { padding: 20px; margin-bottom: 20px; } .hour-overview .section-heading { display: block; } .hour-overview .section-heading p { margin-top: 8px; } .hour-grid { gap: 24px 20px; } .hour-item h3 { font-size: .8rem; min-height: 36px; margin-bottom: 6px; } .hour-numbers strong { font-size: 1.5rem; } .hour-numbers span { font-size: .76rem; } .hour-item .remaining,.over { font-size: .75rem; } .hour-overview > .help { font-size: .73rem; } .section-heading { gap: 12px; } .paper > .section-heading { padding: 16px; flex-wrap: wrap; } .section-heading button { font-size: .8rem; padding-inline: 8px; } .entry { padding: 16px; gap: 10px; flex-wrap: wrap; } .entry-body { flex-basis: calc(100% - 70px); } .entry-actions { flex-direction: row; width: 100%; justify-content: flex-end; align-items: center; } .document-row .button-link { margin-left: auto; } .upcoming-row { padding: 14px 16px; gap: 10px; grid-template-columns: 55px minmax(0,1fr); } .empty { padding: 30px 18px; } .filter-bar { gap: 12px; } .filter-bar label { flex: 1 1 140px; min-width: 0; } .filter-bar .grow { flex-basis: 100%; } .filter-bar select,.filter-bar input { width: 100%; } .calendar-controls { display: block; } .month-nav { justify-content: space-between; gap: 4px; } .month-nav h2 { min-width: 0; flex: 1; font-size: 1rem; } .month-nav .quiet { font-size: .75rem; padding-inline: 6px; } .calendar-controls > label { margin-top: 16px; } .legend { gap: 6px; } .legend .tag { font-size: .66rem; padding: 3px 7px; } .weekday { font-size: .7rem; padding: 9px 0; } .day { min-height: 64px; padding: 5px 3px; gap: 5px; align-items: center; } .day-items { display: none; } .day-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; } .day-dots i { width: 6px; height: 6px; border-radius: 50%; } .day-dots .planned,.day-dots .event-violet { background: #5b50c6; } .day-dots .held,.day-dots .event-green { background: #276344; } .day-dots .event-amber { background: #a46b13; } .day-dots .event-blue { background: #27548b; } .day-detail .actions { width: 100%; } .day-detail .actions button { flex: 1; font-size: .8rem; } .day-detail h2 { font-size: 1rem; } .day-empty { padding: 16px; font-size: .85rem; } .editor { padding: 20px 16px; } .editor .form-grid,.summary-grid { grid-template-columns: 1fr; gap: 16px; } .summary-grid label { grid-column: 1; } .editor-section { padding-bottom: 24px; margin-bottom: 24px; } .editor .section-heading { flex-wrap: wrap; gap: 14px; } .repeat-row { flex-wrap: wrap; align-items: flex-end; background: var(--ground); padding: 14px; border-radius: 9px; } .repeat-row .grow { flex-basis: 100%; } .repeat-row > label:not(.grow) { flex: 1 1 120px; } .repeat-row input { min-width: 0; } .editor-footer { gap: 10px; } .editor-footer .primary { width: 100%; } .editor-footer button { font-size: .85rem; } .settings-section { padding: 22px 16px; } .settings-section .form-grid { grid-template-columns: 1fr; } .settings-section .form-grid > span { display: none; } .settings-section .actions { align-items: stretch; flex-direction: column; } .dropzone { display: grid; padding: 20px; gap: 10px; } .dropzone span { font-size: .78rem; } .document-preview { padding: 18px 16px; } .document-preview iframe { height: 420px; } .document-layout { gap: 18px; } .document-preview .actions { align-items: stretch; flex-direction: column; } .success,.error { padding: 12px 16px; font-size: .85rem; } }
@media print { @page { size: A4; margin: 18mm; } body > * { display: none !important; } body > #impression { display: block !important; color: black; font-size: 11pt; line-height: 1.5; } #impression header { margin-bottom: 24pt; } #impression h1 { font-size: 20pt; margin-bottom: 8pt; } #impression h2 { font-size: 13pt; margin-bottom: 8pt; break-after: avoid; } #impression section { margin-top: 20pt; } #impression p { white-space: pre-wrap; overflow-wrap: anywhere; max-width: none; orphans: 3; widows: 3; } }
