/* Operating system: tokens, screens, Home, lock, app chrome and system overlays. */
:root {
    --os-bg: #111215;
    --os-surface: #1b1d21;
    --os-elevated: #24262b;
    --os-text: #f5f5f7;
    --os-muted: #92969f;
    --os-line: #ffffff12;
    --os-accent: var(--tk-settings-accent, #e31837);
    --os-radius: 22px;
    --os-glass: rgba(31, 35, 44, .78);
    --os-blur: clamp(10px, var(--tk-settings-blur, 18px), 30px);
    --os-ease: cubic-bezier(.22, .85, .24, 1);
    --os-spring: cubic-bezier(.16, .88, .25, 1.04);
    --os-status-height: 36px;
}
:root[data-tk-color-scheme='light'] {
    --os-bg: #f2f3f5; --os-surface: #fff; --os-elevated: #e7e9ee;
    --os-text: #191b21; --os-muted: #6a6d77; --os-line: #14172113; --os-glass: rgba(248, 249, 252, .88);
}
.screen { position: absolute; inset: 0; display: none; overflow: hidden; }
.screen.active { display: block; }
.screen.os-leaving { display: block; pointer-events: none; }
.screen.active { z-index: 1; }
.screen:focus, .screen h1:focus, .screen h2:focus, .screen .pin-title:focus { outline: none; }
.hidden { display: none !important; }
.status-bar { position: absolute; inset: 0 0 auto; height: var(--os-status-height); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; gap: 20px; z-index: 100; pointer-events: none; color: #f7f8fa; font-size: 10px; font-weight: 600; }
.status-left, .status-icons { display: flex; align-items: center; gap: 10px; }
.status-left { gap: 13px; white-space: nowrap; }
.status-center { position: absolute; left: 50%; transform: translateX(-50%); font-size: 8px; letter-spacing: .2em; opacity: .65; }
.status-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.status-date { opacity: .8; }
.status-icons { pointer-events: auto; gap: 7px; }
.status-icons #connection-text { font-size: 8px; letter-spacing: .03em; opacity: .65; }
.connection-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex: none; background: #7d8591; }
.connection-dot.online { background: #4dd48d; }
.connection-dot.offline { background: #bfc1c8; }
.wifi-icon { width: 15px; height: 12px; object-fit: contain; opacity: .85; }
.os-status-button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; color: inherit; background: transparent; border-radius: 9px; cursor: pointer; position: relative; }
.os-status-button:hover { background: #ffffff15; }
.os-status-button svg { width: 15px; height: 15px; }
#os-notification-count { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--os-accent); font-size: 0; }
.tablet-screen[data-os-screen$='app'] .status-bar { color: var(--os-text); background: var(--os-bg); }
.tablet-screen[data-os-screen='statistics-app'] .status-bar { color: #eee; background: #070b08; }
.tablet-screen[data-os-screen$='app'] .wifi-icon { display: none; }
.tablet-back-button { display: none; }
.tablet-home-indicator { position: absolute; z-index: 150; bottom: 0; left: 50%; transform: translateX(-50%); width: 155px; height: 28px; padding: 0; background: transparent; border: 0; cursor: pointer; touch-action: none; border-radius: 15px; }
.tablet-home-indicator::after { content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 110px; height: 4px; border-radius: 4px; background: #ffffffc0; box-shadow: 0 1px 3px #0004; transition: width .18s; }
.tablet-home-indicator:hover::after { width: 122px; }
.tablet-screen[data-os-screen='boot-screen'] .tablet-home-indicator { display: none; }
:root[data-tk-color-scheme='light'] .tablet-screen[data-os-screen$='app']:not([data-os-screen='statistics-app']) .tablet-home-indicator::after { background: #161820b0; }
.home-screen-bar, .lock-home-bar, .pin-home-bar { display: none; }

/* Home scales with the display container, rather than the browser window. */
#home-screen { padding: max(50px, 6.5cqh) 5.4% max(112px, 13.2cqh); color: white; overflow-y: auto; overscroll-behavior: contain; }
#home-screen.active { display: flex; flex-direction: column; }
#home-screen .home-wallpaper { display: none; }
.home-greeting { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 3.5cqh; }
.os-eyebrow { display: block; font-size: clamp(8px, .85cqw, 11px); font-weight: 600; letter-spacing: .19em; color: #e4e7edb0; }
.home-greeting h1 { font-size: clamp(21px, 2.75cqw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; margin: 10px 0 0; text-shadow: 0 2px 20px #0005; }
.home-hub { display: flex; flex-direction: column; text-align: right; gap: 7px; font-size: 8px; letter-spacing: .14em; color: #ffffff70; }
.home-hub > span { color: #f3f4f6; font-size: 18px; letter-spacing: .02em; font-weight: 500; }
#home-screen .home-widgets { display: grid; grid-template-columns: 1fr 1.65fr 1fr; gap: clamp(12px, 1.7cqw, 26px); width: 100%; flex: none; margin: 0; }
#home-screen .home-widget { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; justify-content: space-between; width: 100%; height: clamp(102px, 17cqh, 186px); min-width: 0; padding: clamp(14px, 1.6cqw, 24px); overflow: hidden; color: #f7f8fa; border: 1px solid #ffffff20; border-radius: clamp(18px, 2.1cqw, 28px); background: rgba(32, 35, 44, calc(.35 + var(--tk-settings-opacity, .78) * .5)); box-shadow: inset 0 1px #ffffff0c, 0 12px 28px #0003; backdrop-filter: blur(var(--os-blur)) saturate(130%); -webkit-backdrop-filter: blur(var(--os-blur)) saturate(130%); cursor: pointer; transition: transform .16s var(--os-ease), background .2s; }
#home-screen .home-widget:hover { background-color: #3a3d48bc; }
#home-screen .home-widget:active { transform: scale(.984); }
.home-widget-header, .home-widget-title-row, .home-widget-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.home-widget-header strong, .home-widget-title-row strong { font-size: clamp(10px, 1.12cqw, 15px); font-weight: 600; letter-spacing: -.02em; }
#home-weather-temperature { font-size: clamp(26px, 3.05cqw, 44px); font-weight: 350; letter-spacing: -.06em; line-height: 1; }
.home-widget-weather-icon { color: #f0cc7e; font-size: clamp(21px, 2.6cqw, 34px); font-family: sans-serif; line-height: .9; }
.home-widget-footer { color: #c0c5d0; font-size: clamp(9px, .9cqw, 12px); }
#home-weather-high-low { white-space: nowrap; }
.tkops-home-title-row > span { font-size: 8px; color: #c2c6d0; font-weight: 500; }
.tkops-home-flight-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; white-space: nowrap; min-width: 0; }
.tkops-home-flight-number { font-size: clamp(13px, 1.5cqw, 21px); font-weight: 650; letter-spacing: -.04em; }
.tkops-home-route { font-size: clamp(11px, 1.3cqw, 18px); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tkops-home-departure, .tkops-home-duration { font-size: 10px; color: #b8beca; }
.tkops-home-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; color: #a7afbd; }
.tkops-home-pilot-row { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
#home-pilot-rank { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkops-home-updated { font-size: 8px; flex: none; }
#home-tkops-refresh { position: absolute; z-index: 3; display: grid; place-items: center; padding: 0; color: white; border: 0; background: #ffffff0d; width: 24px; height: 24px; border-radius: 8px; right: 12px; top: 12px; font-size: 16px; cursor: pointer; }
#home-calendar-date { font-size: 9px; color: #e6b7be; }
.calendar-preview { display: grid; gap: 9px; color: #c0c5cf; font-size: clamp(9px, 1cqw, 13px); }
.calendar-preview > div { display: flex; justify-content: space-between; gap: 9px; overflow: hidden; }
.calendar-preview strong { font-size: 9px; font-weight: 500; }
#home-screen .apps-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2cqh, 28px) 18px; align-content: start; justify-items: center; width: 100%; margin: 3.5cqh 0 0; padding: 0 0 10px; position: relative; z-index: 2; }
#home-screen .app-icon { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: white; cursor: pointer; transition: transform 150ms var(--os-spring); }
#home-screen .app-icon:hover { transform: translateY(-2px); }
#home-screen .app-icon:active, #home-screen .app-icon.tk-is-pressed { transform: scale(.93); }
#home-screen .app-symbol { position: relative; display: grid; place-items: center; width: clamp(48px, 6.5cqw, 89px); height: auto; aspect-ratio: 1; border-radius: 23%; font-size: 25px; color: white; background: #353b49; box-shadow: inset 0 1px #ffffff24, 0 7px 16px #0004; overflow: hidden; }
#home-screen .app-icon > span:last-child { display: block; font-size: clamp(9px, .95cqw, 13px); font-weight: 500; text-shadow: 0 1px 8px #000c; letter-spacing: -.015em; line-height: 1.25; text-align: center; }
#home-screen .app-symbol.tk-themed-symbol { background: var(--tk-icon-image) center / cover no-repeat; color: transparent; font-size: 0; box-shadow: 0 8px 16px #0004; }
#home-screen .app-symbol.tk-themed-symbol > * { visibility: hidden; }
#home-screen .tk-stats-symbol { background: linear-gradient(145deg, #1d6c4a, #124e37); }
#home-screen .tk-stats-symbol svg { width: 56%; height: 56%; }
.tk-polish-svg { width: 52%; height: 52%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#home-screen .dock { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2.4cqw, 35px); position: absolute; bottom: 23px; left: 50%; transform: translateX(-50%); padding: clamp(10px, 1.15cqw, 17px) clamp(20px, 2.4cqw, 38px); width: max-content; max-width: calc(100% - 26px); border: 1px solid #ffffff28; border-radius: clamp(23px, 3cqw, 38px); z-index: 6; background: #c5c8d322; backdrop-filter: blur(26px) saturate(130%); -webkit-backdrop-filter: blur(26px) saturate(130%); box-shadow: inset 0 1px #ffffff14, 0 16px 38px #0004; }
#home-screen .dock-button { position: relative; flex: none; display: grid; place-items: center; width: clamp(42px, 5.6cqw, 76px); aspect-ratio: 1; height: auto; padding: 0; border: 0; border-radius: 23%; background: #454a57; color: white; cursor: pointer; transform: translateY(calc(var(--dock-lift, 0) * -1px)) scale(var(--dock-scale, 1)); transition: transform 180ms var(--os-spring); transform-origin: center 80%; box-shadow: 0 4px 10px #0003; }
#home-screen .dock-button.tk-themed-dock-icon { background: var(--tk-dock-image) center / cover no-repeat; font-size: 0; color: transparent; }
#home-screen .dock-button.tk-themed-dock-icon > svg { visibility: hidden; }
#home-screen .dock-button::after { content: attr(data-dock-label); position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); border: 1px solid #ffffff1c; background: #292c34ee; border-radius: 9px; color: white; padding: 7px 11px; font-size: 10px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
#home-screen .dock-button:hover::after, #home-screen .dock-button:focus-visible::after { opacity: 1; }
.home-system-actions { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(109px, 12cqw, 142px); z-index: 5; display: flex; gap: 7px; }
.home-search-button { padding: 6px 11px; display: flex; align-items: center; gap: 5px; border: 1px solid #ffffff12; background: #ffffff0c; color: #ffffffa0; border-radius: 20px; font-size: 10px; cursor: pointer; }
.home-search-button svg { width: 12px; height: 12px; }

/* Authentication: uses the existing pilot login, never simulated biometrics. */
.boot-screen { background: #08090b; color: white; }
.boot-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.boot-logo { width: 190px; height: 80px; object-fit: contain; }
.boot-title { font-size: 11px; letter-spacing: .4em; margin-top: 19px; color: #c7cbd4; }
.boot-version { font-size: 8px; color: #656a77; margin-top: 11px; letter-spacing: .12em; }
.boot-loader { width: 80px; height: 2px; margin-top: 40px; background: #ffffff13; border-radius: 2px; overflow: hidden; }
.boot-loader-bar { height: 100%; width: 60%; background: #c6c9d0; animation: os-boot 1s ease-in-out infinite alternate; }
.boot-status { font-size: 8px; color: #636875; margin-top: 14px; letter-spacing: .12em; }
@keyframes os-boot { from { transform: translateX(-90%); } to { transform: translateX(150%); } }
.lock-screen, .pin-screen { color: white; background: #0b1020; }
.lock-wallpaper, .pin-wallpaper { position: absolute; inset: -3px; background: var(--tk-home-image) var(--tk-home-position, center) / var(--tk-home-fit, cover) no-repeat; filter: brightness(var(--tk-home-brightness, 1)); }
.pin-wallpaper { filter: blur(22px) brightness(.48); }
.lock-overlay { position: absolute; inset: 0; background: linear-gradient(#0002, #0000 60%, #0005); }
.lock-content { position: absolute; inset: 0; padding-top: 10cqh; display: flex; flex-direction: column; align-items: center; }
.lock-icon { width: 20px; height: 24px; margin-bottom: 17px; opacity: .8; }
.lock-icon svg { width: 100%; height: 100%; }
.lock-date { font-size: clamp(13px, 1.7cqw, 23px); font-weight: 500; letter-spacing: -.02em; }
.lock-time { font-size: clamp(68px, 13cqw, 178px); font-weight: 500; letter-spacing: -.07em; line-height: 1.1; }
.lock-brand { position: absolute; bottom: 20%; }
.lock-brand-logo { width: clamp(120px, 17cqw, 220px); opacity: .8; }
.unlock-button { position: absolute; bottom: 9%; background: #ffffff0e; border: 1px solid #ffffff24; border-radius: 30px; padding: 12px 24px; font-size: 12px; color: white; backdrop-filter: blur(14px); cursor: pointer; }
.unlock-button:hover { background: #ffffff20; }
.pin-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 36px 20px 24px; }
.pin-title { font-size: clamp(16px, 2cqw, 26px); font-weight: 500; letter-spacing: -.03em; }
.pin-hint { margin-top: 10px; color: #d3d7df; font-size: 11px; }
.pin-dots { display: flex; gap: 17px; margin: 24px 0 8px; }
.pin-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #ffffff90; }
.pin-dot.filled { background: white; }
.pin-error { color: #ffc2cc; max-width: 320px; text-align: center; font-size: 11px; min-height: 24px; line-height: 1.4; margin: 5px 0; }
.pin-keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 14px 22px; }
.pin-key { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 1px solid #ffffff1a; border-radius: 50%; background: #ffffff18; color: white; cursor: pointer; transition: background .12s, transform .12s; }
.pin-key:hover { background: #ffffff2a; }
.pin-key:active { background: #ffffff4a; transform: scale(.93); }
.pin-key strong { font-size: 27px; font-weight: 400; }
.pin-key small { font-size: 8px; letter-spacing: .14em; }
.pin-cancel { color: #eee; border: 0; background: transparent; font-size: 11px; cursor: pointer; }

/* App frames share typography and navigation, while retaining their own data controllers. */
.app-screen { padding-top: var(--os-status-height); background: var(--os-bg); color: var(--os-text); }
.app-header { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 3cqw, 40px); gap: 18px; background: var(--os-bg); border-bottom: 1px solid var(--os-line); }
.app-header > div:nth-child(2) { text-align: center; }
.app-header h2 { font-size: 18px; font-weight: 600; letter-spacing: -.035em; margin: 3px 0 0; }
.small-label { display: block; color: var(--os-muted); font-size: 8px; letter-spacing: .14em; font-weight: 600; }
.home-button, .sync-button { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 9px 12px; border: 1px solid var(--os-line); border-radius: 11px; background: var(--os-surface); color: var(--os-text); font-size: 10px; font-weight: 500; cursor: pointer; transition: background .16s; }
.sync-button { justify-self: end; }
.home-button:hover, .sync-button:hover { background: var(--os-elevated); }
.app-content { height: calc(100% - 72px); padding: clamp(18px, 3cqw, 38px) clamp(18px, 3.6cqw, 48px) 55px; overflow: auto; overscroll-behavior: contain; }
.app-content, .tkops-main, .tk-settings-detail { scrollbar-width: thin; scrollbar-color: #868c9b40 transparent; }
.screen :focus-visible { scroll-margin: 40px; }

/* All system dialogs are clipped by the actual tablet display. */
.os-overlay { position: absolute; z-index: 180; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: max(55px, 8cqh) 22px 28px; background: #080b135c; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: os-overlay-in .18s ease both; }
.os-panel { display: flex; flex-direction: column; width: min(490px, 94%); max-height: 100%; overflow: hidden; color: var(--os-text); background: var(--os-glass); border: 1px solid #ffffff20; border-radius: 25px; box-shadow: inset 0 1px #ffffff12, 0 24px 80px #0006; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); animation: os-panel-in .3s var(--os-spring) both; }
.os-panel-head { padding: 21px 22px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.os-panel-head h2 { font-size: 20px; letter-spacing: -.04em; margin: 0; font-weight: 600; }
.os-panel-head small { display: block; color: var(--os-muted); font-size: 10px; margin-top: 4px; }
.os-close { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 0; border-radius: 50%; background: #9099a020; color: inherit; font-size: 20px; cursor: pointer; }
.os-panel-body { padding: 0 17px 20px; overflow: auto; overscroll-behavior: contain; }
.os-panel-footer { padding: 11px 22px; border-top: 1px solid var(--os-line); color: var(--os-muted); font-size: 10px; }
.os-search-field { display: flex; gap: 11px; align-items: center; padding: 18px 21px; border-bottom: 1px solid var(--os-line); }
.os-search-field svg { width: 21px; height: 21px; color: var(--os-muted); }
.os-search-field input { min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: inherit; font-size: 20px; letter-spacing: -.03em; }
.os-search-results { padding: 9px; overflow: auto; }
.os-search-result { width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; padding: 10px 13px; background: transparent; border: 0; border-radius: 13px; color: inherit; cursor: pointer; }
.os-search-result:hover, .os-search-result[aria-selected='true'] { background: #9199ac20; }
.os-search-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--tk-icon-image, none) center / cover, #393e4a; display: grid; place-items: center; overflow: hidden; }
.os-search-icon svg { width: 23px; height: 23px; }
.os-search-result > span:last-child { margin-left: auto; color: var(--os-muted); }
.os-empty { padding: 30px 15px; color: var(--os-muted); font-size: 12px; line-height: 1.7; text-align: center; }
.os-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.os-control { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 82px; border: 1px solid var(--os-line); border-radius: 17px; padding: 13px 16px; color: inherit; background: #9099a011; text-align: left; cursor: pointer; }
.os-control strong { font-size: 13px; font-weight: 500; }
.os-control small { font-size: 10px; color: var(--os-muted); }
.os-control[aria-pressed='true'] { background: #6378992d; border-color: #8596ad45; }
.os-range { display: flex; align-items: center; gap: 15px; background: #9099a011; border: 1px solid var(--os-line); border-radius: 17px; margin-top: 10px; padding: 17px; }
.os-range svg { width: 20px; height: 20px; flex: none; }
.os-range input { width: 100%; min-width: 0; accent-color: #d5d8df; cursor: pointer; }
.os-range output { min-width: 30px; text-align: right; color: var(--os-muted); font-size: 11px; }
.os-control-note { font-size: 10px; color: var(--os-muted); margin: 12px 4px 0; line-height: 1.6; }
.os-notification { display: flex; align-items: flex-start; gap: 12px; padding: 16px 10px; border-bottom: 1px solid var(--os-line); }
.os-notification-icon { display: grid; place-items: center; width: 29px; height: 29px; background: #8b98ad1f; border-radius: 9px; color: #c2c9d3; flex: none; font-size: 12px; }
.os-notification strong { font-size: 12px; font-weight: 600; }
.os-notification p { color: var(--os-muted); font-size: 11px; margin: 4px 0 7px; line-height: 1.5; }
.os-notification time { color: var(--os-muted); font-size: 9px; }
.os-clear { background: transparent; border: 0; color: var(--os-muted); font-size: 11px; cursor: pointer; padding: 9px; }
.os-switcher { width: min(800px, 96%); }
.os-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.os-recent { background: var(--os-surface); border: 1px solid var(--os-line); border-radius: 17px; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: inherit; cursor: pointer; text-align: left; min-width: 0; }
.os-recent:hover { background: var(--os-elevated); }
.os-recent strong { font-size: 13px; }
.os-recent small { font-size: 10px; color: var(--os-muted); }
.os-context .os-panel { width: min(280px, 90%); }
.os-context-action { width: 100%; text-align: left; color: inherit; padding: 13px 16px; border: 0; border-radius: 11px; background: transparent; font-size: 12px; cursor: pointer; }
.os-context-action:hover { background: #9199ac20; }
.os-announcer { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@keyframes os-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes os-panel-in { from { opacity: .5; transform: translateY(13px) scale(.975); } to { opacity: 1; transform: none; } }
@container display (max-height: 740px) {
    #home-screen { padding-top: 50px; padding-bottom: 100px; }
    .home-greeting { margin-bottom: 20px; }
    .home-greeting h1 { font-size: 25px; margin-top: 6px; }
    #home-screen .home-widgets { gap: 13px; }
    #home-screen .home-widget { height: 110px; padding: 14px; }
    #home-screen .apps-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 23px 12px; margin-top: 30px; }
    #home-screen .app-symbol { width: clamp(44px, 6.8cqw, 64px); }
    #home-screen .dock { bottom: 21px; padding: 9px 23px; gap: 22px; }
    #home-screen .dock-button { width: 50px; }
    .home-system-actions { bottom: 103px; }
    .tkops-home-duration, .tkops-home-updated { display: none; }
}
@container display (max-height: 540px) {
    .home-greeting { display: none; }
    #home-screen { padding-top: 47px; }
    #home-screen .home-widget { height: 96px; padding: 12px; }
    #home-screen .apps-grid { margin-top: 23px; gap: 18px 9px; }
    #home-screen .app-symbol { width: 46px; }
    #home-screen .dock-button { width: 42px; }
    #home-screen .dock { bottom: 18px; padding: 8px 20px; gap: 19px; }
    .home-system-actions { bottom: 86px; }
    .pin-keypad { grid-template-columns: repeat(3, 52px); gap: 8px 22px; }
    .pin-key { width: 52px; height: 52px; }
    .pin-dots { margin-top: 14px; }
    .pin-hint { margin-top: 7px; font-size: 10px; }
    .pin-title { font-size: 18px; }
}
@container display (max-width: 680px) {
    .status-center, .status-date, .home-hub, .tkops-home-duration, .tkops-home-pilot-separator { display: none; }
    .status-bar { padding: 0 13px; }
    #home-screen { padding-left: 5%; padding-right: 5%; }
    #home-screen .home-widgets { grid-template-columns: 1fr 1.65fr; }
    .calendar-home-widget { display: none !important; }
    #home-screen .apps-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px 7px; }
    #home-screen .app-symbol { width: 44px; }
    #home-screen .app-icon > span:last-child { font-size: 8px; }
    .os-panel-head { padding: 16px 18px 12px; }
    .os-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-header { height: 59px; padding: 0 14px; }
    .app-content { height: calc(100% - 59px); }
}
@container display (max-width: 480px) {
    #home-screen .home-widgets { display: none; }
    #home-screen .apps-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 3px; gap: 14px 5px; }
    #home-screen .app-symbol { width: 38px; }
    #home-screen .app-icon { gap: 5px; }
    #home-screen .dock { gap: 13px; }
    #home-screen .dock-button { width: 35px; }
    .home-system-actions { bottom: 80px; font-size: 8px; padding: 4px 8px; }
    .os-recent-grid { grid-template-columns: 1fr; }
}
@media (hover: none) { #home-screen .dock-button::after { display: none; } #home-screen .app-icon:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tablet-screen *, .tablet-screen *::before, .tablet-screen *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
:root[data-tk-reduced-motion='true'] .tablet-screen *, :root[data-tk-reduced-motion='true'] .tablet-screen *::before, :root[data-tk-reduced-motion='true'] .tablet-screen *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
