/* Mobile UI 2.0 — spatial campus design. Shared Android / WeChat UI. */

/* Desktop review presentation. */
.m-preview-toolbar { display:flex; align-items:center; gap:12px; }
.m-preview-toolbar .segmented { background:#edf1ec; border:1px solid #dce4db; padding:4px; }
.m-preview-toolbar .segmented button { min-height:34px; padding-inline:16px; font-size:12px; }
.m-preview-toolbar .segmented button.active { color:#24574a; }
.phone-stage { display:grid; grid-template-columns:minmax(190px,1fr) 406px minmax(180px,1fr); gap:35px; padding:12px 14px 38px; align-items:center; }
.m-preview-copy { padding-bottom:65px; }
.m-preview-kicker { font-size:9px; font-weight:600; letter-spacing:2px; color:#799085; }
.m-preview-copy h2 { margin:25px 0 19px; color:#1b4338; font-size:39px; font-weight:650; line-height:1.45; letter-spacing:-1.8px; }
.m-preview-copy h2>span { display:inline-block; font-size:38px; color:#80a85c; margin-left:8px; }
.m-preview-copy>p { font-size:13px; line-height:1.9; color:#819086; }
.m-preview-lines { display:grid; margin:33px 0; gap:0; max-width:230px; }
.m-preview-lines>span { padding:14px 0; display:flex; align-items:center; gap:20px; font-size:13px; color:#456556; border-bottom:1px solid #dfe6de; }
.m-preview-lines b { font-size:10px; font-weight:400; color:#91a18c; font-family:Consolas,monospace; }
.m-preview-copy>small { font-size:11px; line-height:1.9; color:#93a096; }
.m-preview-notes { max-width:260px; padding-left:14px; }
.m-preview-notes h3 { font-size:24px; line-height:1.65; font-weight:500; margin:20px 0 29px; color:#345445; }
.m-preview-notes>div { display:flex; gap:16px; margin:27px 0; }
.m-preview-notes>div>span { font:10px Consolas,monospace; color:#8e9f8a; line-height:21px; }
.m-preview-notes b { font-size:13px; color:#466454; font-weight:500; }
.m-preview-notes small { display:block; font-size:11px; line-height:1.8; margin-top:5px; color:#8c9b90; }
.m-preview-footnote { margin-top:32px; color:#96a296; font-size:10px; line-height:1.9; }

/* Phone frame and mobile foundations. */
.app-phone {
  --accent:#235e4e; --accent-rgb:35,94,78; --m-ink:#183e33; --m-muted:#7b8c7d;
  --m-paper:#f5f6f0; --m-lime:#d5ebaa; --m-line:#e2e7dc;
  width:406px; height:844px; min-height:0; max-height:none;
  border:8px solid #263e34; border-radius:46px; background:var(--m-paper);
  display:flex; flex-direction:column; overflow:hidden; isolation:isolate; position:relative;
  color:var(--m-ink); font-size:14px; line-height:1.5;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  box-shadow:0 25px 65px #173b2922,0 0 0 1px #fff9 inset;
}
.app-phone button, .mobile-overlay button { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.app-phone button { font-family:inherit; }
.app-phone button:focus-visible { outline:2px solid #597e3b; outline-offset:-3px; }
.app-phone .phone-status { height:29px; min-height:29px; padding:9px 23px 2px; display:flex; align-items:center; justify-content:space-between; font-size:11px; font-weight:650; background:var(--m-paper); color:#244735; }
.phone-status>div { display:flex; align-items:center; gap:7px; }
.phone-status .icon { width:14px; height:14px; }
.m-signal { display:flex; align-items:flex-end; gap:2px; height:9px; }
.m-signal i { width:2px; border-radius:1px; background:#244735; }
.m-signal i:nth-child(1) { height:3px; }.m-signal i:nth-child(2) { height:5px; }.m-signal i:nth-child(3) { height:7px; }.m-signal i:nth-child(4) { height:9px; }
.m-battery { width:19px; height:9px; border:1px solid #24473580; border-radius:2px; padding:1px; position:relative; }
.m-battery>i { height:100%; width:80%; display:block; background:#244735; border-radius:1px; }
.m-battery:after { content:""; position:absolute; right:-3px; top:2px; height:3px; width:2px; background:#24473580; }
.app-phone .phone-top { height:56px; min-height:56px; padding:8px 22px 9px; display:flex; align-items:center; justify-content:space-between; background:var(--m-paper); border:0; }
.m-app-brand { display:flex; align-items:center; gap:9px; padding:0; text-align:left; min-height:40px; }
.m-app-brand>span { width:30px; height:30px; border-radius:9px 9px 9px 2px; background:#204c3e; color:#e2efc9; display:grid; place-items:center; }
.m-app-brand>span>.icon { width:21px; height:21px; stroke-width:1.6; }
.m-app-brand b { font-size:15px; font-weight:650; letter-spacing:.7px; line-height:1.4; }
.m-app-brand small { display:block; color:#81937d; font-size:7px; letter-spacing:1.4px; font-weight:500; margin-top:1px; }
.m-campus-pill { display:flex; align-items:center; gap:6px; font-size:10px; color:#5b7562; }
.m-campus-pill i { height:5px; width:5px; border-radius:50%; background:#6f9860; box-shadow:0 0 0 3px #e7ecdf; }
.m-wechat-capsule { width:77px; height:29px; border:1px solid #d8dfd2; border-radius:18px; display:flex; justify-content:space-around; align-items:center; color:#294a38; font-size:15px; }
.m-wechat-capsule>i { width:1px; height:14px; background:#d8dfd2; }
.app-phone .phone-content { flex:1; min-height:0; padding:13px 21px 0; overflow-x:hidden; overflow-y:auto; scrollbar-width:none; overscroll-behavior:contain; }
.app-phone .phone-content::-webkit-scrollbar { display:none; }
.app-phone .phone-nav { display:grid; grid-template-columns:repeat(4,1fr); flex-shrink:0; height:77px; min-height:77px; padding:9px 13px 19px; margin:0; border:0; background:#fdfefb; box-shadow:0 -1px 0 #e4e8de,0 -8px 24px #2c492404; position:relative; z-index:5; gap:4px; }
.app-phone .phone-nav:after { content:""; height:3px; width:88px; border-radius:4px; position:absolute; bottom:6px; left:calc(50% - 44px); background:#31503e; }
.app-phone .phone-nav button { min-height:48px; color:#91a08c; border-radius:15px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:0; }
.app-phone .phone-nav button>span { display:grid; place-items:center; width:45px; height:25px; }
.app-phone .phone-nav button .icon { width:21px; height:21px; stroke-width:1.6; }
.app-phone .phone-nav button b { font-size:10px; font-weight:500; }
.app-phone .phone-nav button.active { color:#284d34; background:#e7efd9; }
.app-phone .phone-nav button.active .icon { stroke-width:1.9; }
.m-scroll-end { padding:25px 0 20px; text-align:center; font-size:7px; letter-spacing:1px; color:#a2ad99; }
.m-scroll-end>span { display:block; font-size:9px; letter-spacing:.4px; margin-top:6px; }
.app-phone .blue,.mobile-overlay .blue { color:#2d664b; background:#e9f0de; }
.app-phone .teal,.mobile-overlay .teal { color:#397466; background:#e5efe6; }
.app-phone .violet,.mobile-overlay .violet { color:#77734e; background:#f0efdf; }
.app-phone .amber,.mobile-overlay .amber { color:#9f7744; background:#f5ecdb; }
.m-status { display:inline-flex; align-items:center; border-radius:5px; padding:4px 8px; white-space:nowrap; font-size:10px; line-height:1.5; font-weight:500; }
.m-status.gray { color:#8a9483; background:#edf0e8; }
.m-primary.btn { min-height:44px; padding:10px 14px; font-size:12px; font-weight:500; border:1px solid #275f4b; border-radius:11px; color:#fff; background:#275f4b; box-shadow:none; }
.m-primary.btn:hover { background:#194b3a; border-color:#194b3a; color:#fff; }
.m-primary.btn .icon { height:15px; width:15px; }
.m-primary.btn.small { min-height:42px; padding:9px 13px; font-size:11px; border-radius:9px; }
.m-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:33px; margin:21px 0 9px; }
.m-section-head h3 { font-size:16px; font-weight:650; color:#284534; letter-spacing:-.4px; }
.m-section-head .link { display:flex; align-items:center; min-height:36px; color:#7b8e72; font-size:10px; padding:0; font-weight:400; }
.m-empty { padding:32px 20px; background:#fbfcf7; border:1px dashed #d4dfcb; border-radius:18px; text-align:center; line-height:1.8; color:#8b9a80; }
.m-empty>.icon { width:35px; height:35px; color:#9aaf8b; stroke-width:1.3; margin-bottom:10px; }
.m-empty h3 { color:#58714d; font-size:14px; margin-bottom:6px; }
.m-empty p { font-size:12px; }
.m-page-intro { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 20px; }
.m-page-intro p { font-size:8px; letter-spacing:1.8px; font-weight:600; color:#97a18b; margin-bottom:5px; }
.m-page-intro h2 { font-size:29px; font-weight:600; letter-spacing:-1.3px; line-height:1.4; color:#244332; }
.m-page-intro h2>span { color:#9abb70; margin-left:3px; }
.m-round-button { width:43px; height:43px; display:grid; place-items:center; background:#eaf0e0; border:1px solid #dfe7d6; border-radius:50%; color:#577b4d; }
.m-round-button .icon { width:18px; height:18px; }
.m-subtle-note { display:flex; justify-content:center; align-items:center; gap:5px; color:#97a18b; font-size:9px; line-height:1.8; margin-top:19px; }
.m-subtle-note>.icon { width:12px; height:12px; flex-shrink:0; }

/* Home: a place to explore, followed by today's task. */
.m-welcome { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 0 18px; }
.m-welcome p { color:#8e9b83; font-size:10px; margin-bottom:4px; }
.m-welcome h2 { display:flex; align-items:center; gap:6px; font-size:25px; line-height:1.4; font-weight:600; letter-spacing:-1px; }
.m-greeting-dot { width:7px; height:7px; border-radius:50%; background:#bed57c; align-self:flex-end; margin-bottom:7px; }
.m-avatar { width:42px; height:42px; border-radius:50%; background:#e4ebd8; color:#536f40; display:grid; place-items:center; font-size:17px; font-weight:500; border:3px solid #fafbf7; position:relative; }
.m-avatar>span { position:absolute; width:9px; height:9px; border:2px solid #f5f6f0; border-radius:50%; right:0; bottom:-1px; background:#91b76b; }
.m-home-space { position:relative; height:225px; background:#1e5145; color:#eff4e9; border-radius:23px 23px 6px 23px; overflow:hidden; box-shadow:0 10px 18px #2b513710; }
.m-hero-grid { position:absolute; inset:0; background-image:linear-gradient(#c9e3b708 1px,transparent 1px),linear-gradient(90deg,#c9e3b708 1px,transparent 1px); background-size:27px 27px; mask-image:linear-gradient(90deg,transparent,#000); }
.m-home-space:before { content:""; position:absolute; width:240px; height:240px; background:#b0d5a70d; border:1px solid #bed5ac14; border-radius:50%; right:-50px; top:-85px; }
.m-space-caption { position:relative; z-index:2; padding:19px 19px 0; }
.m-eyebrow { font-size:7px; letter-spacing:1.4px; color:#bdd6b1; font-weight:500; }
.m-space-caption h3 { font-size:21px; line-height:1.5; letter-spacing:-.8px; font-weight:500; margin:9px 0 0; color:#f0f5e4; }
.m-space-name { display:block; margin-top:11px; font-size:10px; color:#c0d5bf; max-width:200px; }
.m-home-space>.m-space-art { position:absolute; width:264px; height:205px; top:26px; right:-41px; z-index:1; transform:rotate(-3deg); filter:drop-shadow(0 15px 20px #032e2b25); }
.m-space-bottom { position:absolute; bottom:0; left:0; right:0; height:41px; padding:0 16px 0 19px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #cde6c620; background:#174c4380; backdrop-filter:blur(5px); z-index:3; }
.m-space-bottom>span { font-size:9px; color:#c1d5b8; display:flex; align-items:center; gap:6px; }
.m-space-bottom i { height:4px; width:4px; background:#d2e5a5; border-radius:50%; }
.m-space-bottom button { display:flex; align-items:center; gap:5px; font-size:9px; color:#e3eecf; min-height:40px; }
.m-space-bottom .icon { height:12px; width:12px; }
.m-shortcuts { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0 1px; }
.m-shortcuts>button { display:flex; align-items:center; gap:8px; padding:14px 12px; min-height:66px; border-radius:13px; text-align:left; background:#eaf0df; min-width:0; }
.m-shortcuts>button:nth-child(2) { background:#eceee5; }
.m-quick-icon { width:28px; height:32px; display:grid; place-items:center; color:#527143; flex-shrink:0; }
.m-quick-icon>.icon { width:24px; height:24px; stroke-width:1.5; }
.m-shortcuts b { display:block; font-size:12px; font-weight:600; white-space:nowrap; color:#3f5c34; }
.m-shortcuts small { display:block; margin-top:4px; color:#7f916d; font-size:9px; white-space:nowrap; }
.m-shortcuts>button>.icon { display:none; }
.m-booking-card { border:1px solid #e0e6d8; border-radius:15px; overflow:hidden; background:#fffefa; min-width:0; }
.m-booking-card.featured { border-radius:17px; border-color:#dde5d1; background:#fcfdf7; }
.m-booking-main { display:block; width:100%; text-align:left; padding:15px 15px 13px; min-width:0; }
.m-card-top { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.m-date { font-size:9px; letter-spacing:.2px; color:#87967a; }
.featured .m-date { font-size:8px; letter-spacing:1px; }
.m-booking-time { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:11px 0 5px; }
.m-booking-time strong { font-size:27px; color:#2d4b32; letter-spacing:-1px; font-weight:500; line-height:1.4; font-variant-numeric:tabular-nums; white-space:nowrap; }
.m-booking-time strong>span { font-size:15px; margin:0 7px; color:#a3b291; font-weight:400; }
.m-booking-time>span { display:block; border:1px solid #dfe7d3; border-radius:5px; padding:3px 7px; font:10px Consolas,monospace; color:#6e8958; }
.m-booking-main h3 { font-size:13px; font-weight:500; color:#3b5436; line-height:1.7; margin:4px 0 0; overflow-wrap:anywhere; }
.m-booking-room { margin-top:4px; color:#8e9c81; font-size:9px; }
.m-booking-bottom { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:8px 12px 8px 15px; min-height:53px; border-top:1px dashed #e2e8d8; }
.m-booking-bottom>span { display:flex; align-items:center; gap:4px; color:#929f84; font-size:9px; line-height:1.7; }
.m-booking-bottom>span>.icon { width:12px; height:12px; flex-shrink:0; }
.m-booking-bottom .link { min-height:38px; display:flex; align-items:center; font-size:10px; white-space:nowrap; color:#5b7d43; padding:0; }
.featured .m-booking-bottom .m-primary { background:#d6e9ae; color:#3b5730; border-color:#d6e9ae; }
.m-metric-grid { display:grid; grid-template-columns:repeat(var(--metric-count,3),minmax(0,1fr)); gap:0; border:1px solid #e3e8da; background:#fdfef8; border-radius:15px; overflow:hidden; }
.m-metric { min-width:0; text-align:left; background:none; padding:15px 11px 13px; border-right:1px solid #e7ecdf; border-bottom:1px solid #e7ecdf; }
.m-metric:nth-child(3n) { border-right:0; }
.m-metric:nth-last-child(-n+3) { border-bottom:0; }
.m-metric-label { display:flex; align-items:center; gap:5px; font-size:10px; color:#7d9070; }
.m-metric-label>.icon { width:13px; height:13px; color:#8fa17b; stroke-width:1.5; }
.m-metric-value { display:block; font-size:25px; font-weight:500; letter-spacing:-.7px; margin:9px 0; line-height:1.3; font-variant-numeric:tabular-nums; }
.m-metric-value>small { font-size:8px; font-weight:400; margin-left:2px; color:#9aa68c; letter-spacing:0; }
.m-metric-note { display:flex; align-items:center; gap:3px; font-size:7px; color:#a0ac93; white-space:nowrap; }
.m-metric-note i { height:3px; width:3px; border-radius:50%; background:#a0b97d; }
.m-metric-note>.icon { margin-left:auto; width:9px; height:9px; }

/* Devices: architectural overview and equipment control cards. */
.m-control-space { position:relative; padding:18px 18px 0; border-radius:21px 21px 5px 21px; background:#244e42; color:#f1f4e7; overflow:hidden; }
.m-control-space-copy { position:relative; z-index:2; }
.m-control-space-copy>span { font-size:8px; letter-spacing:.8px; color:#a5be9f; }
.m-control-space h3 { font-size:32px; letter-spacing:-1px; font-weight:400; line-height:1.3; margin:4px 0 3px; color:#f2f6e7; }
.m-control-space-copy p { font-size:10px; color:#b8cbb0; }
.m-control-space>.m-plan-art { position:absolute; width:175px; height:128px; right:2px; top:2px; color:#8cac91; opacity:.85; }
.m-device-summary { display:flex; align-items:center; gap:19px; border-top:1px solid #bad0a926; margin-top:19px; padding:11px 0; color:#b6c8ab; font-size:9px; position:relative; z-index:2; }
.m-device-summary>span { display:flex; align-items:center; gap:6px; }
.m-device-summary i { width:4px; height:4px; border-radius:50%; background:#d3e99e; }
.m-device-summary b { font-size:17px; font-weight:400; color:#e0edc7; letter-spacing:-.3px; }
.m-device-summary>small { font-size:8px; margin-left:auto; color:#8fac8f; }
.m-room-tabs { display:flex; align-items:center; gap:23px; overflow-x:auto; scrollbar-width:none; margin:14px 0 10px; border-bottom:1px solid #e0e6d6; }
.m-room-tabs>button { position:relative; white-space:nowrap; min-height:44px; padding:8px 0 10px; font-size:12px; color:#91a082; }
.m-room-tabs>button.active { color:#355c37; font-weight:600; }
.m-room-tabs>button.active:after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:#638449; }
.m-search { display:flex; align-items:center; gap:7px; height:41px; background:#ecefe5; border-radius:10px; padding:0 9px 0 12px; }
.m-search>.icon { width:14px; height:14px; color:#a1ac91; }
.m-search input { width:100%; min-width:0; border:0; box-shadow:none; padding:0; height:39px; background:none; font-size:11px; color:#526d44; }
.m-search input::placeholder { color:#9eaa90; }
.m-search button { min-height:41px; padding:0 6px; white-space:nowrap; font-size:10px; color:#6f8758; }
.m-filter-row { display:flex; gap:18px; margin:10px 0 13px; overflow-x:auto; scrollbar-width:none; }
.m-filter-row button { display:flex; align-items:center; gap:4px; min-height:41px; font-size:11px; white-space:nowrap; color:#9aa48d; padding:3px 0; }
.m-filter-row button.active { color:#345a37; font-weight:600; }
.m-filter-row small { padding:1px 5px; border-radius:4px; font-size:8px; background:#e7eddc; color:#7c925f; }
.m-device-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.m-device-list>.m-empty { grid-column:1/-1; }
.app-phone .phone-device { margin:0; min-width:0; background:#fdfef9; border:1px solid #e1e6d8; border-radius:17px; padding:12px 12px 0; overflow:hidden; box-shadow:none; }
.app-phone .phone-device.is-on { background:#edf2e3; border-color:#dce5cd; }
.m-device-top { display:flex; justify-content:space-between; align-items:center; gap:3px; min-width:0; }
.m-device-category { display:flex; align-items:center; gap:4px; color:#91a080; font-size:8px; white-space:nowrap; }
.m-device-category>.icon { width:11px; height:11px; stroke-width:1.5; }
.m-device-status { display:flex; align-items:center; gap:4px; font-size:8px; white-space:nowrap; color:#819671; }
.m-device-status>i { width:4px; height:4px; border-radius:50%; background:#86a46a; }
.m-device-status.unavailable { color:#ae996d; }.m-device-status.unavailable>i { background:#bba174; }
.m-device-name { display:block; text-align:left; padding:11px 0 0; width:100%; min-height:135px; }
.app-phone .phone-device .m-device-name h3 { color:#3a5833; font-size:13px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; margin:0 0 3px; }
.app-phone .phone-device .m-device-name p { font-size:10px; color:#889c78; margin:0; }
.m-equipment-art { width:calc(100% + 10px); height:91px; margin:0 -5px -3px; display:block; }
.m-device-operation { display:flex; align-items:center; justify-content:space-between; gap:4px; margin:1px 0 11px; }
.m-device-operation strong { display:block; color:#6d8759; font-size:11px; font-weight:500; }
.m-device-operation div>span { display:block; font-size:9px; color:#8d9f7a; margin-top:2px; white-space:nowrap; }
.m-power-button { width:44px; height:44px; min-width:44px; display:grid; place-items:center; border-radius:50%; background:#e8eddf; color:#99a889; border:1px solid #dce5cf; transition:background .2s,box-shadow .2s; }
.m-power-button.is-on { background:#315e41; color:#e6f0c8; border-color:#315e41; box-shadow:0 4px 8px #315e411c; }
.m-power-button:disabled { opacity:.5; cursor:not-allowed; }
.m-power-button>.icon { width:18px; height:18px; }
.m-power-button .spinner { width:17px; height:17px; border-width:2px; border-color:#d8e8bb60; border-top-color:#e1edc9; }
.m-device-debug { display:flex; justify-content:center; align-items:center; gap:5px; min-height:40px; width:calc(100% + 24px); margin-left:-12px; padding:6px; border-top:1px solid #dfe7d3; color:#7c9368; font-size:10px; }
.m-device-debug>.icon { width:9px; height:9px; }
.is-unavailable .m-equipment-art { filter:grayscale(1); opacity:.65; }
.m-home-devices .m-device-name { min-height:127px; }.m-home-devices .m-equipment-art { height:79px; }

/* Reservations: a week strip and an actual time axis. */
.m-calendar { padding:0 0 17px; border-bottom:1px solid #e1e7d7; }
.m-calendar-caption { display:flex; align-items:center; justify-content:space-between; margin:0 0 16px; }
.m-calendar-caption h3 { font-size:23px; font-weight:400; color:#456438; letter-spacing:-.6px; font-variant-numeric:tabular-nums; }
.m-calendar-caption h3>span { font-size:16px; color:#aab698; margin:0 3px; font-weight:300; }
.m-calendar-caption h3>small { margin-left:6px; font-size:11px; color:#93a27c; }
.m-calendar-caption button { display:flex; align-items:center; gap:7px; min-height:38px; font-size:9px; color:#a1ac90; }
.m-calendar-caption button.active { color:#6f8b4d; }
.m-calendar-caption .icon { width:13px; height:13px; }
.m-calendar-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.m-calendar-week button { min-height:80px; padding:9px 0 6px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; position:relative; color:#7f9270; }
.m-calendar-week button>span { font-size:9px; color:#a1ad91; }
.m-calendar-week strong { font-size:18px; font-weight:400; font-variant-numeric:tabular-nums; }
.m-calendar-week i { width:4px; height:4px; border-radius:50%; background:transparent; }
.m-calendar-week i.has-booking { background:#a5bf7d; }
.m-calendar-week button.today { background:#dce8bf; color:#365731; }
.m-calendar-week button.today>span { color:#778d56; }
.m-calendar-week button.selected { background:#315e41; color:#f0f4de; }
.m-calendar-week button.selected>span { color:#c8d6b3; }
.m-calendar-week button.selected i.has-booking { background:#dbebba; }
.m-booking-tabs { display:flex; align-items:center; gap:21px; margin:13px 0 16px; overflow-x:auto; scrollbar-width:none; }
.m-booking-tabs button { display:flex; align-items:center; gap:4px; padding:8px 0; min-height:40px; white-space:nowrap; font-size:11px; color:#9aa78c; }
.m-booking-tabs button.active { color:#315b33; font-weight:600; }
.m-booking-tabs i { display:grid; place-items:center; width:14px; height:14px; border-radius:4px; background:#e8eeda; color:#879e63; font-size:8px; font-style:normal; font-weight:400; }
.m-schedule-caption { display:flex; justify-content:space-between; align-items:center; margin:0 0 15px; }
.m-schedule-caption>span { color:#6d8457; font-size:11px; font-weight:500; }
.m-schedule-caption small { font-size:9px; color:#9eaa8e; }
.m-booking-list { display:grid; gap:19px; }
.m-timeline-entry { display:grid; grid-template-columns:51px minmax(0,1fr); gap:13px; }
.m-time-rail { padding-top:7px; display:flex; flex-direction:column; align-items:flex-start; position:relative; }
.m-time-rail>span { font-size:8px; color:#99a58b; margin-bottom:5px; }
.m-time-rail strong { font-size:17px; letter-spacing:-.5px; font-weight:500; color:#587447; line-height:1.5; }
.m-time-rail small { font-size:10px; margin-top:1px; color:#a1ac91; }
.m-time-rail>i { position:absolute; height:calc(100% + 19px); width:1px; background:#e2e9d4; top:10px; right:-8px; }
.m-time-rail>i:before { content:""; position:absolute; height:6px; width:6px; top:19px; left:-3px; border:2px solid #f5f6f0; box-sizing:content-box; background:#a5bb7d; border-radius:50%; }
.m-timeline-entry:last-child .m-time-rail>i { height:calc(100% - 17px); }
.m-booking-space { display:flex; align-items:center; justify-content:space-between; margin:11px 0 2px; }
.m-booking-space strong { font-size:24px; letter-spacing:-.8px; font-weight:400; color:#375b32; }
.m-booking-space>.icon { width:14px; height:14px; color:#a5b191; }
.m-timeline-entry .m-booking-main { padding:13px 13px 12px; }
.m-timeline-entry .m-booking-main h3 { font-size:12px; }
.m-timeline-entry .m-booking-bottom { padding:7px 10px; min-height:51px; gap:5px; }
.m-timeline-entry .m-booking-bottom>span { font-size:8px; max-width:52%; }
.m-timeline-entry .m-booking-bottom>span>.icon { display:none; }
.m-timeline-entry .m-booking-bottom .m-primary { min-height:38px; font-size:10px; padding:7px 9px; gap:4px; }
.m-timeline-entry .m-booking-bottom .m-primary>.icon { height:12px; width:12px; }

/* Personal: a campus pass, with a restrained service list. */
.m-profile-emblem { width:44px; height:44px; border:1px solid #dce5cf; border-radius:50%; display:grid; place-items:center; color:#809969; }
.m-profile-emblem>.icon { height:25px; width:25px; stroke-width:1.3; }
.m-identity { position:relative; overflow:hidden; border-radius:20px 20px 5px 20px; background:#254f41; color:#edf2df; padding:17px 19px 0; box-shadow:0 13px 24px #2e4d2920; }
.m-pass-heading { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.m-pass-heading>span { display:flex; align-items:center; gap:6px; font-size:10px; color:#bccfb1; }
.m-pass-heading>span>.icon { height:15px; width:15px; stroke-width:1.4; }
.m-pass-heading>small { font-size:7px; letter-spacing:1.7px; color:#8ca781; }
.m-identity-top { display:flex; align-items:center; gap:13px; position:relative; z-index:2; margin:24px 0 23px; }
.m-identity .m-avatar { width:48px; height:48px; background:#d6e6b7; color:#4f6e39; border:0; font-size:21px; border-radius:13px 13px 4px 13px; }
.m-identity h3 { display:flex; align-items:center; gap:9px; font-size:23px; font-weight:500; color:#f1f4e4; margin:0 0 4px; }
.m-identity h3>small { font-size:8px; font-weight:400; color:#d5e4be; padding:2px 6px; border:1px solid #bfd2a838; border-radius:4px; }
.m-identity p { font-size:10px; color:#a7c098; }
.m-identity-bottom { display:flex; justify-content:space-between; align-items:center; margin-bottom:17px; position:relative; z-index:2; }
.m-identity-bottom>div>span { display:block; font-size:6px; letter-spacing:1px; color:#8faa80; margin-bottom:5px; }
.m-identity-bottom strong { display:block; font-size:22px; letter-spacing:2.5px; font-weight:300; font-variant-numeric:tabular-nums; color:#d6e6be; line-height:1.3; }
.m-identity-bottom button { color:#b7cea3; width:40px; height:40px; min-width:40px; display:grid; place-items:center; border:1px solid #b5d59b2e; border-radius:9px; background:#b2ce9c09; }
.m-identity-bottom button>.icon { height:20px; width:20px; stroke-width:1.2; }
.m-pass-art { position:absolute; right:-21px; top:24px; width:173px; height:173px; opacity:.6; transform:rotate(-20deg); }
.m-pass-art>i { position:absolute; inset:0; border:1px solid #b7d19229; border-radius:24px; }
.m-pass-art>i:nth-child(2) { inset:13px; }.m-pass-art>i:nth-child(3) { inset:26px; }.m-pass-art>i:nth-child(4) { inset:39px; }
.m-pass-art>span { position:absolute; inset:0; display:grid; place-items:center; font-size:73px; font-family:serif; font-weight:400; color:#b8d58b16; transform:rotate(20deg); }
.m-pass-footer { border-top:1px solid #b4cc9929; padding:11px 0; display:flex; justify-content:space-between; align-items:center; position:relative; z-index:2; }
.m-pass-footer>span { display:flex; align-items:center; gap:5px; font-size:8px; color:#aac393; }
.m-pass-footer i { width:4px; height:4px; border-radius:50%; background:#c1d895; }
.m-pass-footer>b { font-size:6px; font-weight:400; letter-spacing:1.6px; color:#86a176; }
.m-profile-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:22px 0 8px; }
.m-profile-stats button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:0 8px; border-right:1px solid #dfe6d4; min-height:63px; }
.m-profile-stats button:last-child { border:0; }
.m-profile-stats strong { font-size:27px; line-height:1.3; font-weight:400; color:#47643b; letter-spacing:-1px; }
.m-profile-stats span { display:flex; align-items:center; gap:4px; font-size:9px; color:#96a384; }
.m-profile-stats .icon { width:9px; height:9px; }
.m-service-list { display:grid; border-top:1px solid #e0e7d5; }
.m-service-row { display:flex; align-items:center; gap:13px; min-height:76px; padding:14px 1px; text-align:left; width:100%; border-bottom:1px solid #e0e7d5; }
.m-service-icon { display:grid; place-items:center; width:35px; height:35px; border-radius:10px; flex-shrink:0; }
.m-service-icon>.icon { width:18px; height:18px; stroke-width:1.5; }
.m-service-row b { font-size:13px; font-weight:500; color:#4c6740; }
.m-service-row small { display:block; font-size:10px; color:#8a9d75; margin-top:4px; }
.m-service-row>em { font-style:normal; font:8px Consolas,monospace; margin-left:auto; color:#b6bfa8; }
.m-service-row>.icon { width:13px; height:13px; color:#a5b393; }
.m-logout { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; margin:19px 0 0; width:100%; border:1px solid #dce4d0; border-radius:11px; color:#82906f; font-size:12px; background:#eef1e7; }
.m-logout>.icon { width:14px; height:14px; }
.m-brand-note { text-align:center; font-size:12px; color:#768c62; margin-top:24px; letter-spacing:1px; }
.m-brand-note>span { display:block; font-size:8px; letter-spacing:0; color:#a2ae93; margin-top:7px; }

/* Login belongs to the same spatial identity. */
.m-login-visual { height:226px; border-radius:23px 23px 5px 23px; position:relative; background:#254f41; overflow:hidden; padding:22px; }
.m-login-visual h2 { color:#eff4df; font-size:30px; font-weight:500; line-height:1.5; letter-spacing:-1px; margin-top:12px; position:relative; z-index:2; }
.m-login-visual h2>span { color:#bdd991; font-size:25px; margin-left:6px; }
.m-login-visual .m-space-art { position:absolute; width:247px; height:210px; right:-54px; bottom:-3px; }
.m-login form { margin-top:25px; }
.m-login-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:19px; }
.m-login-title h3 { font-size:19px; color:#375738; font-weight:500; }.m-login-title span { font-size:9px; color:#9ca98d; }
.m-login-school { display:flex; align-items:center; gap:7px; padding:12px; font-size:10px; color:#6b8558; border:1px solid #dce6ce; border-radius:10px; background:#eaf0df; margin-bottom:20px; }
.m-login-school>.icon { width:15px; height:15px; }.m-login-school>span { font-size:8px; color:#9daa87; margin-left:auto; }
.m-login .field { display:grid; gap:7px; margin-bottom:16px; }.m-login .field>span { font-size:11px; color:#7c906a; }
.m-login input { min-height:45px; padding:12px; font-size:14px; border:1px solid #dde5d3; border-radius:10px; background:#fdfef9; color:#597444; }
.m-login form>.btn { width:100%; margin-top:5px; }
.m-login-help { display:flex; justify-content:center; align-items:center; gap:5px; margin-top:14px; font-size:9px; color:#a0ad90; }.m-login-help>.icon { width:12px; height:12px; }

/* Mobile bottom sheets — contained by the phone in desktop preview. */
#overlay-root.mobile-overlay { --accent:#2c644e; --accent-rgb:44,100,78; color:#2d4e37; }
.mobile-overlay>.overlay { inset:auto; top:var(--mobile-top); left:var(--mobile-left); width:var(--mobile-width); height:var(--mobile-height); padding:42px 0 0; align-items:flex-end; background:#102c2869; border-radius:35px; overflow:hidden; backdrop-filter:blur(4px); }
.mobile-overlay .modal,.mobile-overlay .modal.drawer { position:relative; inset:auto; width:100%; max-width:none; margin:0; max-height:100%; display:flex; flex-direction:column; border-radius:24px 24px 0 0; background:#fcfdf8; box-shadow:0 -8px 30px #153c2920; animation:mobile-sheet-in .18s ease-out; }
.mobile-overlay .modal:before { content:""; width:30px; height:4px; min-height:4px; background:#d5decb; border-radius:4px; margin:9px auto 0; }
.mobile-overlay .modal-head { padding:14px 20px 15px; gap:10px; flex-shrink:0; border-color:#e5ebdb; }
.mobile-overlay .modal-head h2 { font-size:18px; color:#345b3c; line-height:1.5; font-weight:600; }.mobile-overlay .modal-head p { font-size:10px; color:#95a586; line-height:1.7; margin-top:4px; }
.mobile-overlay .modal-head .icon-btn { min-height:42px; min-width:42px; border-radius:50%; background:#edf2e5; color:#95a785; }
.mobile-overlay .modal-body { padding:20px; overflow-y:auto; min-height:0; overscroll-behavior:contain; scrollbar-width:thin; font-size:13px; }
.mobile-overlay .modal-foot { padding:13px 20px 21px; display:flex; gap:10px; border-top:1px solid #e4ebd9; background:#fcfdf8; flex-shrink:0; }
.mobile-overlay .modal-foot>.btn { flex:1; min-height:44px; }
.mobile-overlay .btn { min-height:42px; border-radius:10px; font-size:12px; border-color:#dbe5cf; }.mobile-overlay .btn.primary { background:#2f634a; border-color:#2f634a; }
.mobile-overlay .btn.danger { color:#a17a57; background:#f4ede2; border-color:#ebdfcc; }
.mobile-overlay .form-grid { grid-template-columns:1fr; gap:16px; }.mobile-overlay .field { gap:7px; margin:0; }.mobile-overlay .field>span { font-size:12px; color:#789163; }
.mobile-overlay input:not([type=checkbox]),.mobile-overlay select,.mobile-overlay textarea { width:100%; min-height:45px; border-radius:10px; border-color:#dce6ce; background:#fffffc; font-size:14px; padding:11px 12px; color:#537144; }
.mobile-overlay textarea { min-height:88px; }.mobile-overlay .form-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:19px; padding-top:15px; }.mobile-overlay .form-actions>.btn { flex:1; min-height:43px; font-size:12px; }
.mobile-overlay .notice { font-size:11px; line-height:1.8; padding:12px; border-radius:11px; background:#edf3e2; border-color:#dee8cf; color:#78915e; margin:15px 0 0; }
.mobile-overlay .form-error { padding:12px; font-size:12px; line-height:1.7; border-radius:10px; margin-bottom:16px; }
.mobile-overlay .detail-grid { grid-template-columns:1fr 1fr; gap:17px 12px; margin:20px 0; }.mobile-overlay .detail-item>span { font-size:10px; color:#99aa8b; }.mobile-overlay .detail-item b { font-size:12px; line-height:1.7; overflow-wrap:anywhere; color:#5c794c; }
.mobile-overlay .badge { font-size:10px; }.mobile-overlay .badge.blue { color:#648348; background:#e6efd8; }
.mobile-overlay .stepper { gap:4px; margin-top:21px; }.mobile-overlay .step { font-size:9px; gap:4px; }.mobile-overlay .step b { width:20px; height:20px; font-size:10px; }
.mobile-overlay .m-section-head { margin-top:21px; }.m-device-detail { text-align:center; padding-bottom:17px; }
.m-detail-symbol { display:grid; place-items:center; width:62px; height:62px; border-radius:20px; background:#e8efdc; color:#749654; margin:1px auto 13px; }.m-detail-symbol>.icon { width:32px; height:32px; stroke-width:1.4; }
.m-device-detail h3 { font-size:18px; font-weight:500; color:#47623a; margin-bottom:6px; }.m-device-detail>p { font-size:11px; color:#9eac8e; margin-bottom:10px; }
.m-detail-control { display:flex; align-items:center; justify-content:space-between; padding:16px; border:1px solid #dfe7d3; border-radius:14px; background:#f0f4e7; }.m-detail-control strong { font-size:14px; color:#64804b; font-weight:500; }.m-detail-control p { font-size:11px; color:#9aac86; margin-top:4px; }
.mobile-overlay .m-detail-control .switch { width:52px; height:44px; background:transparent; }.mobile-overlay .m-detail-control .switch:after { content:""; position:absolute; inset:8px 0; border-radius:20px; background:#d6e0c8; }.mobile-overlay .m-detail-control .switch.on:after { background:#477147; }
.mobile-overlay .m-detail-control .switch:before { width:22px; height:22px; top:11px; left:3px; z-index:1; transform:none; }.mobile-overlay .m-detail-control .switch.on:before { left:27px; transform:none; }
.m-inline-note { display:flex; align-items:flex-start; gap:6px; color:#95a781; font-size:11px; line-height:1.8; margin:13px 0; }.m-inline-note>.icon { width:13px; height:13px; margin-top:3px; flex-shrink:0; }
.m-command-list { border:1px solid #e0e8d4; border-radius:12px; overflow:hidden; }.m-command-list>div { display:flex; align-items:center; gap:9px; padding:13px 11px; border-bottom:1px solid #e5ebdc; }.m-command-list>div:last-child { border:0; }
.m-command-icon { width:29px; height:29px; border-radius:9px; background:#e9f0dd; color:#829e61; display:grid; place-items:center; flex-shrink:0; }.m-command-icon>.icon { width:14px; height:14px; }.m-command-list b { font-size:12px; color:#6a8253; font-weight:500; }.m-command-list small { display:block; font-size:10px; color:#a2af93; margin-top:4px; }.m-command-list em { font-size:10px; color:#879f66; font-style:normal; margin-left:auto; }
.m-command-empty { color:#9fac8e; font-size:11px; line-height:1.8; }.m-metric-detail { text-align:center; padding:8px 0 16px; }.m-metric-detail>span { font-size:11px; color:#94a580; }.m-metric-detail strong { display:block; font-size:45px; letter-spacing:-1px; font-weight:400; color:#58763e; margin:9px 0; }.m-metric-detail strong>small { font-size:14px; margin-left:5px; color:#99aa85; letter-spacing:0; }.m-metric-detail>p { font-size:10px; color:#9aa98a; }
.m-device-result { text-align:center; padding:18px; background:#eff4e5; border-radius:15px; }.m-device-result h3 { color:#5f7c49; font-size:17px; font-weight:500; }.m-device-result p { font-size:12px; line-height:1.8; margin-top:10px; color:#95a67e; }

body[data-mobile-view="true"] #toast-root { position:fixed; inset:0; z-index:1000; pointer-events:none; }
body[data-mobile-view="true"] #toast-root .toast { position:fixed; top:auto; left:var(--mobile-toast-x,50%); bottom:var(--mobile-toast-bottom,105px); transform:translateX(-50%); max-width:min(335px,calc(100vw - 38px)); width:max-content; color:#edf4df; background:#254d3ef5; border:1px solid #d1e5b42b; border-radius:13px; padding:12px 15px; font-size:12px; line-height:1.7; box-shadow:0 8px 20px #24433125; }
body[data-mobile-view="true"] .toast>.icon { width:16px; height:16px; color:#c7e3a2; }body[data-mobile-view="true"] .toast.error>.icon { color:#ebcb99; }
.mobile-standalone { background:#e8ede3; min-height:100dvh; padding:20px; display:grid; place-items:center; }
.mobile-standalone .app-phone { height:min(844px,calc(100dvh - 40px)); }
@keyframes mobile-sheet-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1220px) { .phone-stage { grid-template-columns:minmax(180px,1fr) 406px; gap:25px; }.m-preview-notes { display:none; }.m-preview-copy h2 { font-size:32px; } }
@media(max-width:980px) { .phone-stage { grid-template-columns:1fr; padding-inline:0; }.m-preview-copy { display:none; }.app-phone { width:406px; } }
@media(max-width:700px) {
  body[data-mobile-view="true"] { background:#f5f6f0; }
  body[data-mobile-view="true"] .sidebar,body[data-mobile-view="true"] .topbar,body[data-mobile-view="true"] .breadcrumb,body[data-mobile-view="true"] .page-heading,body[data-mobile-view="true"] .footer { display:none; }
  body[data-mobile-view="true"] .main-shell,body[data-mobile-view="true"] .page { margin:0; padding:0; max-width:none; animation:none; }
  body[data-mobile-view="true"] .phone-stage { display:block; padding:0; margin:0; }
  .app-phone { width:100%; max-width:none; height:100dvh; min-height:0; max-height:none; border:0; border-radius:0; box-shadow:none; }
  .app-phone .phone-status { padding-top:max(9px,env(safe-area-inset-top)); }
  .app-phone .phone-top { padding-inline:22px; }
  .app-phone .phone-content { padding:13px 22px 0; }
  .app-phone .phone-nav { height:calc(77px + env(safe-area-inset-bottom)); min-height:calc(77px + env(safe-area-inset-bottom)); padding-bottom:calc(19px + env(safe-area-inset-bottom)); }
  .app-phone .phone-nav:after { bottom:max(6px,env(safe-area-inset-bottom)); }
  .mobile-standalone { display:block; padding:0; min-height:100dvh; }.mobile-standalone .app-phone { height:100dvh; }
  .mobile-overlay>.overlay { border-radius:0; }.mobile-overlay .modal-foot { padding-bottom:calc(20px + env(safe-area-inset-bottom)); }
}
@media(max-width:365px) {
  .app-phone .phone-content { padding-inline:17px; }.app-phone .phone-top { padding-inline:17px; }
  .m-home-space { height:225px; }.m-home-space>.m-space-art { width:245px; right:-42px; top:35px; }
  .m-space-caption h3 { font-size:20px; }.m-space-name { font-size:7px; }
  .m-shortcuts>button { padding-inline:9px; gap:6px; }.m-shortcuts small { font-size:8px; }
  .m-metric { padding-inline:9px; }.m-metric-value { font-size:23px; }
  .app-phone .phone-device { padding-inline:10px; }.m-device-debug { width:calc(100% + 20px); margin-left:-10px; }
  .m-timeline-entry { grid-template-columns:46px minmax(0,1fr); gap:11px; }.m-time-rail strong { font-size:15px; }
  .m-timeline-entry .m-booking-main { padding-inline:11px; }.m-timeline-entry .m-booking-bottom { padding-inline:8px; }
  .m-booking-bottom>span { font-size:8px; }.m-device-status { font-size:7px; }
  .m-identity { padding-inline:16px; }.m-pass-heading>span { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { .mobile-overlay .modal { animation:none; }.app-phone * { scroll-behavior:auto!important; } }

/* Compact the control overview so the first row of power controls is visible. */
.m-control-space{padding:15px 17px 0}.m-control-space h3{font-size:29px}.m-control-space-copy>span{font-size:9px}.m-device-summary{margin-top:13px;padding:9px 0}.m-control-space>.m-plan-art{width:161px;height:116px;top:0}.m-filter-row{margin:7px 0 10px}.m-filter-row button{min-height:36px}.m-room-tabs{margin-top:9px}
.app-phone .m-device-top{min-height:15px}.app-phone .m-device-status{font-size:9px}.app-phone .m-device-category{font-size:9px}
.app-phone .m-service-row{min-height:73px}.app-phone .m-pass-heading>span{font-size:11px}.app-phone .m-identity p{font-size:11px}.app-phone .m-identity-bottom>div>span{font-size:8px;letter-spacing:.5px}

.m-detail-equipment{display:block;width:220px;height:123px;margin:0 auto 5px;border-radius:28px;background:radial-gradient(ellipse,#e8efda,transparent 70%)}.m-detail-equipment .m-equipment-art{width:100%;height:123px;margin:0}
.mobile-overlay .m-metric-label{font-size:11px}.mobile-overlay .m-metric-value{color:#4b6f3d}.mobile-overlay .m-metric-grid{margin-top:5px}
