.screenshot-import{display:grid;gap:.875rem;min-width:0;width:100%;max-width:100%}.screenshot-import *,.screenshot-import__actions *{box-sizing:border-box}.screenshot-import h2,.screenshot-import h3,.screenshot-import h4,.screenshot-import p,.screenshot-import__actions p{margin:0}.screenshot-import p,.screenshot-import h3,.screenshot-import h4,.screenshot-import__actions p{overflow-wrap:anywhere}.screenshot-import__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.25rem .75rem;min-width:0}.screenshot-import__header h2{min-width:0}.screenshot-import__reselect{min-width:44px;min-height:44px;max-width:100%;padding:.5rem;font:inherit;font-size:.875rem;color:var(--green-text);background:transparent;border:0;border-radius:.5rem;cursor:pointer}.screenshot-import__reselect:disabled{color:var(--text-secondary);cursor:default}.screenshot-import__file[hidden]{display:none}.screenshot-import__intro,.screenshot-import__hint{color:var(--text-secondary);font-size:.875rem;line-height:1.5}.screenshot-import__file,.screenshot-import__fields label{display:grid;gap:.375rem;min-width:0;max-width:100%}.screenshot-import__ticket{min-width:0;max-width:100%;margin:0;padding:.625rem;border:1px solid var(--divider);border-radius:.75rem;display:grid;gap:.5rem}.screenshot-import__summary{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:.25rem;min-width:0}.screenshot-import__facts{display:grid;gap:.125rem;min-width:0;padding-block:.5rem;font-size:.875rem;line-height:1.5}.screenshot-import__facts h3{font-size:.9375rem;font-weight:600;line-height:1.5}.screenshot-import__select{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}.screenshot-import__select input,.screenshot-import__check input{flex:0 0 auto;width:1.25rem;height:1.25rem}.screenshot-import__editor{display:grid;gap:.625rem;min-width:0;max-width:100%;margin:0;padding:.5rem 0 0;border:0;border-top:1px solid var(--divider)}.screenshot-import__fields{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem;min-width:0}.screenshot-import input:not([type=checkbox]),.screenshot-import select{display:block;min-width:0;width:100%;max-width:100%;min-height:44px;font:inherit;font-size:1rem;color:var(--text);background:var(--bg-surface);border:1px solid var(--border-strong);border-radius:.5rem;padding:.5rem}.screenshot-import select{height:max(44px,3rem)}.screenshot-import input[type=date]{-webkit-appearance:none;appearance:none;box-sizing:border-box}.screenshot-import input[type=date]::-webkit-date-and-time-value{text-align:left}.screenshot-import input::file-selector-button{min-height:44px;max-width:100%;font:inherit}.screenshot-import input:focus-visible,.screenshot-import select:focus-visible,.screenshot-import__actions input:focus-visible{outline:2px solid var(--green-text);outline-offset:2px}.screenshot-import__check{display:flex;align-items:center;gap:.5rem;min-height:44px;min-width:0;font-size:.875rem;line-height:1.5}.screenshot-import__edit,.screenshot-import__more{min-height:44px;min-width:44px;padding:.5rem;border:0;border-radius:.5rem;background:transparent;color:var(--green-text);font:inherit;cursor:pointer}.screenshot-import__more{justify-self:start}.screenshot-import__edit:disabled,.screenshot-import__more:disabled{color:var(--text-secondary);cursor:default}.screenshot-import__notice{color:var(--apricot-text);background:var(--bg-surface);padding:.625rem;border:1px solid var(--border-strong);border-radius:.5rem;font-size:.875rem;line-height:1.5}.screenshot-import__preview{display:grid;gap:.75rem;min-width:0}.screenshot-import__actions{display:grid;gap:.625rem;min-width:0;width:100%;max-width:100%}.screenshot-import__actions>p{font-size:.875rem;line-height:1.5}.screenshot-import__buttons{display:flex;flex-wrap:wrap;gap:.5rem;min-width:0}.screenshot-import__buttons button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.screenshot-import__primary{flex:1 1 auto}.screenshot-import button{min-height:44px}@media(min-width:640px){.screenshot-import__fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@font-face{font-family:Oxanium;font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/oxanium-v21-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Oxanium;font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/oxanium-v21-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color-scheme:light dark;--bg-page: #f2f2f2;--bg-surface: #ffffff;--bg-subtle: #f7f7f7;--fill: #f2f2f2;--text: #191919;--text-secondary: #6b6b6b;--text-disabled: #8a8a8a;--divider: #dfdfdf;--border-strong: #828282;--green: #00bb30;--green-text: #007a22;--green-fill: #007a22;--on-green-fill: #ffffff;--green-surface: #e5f8ea;--apricot-text: #9a5608;--apricot-surface: #fff4e5;--red-text: #b3261e;--purple-text: #7040a0;--purple-surface: #f3eafa;--overlay-shadow: 0 8px 24px rgb(0 0 0 / 12%);color:var(--text);background:var(--bg-page);font-family:Oxanium,-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,Source Han Sans SC,Noto Sans CJK SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}@media(prefers-color-scheme:dark){:root{--bg-page: #17171a;--bg-surface: #232326;--bg-subtle: #2f2f33;--fill: #3b3b40;--text: #ffffff;--text-secondary: #a5a5ab;--text-disabled: #626166;--divider: #3b3b40;--border-strong: #8a8a93;--green: #30bf54;--green-text: #4dbf69;--green-fill: #30bf54;--on-green-fill: #17171a;--green-surface: #343937;--apricot-text: #d9a14c;--apricot-surface: #393531;--red-text: #f2b8b5;--purple-text: #d4b5f5;--purple-surface: #3b3048;--overlay-shadow: 0 8px 24px rgb(0 0 0 / 40%)}}*{box-sizing:border-box}html{min-width:min(20rem,100%);background:var(--bg-page);touch-action:manipulation}body{margin:0;min-width:min(20rem,100%);min-height:100vh;background:var(--bg-page);color:var(--text)}button,input,summary,a{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--green-text);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}.app-shell{--shell-gutter: clamp(.65rem, 3vw, 2.5rem);width:min(74rem,100%);min-height:100vh;margin:0 auto;padding-block:calc(1rem + env(safe-area-inset-top)) calc(2rem + env(safe-area-inset-bottom));padding-inline:max(var(--shell-gutter),env(safe-area-inset-left)) max(var(--shell-gutter),env(safe-area-inset-right))}.app-shell--calendar{width:min(calc(48rem + 2 * var(--shell-gutter)),100%)}.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(.5rem,2vw,1.25rem);padding:.35rem 0 .6rem}.topbar__brand{margin:0}.topbar__logo{display:block;width:2.25rem;aspect-ratio:1100 / 870;background:url(./jingwei-logo-BV913yzt.svg) center / contain no-repeat}.masthead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(.75rem,3vw,1.5rem);padding:.5rem 0 .85rem}.masthead h1,.masthead p{margin:0}.masthead h1{font-size:clamp(1.375rem,4vw,1.625rem);font-weight:700;line-height:1.25}.masthead__intro{margin-top:.3rem!important;color:var(--text-secondary);font-size:.8125rem;line-height:1.5}.masthead__aside{display:flex;align-items:center;gap:clamp(.6rem,2vw,1rem)}.build-stamp{margin:0 0 .6rem;color:var(--text-secondary);font-size:.8125rem;font-variant-numeric:tabular-nums;line-height:1.55;white-space:nowrap}.user-menu{position:relative;flex:0 0 auto}.user-menu__trigger{position:relative;display:grid;width:2.75rem;min-height:2.75rem;aspect-ratio:1;place-items:center;border:0;border-radius:999px;background:transparent;color:var(--text);cursor:pointer}.user-menu__trigger:hover,.user-menu__trigger:focus-visible{background:var(--fill)}.user-menu__trigger svg{fill:none;stroke:currentcolor;stroke-linecap:round;stroke-width:1.7}.user-menu__trigger[data-state=authenticated]{color:var(--green-text)}.user-menu__trigger[data-state=authenticated]:after{content:"";position:absolute;top:.05rem;right:.05rem;width:.5rem;aspect-ratio:1;border-radius:999px;background:var(--green)}.user-menu__panel{position:absolute;z-index:20;top:calc(100% + .55rem);right:0;display:grid;gap:.5rem;width:min(19rem,calc(100vw - 2.2rem));max-height:calc(100vh - 8rem);max-height:calc(100vh - 8rem - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 8rem - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--divider);border-radius:12px;background:var(--bg-surface);box-shadow:var(--overlay-shadow);padding:.9rem;font-size:.8125rem;text-align:left}.user-menu__panel h2{margin:0;font-size:.9375rem}.user-menu__form{display:grid;gap:.4rem}.user-menu__panel label,.login-view label{font-size:.8125rem;font-weight:600}.user-menu__panel input,.login-view input{min-height:44px;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg-surface);padding:.35rem .55rem;color:var(--text);font:inherit}.user-menu__panel input{font-size:1rem}.user-menu__panel button,.login-view button{min-height:44px;border:0;border-radius:999px;background:var(--green-fill);color:var(--on-green-fill);cursor:pointer;font-size:.8125rem;font-weight:600}.user-menu__panel button:disabled,.login-view button:disabled{opacity:.7;cursor:progress}.user-menu__identity,.user-menu__sync,.user-menu__note,.user-menu__error,.user-menu__confirm p{margin:0;color:var(--text-secondary);font-size:.75rem;line-height:1.55}.user-menu__identity{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.user-menu__sync{flex:0 0 auto;text-align:right}.user-menu__list{display:grid;gap:.1rem;border-top:1px solid var(--divider);padding-top:.35rem;margin-top:.1rem}.user-menu__panel .user-menu__row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;min-height:44px;margin:0;border:0;border-radius:8px;background:transparent;padding:.3rem .45rem;color:var(--text);cursor:pointer;font-size:.8125rem;font-weight:600;line-height:1.4;text-align:left;text-decoration:none}.user-menu__panel .user-menu__row:hover,.user-menu__panel .user-menu__row:focus-visible{background:var(--fill)}.user-menu__row-value{color:var(--text-secondary);font-size:.75rem;font-weight:400}.user-menu__row-meta{display:inline-flex;align-items:center;gap:.4rem;flex:0 0 auto}.user-menu__row-caret{width:.42rem;height:.42rem;border-right:1.5px solid currentcolor;border-bottom:1.5px solid currentcolor;color:var(--text-secondary);transform:rotate(45deg) translate(-.1rem,-.1rem);transition:transform .12s ease-out}.user-menu__row[aria-expanded=true] .user-menu__row-caret{transform:rotate(-135deg) translate(-.1rem,-.1rem)}@media(prefers-reduced-motion:reduce){.user-menu__row-caret{transition:none}}.user-menu__panel .user-menu__row--static{cursor:default}.user-menu__panel .user-menu__row--static:hover{background:transparent}.user-menu__panel .user-menu__logout{margin-top:.35rem;border-top:1px solid var(--divider);border-radius:0 0 8px 8px;padding-top:.55rem;color:var(--text-secondary)}.user-menu__subsection{display:grid;border-radius:8px;background:var(--bg-subtle);padding:.55rem .6rem}.user-menu__subsection .calendar-subscription{margin-top:0;border-top:0;padding-top:0}.user-menu__panel .calendar-subscription__actions button,.user-menu__panel .calendar-subscription__error button{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text)}.user-menu__error{color:var(--apricot-text)}.user-menu__confirm{border-radius:8px;background:var(--apricot-surface);padding:.55rem .6rem}.user-menu__confirm p{margin-bottom:.5rem;color:var(--apricot-text)}.user-menu__actions{display:flex;gap:.45rem}.user-menu__actions button{flex:1 1 auto}.user-menu__actions button:last-child{background:var(--fill);color:var(--text)}.login-view{width:min(22rem,100%);margin:min(12vh,6rem) auto 0;border:1px solid var(--divider);border-radius:12px;background:var(--bg-surface);padding:clamp(1.1rem,4vw,1.75rem)}.login-view h1{margin:0;font-size:clamp(1.375rem,4vw,1.625rem);font-weight:700;line-height:1.25}.login-view__intro{margin:.35rem 0 1rem;color:var(--text-secondary);font-size:.8125rem;line-height:1.5}.login-view__hint{margin:0 0 .85rem;border-radius:8px;background:var(--apricot-surface);padding:.55rem .6rem;color:var(--apricot-text);font-size:.75rem;line-height:1.55}.session-loading{margin:min(12vh,6rem) auto 0;color:var(--text-secondary);font-size:.875rem;text-align:center}.calendar-subscription{display:grid;gap:.5rem;margin-top:.2rem;border-top:1px solid var(--divider);padding-top:.6rem}.calendar-subscription__note,.calendar-subscription__state,.calendar-subscription__offline{margin:0;color:var(--text-secondary);font-size:.75rem;line-height:1.55}.calendar-subscription__offline{color:var(--apricot-text)}.calendar-subscription__url{display:grid;gap:.35rem}.calendar-subscription__error{display:grid;gap:.4rem;border-radius:8px;background:var(--apricot-surface);padding:.55rem .6rem}.calendar-subscription__error p{margin:0;color:var(--apricot-text);font-size:.75rem}.calendar-subscription__actions{display:flex;flex-wrap:wrap;gap:.45rem}.calendar-subscription__actions button{flex:1 1 auto}.train-schedule{display:grid;gap:.5rem;margin-top:.2rem;border-top:1px solid var(--divider);padding-top:.6rem}.train-schedule h2{margin:0;font-size:1.0625rem;font-weight:600}.train-schedule__note,.train-schedule__empty,.train-schedule__count,.train-schedule__offline{margin:0;color:var(--text-secondary);font-size:.75rem;line-height:1.55}.train-schedule__note{font-size:.8125rem}.train-schedule__offline{color:var(--apricot-text)}.train-schedule__error{display:grid;gap:.4rem;border-radius:8px;background:var(--apricot-surface);padding:.55rem .6rem}.train-schedule__error p{margin:0;color:var(--apricot-text);font-size:.75rem}.train-schedule__list{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}.train-schedule__item{display:grid;gap:.4rem;border:1px solid var(--divider);border-radius:8px;padding:.5rem .55rem}.train-schedule__summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem .6rem;font-size:.75rem}.train-schedule__summary>div{display:grid;gap:.1rem}.train-schedule__summary span,.train-schedule__summary small{color:var(--text-secondary)}.train-schedule__form,.train-schedule__confirm{display:grid;gap:.35rem}.train-schedule__search{display:grid;gap:.35rem;max-width:24rem}.train-schedule__form label,.train-schedule__search label{color:var(--text-secondary);font-size:.8125rem;font-weight:600}.train-schedule__form input[type=text],.train-schedule__search input,.train-schedule__form select{min-height:44px;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg-surface);padding:.55rem;color:var(--text);font:inherit;font-size:.8125rem}.train-schedule__key,.train-schedule__confirm p{margin:0;color:var(--text-secondary);font-size:.72rem}.train-schedule__confirm p{color:var(--apricot-text)}.train-schedule__actions,.train-schedule-candidate__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.train-schedule button{justify-self:start}.train-schedule-candidate__actions button{flex:1 1 auto}.train-schedule-candidate__actions button{min-width:44px;min-height:44px;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg-surface);color:var(--text);cursor:pointer;font-size:.8125rem}.train-schedule__checkbox input[type=checkbox],.purchase-editor__checkbox input[type=checkbox]{flex:0 0 auto;width:1.125rem;min-height:0;padding:0}.train-schedule__checkbox,.purchase-editor__checkbox{display:flex;align-items:center;gap:.4rem;min-height:44px}.purchase-editor__library-note,.purchase-editor__checkbox,.train-schedule-candidate{grid-column:1 / -1}.purchase-editor__library-note{margin:0;color:var(--text-secondary);font-size:.75rem;line-height:1.5}.train-schedule-candidate{display:grid;gap:.4rem;border:1px solid var(--divider);border-radius:8px;background:var(--bg-subtle);padding:.55rem .6rem}.train-schedule-candidate__loading,.train-schedule-candidate__missing,.train-schedule-candidate__note,.train-schedule-candidate__title,.train-schedule-candidate__diff{margin:0;color:var(--text-secondary);font-size:.75rem;line-height:1.5}.train-schedule-candidate__missing{color:var(--text)}.train-schedule-candidate__times{display:flex;flex-wrap:wrap;gap:.4rem .9rem;margin:0;padding:0;list-style:none;font-size:.75rem}.train-schedule-candidate__edit{display:grid;gap:.35rem;min-width:0;margin:0;border:0;border-top:1px solid var(--divider);padding-top:.5rem}.train-schedule-candidate__edit label{color:var(--text-secondary);font-size:.75rem;font-weight:600}.train-schedule-candidate__edit input[type=text]{width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg-surface);padding:.55rem;color:var(--text);font:inherit}.train-schedule-candidate__edit p{margin:0;color:var(--text-secondary);font-size:.75rem}.workspace{display:block}.library-page__body{display:grid;gap:1rem;margin-top:1rem;border-radius:12px;background:var(--bg-surface);padding:clamp(1rem,3vw,1.5rem)}.library-page__body .train-schedule{margin-top:0;border-top:0;padding-top:0}.today-hint{display:flex;align-items:center;gap:.7rem;margin:1rem 0;border-radius:12px;background:var(--green-surface);padding:.6rem .85rem;font-size:.8125rem}.today-hint__label{flex:0 0 auto;margin:0;color:var(--green-text);font-size:.75rem;font-weight:700}.today-hint__body{display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem .7rem;margin:0;color:var(--text-secondary)}.today-hint__route{color:var(--text);font-size:.9375rem;font-weight:700}.today-hint button{flex:0 0 auto;min-height:44px;margin-left:auto;border:0;border-radius:999px;background:var(--green-fill);color:var(--on-green-fill);cursor:pointer;padding:.3rem .85rem;font-size:.8125rem;font-weight:600}.today-hint__note{border-left:2px solid var(--apricot-text);padding-left:.45rem;color:var(--apricot-text)}.sync-alerts{margin-bottom:1rem;border-radius:12px;background:var(--bg-surface);padding:.7rem .85rem;font-size:.75rem;line-height:1.5}.sync-alerts__line{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0;border-left:3px solid var(--divider);border-radius:0 6px 6px 0;background:var(--bg-subtle);padding:.45rem .6rem;color:var(--text-secondary)}.sync-alerts__line+.sync-alerts__line,.sync-alerts__line+.sync-alerts__failure{margin-top:.55rem}.sync-alerts__line--conflict{border-left-color:var(--apricot-text)}.sync-alerts__line button{flex:0 0 auto;min-height:44px;border:1px solid var(--border-strong);border-radius:999px;background:transparent;color:var(--text);cursor:pointer;padding:.3rem .75rem;font-size:.75rem;font-weight:600}.sync-alerts__failure{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-left:3px solid var(--apricot-text);border-radius:0 8px 8px 0;background:var(--apricot-surface);padding:.6rem}.sync-alerts__failure strong,.sync-alerts__failure span{display:block}.sync-alerts__failure button{flex:0 0 auto;min-height:44px;border:0;border-radius:999px;background:var(--green-fill);color:var(--on-green-fill);cursor:pointer;padding:.45rem .85rem;font-size:.75rem;font-weight:600}.calendar-board{width:100%;min-width:0;border-radius:12px;background:var(--bg-surface);padding:clamp(.5rem,2vw,1rem)}.direction-choice{display:grid;gap:.35rem;margin:0 0 .75rem;border:0;padding:0}.direction-choice legend{padding:0;color:var(--text-secondary);font-size:.8125rem;font-weight:600}.direction-choice__options{display:grid;gap:.35rem}.direction-choice label{display:flex;align-items:center;gap:.45rem;min-height:44px;color:var(--text);font-size:.8125rem}.direction-choice input{flex:0 0 auto;width:1.1rem;height:1.1rem;accent-color:var(--green-text)}.month-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.25rem;min-width:0;margin:0}.month-header__current{display:flex;min-width:0;align-items:baseline;justify-content:center;gap:.5rem}.month-header h2{margin:0;font-size:clamp(1.0625rem,3.5vw,1.375rem);font-weight:700;line-height:1.25;text-align:center;white-space:nowrap}.month-header h2 span{margin-right:.3rem;color:var(--text-secondary);font-size:.8125rem;font-weight:500}.month-header button{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-width:2.75rem;min-height:44px;border:0;border-radius:999px;background:transparent;color:var(--text);cursor:pointer;font-size:1.125rem;font-weight:600}.month-header button:not(:disabled):hover{background:var(--fill)}.month-header__nav--previous{justify-self:start}.month-header__nav--next{justify-self:end}.month-header .month-header__today{min-width:0;min-height:44px;padding:0 .4rem;background:transparent;color:var(--green-text);font-size:.8125rem}.month-header button:disabled{background:transparent;color:var(--text-disabled);cursor:not-allowed}.calendar-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.calendar-grid th{padding:.35rem .1rem .25rem;color:var(--text-secondary);font-size:.75rem;font-weight:600;text-align:center}.calendar-cell{border:0;border-bottom:1px solid var(--divider);padding:0;vertical-align:top}.calendar-grid tbody tr:last-child .calendar-cell{border-bottom:0}.calendar-day{--day-number-size: 2rem;--day-cell-gap: max(.35rem, 7px);--day-dot-slot: .35rem;--day-ring-room: max(.4rem, 6px);position:relative;display:flex;width:100%;min-width:0;min-height:max(2.75rem,calc(var(--day-number-size) + var(--day-cell-gap) + var(--day-dot-slot) + 2 * var(--day-ring-room)));flex-direction:column;align-items:center;gap:var(--day-cell-gap);border:0;background:transparent;padding:var(--day-ring-room) .1rem;color:var(--text);cursor:pointer;overflow:hidden;text-align:center}.calendar-day:not(:disabled):not([aria-pressed=true]):hover{background:var(--bg-subtle)}.calendar-day:disabled{cursor:not-allowed}.calendar-day--past .calendar-day__number:not(.calendar-day__number--selected){color:var(--text-secondary)}.calendar-day__number{display:grid;width:var(--day-number-size);height:var(--day-number-size);place-items:center;border:1.5px solid transparent;border-radius:50%;font-size:.9375rem;font-variant-numeric:tabular-nums;font-weight:600;line-height:1}.calendar-day__number--today{border-color:var(--green-text);color:var(--green-text)}.calendar-day__number--selected{border-color:var(--green-fill);background:var(--green-fill);color:var(--on-green-fill)}.calendar-day__number--today.calendar-day__number--selected{box-shadow:0 0 0 1px var(--bg-surface),0 0 0 3px var(--green-text)}.calendar-day__badge{position:absolute;top:0;right:0;display:grid;width:.6rem;height:.6rem;place-items:center;border-radius:3px;font-size:.4rem;font-weight:700;line-height:1}.calendar-day__badge--holiday{background:var(--apricot-surface);color:var(--apricot-text)}.calendar-day__badge--makeup-workday{background:var(--fill);color:var(--red-text)}.calendar-day__events{display:flex;min-height:var(--day-dot-slot);align-items:center;gap:.2rem}.calendar-day__dot{display:block;width:var(--day-dot-slot);height:var(--day-dot-slot);border-radius:50%}.calendar-day__dot--commute{background:var(--green)}.calendar-day__dot--purchase{background:var(--purple-text)}.day-events{margin-top:.75rem;border-top:1px solid var(--divider);padding-top:.6rem}.day-events__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.day-events__title{margin:0;font-size:1rem;font-weight:600}.day-events__edit{min-height:44px;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg-surface);padding:0 .9rem;color:var(--text);cursor:pointer;font-size:.8125rem;font-weight:600}.day-events__empty{margin:.55rem 0 0;color:var(--text-secondary);font-size:.8125rem}.day-events__list{display:grid;gap:.4rem;margin:.55rem 0 0;padding:0;list-style:none}.day-event{display:grid;width:100%;min-height:44px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.6rem;border:1px solid var(--divider);border-radius:10px;background:var(--bg-surface);padding:.45rem .6rem;color:var(--text);cursor:pointer;text-align:left}.day-event:hover{background:var(--bg-subtle)}.day-event__kind{display:inline-grid;min-width:2.2rem;min-height:1.35rem;place-items:center;border-radius:6px;font-size:.6875rem;font-weight:700}.day-event--commute .day-event__kind{background:var(--green-surface);color:var(--green-text)}.day-event--purchase .day-event__kind{background:var(--purple-surface);color:var(--purple-text)}.day-event__body{display:grid;min-width:0;gap:.1rem}.day-event__title{font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.day-event__meta{color:var(--text-secondary);font-size:.75rem;line-height:1.5}.day-event__time{color:var(--text-secondary);font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.5;white-space:nowrap}.day-event--purchase .day-event__time{color:var(--purple-text);font-weight:600}.detail-overlay{position:fixed;inset:0;z-index:20;display:grid;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.detail-overlay__backdrop{position:absolute;inset:0;background:#0006}.detail-panel{position:relative;z-index:1;display:flex;width:min(34rem,100%);max-height:min(90dvh,48rem);flex-direction:column;margin:auto;border-radius:16px;background:var(--bg-page);box-shadow:var(--overlay-shadow);overflow:hidden}.detail-panel__close{align-self:flex-end;min-height:44px;margin:.35rem .35rem 0;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg-surface);padding:0 .9rem;color:var(--text);cursor:pointer;font-size:.8125rem;font-weight:600}.detail-panel__body{overflow-y:auto;padding:0 .5rem calc(1rem + env(safe-area-inset-bottom))}.detail-panel--with-footer .detail-panel__body{min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;padding:0 1rem 1rem}.detail-panel__footer{flex:0 0 auto;min-width:0;padding:.75rem 1rem 1rem;border-top:1px solid var(--divider);background:var(--bg-page)}.app-notes-entry{display:flex;justify-content:center;margin-top:clamp(1.25rem,4vw,2rem)}.app-notes-trigger{min-height:44px;border:0;background:none;padding:0 .6rem;color:var(--text-secondary);cursor:pointer;font-size:.8125rem;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em}.app-notes-trigger:hover{color:var(--text)}.app-notes{padding:0 .4rem}.app-notes__title{margin:0 0 .5rem;font-size:1.0625rem;font-weight:600}.app-notes .rule-disclosure{margin-top:.75rem}.app-notes .holiday-legend{margin-top:0}.app-notes__subscription{margin-top:.9rem;border-top:1px solid var(--divider);padding-top:.75rem}.app-notes__subscription h3{margin:0 0 .35rem;font-size:.875rem}.app-notes__subscription p{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.6}.holiday-legend{margin-bottom:.75rem;border-bottom:1px solid var(--divider);padding-bottom:.7rem}.holiday-legend__title{margin:0 0 .4rem;font-size:.875rem;font-weight:600}.holiday-badge{display:inline-grid;width:1.15rem;height:1.15rem;margin-right:.25rem;place-items:center;border-radius:4px;font-size:.6875rem;font-weight:700;line-height:1}.holiday-badge--holiday{background:var(--apricot-surface);color:var(--apricot-text)}.calendar-day__holiday--makeup-workday .calendar-day__holiday-badge,.holiday-badge--makeup,.holiday-badge--makeup-workday{background:var(--fill);color:var(--red-text)}.holiday-legend__keys,.holiday-legend__list{display:flex;flex-wrap:wrap;gap:.35rem .9rem;margin:0;padding:0;list-style:none;color:var(--text-secondary);font-size:.75rem}.holiday-legend__keys{margin-bottom:.4rem}.holiday-legend__keys li{display:inline-flex;align-items:center}.holiday-legend__key-mark{display:inline-grid;margin-right:.3rem;border:1px solid var(--purple-text);border-radius:4px;background:var(--purple-surface);padding:.05rem .3rem;color:var(--purple-text);font-size:.6875rem;font-weight:700;line-height:1.2}.holiday-legend__list li{display:inline-flex;align-items:baseline;gap:.3rem}.holiday-legend__name{color:var(--text);font-weight:600}.holiday-legend__range{font-variant-numeric:tabular-nums;line-height:1.5}.holiday-legend__unpublished{margin-top:.4rem;border-radius:8px;background:var(--apricot-surface);padding:.5rem .6rem;color:var(--text-secondary);font-size:.75rem;line-height:1.5}.holiday-legend__unpublished p{margin:0}.holiday-legend__unpublished a{margin-left:.35rem;color:var(--apricot-text);font-weight:600}.trip-detail{border-radius:12px;background:var(--bg-surface);padding:clamp(1rem,3vw,1.5rem)}.trip-detail h2{margin:0;font-size:1.0625rem;font-weight:600}.trip-detail__route{display:grid;grid-template-columns:1fr minmax(3.7rem,.7fr) 1fr;align-items:center;gap:.5rem;margin:1rem 0 1.25rem}.trip-detail__route>div:last-child{text-align:right}.trip-detail__route span,.trip-detail__route small,.trip-detail__route strong{display:block}.trip-detail__route span,.trip-detail__route small{color:var(--text-secondary);font-size:.75rem;line-height:1.25}.trip-detail__route strong{margin:.2rem 0;font-size:clamp(1.0625rem,3vw,1.25rem);font-weight:700;white-space:nowrap}.route-line{display:flex;align-items:center}.route-line i{height:1px;flex:1;background:var(--divider)}.route-line b{display:grid;width:1.65rem;height:1.65rem;place-items:center;border-radius:50%;background:var(--fill);color:var(--text);font-size:.6875rem;font-weight:700}.trip-detail__facts{display:grid;margin:0;border-top:1px solid var(--divider)}.trip-detail__facts div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--divider);padding:.55rem 0}.trip-detail__facts dt{color:var(--text-secondary);font-size:.8125rem}.trip-detail__facts dd{margin:0;font-size:.875rem;font-variant-numeric:tabular-nums;font-weight:600;line-height:1.4}.trip-detail__result{margin:1rem 0 0;border-radius:10px;background:var(--bg-subtle);padding:.75rem .85rem}.trip-detail--on-sale-today .trip-detail__result{background:var(--green-surface)}.trip-detail__result strong,.trip-detail__result span{display:block}.trip-detail__result strong{margin-bottom:.2rem;font-size:.9375rem}.trip-detail__result span{color:var(--text-secondary);font-size:.8125rem;line-height:1.55}.trip-detail__holiday{margin-top:1rem;border:1px solid var(--divider);border-radius:10px;padding:.75rem .85rem}.trip-detail__holiday h3{margin:0 0 .4rem;font-size:.875rem;font-weight:600}.trip-detail__holiday p,.trip-detail__direction-state{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.55}.trip-detail__direction-state{margin-bottom:.75rem}.trip-detail__holiday p+p{margin-top:.4rem}.trip-detail__holiday strong{color:var(--text)}.trip-detail__purchase{margin-top:1.1rem;border-top:1px solid var(--divider);padding-top:.9rem}.trip-detail__purchase h3{margin:0 0 .75rem;font-size:.9375rem;font-weight:600}.trip-detail__clear{margin-top:.75rem}.trip-detail__clear-confirm{display:flex;flex-wrap:wrap;gap:.4rem}.trip-detail__clear-confirm p{flex-basis:100%;margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.55}.purchase-editor{min-width:0}.purchase-editor__status{margin:0;border:0;padding:0}.purchase-editor__status legend{margin-bottom:.4rem;color:var(--text-secondary);font-size:.8125rem;font-weight:600}.purchase-editor__options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem}.purchase-editor__options label{position:relative;display:block;cursor:pointer}.purchase-editor__options input{position:absolute;inset:0;opacity:0}.purchase-editor__options span{display:grid;min-height:44px;place-items:center;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg-surface);padding:.3rem;color:var(--text-secondary);font-size:.75rem;font-weight:600;text-align:center}.purchase-editor__options input:focus-visible+span{outline:3px solid var(--green-text);outline-offset:2px}.purchase-editor__options input:checked+span{border-color:var(--green-fill);background:var(--green-fill);color:var(--on-green-fill)}.purchase-editor__options input.purchase-editor__status-option--pending:checked+span{border-color:var(--purple-text);background:var(--purple-surface);color:var(--purple-text)}.purchase-editor__current,.purchase-editor__resolved{margin:.55rem 0 0;font-size:.8125rem}.purchase-editor__resolved{border-radius:8px;background:var(--bg-subtle);padding:.55rem .6rem;color:var(--text-secondary);line-height:1.5}.purchase-editor__details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4rem .6rem;margin-top:.8rem;border-top:1px solid var(--divider);padding-top:.75rem}.purchase-editor__details small,.field-error{font-size:.75rem}.purchase-editor__details label{color:var(--text-secondary);font-size:.8125rem;font-weight:600}.purchase-editor__details input{width:100%;min-height:2.5rem;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg-surface);padding:.4rem .55rem;color:var(--text);font:inherit;font-size:.8125rem}.purchase-editor__details input[aria-invalid=true]{border-color:var(--apricot-text);box-shadow:inset 0 0 0 1px var(--apricot-text)}.purchase-editor__details select{width:100%;min-height:2.5rem;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg-surface);padding:.4rem .55rem;color:var(--text);font:inherit;font-size:.8125rem}.purchase-editor__wide{grid-column:1 / -1}.purchase-editor__pair{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4rem .6rem}.purchase-editor__pair>div{display:grid;gap:.2rem}.purchase-editor__details select[aria-invalid=true]{border-color:var(--apricot-text);box-shadow:inset 0 0 0 1px var(--apricot-text)}.purchase-editor__readonly-times{grid-column:1 / -1;display:grid;gap:.2rem;border:1px solid var(--divider);border-radius:8px;background:var(--bg-subtle);padding:.5rem .6rem}.purchase-editor__readonly-times p{margin:0;font-size:.8125rem}.purchase-editor__readonly-times .purchase-editor__library-note{font-size:.75rem}.purchase-editor__readonly-times button{min-height:44px}.link-pill,.pill-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg-surface);padding:0 .9rem;color:var(--text);cursor:pointer;font-size:.8125rem;font-weight:600;text-decoration:none}.pill-button--primary{border-color:transparent;background:var(--green-fill);color:var(--on-green-fill)}.pill-button:disabled{opacity:.7;cursor:progress}.purchase-editor__library-link{grid-column:1 / -1;justify-self:start}.purchase-editor__details small{grid-column:1 / -1;color:var(--text-secondary);line-height:1.4}.field-error{grid-column:1 / -1;margin:0;color:var(--apricot-text);font-weight:600}.purchase-editor__save{grid-column:1 / -1;margin-top:.3rem;min-height:44px;border:0;border-radius:999px;background:var(--green-fill);color:var(--on-green-fill);cursor:pointer;font-size:.8125rem;font-weight:600}.rule-disclosure{border:1px solid var(--divider);border-radius:12px;background:var(--bg-surface);overflow:hidden}.rule-disclosure summary{min-height:44px;padding:.85rem 1rem;cursor:pointer;font-size:.875rem;font-weight:600}.rule-disclosure__content{border-top:1px solid var(--divider);padding:.25rem 1rem 1rem;color:var(--text-secondary);font-size:.8125rem;line-height:1.65}.rule-disclosure__content h3{margin:1rem 0 .3rem;color:var(--text);font-size:.875rem;font-weight:600}.rule-disclosure__content ul{margin:0;padding-left:1.25rem}.rule-disclosure__content li+li{margin-top:.35rem}.presale-rule-list{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}.presale-rule-list li{border-radius:8px;background:var(--bg-subtle);padding:.5rem .6rem}.presale-rule-list strong,.presale-rule-list span{display:block}.presale-rule-list strong{color:var(--text)}.presale-rule-list small{display:block;margin-top:.3rem;color:var(--text-secondary)}.presale-rule-list small a{margin-left:.35rem}.presale-rule-list small a:first-child{margin-left:0}.source-list a{color:var(--green-text);font-weight:600;overflow-wrap:anywhere}.source-list small{display:block;color:var(--text-secondary)}@media(max-width:540px){.app-shell{--shell-gutter: .55rem}.topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:.25rem}.masthead{grid-template-columns:minmax(0,1fr) auto;align-items:start}.masthead__aside{display:contents}.masthead .user-menu{grid-area:1 / 2;align-self:start}.today-hint{align-items:flex-start;flex-wrap:wrap;gap:.35rem .6rem}.calendar-board{padding:.4rem}.calendar-day{--day-number-size: 1.85rem;padding:var(--day-ring-room) 0}.calendar-day__number{font-size:.875rem}.detail-panel{width:100%;max-height:min(92dvh,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));margin:auto 0 0;border-radius:16px 16px 0 0}}@media(max-width:360px){.app-shell{--shell-gutter: .45rem}.calendar-board{padding-inline:0}.sync-alerts__failure{align-items:stretch;flex-direction:column}.purchase-editor__details{grid-template-columns:minmax(0,1fr)}.day-event{grid-template-columns:auto minmax(0,1fr)}.day-event__time{grid-column:2}}@media(prefers-reduced-motion:no-preference){.calendar-board{animation:ticket-arrival .42s ease-out both}@keyframes ticket-arrival{0%{opacity:0;transform:translateY(.65rem)}to{opacity:1;transform:translateY(0)}}}
