/* Clear glass materials and native utilities. Statistics retains its existing renderer and styles. */
:root {
    --glass-panel: rgba(46, 54, 72, .34);
    --glass-sidebar: rgba(20, 26, 40, .46);
    --glass-line: #ffffff26;
    --glass-veil: rgba(9, 13, 23, .87);
    --glass-reflection: linear-gradient(145deg, #ffffff18, #ffffff02 48%, #ffffff0c);
    --glass-shadow: inset 0 1px 0 #ffffff20, inset 0 -1px 0 #ffffff05, 0 12px 32px #00000020;
    --os-glass: rgba(34, 41, 58, .50);
}
:root[data-tk-color-scheme='light'] {
    --glass-panel: #ffffff8a; --glass-sidebar: #f5f7ff8c; --glass-line: #ffffffa6;
    --glass-veil: #e9edf4e0; --os-glass: #f1f5ff9c;
    --glass-reflection: linear-gradient(145deg,#ffffffa8,#ffffff0a 60%,#ffffff48);
    --glass-shadow: inset 0 1px #fff, 0 10px 32px #2838540c;
}
#home-screen .home-widget, #home-screen .dock, .home-search-button {
    background: var(--glass-reflection), rgba(48, 57, 77, calc(.10 + var(--tk-settings-opacity, .78) * .22));
    border-color: #ffffff38;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--os-blur)) saturate(165%);
    -webkit-backdrop-filter: blur(var(--os-blur)) saturate(165%);
}
#home-screen .home-widget:hover { background-color: #7a8cae2e; }
#home-screen .dock { background: var(--glass-reflection),#8999bc25; border-color: #ffffff45; }
.home-search-button { color: #ffffffd9; }
.os-panel { background: var(--glass-reflection),var(--os-glass); border-color: #ffffff36; backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); }
.os-control, .os-range, .os-recent { background: var(--glass-reflection),#7c90b414; border-color: var(--glass-line); box-shadow: inset 0 1px #ffffff0c; }
.app-screen:not(#statistics-app)::before { content: ''; position: absolute; inset: -20px; z-index: -1; pointer-events: none; background: linear-gradient(var(--glass-veil),var(--glass-veil)),var(--tk-home-image) center/cover; filter: blur(18px); }
#tkops-app.tkops-app, #weather-app, #settings-app.tk-settings-app { background: var(--os-bg); }
#tkops-app .tkops-main, #weather-app .weather-ios-detail { background: transparent; }
#tkops-app .tkops-sidebar, #weather-app .weather-ios-sidebar { background: var(--glass-sidebar); backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); border-color: var(--glass-line); }
#tkops-app .flt-v3-focus, #tkops-app .flt-v3-metric, #tkops-app .tkops-booking-card,
#weather-app .weather-metric, #weather-app .weather-metar-section,
#flight-app .flight-hero, .app-content .info-card, .app-content .route-card, #atis-app .atis-item {
    background: var(--glass-reflection),var(--glass-panel); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
}
#tkops-app .flt-v3-focus { backdrop-filter: blur(var(--os-blur)) saturate(150%); -webkit-backdrop-filter: blur(var(--os-blur)) saturate(150%); }
#tkops-app .flt-v3-focus-right { background: #9cadc70a; }
#settings-app.tk-settings-app { --set-sidebar: var(--glass-sidebar); --set-card: var(--glass-panel); --set-line: var(--glass-line); }
#settings-app .tk-settings-sidebar { background: var(--glass-sidebar); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
#settings-app .tk-settings-detail { background: transparent; }
#settings-app .tk-settings-card { background: var(--glass-reflection),var(--glass-panel); border-color: var(--glass-line); box-shadow: inset 0 1px #ffffff14; }
.tablet-screen[data-os-screen$='app']:not([data-os-screen='statistics-app']):not([data-os-screen='calendar-app']) .status-bar { background: #64728e0a; }

/* Passcode reference: a centered keypad, circular translucent keys, letters and cancel. */
#pin-screen { --pin-key-size: clamp(42px, 9.3cqh, 100px); background: #0c1324; }
#pin-screen .pin-wallpaper { filter: blur(16px) brightness(.48) saturate(.75); }
#pin-screen .pin-overlay { position: absolute; inset: 0; background: linear-gradient(115deg,#10143280,#061b2970); backdrop-filter: blur(3px); }
.pin-brand-watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 66%; height: 42%; object-fit: contain; opacity: .16; pointer-events: none; }
#pin-screen .pin-content { inset: 0; padding: var(--os-status-height) 0 24px; justify-content: center; }
#pin-screen .pin-title { font-size: clamp(13px,2cqh,23px); font-weight: 600; letter-spacing: -.02em; }
#pin-screen .pin-hint { order: 5; position: absolute; bottom: 5.5%; margin: 0; font-size: clamp(8px,1cqh,11px); color: #d9e5f6a0; }
#pin-screen .pin-dots { margin: 2.5cqh 0 3.2cqh; gap: clamp(13px,2.15cqh,25px); }
#pin-screen .pin-dot { width: clamp(9px,1.35cqh,17px); height: clamp(9px,1.35cqh,17px); border: 1.5px solid #f8f9ffc4; }
#pin-screen .pin-error { position: absolute; bottom: 9%; min-height: 0; margin: 0; font-size: clamp(9px,1.2cqh,12px); }
#pin-screen .pin-keypad { grid-template-columns: repeat(3,var(--pin-key-size)); gap: 1.65cqh 2.7cqh; }
#pin-screen .pin-key { width: var(--pin-key-size); height: var(--pin-key-size); border: 1px solid #c6d8ff38; background: linear-gradient(145deg,#b3cdff30,#6b8dce32 55%,#a2c0ff28); box-shadow: inset 0 1px 1px #ffffff14, 0 8px 22px #00000010; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
#pin-screen .pin-key:hover { background-color: #d4e0ff26; }
#pin-screen .pin-key:active { transform: scale(.94); background-color: #e3edff55; }
#pin-screen .pin-key strong { font-size: clamp(24px,3.8cqh,45px); font-weight: 450; line-height: 1.05; }
#pin-screen .pin-key small { font-size: clamp(7px,1.15cqh,13px); font-weight: 700; letter-spacing: .13em; margin-top: 1px; }
#pin-screen .pin-cancel { padding: 0; font-size: clamp(10px,1.7cqh,20px); font-weight: 400; align-self: center; color: white; border: 0; background: transparent; cursor: pointer; }

/* Notification banners, persistent Home preview, app badges and a stack-like center. */
.notice-banner-host { position: absolute; z-index: 175; inset: calc(var(--os-status-height) + 5px) 0 auto; display: grid; justify-items: center; pointer-events: none; }
.notice-card { position: relative; display: flex; align-items: stretch; min-width: 0; width: 100%; border: 1px solid #ffffff40; border-radius: 22px; color: #fafbff; background: linear-gradient(135deg,#ffffff28,#ffffff06 55%,#ffffff12),#39486185; box-shadow: inset 0 1px #ffffff24,0 12px 30px #0003; backdrop-filter: blur(30px) saturate(175%); -webkit-backdrop-filter: blur(30px) saturate(175%); overflow: hidden; }
.notice-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 14px 17px; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.notice-card:hover { background-color: #61769794; }
.notice-main:active { background: #ffffff0e; }
.notice-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#fa4164,#a80e32); color: white; font: 22px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; box-shadow: inset 0 1px #ffffff55,0 4px 12px #0003; }
.notice-icon-calendar { background: linear-gradient(145deg,#ff685e,#eb323b); }
.notice-icon-settings { background: linear-gradient(145deg,#9faabd,#526075); }
.notice-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.notice-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; line-height: 1.4; color: #f1f4ffd0; }
.notice-meta > span { font-weight: 600; }
.notice-meta time { font-size: 9px; opacity: .7; white-space: nowrap; }
.notice-copy strong { font-size: 12px; font-weight: 650; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-body { font-size: 11px; line-height: 1.5; color: #eef2ffdb; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-dismiss { flex: none; align-self: flex-start; margin: 12px 10px 0 0; padding: 0; width: 23px; height: 23px; border: 0; border-radius: 50%; background: #ffffff12; color: #ffffffc0; font-size: 18px; cursor: pointer; }
.notice-card.is-read { opacity: .65; }
.notice-banner { width: min(440px,76%); pointer-events: auto; touch-action: pan-x; }
.notice-banner::after { content: ''; pointer-events: none; position: absolute; bottom: 5px; left: 45%; right: 45%; height: 2px; border-radius: 2px; background: #ffffff30; }
.notice-center { width: min(510px,92%); background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
.notice-center-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 16px; color: white; }
.notice-center-head small { font-size: 9px; letter-spacing: .16em; color: #ffffff90; }
.notice-center-head h2 { font-size: 32px; font-weight: 650; letter-spacing: -.05em; margin: 5px 0 0; }
.notice-center-head .os-close { background: #ffffff22; }
.notice-center-tools { display: flex; justify-content: flex-end; gap: 7px; padding: 0 2px 12px; }
.notice-center-tools button { background: #d1dcff20; border: 1px solid #ffffff22; border-radius: 20px; padding: 7px 13px; font-size: 10px; color: white; cursor: pointer; }
.notice-center-list { display: flex; flex-direction: column; gap: 9px; overflow: auto; padding: 2px 2px 18px; scrollbar-width: thin; max-height: 63cqh; }
.notice-empty { color: #f5f7ffb0; display: flex; align-items: center; flex-direction: column; padding: 50px 10px; gap: 13px; text-align: center; }
.notice-empty > span { font-size: 32px; color: #ffffffb0; }
.notice-empty strong { font-size: 15px; font-weight: 500; }
.notice-empty p { font-size: 11px; }
.notice-app-badge { position: absolute; top: -5px; right: -7px; z-index: 5; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; color: #fff; background: #f2344f; font: 600 11px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; box-shadow: 0 2px 7px #0004; pointer-events: none; }
#home-screen .app-icon { position: relative; }
#home-screen .app-icon > .notice-app-badge { top: -5px; right: calc(50% - 3.25cqw - 6px); font-size: 11px; text-shadow: none; }
.notice-home-preview { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 37%; border: 1px solid #ffffff30; border-radius: 18px; padding: 11px 13px; color: white; background: var(--glass-reflection),#64769427; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); cursor: pointer; }
.notice-home-dot { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: #d62242; font-size: 15px; }
.notice-home-copy { font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.notice-home-preview small { font-size: 9px; color: #ffffffb0; flex: none; }
#home-screen.has-notice .home-hub { display: none; }
.notice-lock-stack { position: absolute; z-index: 5; top: 52%; width: min(450px,78%); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.notice-lock-stack:empty { display: none; }
.lock-screen:has(.notice-lock-stack:not(:empty)) .lock-brand { display: none; }

/* Physical cable. Only the connector is interactive; the wire never blocks the desktop. */
.device-usbc-port { position: absolute; top: 50%; right: -3px; width: 5px; height: 23px; transform: translateY(-50%); border-radius: 3px; border: 1px solid #7b7d80; background: #030405; box-shadow: 0 0 1px #fff6; z-index: 145; }
.device-charge-cable { position: absolute; z-index: 150; width: 54px; height: 66px; right: -57px; top: calc(50% - 33px); border: 0; padding: 0; border-radius: 12px; background: transparent; color: #d7dae3; cursor: pointer; }
.charge-cable-assembly { position: absolute; inset: 0; transform: translateX(15px); transition: transform .72s cubic-bezier(.18,.84,.22,1.04); pointer-events: none; }
.charge-connector-tip { position: absolute; top: 26px; left: 0; width: 12px; height: 15px; border-radius: 4px 1px 1px 4px; background: linear-gradient(#aaaeb4,#f3f5f8 25%,#999ea7 70%,#f3f5f8); box-shadow: inset 0 0 0 1px #61656e; }
.charge-connector-body { position: absolute; top: 22px; left: 8px; width: 29px; height: 23px; border-radius: 5px 7px 7px 5px; background: linear-gradient(#fdfdfd,#e2e5ea 45%,#bdc3cb); box-shadow: inset 0 0 0 1px #ffffff90,1px 3px 4px #0006; }
.charge-cable-wire { position: absolute; top: 14px; left: 34px; width: 300px; height: 70px; overflow: visible; }
.cable-shadow { stroke: #080a0e80; stroke-width: 12; transform: translateY(3px); }
.cable-core { stroke: #d7dbe3; stroke-width: 8; }
.cable-sheen { stroke: #fff; stroke-width: 2; opacity: .9; }
.charge-cable-label { position: absolute; top: 60px; left: -17px; width: 74px; text-align: center; font-size: 9px; color: #aab0bd; opacity: .75; }
.device-charge-cable:hover .charge-connector-body { filter: brightness(1.13); }
.tablet.is-charging .charge-cable-assembly { transform: translateX(-7px); }
.tablet.is-charging .device-usbc-port { box-shadow: 0 0 9px #34e58688; border-color: #4daa80; }
.device-battery { display: flex; align-items: center; gap: 6px; border: 0; padding: 0 0 0 4px; background: transparent; color: inherit; cursor: pointer; }
.battery-percent { font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.battery-glyph { position: relative; width: 24px; height: 12px; border: 1px solid currentColor; border-radius: 3px; padding: 2px; color: inherit; }
.battery-glyph::after { content: ''; position: absolute; left: calc(100% + 2px); top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .6; }
.battery-fill { height: 100%; display: block; border-radius: 1px; background: currentColor; max-width: 100%; }
.battery-glyph svg { position: absolute; width: 10px; height: 15px; left: 7px; top: -3px; fill: white; filter: drop-shadow(0 0 1px #000); display: none; }
.is-charging .battery-glyph { color: #39d871; }
.is-charging .battery-glyph svg { display: block; }
.is-low-battery:not(.is-charging) .battery-glyph { color: #fa5366; }
.charge-overlay { position: absolute; z-index: 250; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #03060de0; color: #fff; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); cursor: pointer; }
.charge-orbit { width: clamp(110px,23cqh,245px); aspect-ratio: 1; position: relative; margin-bottom: 8px; filter: drop-shadow(0 0 25px #23bf5720); }
.charge-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.charge-ring circle { fill: #090b0e; stroke-width: 12; }
.charge-ring-track { stroke: #31363f; }
.charge-ring-value { fill: transparent !important; stroke: #32d359; stroke-linecap: butt; transition: stroke-dasharray .7s ease; }
.charge-bolt { position: absolute; width: 23%; height: 23%; left: 38.5%; top: 38.5%; fill: #32d359; animation: charge-breathe 1.6s ease-in-out infinite alternate; }
.charge-percent { font-size: clamp(20px,3.8cqh,40px); font-weight: 600; letter-spacing: -.045em; }
.charge-caption { font-size: clamp(9px,1.4cqh,13px); color: #b8c4ce; }
@keyframes charge-breathe { from { opacity: .6; transform: scale(.94); } to { opacity: 1; transform: scale(1.05); } }
.device-empty-battery { position: absolute; inset: 0; z-index: 240; background: #030405; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; font-size: 12px; color: #98a2b4; }
.empty-battery-outline { display: grid; place-items: start; width: 60px; height: 29px; border: 2px solid #8793a6; border-radius: 6px; color: #e63753; padding-left: 3px; font-size: 24px; line-height: 22px; }

/* The calendar reference uses a calm black canvas, floating glass controls and thin rules. */
#calendar-app.tk-calendar-app { --cal-rule: #ffffff21; background: #010204; color: #f5f6fa; padding: 0; }
#calendar-app::before { display: none; }
.tablet-screen[data-os-screen='calendar-app'] .status-bar { color: #f5f6fa; background: transparent; }
.tablet-screen[data-os-screen='calendar-app'] .tablet-home-indicator::after { background: #ffffffb0 !important; }
.cal-native-toolbar { position: absolute; z-index: 5; top: calc(var(--os-status-height) + 8px); left: 20px; right: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.cal-native-actions { display: flex; gap: 8px; align-items: center; min-width: 0; }
.cal-today-pill, #calendar-app .tk-cal-views, .cal-glass-button, .cal-native-search { background: linear-gradient(145deg,#ffffff22,#ffffff0b 60%,#ffffff12),#282a2b9c; border: 1px solid #ffffff30; border-radius: 28px; box-shadow: inset 0 1px #ffffff0a,0 3px 12px #0003; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); color: #f5f5f7; }
.cal-today-pill { display: flex; height: 41px; align-items: center; padding: 2px 6px; flex: none; }
.cal-today-pill button { border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; padding: 0 8px; height: 33px; font-size: 12px; }
.cal-today-pill #cal-prev, .cal-today-pill #cal-next { font-size: 30px; line-height: 1; font-weight: 300; }
.cal-today-pill button:hover { background: #ffffff15; }
.cal-glass-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 0 13px; height: 41px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.cal-glass-button svg { width: 17px; height: 17px; }
.cal-add { font-size: 28px; font-weight: 300; width: 41px; padding: 0; flex: none; }
#calendar-app .tk-cal-views { display: flex; flex-wrap: nowrap; padding: 3px; gap: 0; height: 41px; }
#calendar-app .tk-cal-views button { border: 0; background: transparent; border-radius: 23px; color: inherit; padding: 0 16px; height: 33px; cursor: pointer; font-size: 12px; font-weight: 600; }
#calendar-app .tk-cal-views button.selected { background: #b8b9bc33; box-shadow: inset 0 0 0 1px #ffffff1f; }
.cal-native-search { justify-self: end; width: min(100%,220px); display: flex; align-items: center; gap: 8px; padding: 0 13px; height: 41px; }
.cal-native-search svg { color: #a2a3ab; width: 16px; height: 16px; flex: none; }
.cal-native-search input { color: white; background: transparent; border: 0; outline: none; min-width: 0; width: 100%; font-size: 13px; }
.cal-native-search input::placeholder { color: #a1a1aa; }
.cal-native-heading { position: absolute; left: 23px; top: calc(var(--os-status-height) + 63px); margin: 0; font-size: clamp(21px,2.75cqw,37px); font-weight: 700; letter-spacing: -.05em; line-height: 1.2; }
#calendar-app .tk-cal-shell { position: absolute; top: calc(var(--os-status-height) + 119px); bottom: 40px; left: 0; right: 0; padding: 0; overflow: auto; }
#calendar-app .tk-cal-content { height: 100%; min-height: 0; }
#calendar-app .tk-cal-month { height: 100%; min-height: 330px; border: 0; border-radius: 0; grid-template-columns: repeat(7,minmax(0,1fr)); grid-template-rows: 26px repeat(6,minmax(0,1fr)); background: transparent; }
#calendar-app .tk-cal-weekday { background: transparent; border: 0; padding: 4px 0 8px; color: #8f9098; font-size: 9px; font-weight: 600; }
#calendar-app .tk-cal-day { position: relative; min-height: 0; padding: 4px 5px; background: transparent; border: 0; border-right: 1px solid var(--cal-rule); border-top: 1px solid var(--cal-rule); overflow: hidden; }
#calendar-app .tk-cal-day:nth-child(7n) { border-right: 0; }
#calendar-app .tk-cal-day.other-month { opacity: .35; }
#calendar-app .tk-cal-day-number { display: block; margin: 0 0 3px auto; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; color: #eeedf4; font-size: 11px; font-weight: 500; }
#calendar-app .tk-cal-day.today { background: transparent; }
#calendar-app .tk-cal-day.today .tk-cal-day-number { background: #ff3b30; color: white; font-weight: 700; }
#calendar-app .tk-cal-event { --event-color: #66c6d8; border: 1px solid color-mix(in srgb,var(--event-color) 30%,transparent); border-left: 3px solid var(--event-color); color: var(--event-color); background: color-mix(in srgb,var(--event-color) 12%,transparent); padding: 3px 5px; margin: 2px 0; border-radius: 0 4px 4px 0; font-size: clamp(8px,.9cqw,12px); font-weight: 600; line-height: 1.3; }
#calendar-app .tk-cal-event.color-red { --event-color: #ff7f86; }
#calendar-app .tk-cal-event.color-green { --event-color: #62d7a7; }
#calendar-app .tk-cal-event.color-purple { --event-color: #c59cff; }
#calendar-app .tk-cal-event.color-orange { --event-color: #ffba6a; }
.cal-more { border: 0; padding: 2px 5px; background: transparent; color: #9a9ca8; font-size: 9px; cursor: pointer; }
.cal-filter-popover { position: absolute; top: calc(var(--os-status-height) + 57px); left: 135px; width: 240px; z-index: 10; display: grid; gap: 13px; padding: 20px; border-radius: 21px; border: 1px solid #ffffff35; background: linear-gradient(145deg,#ffffff18,#ffffff05),#222a3ada; backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); box-shadow: 0 12px 40px #0008; color: white; }
.cal-filter-popover strong { font-size: 17px; }
.cal-filter-popover label { display: grid; gap: 5px; color: #e3e7f2c0; font-size: 10px; }
.cal-filter-popover select { color: white; background: #ffffff0d; border: 1px solid #ffffff1a; border-radius: 9px; padding: 8px; font: inherit; color-scheme: dark; }
.cal-filter-popover small { font-size: 10px; color: #a5acbc; line-height: 1.6; }
#calendar-app .tk-cal-timetable { min-width: 0; grid-template-columns: 45px repeat(var(--cal-cols),minmax(0,1fr)); }
#calendar-app .tk-cal-hour { background: transparent; border: 0; padding: 8px; color: #7b7d88; font-size: 9px; text-align: center; }
#calendar-app .tk-cal-hour-cell { min-height: 52px; background: transparent; border: 0; border-top: 1px solid var(--cal-rule); border-left: 1px solid var(--cal-rule); }
#calendar-app .cal-time-head { position: sticky; top: 0; z-index: 3; background: #08090b; padding: 12px 4px; }
.cal-year-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 27px 30px; padding: 5px 30px 25px; }
.cal-year-title { color: #ff5e57; border: 0; background: transparent; padding: 0 0 10px; font-size: 17px; font-weight: 650; cursor: pointer; }
.cal-mini-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; }
#calendar-app .cal-mini-grid .tk-cal-day { border: 0; padding: 0; min-height: 22px; overflow: visible; }
#calendar-app .cal-mini-grid .tk-cal-day-number { margin: 0 auto; font-size: 9px; width: 20px; height: 20px; }
#calendar-app .cal-mini-grid .has-events:not(.today)::after { content: ''; position: absolute; width: 3px; height: 3px; bottom: 0; left: calc(50% - 1px); border-radius: 50%; background: #66c6d8; }
#calendar-app[data-calendar-view='year'] .tk-cal-content { height: auto; }
.tk-cal-dialog { position: absolute; inset: 0; margin: auto; width: min(480px,85cqw); max-height: 86cqh; padding: 25px; border-radius: 26px; border-color: #ffffff38; background: var(--glass-reflection),#1d2637e6; color: white; backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.tk-cal-dialog::backdrop { background: #05091180; backdrop-filter: blur(6px); }
.tk-cal-form { gap: 11px; }
.tk-cal-form h3 { font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.tk-cal-form input, .tk-cal-form textarea, .tk-cal-form select { font-size: 12px; padding: 9px; }
.tk-cal-form label { font-size: 11px; }

@container display (max-width: 940px) {
    .cal-native-toolbar { left: 15px; right: 15px; gap: 8px; }
    .cal-today-pill { height: 35px; padding: 0 3px; }
    .cal-today-pill button { font-size: 10px; padding: 0 6px; }
    .cal-glass-button { height: 35px; padding: 0 9px; font-size: 10px; }
    .cal-add { width: 35px; font-size: 25px; padding: 0; }
    #cal-filters-toggle span { display: none; }
    #calendar-app .tk-cal-views { height: 35px; }
    #calendar-app .tk-cal-views button { height: 27px; font-size: 10px; padding: 0 12px; }
    .cal-native-search { height: 35px; }
    .cal-native-search input { font-size: 11px; }
    .cal-native-heading { top: calc(var(--os-status-height) + 59px); }
    #calendar-app .tk-cal-shell { top: calc(var(--os-status-height) + 102px); }
    .cal-year-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@container display (max-height: 570px) {
    #pin-screen { --pin-key-size: clamp(39px,10cqh,59px); }
    #pin-screen .pin-content { padding-top: 20px; }
    #pin-screen .pin-dots { margin: 12px 0 18px; }
    #pin-screen .pin-keypad { gap: 9px 17px; }
    #pin-screen .pin-hint { bottom: 5%; }
    .notice-lock-stack { top: 51%; gap: 5px; }
    .notice-lock-stack .notice-main { padding: 9px 13px; }
    #calendar-app .tk-cal-shell { bottom: 32px; }
}
@container display (max-width: 680px) {
    .battery-percent { font-size: 9px; }
    .status-icons { gap: 3px; }
    .notice-home-preview { max-width: 41%; padding: 8px; gap: 6px; }
    .notice-home-copy { font-size: 9px; }
    .notice-home-dot { width: 21px; height: 21px; font-size: 12px; }
    .notice-home-preview small { display: none; }
    .notice-main { padding: 10px 12px; gap: 9px; }
    .notice-banner { width: min(400px,88%); }
    .notice-copy strong { font-size: 11px; }
    .notice-body { font-size: 10px; }
    .cal-native-toolbar { grid-template-columns: 1fr auto; }
    .cal-native-search { display: none; }
    .cal-native-heading { top: calc(var(--os-status-height) + 58px); font-size: 23px; }
    #calendar-app .tk-cal-views button { padding: 0 10px; }
    #calendar-app .tk-cal-day { padding: 3px; }
    #calendar-app .tk-cal-day-number { width: 22px; height: 22px; font-size: 10px; }
    .cal-year-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 5px 20px 20px; }
    .tk-cal-form-grid { grid-template-columns: 1fr; }
    .notice-app-badge { min-width: 17px; height: 17px; font-size: 10px; }
}
@media(max-width:600px) { .device-charge-cable { right: -13px; width: 36px; top: 78%; background: #263147cc; border: 1px solid #ffffff35; } .charge-cable-assembly { transform: scale(.75); transform-origin: left center; } .tablet.is-charging .charge-cable-assembly { transform: scale(.75) translateX(-13px); } .charge-cable-label { left: -30px; top: 61px; } .device-usbc-port { top: calc(78% + 33px); } }
@supports not (backdrop-filter: blur(1px)) { .notice-card { background: #34425a; } .os-panel { background: var(--os-surface); } #home-screen .home-widget { background: #222d45e0; } }
@media(prefers-reduced-motion:reduce) { .charge-cable-assembly { transition: none; } .charge-bolt { animation: none; } }
:root[data-tk-reduced-motion='true'] .charge-cable-assembly { transition: none; }
:root[data-tk-reduced-motion='true'] .charge-bolt { animation: none; }
/* Keep the decorative cable within the stage's horizontal bounds. */
.device-stage { overflow-x: clip; overflow-y: visible; }

.os-panel:focus { outline: none; }

.status-left { pointer-events: auto; touch-action: none; }
