@font-face {
  font-family: 'GLT Nunito';
  src: url('assets/fonts/Nunito-Variable.ttf') format('truetype');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --subtle: #f7f7f7;
  --text: #222222;
  --muted: #6a6a6a;
  --border: #ebebeb;
  --input-border: #c1c1c1;
  --brand-g: #00ed64;
  --brand-l: #00684a;
  --brand-t: #c3f0d2;
  --accent: var(--brand-g);
  --accent-hover: #c3f0d2;
  --accent-soft: #c3f0d2;
  --accent-text: #00684a;
  --action-fill: #00684a;
  --on-accent: #00684a;
  --today-fill: #c3f0d2;
  --on-action: #ffffff;
  --selected-fill: #00684a;
  --on-selected: #ffffff;
  --danger: #c13515;
  --shadow: 0 2px 6px rgb(0 0 0 / 4%), 0 4px 8px rgb(0 0 0 / 8%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-synthesis: none;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #181818;
  --surface: #222222;
  --subtle: #2c2c2c;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --border: #3b3b3b;
  --input-border: #767676;
  --brand-g: #00ed64;
  --brand-l: #c3f0d2;
  --brand-t: #00684a;
  --accent: var(--brand-g);
  --accent-hover: #c3f0d2;
  --accent-soft: #00684a;
  --accent-text: #c3f0d2;
  --action-fill: #00ed64;
  --on-accent: #00684a;
  --today-fill: #c3f0d2;
  --on-action: #181818;
  --selected-fill: #00ed64;
  --on-selected: #181818;
  --danger: #ffb29f;
  --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); min-height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.page-tools { display: flex; align-items: center; gap: 12px; justify-self: end; }
.app-search-tools { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.app-search-tools:has([hidden]):has(#search-status:empty) { display: none; }
@media (max-width: 743px) {
  .page-tools { gap: 8px; grid-column: 2; grid-row: 1; }
  .page-tools .text-button { font-size: 12px; padding-inline: 10px; }
  .page-tools #theme-label { display: none; }
  .page-tools #layout-edit { padding-inline: 8px; }
}
.topbar:not(:has(> .header-favorites)) { grid-template-columns: 1fr auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea { color: inherit; }
button { border: 0; background: none; }
button, a, input, textarea { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
input, textarea { min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
button:disabled { cursor: default; }
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); background: var(--surface); padding: 12px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.page-shell { max-width: 1240px; margin: 0 auto; padding: 0 40px 32px; }
.topbar { min-height: 88px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--border); }
.header-favorites { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 600px; min-width: 0; justify-self: center; }
.favorite-tools { display: flex; flex-shrink: 0; gap: 2px; }
.favorite-tools .icon-button { width: 32px; height: 36px; }
h2[id], #main { scroll-margin-top: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; min-height: 44px; color: var(--accent-text); font-family: 'GLT Nunito', 'Trebuchet MS', sans-serif; font-weight: 800; font-size: 23px; line-height: 1.2; letter-spacing: -.45px; }
.brand-symbol { flex-shrink: 0; width: 32px; height: 32px; }
.brand-wordmark { white-space: nowrap; }
.brand-g { color: var(--brand-g); }
.brand-l { color: var(--brand-l); }
.brand-t { color: var(--brand-t); }
.brand-g, .brand-t { -webkit-text-stroke: .4px #00684a; }
[data-theme='dark'] .brand-g { -webkit-text-stroke: 0; }
[data-theme='dark'] .brand-t { -webkit-text-stroke-color: #c3f0d2; }
.theme-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 12px; white-space: nowrap; justify-self: end; }
.theme-button:hover { background: var(--subtle); }
.theme-sun, [data-theme='dark'] .theme-moon { display: none; }
[data-theme='dark'] .theme-sun { display: block; }
.welcome { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 24px; gap: 24px; }
.date-label { color: var(--muted); font-size: 16px; letter-spacing: .15px; margin-bottom: 10px; }
h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.4; letter-spacing: -.8px; }
.welcome-description { color: var(--muted); margin-top: 10px; font-size: 14px; }
.clock-block { display: flex; flex-direction: column; align-items: flex-end; }
.clock { font-size: clamp(34px, 4vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.clock-caption { font-size: 14px; color: var(--muted); letter-spacing: .15px; padding-top: 8px; }
.search-bar { display: flex; align-items: center; gap: 20px; max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 8px 8px 28px; box-shadow: var(--shadow); }
.search-bar:focus-within { border-color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--text); }
.search-caption { padding-right: 24px; border-right: 1px solid var(--border); flex-shrink: 0; font-size: 12px; font-weight: 600; line-height: 1.6; }
.search-caption span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.search-icon { color: var(--muted); width: 21px; height: 21px; }
.search-bar input { flex: 1; background: none; border: 0; height: 40px; width: 100%; outline: none; }
.search-shortcut { display: grid; place-items: center; width: 25px; height: 27px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 13px; font-family: inherit; }
.search-submit { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; color: var(--on-accent); background: var(--accent); }
.search-submit:hover { background: var(--accent-hover); }
[data-theme='dark'] .search-submit { color: var(--on-accent); background: var(--accent); }
[data-theme='dark'] .search-submit:hover { background: var(--accent-hover); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr); gap: 48px; margin-top: 24px; align-items: start; }
.main-column, .side-column { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; min-width: 0; }
.main-column .panel { padding: 0 0 32px; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.main-column .panel:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.4px; }
.section-description { font-size: 12px; color: var(--muted); margin-top: 4px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--text); font-size: 12px; min-height: 40px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.text-button .icon { width: 15px; height: 15px; }
.text-button:hover, .text-button[aria-pressed='true'] { background: var(--subtle); }
.shortcuts { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: safe center; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
.shortcut { position: relative; min-width: 0; flex: 0 0 72px; }
.shortcut a { display: flex; flex-direction: column; align-items: center; min-height: 72px; padding: 8px 5px; border: 1px solid transparent; border-radius: 12px; transition: background .18s, border-color .18s; }
.shortcut a:hover { background: var(--subtle); border-color: var(--border); }
.shortcut-monogram { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 19px; font-weight: 700; line-height: 1; margin-bottom: 7px; }
.shortcut-favicon { object-fit: contain; }
.shortcut-monogram:has(.shortcut-favicon:not([hidden])) { background: transparent; }
.shortcut-monogram[data-brand='google'] { background: #edf3fe; color: #316bcf; }
.shortcut-monogram[data-brand='naver'] { background: #e8f7ee; color: #147341; }
.shortcut-monogram[data-brand='youtube'] { background: #ffeded; color: #be2834; }
.shortcut-monogram[data-brand='chatgpt'] { background: #e8f5f0; color: #28745b; }
.shortcut-monogram[data-brand='notion'] { background: #eef0f4; color: #293244; }
.shortcut-monogram[data-brand='gmail'] { background: #fcf0e6; color: #9d571b; }
[data-theme='dark'] .shortcut-monogram { background: var(--subtle); color: var(--text); }
.shortcut-name { width: 100%; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.shortcut-host { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--muted); margin-top: 2px; }
.shortcut-arrow { position: absolute; top: 13px; right: 12px; width: 15px; height: 15px; color: var(--muted); opacity: 0; }
.shortcut a:hover .shortcut-arrow, .shortcut a:focus-visible .shortcut-arrow { opacity: 1; }
.shortcut-edit { position: absolute; top: 0; right: 0; width: 26px; height: 26px; background: var(--surface); border: 1px solid var(--border); }
.is-editing .shortcut a { border-style: dashed; border-color: var(--input-border); }
.is-editing .shortcut-arrow { display: none; }
.add-shortcut { width: 100%; min-height: 44px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text); font-size: 12px; border: 1px solid var(--input-border); border-radius: 8px; }
.add-shortcut .icon { width: 16px; height: 16px; }
.add-shortcut:hover { background: var(--subtle); border-color: var(--text); }
.heading-with-icon { display: flex; gap: 9px; align-items: center; }
.heading-with-icon .icon { color: var(--accent-text); width: 18px; height: 18px; }
.notes-panel .panel-header { margin-bottom: 13px; }
.note-status { font-size: 11px; color: var(--muted); }
.notes-panel textarea { display: block; width: 100%; min-height: 132px; border: 0; border-radius: 14px; resize: vertical; background: var(--subtle); font-size: 14px; line-height: 1.9; padding: 16px; }
.notes-panel textarea:focus-visible { outline-offset: 6px; border-radius: 3px; }
.note-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--muted); font-size: 11px; }
.todos-panel { display: flex; flex-direction: column; }
.todo-count { display: grid; place-items: center; min-width: 29px; height: 29px; background: var(--subtle); color: var(--text); border-radius: 50%; font-size: 12px; font-weight: 600; padding: 0 7px; }
.todo-progress { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; padding: 16px 0 12px; border-bottom: 1px solid var(--border); }
#todo-fraction { white-space: nowrap; font-variant-numeric: tabular-nums; }
.todo-list { max-height: 250px; overflow-y: auto; scrollbar-width: thin; }
.todo-item { display: flex; align-items: center; gap: 8px; padding: 13px 0; }
.todo-item + .todo-item { border-top: 1px solid var(--border); }
.todo-item label { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; cursor: pointer; }
.todo-item input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--selected-fill); cursor: pointer; }
.todo-item label span { font-size: 15px; overflow-wrap: anywhere; }
.todo-item.done label span { color: var(--muted); text-decoration: line-through; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); flex-shrink: 0; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { background: var(--subtle); color: var(--text); }
.todo-delete { width: 28px; height: 30px; }
.todo-delete:hover { color: var(--danger); }
.empty-todos { text-align: center; padding: 58px 0 51px; }
.empty-check { display: grid; place-items: center; width: 51px; height: 51px; margin: 0 auto 15px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: var(--subtle); }
.empty-check .icon { width: 22px; height: 22px; }
.empty-todos p { font-size: 13px; font-weight: 550; }
.empty-todos > span:last-child { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.todo-form { display: flex; align-items: center; gap: 5px; border: 1px solid var(--input-border); border-radius: 8px; padding: 5px 5px 5px 12px; }
.todo-form:focus-within { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.todo-form input { width: 100%; height: 37px; border: 0; background: none; font-size: 14px; outline: none; }
.todo-add { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: var(--accent-text); }
.todo-add:hover { background: var(--accent-soft); }
.clear-completed { align-self: flex-start; padding-left: 0; margin-top: 9px; }
.todo-bottom-note { margin-top: auto; padding-top: 31px; font-size: 11px; color: var(--muted); text-align: center; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding: 24px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.save-label { display: flex; align-items: center; gap: 5px; }
.save-label .icon { width: 13px; height: 13px; }
.save-label[data-state='saved'] .icon { color: var(--brand-l); }
.save-label[data-state='error'] { color: var(--danger); }
.storage-warning { border: 1px solid var(--danger); padding: 12px 16px; border-radius: 9px; margin-top: 20px; color: var(--danger); background: var(--surface); font-size: 13px; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--border); border-radius: 20px; padding: 28px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / 50%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { font-size: 20px; }
.dialog-description { color: var(--muted); font-size: 12px; margin-top: 5px; margin-bottom: 24px; }
#link-form > label { display: block; font-size: 12px; font-weight: 600; margin: 16px 0 7px; }
#link-form > input { width: 100%; background: var(--subtle); border: 1px solid var(--input-border); border-radius: 8px; padding: 11px 12px; font-size: 13px; }
.form-error { color: var(--danger); font-size: 12px; margin-top: 8px; min-height: 20px; }
.dialog-actions, .dialog-right { display: flex; align-items: center; gap: 9px; }
.dialog-actions { margin-top: 17px; justify-content: space-between; }
.dialog-right { margin-left: auto; }
.primary-button, .secondary-button { min-height: 44px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; }
/* Small button labels use a darker coral to keep readable contrast. */
.primary-button { background: var(--action-fill); color: var(--on-action); }
.primary-button:hover { filter: brightness(.94); }
.secondary-button { background: var(--surface); border: 1px solid var(--input-border); }
.secondary-button:hover { background: var(--border); }
.delete-link { color: var(--danger); font-size: 12px; padding: 10px 0; }
.noscript-message { margin: 20px; padding: 12px; border: 1px solid; }
@media (max-width: 1119px) {
  .topbar { grid-template-columns: 1fr auto; padding-top: 16px; gap: 8px 16px; }
  .header-favorites { grid-row: 2; grid-column: 1 / -1; width: 600px; justify-self: center; }
  .theme-button { grid-row: 1; grid-column: 2; }
}
@media (max-width: 850px) {
  .page-shell { padding: 0 24px 24px; }
  .topbar { gap: 16px; }
  .dashboard { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; }
  .panel { padding: 20px; }
  .main-column, .side-column { gap: 16px; }
}
@media (max-width: 743px) {
  .page-shell { padding: 0 20px 24px; }
  .topbar { grid-template-columns: 1fr auto; row-gap: 4px; padding-top: 16px; }
  .header-favorites { width: 100%; gap: 4px; }
  .favorite-tools { flex-direction: column; }
  .favorite-tools .icon-button { width: 28px; height: 32px; }
  .theme-button { grid-column: 2; grid-row: 1; }
  .brand { font-size: 19px; gap: 7px; }
  .brand-symbol { width: 26px; height: 26px; }
  .theme-button { padding: 9px 12px; font-size: 11px; }
  .welcome { padding: 28px 1px 26px; gap: 12px; }
  .welcome-description { max-width: 260px; font-size: 12px; }
  .date-label { font-size: 14px; }
  h1 { font-size: 27px; }
  .clock { font-size: 30px; letter-spacing: -1.5px; }
  .clock-caption { font-size: 12px; }
  .search-bar { padding-left: 20px; gap: 12px; }
  .search-caption { padding-right: 14px; font-size: 11px; }
  .search-bar input { font-size: 13px; }
  .search-shortcut { display: none; }
  .dashboard { display: flex; flex-direction: column; margin-top: 24px; gap: 28px; }
  .main-column, .side-column { display: contents; }
  .todos-panel { order: 1; }
  .notes-panel { order: 2; }
  .calendar-panel { order: 3; }
  .subscriptions-panel { order: 5; }
  .panel { padding: 21px; }
  .shortcuts { justify-content: flex-start; }
  .shortcut-name { font-size: 12px; }
  .shortcut-host { font-size: 11px; }
  .empty-todos { padding: 27px 0 23px; }
  .todo-bottom-note { padding-top: 20px; }
  .footer { font-size: 10px; gap: 10px; align-items: flex-start; }
}
@media (max-width: 360px) {
  .brand { font-size: 17px; letter-spacing: -.45px; gap: 6px; }
  .brand-symbol { width: 23px; height: 23px; }
  .theme-button { padding-inline: 10px; gap: 6px; }
  .page-shell { padding-inline: 16px; }
  dialog { padding: 20px; }
  .clock-caption { display: none; }
  .clock { font-size: 28px; }
  .panel { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.dashboard { align-items: start; }
.welcome-copy { min-width: 0; }
.welcome-description { max-width: 590px; text-wrap: pretty; }
.clock-block { flex-shrink: 0; }
.calendar-panel { padding: 24px; box-shadow: var(--shadow); }
.calendar-panel .panel-header { margin-bottom: 10px; }
.calendar-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-navigation h3 { margin: 0; font-size: 19px; font-weight: 600; }
.calendar-navigation button { font-size: 26px; font-weight: 350; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekdays { font-size: 14px; text-align: center; color: var(--muted); margin-bottom: 12px; }
.calendar-weekdays span:first-child { color: var(--danger); }
.calendar-day { min-width: 0; width: 100%; max-width: 40px; aspect-ratio: 1; padding: 3px 0 1px; border-radius: 50%; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; line-height: 1.1; border: 1px solid transparent; gap: 3px; }
.calendar-day:hover { background: var(--subtle); }
.calendar-day.outside-month { color: var(--muted); }
.calendar-day.is-today { background: var(--today-fill); color: #00684a; }
.calendar-panel #calendar-today { color: #00684a; background: var(--today-fill); font-size: 14px; }
.calendar-day.is-selected { color: var(--on-selected); background: var(--selected-fill); font-weight: 600; }
.calendar-day.is-today.is-selected { border-color: #00684a; }
.calendar-day.is-selected .day-marks i { background: var(--on-selected); }
.day-marks { height: 4px; display: flex; gap: 3px; }
.schedule-dot, .renewal-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.renewal-dot { background: var(--brand-l); }
.calendar-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.agenda-heading { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 17px; margin-top: 18px; gap: 10px; }
.agenda-heading h3 { font-size: 16px; margin: 0; font-weight: 600; }
.agenda-heading > span { font-size: 13px; color: var(--muted); }
.agenda-list { max-height: 240px; overflow-y: auto; scrollbar-width: thin; margin-top: 9px; }
.agenda-item { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 9px 3px; border-radius: 7px; }
.agenda-item:hover { background: var(--subtle); }
.agenda-time { width: 44px; flex-shrink: 0; font-size: 13px; color: var(--accent-text); }
.agenda-label { flex: 1; min-width: 0; }
.agenda-name, .agenda-detail { display: block; overflow-wrap: anywhere; }
.agenda-name { font-size: 15px; font-weight: 500; }
.agenda-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.agenda-item .icon { color: var(--muted); width: 13px; height: 13px; }
.planner-empty { color: var(--muted); font-size: 14px; padding: 22px 0 8px; text-align: center; text-wrap: pretty; }
.calendar-panel .add-shortcut { margin-top: 12px; min-height: 44px; }
.todos-panel .empty-todos { padding: 20px 0 4px; }
.todos-panel .panel-header { margin-bottom: 16px; }
.todo-bottom-note { padding-top: 20px; }
.subscription-services { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.subscription-services button { min-height: 36px; background: var(--surface); border: 1px solid var(--input-border); border-radius: 999px; padding: 6px 14px; font-size: 11px; color: var(--text); }
.subscription-services button:hover { background: var(--subtle); border-color: var(--text); }
.subscription-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 28px; gap: 12px; align-items: start; padding: 19px 0; }
.subscription-item + .subscription-item { border-top: 1px solid var(--border); }
.subscription-icon { display: grid; place-items: center; width: 35px; height: 35px; background: var(--subtle); border-radius: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.subscription-copy { min-width: 0; }
.subscription-name { text-align: left; font-size: 14px; font-weight: 600; padding: 0; border-radius: 2px; overflow-wrap: anywhere; }
.subscription-name:hover { color: var(--accent-text); }
.subscription-detail, .subscription-source { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.subscription-detail a { white-space: nowrap; color: var(--accent-text); }
.subscription-detail a:hover { text-decoration: underline; }
.subscription-source { margin-top: 7px; }
.subscription-dates { display: flex; flex-direction: column; align-items: flex-end; font-size: 10px; gap: 2px; white-space: nowrap; }
.subscription-countdown { display: inline-block; color: var(--text); background: var(--subtle); font-size: 11px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 3px; }
.subscription-countdown.due-soon { color: var(--danger); background: var(--subtle); }
.subscription-next { color: var(--muted); }
.subscription-price { font-size: 11px; font-weight: 600; }
.subscription-edit { width: 28px; height: 30px; }
.subscription-footnote { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 3px; font-size: 11px; color: var(--muted); text-wrap: pretty; }
.planner-form label { display: block; font-size: 12px; font-weight: 600; margin: 14px 0 6px; }
.planner-form input, .planner-form select { display: block; width: 100%; min-height: 48px; background: var(--surface); border: 1px solid var(--input-border); border-radius: 8px; padding: 12px; font-size: 14px; }
.planner-form select { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid > div { min-width: 0; }
.optional-label { font-size: 10px; font-weight: 400; color: var(--muted); }
.field-help { font-size: 11px; color: var(--muted); margin-top: 8px; }
#subscription-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.billing-link { display: inline-block; font-size: 11px; color: var(--accent-text); margin-top: 6px; }
.planner-form .confirmation-label { display: flex; gap: 8px; align-items: start; line-height: 1.6; font-weight: 400; }
.planner-form .confirmation-label input { width: 16px; height: 16px; min-height: 0; flex-shrink: 0; padding: 0; margin-top: 2px; accent-color: var(--accent); }
.news-strip { margin-top: 20px; padding: 8px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 4px rgb(0 0 0 / 6%); }
.news-line { display: flex; align-items: center; gap: 13px; min-width: 0; }
.news-source { flex-shrink: 0; color: var(--text); font-size: 14px; font-weight: 600; min-width: 74px; }
#news-headline, #news-empty { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#news-headline:hover { text-decoration: underline; }
.news-controls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.news-controls .icon-button { width: 36px; height: 36px; font-size: 21px; }
.news-controls #news-pause { font-size: 13px; }
#news-position { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-right: 5px; }
@media (max-width: 743px) {
  .news-strip { padding: 8px 12px; }
  .news-line { flex-wrap: wrap; gap: 8px; }
  #news-headline, #news-empty { order: 3; flex-basis: 100%; font-size: 15px; white-space: normal; min-height: 48px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .news-controls { margin-left: auto; }
}
@media (max-width: 743px) {
  .dashboard { align-items: stretch; }
  .calendar-panel { padding: 20px; }
  .subscription-item { gap: 7px; grid-template-columns: 30px minmax(0, 1fr) auto 24px; }
  .subscription-icon { width: 29px; height: 29px; font-size: 16px; }
  .subscription-edit { width: 24px; }
  .welcome-description { font-size: 12px; max-width: 260px; }
  .welcome-copy { flex: 1; }
}
@media (max-width: 360px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 743px) { .topbar { column-gap: 8px; } .welcome h1 { word-break: keep-all; } }

#language-select { min-height: 44px; max-width: 120px; border: 1px solid var(--input-border); border-radius: 999px; background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; }
#language-status { font-size: 13px; color: var(--danger); }
#language-status:empty { display: none; }
.page-tools #theme-label { display: none; }
.agenda-time { width: 62px; }
.subscription-dates { white-space: normal; max-width: 125px; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 743px) {
  .page-tools { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .header-favorites { grid-row: 3; }
  .welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .welcome-copy { display: contents; }
  .date-label { grid-row: 1; grid-column: 1; margin-bottom: 0; }
  .clock-block { grid-row: 1; grid-column: 2; }
  .welcome-copy h1 { grid-row: 2; grid-column: 1 / -1; }
  .welcome-description { grid-row: 3; grid-column: 1 / -1; margin-top: 0; max-width: none; }
  .clock { font-size: clamp(24px, 6.5vw, 30px); letter-spacing: -1px; }
  .subscription-dates { max-width: 90px; }
}
