:root {
  color-scheme: light;
  --paper: #f4f6fa;
  --ink: #14213d;
  --muted: #617087;
  --line: #e3e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #edf3ff;
  --danger: #b42335;
  --shadow: 0 3px 14px #14213d05;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; }
.page-header, main, footer { width: calc(100% - 32px); max-width: 600px; margin: auto; }
.page-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); gap: 12px; }
.back-link { display: inline-flex; align-items: center; justify-self: start; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; border: 0; padding: 10px 0; background: transparent; min-height: 44px; }
.back-link > span:first-child { font-size: 20px; line-height: 1; }
.header-brand { font-size: 14px; font-weight: 750; letter-spacing: -.025em; }
.language-label { justify-self: end; margin: 0; }
#language { min-height: 44px; width: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 13px; font-weight: 650; }
main { min-height: 65vh; padding-top: 25px; }
h1 { font-size: 28px; line-height: 1.18; letter-spacing: -.035em; margin: 0 0 10px; font-weight: 750; }
h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
.intro { color: var(--muted); margin: 0 0 20px; font-size: 14px; max-width: 490px; }
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.list-tools > p { font-size: 12px; color: var(--muted); margin: 0; }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--accent); padding: 9px 0; font-size: 13px; font-weight: 650; }
.text-button:hover:not(:disabled) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; background: #e9edf4; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.filters button { border: 0; border-radius: 9px; min-height: 44px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; padding: 9px; }
.filters .active { background: #fff; color: var(--accent); box-shadow: 0 2px 6px #14213d0a; }
.plan-list { display: grid; gap: 12px; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; box-shadow: var(--shadow); }
.plan-card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.plan-date { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.plan-time { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.plan-tag { font-size: 11px; font-weight: 650; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 9px; border-radius: 7px; }
.plan-label { font-size: 14px; font-weight: 650; margin: 12px 0 0; overflow-wrap: anywhere; }
.plan-duration, .plan-overnight { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.card-actions { display: flex; gap: 26px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 2px; }
.danger, .danger:hover:not(:disabled) { color: var(--danger); }
.empty { border: 1px solid var(--line); background: #fff; border-radius: 16px; text-align: center; padding: 30px 20px; color: var(--ink); box-shadow: var(--shadow); }
.calendar-icon { display: flex; width: 68px; height: 68px; align-items: center; justify-content: center; border-radius: 20px; background: var(--accent-soft); color: var(--accent); margin: 0 auto 15px; }
.calendar-icon svg { width: 45px; height: 45px; }
#empty-text { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.015em; }
#empty-hint { font-size: 13px; color: var(--muted); margin: 7px auto 0; max-width: 260px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; padding: 12px 18px; font-weight: 650; font-size: 14px; line-height: 1.4; text-align: center; background: var(--accent); color: #fff; }
.button:hover:not(:disabled) { background: var(--accent-dark); }
.primary { box-shadow: 0 3px 8px #2563eb1c; }
.secondary { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.secondary:hover:not(:disabled) { background: #f8faff; border-color: #c8d4e8; }
.button:disabled, .text-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.full { width: 100%; }
.add-symbol { font-size: 24px; font-weight: 400; line-height: 20px; }
.bottom-action { position: sticky; bottom: 0; z-index: 2; background: linear-gradient(#f4f6fa00, var(--paper) 12px); padding: 20px 0 max(16px, env(safe-area-inset-bottom)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { font-size: 13px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #d4e2ff; color: #244981; padding: 13px 15px; margin: 0 0 18px; overflow-wrap: anywhere; }
.warning { background: #fff8eb; border-color: #ecd6a8; color: #805718; }
.confirm-panel { padding: 20px; margin: 0 0 22px; border: 1px solid #ecd6a8; border-radius: 16px; background: #fffaf1; box-shadow: var(--shadow); }
.confirm-panel p { font-size: 14px; color: #765a30; }
.confirm-panel h2 { font-size: 18px; }
.confirm-panel .button { font-size: 13px; }
#plan-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
#plan-form > label:first-of-type { margin-top: 0; }
.time-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
label { display: block; font-size: 13px; font-weight: 650; margin: 18px 0 7px; }
input { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; border: 1px solid #d6deea; border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 12px; font-size: 16px; }
input[aria-invalid=true] { border-color: var(--danger); background: #fffafa; }
input[type=date], input[type=time] { min-width: 0; appearance: none; }
.checkbox-label { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 500; background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 18px 0; min-height: 48px; }
.checkbox-label input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: 0 0 auto; accent-color: var(--accent); }
.field-help { font-size: 12px; color: var(--muted); margin: 8px 0; }
.field-error { color: var(--danger); font-size: 12px; margin: 6px 0; }
.field-error:empty { display: none; }
.form-actions { display: grid; gap: 10px; margin: 24px 0 0; }
.data-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow); }
.data-card > p { font-size: 14px; color: var(--muted); }
.data-card .actions { display: grid; }
.data-card .calendar-notice { font-size: 13px; background: #f4f7fc; border-radius: 10px; padding: 11px 13px; }
.help-details { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 4px; }
.help-details summary { cursor: pointer; min-height: 44px; padding: 11px 0; font-size: 13px; font-weight: 650; color: var(--muted); }
.help-details p { font-size: 13px; color: var(--muted); margin: 6px 0 13px; }
.privacy-details { border: 0; margin: 0; padding: 0; }
.privacy-details summary { min-height: 44px; color: var(--ink); font-size: 14px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); margin-top: 20px; padding: 14px 0 24px; color: var(--muted); font-size: 11px; }
.brand { font-weight: 700; font-size: 13px; letter-spacing: -.02em; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (min-width:650px) {
  main { padding-top: 32px; }
  #plan-form, .data-card { padding: 24px; }
  .data-card .actions { display: flex; }
  .form-actions { grid-template-columns: 2fr 1fr; }
}
@media (max-width:360px) {
  .page-header, main, footer { width: calc(100% - 28px); }
  h1 { font-size: 26px; }
  .list-tools { align-items: center; gap: 8px; }
  .list-tools .text-button { font-size: 12px; max-width: 155px; }
  .actions .button { width: 100%; }
  .plan-time { font-size: 22px; }
  #plan-form { padding: 16px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }

.header-brand{display:flex;align-items:center;gap:7px}.header-brand img{border-radius:8px}
