:root{--primary:#1677e8;--deep:#0b3c91;--sky:#38bdf8;--light:#eaf5ff;--surface:#fff;--workspace:#f3f8fd;--muted:#526b87;--border:#d9e5f1;--soft-surface:#eef5fc;color-scheme:light}
html[data-theme=dark]{--surface:#18283b;--workspace:#101c2c;--ink:#e7effb;--text:#b6c8de;--muted:#afc3dc;--border:#35485e;--line:#35485e;--soft-surface:#21364e;--soft:#21364e;--deep:#2364c1;color-scheme:dark;background:var(--workspace)}
[hidden]{display:none!important}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--surface);color:var(--ink)}
.brand{font-size:27px!important;font-weight:750!important;letter-spacing:-1px!important;text-shadow:none!important;gap:9px;white-space:nowrap}
.brand b{background:none!important;padding:0!important;border-radius:0!important}.brand .compass-logo{width:36px;height:36px;margin:0}.brand i{color:#1677e8}
.button{min-height:40px;padding:9px 16px;font-size:13px;line-height:1.5;white-space:nowrap;cursor:pointer;flex-shrink:0;width:auto}
.button:disabled{opacity:.6;cursor:wait}.button.outline{color:var(--ink);background:var(--surface);border-color:var(--border)}.button.text-danger{color:#a32821;background:var(--surface);border-color:#e8c7c5}.button.danger{background:#a32821;color:#fff}
.icon-button{display:inline-grid;place-items:center;min-width:36px;height:36px;background:var(--surface);border:1px solid var(--border);border-radius:9px;font-size:24px;color:var(--ink);cursor:pointer}
.header,.footer{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--border)}.header-row{gap:14px}.header-row>.tm-bell{margin-left:auto}.header-row>.desktop-nav:empty{display:none}
.tm-location{background:var(--soft-surface);border:1px solid var(--border);color:var(--ink);border-radius:30px;padding:8px 12px;font:inherit;font-size:12px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;flex-shrink:1}.tm-location:before{content:'⌖ ';color:#1677e8}
.tm-bell{position:relative;display:flex;align-items:center;justify-content:center;min-width:38px;min-height:40px;border:0;background:transparent;cursor:pointer;color:var(--ink)}.tm-bell svg{width:22px;height:22px}.tm-bell [data-unread]:not(:empty){position:absolute;top:0;right:-3px;background:#1677e8;color:white;border-radius:20px;padding:2px 5px;font-size:10px}
.footer{border-top:1px solid var(--border);padding-top:40px}.footer .brand{color:var(--ink)!important}.footer p,.footer a{color:var(--text)}.footer nav a:hover{color:#1677e8}.footer-bottom{border-top:1px solid var(--border)!important;color:var(--muted)}.footer-grid{align-items:start}.footer-credit p{margin:0;font-size:13px}.footer .hua{display:inline-block;margin-top:3px;padding:0;font-size:21px;font-weight:750;letter-spacing:-.4px;background:linear-gradient(100deg,#7168ff 0%,#a36ce3 55%,#e469c4 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;box-shadow:none}.footer .hua span{color:inherit}
.tm-workspace{background:var(--workspace);font-size:14px}.tm-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px;width:min(1480px,calc(100% - 48px));margin:auto}.tm-sidebar{min-width:0;padding:30px 18px 32px 0;border-color:var(--border)}.tm-sidebar nav{display:grid;gap:4px}.tm-sidebar nav a{padding:10px 13px;font-size:13px;color:var(--text)}.tm-sidebar nav a:hover{background:var(--soft-surface)}.tm-sidebar nav a[aria-current=page]{color:white;background:#1677e8}.tm-sidebar-note{border-color:var(--border);color:var(--muted);font-size:12px}.tm-sidebar nav>.button{margin-top:14px;width:100%}
.admin-nav{margin-top:10px;border-top:1px solid var(--border);padding-top:12px}.admin-nav summary{cursor:pointer;color:var(--ink);font-size:13px;padding:10px 13px;font-weight:650}.admin-nav>div{padding-left:10px;display:grid;gap:3px}.admin-nav a{margin-left:4px}
.tm-content{min-width:0;padding:32px 0 48px}.tm-title{gap:20px;margin-bottom:24px}.tm-title h1,.tm-content>h1{font-size:34px;line-height:1.2;margin:10px 0 12px}.tm-content h2{font-size:22px;line-height:1.3}.tm-content h3{font-size:17px}.tm-content p{color:var(--text)}.tm-card,.tm-content .panel{background:var(--surface);border:1px solid var(--border);padding:22px;min-width:0;border-radius:16px}.tm-content>.tm-card{margin:20px 0}.tm-card h2{margin-top:0}.tm-content label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink)}.tm-content label.check{flex-direction:row;align-items:flex-start;gap:10px}.tm-content label.check input{margin:5px 0 0;flex:none}
.tm-content input:not([type=checkbox]),.tm-content select,.tm-content textarea{min-width:0;width:100%;min-height:42px;margin-top:0;padding:10px 12px;background:var(--surface);border:1px solid var(--border);color:var(--ink);border-radius:9px}.tm-content textarea{resize:vertical;min-height:100px}.tm-content input:disabled,.tm-content select:disabled{opacity:1;background:var(--soft-surface);color:var(--muted)}.tm-content .profile-grid{gap:18px}.tm-content .profile-grid label{min-width:0}.tm-content .profile-grid input{margin:0}.tm-content output{padding:18px;background:var(--soft-surface);border-radius:12px;color:var(--ink);font-weight:600}.tm-content .stack>button{justify-self:start}.tm-save,.tm-forecast{background:var(--surface);border-color:var(--border)}
.settings-grid,.admin-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.settings-grid h2{margin:0 0 10px}.settings-grid p{margin:0 0 18px}.settings-actions,.theme-options,.dialog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.settings-grid .small{margin:14px 0 0}.theme-options button[aria-pressed=true]{border-color:#1677e8;background:var(--soft-surface);box-shadow:inset 0 0 0 1px #1677e8}.theme-options span{font-size:19px;line-height:1}.admin-overview-grid>a{display:block;text-decoration:none;transition:border-color .15s}.admin-overview-grid>a:hover{border-color:#1677e8}
.admin-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}.admin-toolbar label{flex:1;max-width:400px;min-width:200px}.admin-toolbar .button{margin:0 0 1px}.admin-pagination{display:flex;justify-content:flex-end;margin-top:18px}.admin-pagination:has([hidden]){margin-top:0}.table-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;border:1px solid var(--border);border-radius:10px;overscroll-behavior-x:contain}.admin-table{width:100%;min-width:620px;border-collapse:collapse;table-layout:auto;font-size:13px}.admin-table th,.admin-table td{padding:13px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border);border-right:1px solid var(--border);line-height:1.6}.admin-table th{width:auto;background:var(--soft-surface);font-weight:650;white-space:nowrap;color:var(--ink)}.admin-table th:last-child,.admin-table td:last-child{border-right:0}.admin-table tr:last-child td{border-bottom:0}.admin-directory{min-width:1100px}.admin-directory th:nth-child(1){min-width:95px}.admin-directory th:nth-child(2){min-width:240px}.admin-directory th:nth-child(3){min-width:145px}.admin-directory th:nth-child(4){min-width:220px}.admin-directory th:nth-child(5){min-width:125px}.admin-directory th:nth-child(6){min-width:260px}.admin-auth-id{font-family:ui-monospace,monospace;font-size:12px;max-width:240px;overflow-wrap:break-word}.admin-public-id,.admin-nowrap{white-space:nowrap}.admin-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.admin-row-actions .button{padding:7px 11px;min-height:36px;font-size:12px}.status-badge{display:inline-block;white-space:nowrap;font-size:12px;background:var(--soft-surface);color:var(--ink);border-radius:6px;padding:4px 8px}.status-badge.on-hold{background:#fff2d6;color:#785711}.admin-search{display:flex;align-items:end;gap:12px;margin-bottom:20px}.admin-search>label{flex:1;max-width:340px}.admin-message-card{max-width:800px}.admin-message-card .stack{gap:20px}.admin-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 0}.admin-facts>div{padding:12px 14px;border:1px solid var(--border);border-radius:9px;min-width:0}.admin-facts dt{font-size:12px;font-weight:650;color:var(--muted)}.admin-facts dd{margin:6px 0 0;overflow-wrap:anywhere;color:var(--ink);font-size:13px}.admin-detail-heading h3{margin:8px 0 0}.admin-tabs{display:flex;gap:8px;overflow-x:auto;padding:18px 0;border-bottom:1px solid var(--border);margin-bottom:20px}.admin-tabs button{border:1px solid var(--border);color:var(--ink);background:var(--surface);padding:9px 12px;border-radius:8px;font-size:13px;white-space:nowrap;cursor:pointer}.admin-tabs button[aria-selected=true]{background:var(--soft-surface);border-color:#1677e8}.admin-section{margin:20px 0}.admin-section h3{margin:0 0 16px}.admin-select-label{max-width:360px;margin-bottom:16px}.admin-event{border:1px solid var(--border);border-radius:10px;margin:10px 0;padding:13px 15px}.admin-event summary{cursor:pointer;color:var(--ink);font-size:13px;line-height:1.8;overflow-wrap:anywhere}.admin-event summary>*{margin-right:12px}.admin-event summary>span:last-child{color:var(--muted)}
.admin-dialog,.account-action-dialog,.location-dialog{color:var(--ink);background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:24px;max-height:85dvh;overflow:auto;max-width:calc(100vw - 32px);box-shadow:0 20px 80px #10203633}.admin-dialog{width:940px}.account-action-dialog,.location-dialog{width:560px}.admin-dialog::backdrop,.account-action-dialog::backdrop,.location-dialog::backdrop{background:#11294270;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-heading h2{font-size:23px;margin:0}.account-action-dialog h2{font-size:24px;margin-top:0}.account-action-dialog p,.location-dialog p{color:var(--text);font-size:14px}.account-action-dialog input,.location-dialog input{width:100%;min-width:0;background:var(--surface);color:var(--ink);border:1px solid var(--border);padding:11px;border-radius:9px}.location-dialog .tm-search{margin:10px 0 16px}.location-dialog label{font-size:13px}.location-dialog .dialog-actions{margin-top:18px}
.notification-dropdown{position:fixed;z-index:1000;right:max(16px,calc((100vw - 1480px)/2));width:min(420px,calc(100vw - 32px));max-height:min(76dvh,calc(100dvh - 100px));overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:16px;box-shadow:0 16px 48px #12345a26;padding:20px}.notification-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.notification-heading h2{font-size:21px;line-height:1.3;margin:0}.notification-toolbar{display:flex;gap:10px;margin:14px 0 2px}.notification-toolbar .button{min-height:34px;font-size:12px;padding:6px 11px}.notification-dropdown h3{font-size:16px;margin:8px 0}.notification-dropdown article{padding:18px 0;border-bottom:1px solid var(--border)}.notification-dropdown small{font-size:11px;color:var(--muted)}.notification-dropdown p{font-size:13px;line-height:1.7;overflow-wrap:anywhere;color:var(--text);margin:8px 0}.notification-settings{margin-top:16px}.notification-settings summary{cursor:pointer;font-size:13px}.notification-settings .dialog-actions{margin:12px 0}.tm-unread{border-left:4px solid #1677e8}
.tm-calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.tm-calendar-toolbar h2{font-size:23px;text-align:center;margin:0}.tm-calendar-grid,.tm-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.tm-weekdays{text-align:center;font-size:12px;color:var(--muted);margin:20px 0 8px}.cal-day{border:1px solid var(--border);border-radius:10px;min-height:86px;padding:9px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px}.cal-day.today{border-color:#1677e8}.cal-day.selected{background:var(--soft-surface);box-shadow:inset 0 0 0 1px #1677e8}.cal-day small{font-size:11px}.cal-trip{font-size:10px;color:var(--ink);background:var(--soft-surface);border-radius:4px;padding:2px 4px}.tm-content .tm-agenda{flex-wrap:wrap}.tm-content .form-grid{gap:18px}
.tm-cookie-choice{position:fixed;z-index:900;bottom:16px;left:16px;right:16px;max-width:660px;margin:auto;background:var(--surface);border:1px solid var(--border);box-shadow:0 12px 50px #0b3c9120;border-radius:16px;padding:20px}.tm-cookie-choice h2{font-size:20px;margin:0}.tm-cookie-choice p{font-size:13px;margin:10px 0;color:var(--text)}.tm-cookie-choice .button{font-size:12px;margin:0 6px 8px 0}.tm-cookie-choice a{font-size:13px}
.tm-grid#tm-live-overview{margin-top:22px;grid-template-columns:1fr}.tm-temp{font-size:40px;color:var(--ink);font-weight:700}.tm-forecast{min-width:0;background:var(--soft-surface)}.map-location-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}.map-location-actions p{margin:0}.tm-map{height:clamp(320px,55vh,560px);width:100%;display:block;border:0;border-radius:12px}.weather-icon{display:inline-block;font-size:1.1em;vertical-align:middle}.weather-sun{color:#d99407;animation:weather-turn 18s linear infinite}.weather-cloud,.weather-wind{color:#7893b0;animation:weather-sway 3s ease-in-out infinite}.weather-rain,.weather-snow{animation:weather-fall 2s ease-in-out infinite}.tm-loader{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;color:var(--muted);font-size:15px}.tm-loader img{border-radius:18px;box-shadow:0 0 0 14px var(--soft-surface);animation:tm-pulse 1.8s ease-in-out infinite}.tm-pulse-dots{display:inline-block;letter-spacing:5px;color:#1677e8;animation:tm-pulse 1.3s ease-in-out infinite;margin-left:8px}@keyframes tm-pulse{50%{opacity:.4;transform:scale(.94)}}@keyframes weather-turn{to{transform:rotate(360deg)}}@keyframes weather-sway{50%{transform:translateX(7px)}}@keyframes weather-fall{50%{transform:translateY(5px);opacity:.65}}
html[data-theme=dark] .tm-content label,html[data-theme=dark] .tm-sidebar-note,html[data-theme=dark] .profile-grid dt,html[data-theme=dark] .brand{color:var(--ink)}html[data-theme=dark] .tm-place-option,html[data-theme=dark] .tm-save,html[data-theme=dark] .cal-trip{background:var(--soft-surface);color:var(--ink)}html[data-theme=dark] .error{background:#3d252b;color:#ffd1d1;border-color:#74515c}html[data-theme=dark] .success{background:#153b32;color:#bcf2d8;border-color:#477965}
@media(max-width:1100px){.tm-layout{grid-template-columns:180px minmax(0,1fr);gap:22px;width:calc(100% - 36px)}.tm-sidebar{padding-right:14px}.tm-content{padding:26px 0 40px}.tm-card{padding:20px}.admin-facts{gap:10px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){.header-row{gap:8px}.brand{font-size:21px!important;gap:5px}.brand .compass-logo{width:30px;height:30px}.header .container{padding-left:14px;padding-right:14px}.tm-location{max-width:110px;font-size:11px;padding:7px}.tm-bell{min-width:30px}.header-row>.actions{gap:0}.tm-layout{display:block;width:calc(100% - 28px)}.tm-sidebar{display:none}.tm-content{padding:22px 0 32px}.tm-title h1,.tm-content>h1{font-size:29px}.tm-content h2{font-size:21px}.tm-card,.tm-content .panel{padding:18px}.admin-overview-grid,.admin-facts,.settings-grid{grid-template-columns:1fr}.admin-toolbar{gap:12px;align-items:stretch}.admin-toolbar label{max-width:none}.admin-search{flex-wrap:wrap;align-items:stretch}.admin-search>label{max-width:none;flex-basis:100%}.admin-toolbar>.button{align-self:flex-start}.notification-dropdown{right:10px;width:calc(100vw - 20px);padding:17px}.notification-heading h2{font-size:20px}.admin-dialog,.account-action-dialog,.location-dialog{padding:18px;max-width:calc(100vw - 20px)}.tm-calendar-grid,.tm-weekdays{gap:3px}.cal-day{min-height:64px;padding:5px;border-radius:7px;font-size:12px}.cal-day small{font-size:9px}.cal-trip{font-size:9px;padding:1px}.tm-calendar-toolbar h2{font-size:18px}.tm-calendar-toolbar .button{padding:8px 12px}.tm-temp{font-size:34px}.tm-cookie-choice{padding:16px;bottom:8px;left:8px;right:8px}.footer-grid{gap:24px}.tm-content .form-grid{grid-template-columns:1fr}.tm-content input:not([type=checkbox]),.tm-content select,.tm-content textarea{font-size:16px}.tm-content .profile-grid{grid-template-columns:1fr}.notification-dropdown .button,.dialog-actions .button{min-height:40px}.tm-content .tm-agenda{gap:12px}}
@media(max-width:370px){.brand{font-size:18px!important}.tm-location{max-width:85px}.tm-bell{min-width:25px}.header-row{gap:5px}.menu summary{width:36px;height:40px}}
@media(prefers-reduced-motion:reduce){.tm-loader img,.tm-pulse-dots,.weather-icon{animation:none!important}}

.tm-weather-now h2{font-size:48px;margin:14px 0}.admin-toolbar>button{align-self:flex-end}.settings-actions .button,.theme-options .button{margin:0}
