/* iBSMU 1.2: consistent geometry, optical type and restrained motion. */
:root{--spring:cubic-bezier(.22,1,.36,1);--float-shadow:0 2px 4px #15233803,0 12px 32px #15233808;--ai-blue:#66c5ff;--ai-pink:#f5a4db;--ai-aqua:#97e9e1}
html,body{background-color:var(--statusbar-color,var(--bg))}body{font-family:-apple-system,BlinkMacSystemFont,Onest,"Segoe UI",sans-serif;letter-spacing:-.015em;-webkit-font-smoothing:antialiased}button,input,textarea,select{font-family:inherit}button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:4px}button:disabled{cursor:default}.glyph,svg{stroke-linecap:round;stroke-linejoin:round}.glyph{flex-shrink:0}button:not(.ticket-card){transition:background-color .22s ease,border-color .22s ease,box-shadow .3s ease,color .2s ease}
.topbar{background:color-mix(in srgb,var(--bg) 88%,transparent);isolation:isolate}.topbar:before{content:'';position:absolute;bottom:100%;left:0;right:0;height:env(safe-area-inset-top);background:var(--statusbar-color);pointer-events:none}.brand-icon{box-shadow:0 2px 3px #0002,0 8px 16px #15233812}.brand strong{font-weight:650}.brand small{font-size:.64rem!important;white-space:nowrap}.icon-button{width:38px;height:38px}.top-actions{gap:8px}.view{padding-top:26px}.page-title,.home-title{font-weight:650;letter-spacing:-.045em}.page-sub{margin-top:9px}.home-welcome{margin-bottom:24px}.section-title{font-size:1.15rem;font-weight:650}.surface,.record-card,.menu-card,.calendar-panel,.course-list{box-shadow:var(--float-shadow)}.surface,.record-card{border-radius:24px}.record-title{font-weight:600;font-size:1.04rem}.status-badge{font-size:.67rem}.request-progress{gap:5px}.progress-step i{height:4px}.progress-step span{font-size:.6rem;line-height:1.3}.record-header{align-items:center;gap:10px}.record-buttons .text-button{min-height:40px}.day-focus{padding:25px;border-radius:28px;background:radial-gradient(ellipse at 100% 115%,#873b514d,transparent 65%),linear-gradient(125deg,#303943,#1f252e 65%)}.day-focus h2{font-size:1.35rem;font-weight:550;max-width:100%}.focus-link{min-height:43px}.home-metric{border-radius:21px;padding:18px}.home-metric strong{font-size:1.9rem}.home-metric span{font-size:.73rem}.home-metrics{gap:12px}.service-grid{gap:12px}.menu-card{border-radius:22px}.service-grid .menu-card{min-height:127px;padding:19px}.tile-symbol{width:38px;height:38px;border-radius:13px;border:1px solid var(--line);box-shadow:inset 0 1px var(--edge)}.tile-symbol .glyph{width:21px;height:21px}.menu-copy strong{font-weight:550;font-size:.9rem}.lesson-card{padding:20px 18px;border-radius:23px;gap:14px}.lesson-title{font-weight:600;font-size:.98rem}.lesson-kind{font-size:.6rem;font-weight:550}.lesson-meta{font-size:.73rem}.lesson-meta .glyph{width:15px}.lesson-clock strong{font-size:1rem}.day-button{transition:background .25s,color .25s,transform .35s var(--spring)}.day-button:active{transform:scale(.92)}.day-button.chosen strong{font-weight:600}.course-row{padding:20px 18px}.course-copy strong{font-weight:550;font-size:.92rem}.course-copy small{font-size:.7rem}.course-count{font-size:.72rem}.found-banner{border-radius:18px}.found-banner strong{font-weight:550}.found-banner>span{min-width:0}.found-banner .text-button{min-height:36px}.sync-info{font-size:.67rem;min-height:40px}
.bottom-nav{box-shadow:inset 0 1px 2px #ffffff80,0 10px 28px #15233812,0 28px 60px #15233808}.nav-item{min-height:52px}.nav-item svg{width:22px;height:22px;stroke-width:1.7}.nav-item span{font-size:.67rem}.dock-lens{transition:transform .5s var(--spring),width .5s var(--spring);background:linear-gradient(145deg,var(--surface),var(--accent-soft));border:1px solid var(--edge)}.bottom-nav.dragging .dock-lens{transition:none}.nav-item.selected svg{filter:drop-shadow(0 1px 3px color-mix(in srgb,var(--accent) 13%,transparent))}.nav-item:active svg{transform:scale(.91)}
/* A continuous, fine iridescent edge. Only the AI uses these accent colours. */
@property --aura-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.ai-button,.guide-launch{position:relative;isolation:isolate}.ai-button:before,.guide-launch:before{content:'';position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;background:conic-gradient(from var(--aura-angle),#f5a4db,#9fc7ff,#93e8e6,#b9c7ff,#f5a4db);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;animation:aura-turn 9s linear infinite}.ai-button{color:var(--ink);box-shadow:0 4px 12px #83adce14}.guide-launch{background:linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--raised) 85%,#ccefff));padding:18px;border:1px solid transparent;border-radius:23px;gap:14px;box-shadow:inset 0 1px var(--edge),0 8px 22px #8594b31a}.guide-launch strong{font-size:.96rem;font-weight:650}.guide-launch small{font-size:.76rem;line-height:1.5;margin-top:4px}.guide-launch>.glyph{color:var(--muted);width:18px}.guide-orb{width:43px;height:43px;border-radius:15px;background:radial-gradient(circle at 10% 5%,#82d5ff,transparent 70%),linear-gradient(140deg,#7e94e3,#efa9df);border:1px solid #ffffff70;box-shadow:inset 0 1px 2px #ffffff60,0 5px 12px #8f92c32c;color:#fff;flex-shrink:0}.guide-orb .glyph{width:25px;height:25px;fill:#fff;stroke-width:1;animation:none}.ai-button:active,.guide-launch:active{filter:brightness(.98)}@keyframes aura-turn{to{--aura-angle:360deg}}
/* Sheets use a spring entrance and a short exit, with reduced-motion support. */
.sheet-overlay{background:#161c2b55;backdrop-filter:blur(14px) saturate(.8);-webkit-backdrop-filter:blur(14px) saturate(.8);animation:overlay-in .25s ease}.sheet{border:1px solid var(--edge);border-radius:30px 30px 0 0;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);box-shadow:0 24px 100px #10162333,inset 0 1px var(--edge);animation:sheet-enter .48s var(--spring)}.sheet-header{padding:16px 22px;min-height:68px}.sheet-header h2{font-weight:650;font-size:1.07rem}.sheet-content{padding:20px 22px calc(24px + env(safe-area-inset-bottom))}.sheet-close{width:34px;height:34px;flex-shrink:0;background:var(--raised);border:1px solid var(--edge);color:var(--muted);box-shadow:0 3px 8px #15233806}.sheet-close .glyph{width:19px;height:19px}.sheet-handle{margin-top:10px;height:4px;width:32px;opacity:.7}.sheet-overlay.closing{animation:overlay-out .2s ease both}.closing .sheet{animation:sheet-exit .2s ease both}@keyframes overlay-in{from{opacity:0}to{opacity:1}}@keyframes overlay-out{to{opacity:0}}@keyframes sheet-enter{from{transform:translateY(50px) scale(.985);opacity:.1}to{transform:none;opacity:1}}@keyframes sheet-exit{to{transform:translateY(30px);opacity:0}}
/* AI conversation */
.guide-sheet{width:min(760px,100%);height:min(850px,calc(100dvh - env(safe-area-inset-top) - 14px));max-height:calc(100dvh - env(safe-area-inset-top) - 14px);background:var(--surface);border-color:color-mix(in srgb,var(--ai-blue) 30%,var(--edge));overflow:hidden}.guide-sheet .sheet-header{padding:18px 20px;border-bottom:1px solid var(--line);position:relative;background:linear-gradient(120deg,color-mix(in srgb,var(--surface) 95%,#abc9ff),color-mix(in srgb,var(--surface) 96%,#f5a4db))}.guide-sheet .sheet-header:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,#eca1db88,#82c2ff88,#93eee488)}.guide-brand{display:flex;align-items:center;gap:12px;min-width:0}.guide-brand strong{font-size:1.05rem;font-weight:650;display:block;letter-spacing:-.03em}.guide-brand small{display:block;font-size:.7rem;font-weight:400;color:var(--muted);margin-top:4px;letter-spacing:0}.guide-brand .guide-orb{width:42px;height:42px}.guide-sheet .sheet-content{padding:20px;overscroll-behavior:contain;min-height:0;flex:1;scroll-behavior:smooth}.guide-thread{gap:16px;padding:0;display:flex;flex-direction:column}.guide-intro{padding:35px 10px 25px;text-align:center}.guide-intro .guide-orb{width:64px;height:64px;border-radius:23px;margin:auto auto 20px}.guide-intro .guide-orb .glyph{width:36px;height:36px}.guide-intro h3{font-size:1.55rem;font-weight:650;letter-spacing:-.04em;margin:18px 0 10px}.guide-intro p{font-size:.88rem;line-height:1.6;max-width:270px;margin:0 auto;color:var(--muted)}.guide-message{font-size:.94rem;line-height:1.65;padding:17px 19px;max-width:92%;letter-spacing:-.015em;animation:message-arrive .4s var(--spring);overflow-wrap:anywhere;margin:0;flex-shrink:0}.guide-message p{margin:0 0 12px}.guide-message p:last-child{margin:0}.guide-message strong{font-weight:650}.guide-message.user{align-self:flex-end;background:linear-gradient(135deg,#394351,#27313e);color:#fff;border-radius:23px 23px 7px 23px;border:1px solid #ffffff19;box-shadow:0 7px 15px #17263814}.guide-message.assistant{align-self:flex-start;background:linear-gradient(130deg,var(--raised),color-mix(in srgb,var(--surface) 97%,#b0d8ff));border:1px solid color-mix(in srgb,var(--line) 75%,#b6c8e8);border-radius:23px 23px 23px 7px;box-shadow:inset 0 1px var(--edge),0 4px 14px #15233804}.guide-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.guide-actions button{padding:10px 13px;min-height:42px;font-size:.77rem;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 2px 5px #15233806;display:flex;align-items:center;gap:6px;white-space:normal;text-align:left;color:var(--accent)}.guide-actions .glyph{width:13px;height:16px}.guide-suggestions{display:grid;gap:9px;margin:12px 0 22px}.guide-suggestions button{position:relative;text-align:left;padding:14px 16px 14px 34px;font-size:.81rem;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:0 4px 10px #15233805;min-height:49px}.guide-suggestions button:before{content:'';position:absolute;left:15px;top:calc(50% - 4px);height:8px;width:8px;border-radius:50%;background:linear-gradient(135deg,var(--ai-pink),var(--ai-blue),var(--ai-aqua))}.guide-footer{flex-shrink:0;padding:13px 18px calc(14px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.guide-footer>.consent-row{font-size:.66rem;line-height:1.5;align-items:flex-start;gap:9px;margin:0 0 12px;color:var(--muted);font-weight:400}.guide-footer>.consent-row input{width:18px;height:18px;min-width:18px;margin:1px 0 0;accent-color:var(--accent)}.guide-compose{position:relative;display:flex;align-items:flex-end;gap:9px;border:1px solid var(--line);background:var(--raised);border-radius:26px;padding:7px;min-height:54px;box-shadow:inset 0 1px 3px #15233803;margin:0}.guide-compose:focus-within{border-color:color-mix(in srgb,var(--ai-blue) 50%,var(--line));box-shadow:0 0 0 3px #84c9ef10}.guide-compose textarea{display:block;flex:1;width:0;min-width:0;min-height:38px!important;height:38px;max-height:110px;line-height:22px;font-size:16px!important;padding:8px 6px 8px 12px!important;border:0!important;background:transparent!important;outline:none!important;resize:none;box-shadow:none;color:var(--ink);border-radius:0}.guide-compose button{width:39px;height:39px;min-height:39px;flex:0 0 39px;padding:9px;border:1px solid #ffffff20;border-radius:50%;background:linear-gradient(140deg,#394351,#27313e);color:white;box-shadow:inset 0 1px #ffffff28,0 3px 7px #15233815}.guide-compose button:disabled{opacity:.4}.guide-compose button svg{width:21px;height:21px}.guide-footer>small{display:block;font-size:.61rem;font-weight:400;color:var(--muted);text-align:center;line-height:1.5;margin-top:9px}.thinking{display:flex;align-items:center;gap:12px;min-height:62px;background:none!important;padding:8px 4px;align-self:flex-start}.thinking>span:last-child{font-size:.78rem;font-weight:450;color:var(--muted)}.thinking-orb{position:relative;isolation:isolate;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;background:conic-gradient(from var(--aura-angle),#67bdff,#f5a4db,#a5d7ff,#79e1e1,#67bdff);animation:aura-turn 2.8s linear infinite,thinking-breathe 2.2s ease-in-out infinite;box-shadow:0 0 15px #a9c8ff50,inset 0 1px 2px #fff8}.thinking-orb:before{content:'';position:absolute;inset:-5px;border-radius:inherit;background:inherit;filter:blur(9px);opacity:.35;z-index:-1}.thinking-orb .glyph{width:24px;height:24px;fill:#fff;stroke-width:1}.is-thinking .guide-brand .guide-orb{background-size:200% 200%;animation:ai-flow 3s ease infinite}.is-thinking .sheet-header:after{height:2px;background:linear-gradient(90deg,#ffb2e1,#90d3ff,#c2fff0,#ffb2e1);background-size:200% 100%;animation:ai-flow 2s ease infinite}@keyframes ai-flow{50%{background-position:100% 50%}}@keyframes thinking-breathe{50%{transform:scale(.88);border-radius:42% 58% 57% 43%}}@keyframes message-arrive{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}
/* Settings, grouped like a native preferences window. */
.settings-sheet{background:var(--bg)}.settings-section{margin:0 0 23px}.settings-label{font-size:.69rem;line-height:1.4;text-transform:uppercase;letter-spacing:.09em;font-weight:550;color:var(--muted);margin:0 0 9px;padding:0 4px}.settings-group{border:1px solid var(--line);border-radius:21px;background:var(--surface);overflow:hidden;box-shadow:var(--float-shadow)}.preference-row{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;padding:16px;text-align:left;margin:0;min-height:68px;color:var(--ink)}.preference-row+.preference-row{border-top:1px solid var(--line)}.preference-row .grow{min-width:0}.preference-row strong{display:block;font-size:.86rem;font-weight:550;line-height:1.4}.preference-row small{display:block;font-size:.7rem;line-height:1.5;color:var(--muted);margin-top:3px}.preference-row>.glyph{width:14px;height:17px;color:var(--muted)}.preference-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:var(--raised);color:var(--accent);border:1px solid var(--line)}.preference-icon svg{width:20px;height:20px}.settings-version{font-size:.64rem;text-align:center;color:var(--muted);line-height:1.5}.ios-switch{appearance:none!important;-webkit-appearance:none!important;position:relative;width:48px!important;min-width:48px;height:29px!important;min-height:29px;padding:0!important;border:0!important;outline-offset:4px;background:color-mix(in srgb,var(--muted) 25%,var(--surface))!important;border-radius:20px;cursor:pointer;transition:background .25s,box-shadow .25s;box-shadow:inset 0 1px 2px #00000008;flex-shrink:0;margin:0}.ios-switch:before{content:'';position:absolute;width:25px;height:25px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003,0 4px 8px #0001;transition:transform .32s var(--spring),width .18s}.ios-switch:checked{background:var(--accent)!important}.ios-switch:checked:before{transform:translateX(19px)}.ios-switch:active:before{width:29px}.ios-switch:checked:active:before{transform:translateX(15px)}.ios-switch:disabled{opacity:.4;cursor:wait}.settings-feature{text-align:center;margin:10px auto 25px;max-width:310px}.settings-feature .preference-icon{width:52px;height:52px;margin:auto;border-radius:18px}.settings-feature h3{font-size:1.25rem;font-weight:650;margin:16px 0 8px}.connection-state{font-size:.9rem;font-weight:600}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px 12px}.theme-option{display:flex;flex-direction:column;align-items:center;gap:9px;background:none;border:0;padding:0;min-width:0;color:var(--ink);font-size:.73rem}.theme-mini{display:flex;flex-direction:column;gap:6px;align-items:flex-start;width:100%;max-width:105px;height:100px;border-radius:15px;padding:12px;background:#f1f2f5;border:1px solid #dfe2e8;box-shadow:0 3px 8px #15233806;position:relative;overflow:hidden;color:#424a59}.theme-mini .glyph{width:19px;height:19px;margin-bottom:5px}.theme-mini i{height:9px;background:#fff;border-radius:4px;width:100%;box-shadow:0 1px 3px #1523380a}.theme-mini i:last-child{width:65%}.theme-mini.dark{background:#1b2029;border-color:#3d4656;color:#e7ecf6}.theme-mini.dark i{background:#424b5a}.theme-mini.system{background:linear-gradient(90deg,#f1f2f5 50%,#1b2029 50%);border-color:#a0a7b2}.theme-mini.system i{background:linear-gradient(90deg,#fff 50%,#424b5a 50%)}.theme-option[aria-pressed=true] .theme-mini{outline:2px solid var(--accent);outline-offset:2px}.theme-check{display:grid;place-items:center;height:18px;width:18px;border-radius:50%;border:1.5px solid var(--line);color:transparent}.theme-check svg{width:12px;height:12px;stroke-width:2.5}.theme-option[aria-pressed=true] .theme-check{background:var(--accent);border-color:var(--accent);color:var(--surface)}.type-control{padding:18px 20px 16px}.type-caption{display:flex;align-items:center;justify-content:space-between;color:var(--ink);font-weight:550}.small-aa{font-size:.85rem}.large-aa{font-size:1.4rem}.type-value{font-size:.7rem;font-weight:400;color:var(--muted)}.type-track{height:44px;position:relative;margin:6px 3px 7px}.type-range{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:44px;margin:0;padding:0;background:transparent!important;outline-offset:2px;border:0!important;box-shadow:none!important;cursor:pointer;z-index:1}.type-range::-webkit-slider-runnable-track{height:3px;background:transparent}.type-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:var(--surface);border:1px solid var(--line);box-shadow:0 2px 4px #1523382a,0 0 0 3px color-mix(in srgb,var(--accent) 8%,transparent);margin-top:-10px}.type-range::-moz-range-track{height:3px;background:transparent}.type-range::-moz-range-thumb{width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:var(--surface);box-shadow:0 2px 5px #15233830}.type-ticks{position:absolute;inset:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none;padding:0 10px}.type-ticks:before{content:'';position:absolute;left:12px;right:12px;top:21px;height:3px;border-radius:4px;background:var(--line)}.type-tick{border:0;padding:0;display:grid;place-items:center;width:6px;height:6px;background:var(--muted);border-radius:50%;position:relative;pointer-events:none}.type-tick[aria-pressed=true]{background:var(--accent)}.type-sample{font-size:1rem;text-align:center;margin:0;padding-top:12px;border-top:1px solid var(--line);color:var(--ink)}
/* Personal student card. No simulated QR code or official badge. */
.ticket-host{margin-bottom:26px}.student-ticket{width:100%;max-width:590px;margin:0 auto}.ticket-card{display:block;perspective:1400px;padding:0;background:none;border:0;width:100%;color:white;text-align:left;outline-offset:6px;border-radius:27px}.ticket-turner{position:relative;display:grid;transform-style:preserve-3d;transition:transform .75s cubic-bezier(.2,.75,.2,1);border-radius:inherit}.ticket-card.flipped .ticket-turner{transform:rotateY(180deg)}.ticket-face{grid-area:1/1;display:flex;flex-direction:column;gap:22px;min-height:266px;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:27px;padding:23px;background:radial-gradient(ellipse at 100% 120%,#7f344e77,transparent 65%),linear-gradient(130deg,#353e4b,#202732 65%);border:1px solid #ffffff20;box-shadow:inset 0 1px 1px #ffffff40,0 16px 35px #111d3020;position:relative;overflow:hidden}.ticket-face:before{content:'';position:absolute;height:350px;width:350px;right:-200px;top:-80px;border-radius:50%;border:1px solid #ffffff0d;box-shadow:0 0 0 25px #ffffff03,0 0 0 55px #ffffff02;pointer-events:none}.ticket-back{transform:rotateY(180deg);background:linear-gradient(135deg,#353e4b,#222a36)}.ticket-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative}.ticket-top strong{font-size:1.15rem;display:block;letter-spacing:-.03em;font-weight:650}.ticket-top small{font-size:.52rem;letter-spacing:.16em;color:#c7cdd8;display:block;margin-top:5px;font-weight:500}.ticket-logo{width:36px;height:36px;border-radius:11px;border:1px solid #ffffff20;box-shadow:0 3px 9px #0002}.ticket-identity{display:flex;align-items:center;gap:17px;position:relative;flex:1}.ticket-portrait{display:grid;place-items:center;width:82px;height:101px;flex:0 0 82px;overflow:hidden;border-radius:19px;background:linear-gradient(135deg,#eef0f6,#c8cedb);color:#293544;border:1px solid #ffffff80;box-shadow:inset 0 1px #fff,0 7px 18px #0002;font-size:1.5rem;font-weight:550}.ticket-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}.ticket-person{min-width:0;display:block}.ticket-person>strong{display:block;font-size:1.15rem;font-weight:600;line-height:1.3;letter-spacing:-.025em;overflow-wrap:anywhere}.ticket-person>span{display:block;margin-top:10px;color:#d1d6df;font-size:.75rem}.ticket-person>small{display:block;color:#aeb8c8;font-size:.66rem;margin-top:6px}.ticket-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.59rem;color:#b8c2d2;border-top:1px solid #ffffff17;padding-top:14px;position:relative}.ticket-bottom>span:last-child{display:flex;align-items:center;gap:6px}.ticket-bottom .glyph{width:14px;height:14px;color:#d3b4c1}.ticket-hint{font-size:.64rem;text-align:center;color:var(--muted);margin:13px 0 0}.ticket-details{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;flex:1;position:relative}.ticket-detail small{display:block;color:#aab5c6;font-size:.6rem;line-height:1.4}.ticket-detail strong{font-size:.75rem;line-height:1.4;display:block;margin-top:4px;font-weight:500;overflow-wrap:anywhere}.ticket-detail:last-child{grid-column:1/-1}.ticket-back .ticket-top strong{font-size:.95rem}.ticket-back .ticket-top .glyph{width:20px;height:20px;color:#c7d2e1}.ticket-load-note{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:10px 0;color:var(--muted)}.ticket-load-note small{font-size:.68rem}.profile-session{display:flex;align-items:center;gap:9px;padding:0 8px 12px;color:var(--muted)}.profile-session .glyph{width:16px}.profile-session p{font-size:.7rem}.group-person{padding:18px;gap:16px;border-radius:23px;align-items:center;border:1px solid var(--line);box-shadow:var(--float-shadow);min-width:0}.person-avatar{width:66px;height:80px;flex:0 0 66px;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--raised);box-shadow:inset 0 1px var(--edge),0 4px 12px #1523380b;display:grid;place-items:center}.person-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%}.person-info{min-width:0}.person-info strong{font-size:.91rem;line-height:1.35;font-weight:600;overflow-wrap:anywhere}.person-book{font-size:.68rem!important;letter-spacing:.015em;font-variant-numeric:tabular-nums;margin-top:6px}.person-actions{flex-wrap:wrap;gap:7px;margin-top:11px}.small-action{font-size:.66rem;min-height:34px;border-radius:10px;padding:7px 9px;gap:5px}.small-action .glyph{width:14px;height:14px}
/* Documents stay inside the application, with plain-text safe rendering. */
.legal-title{font-size:1.6rem;font-weight:650;line-height:1.18;letter-spacing:-.04em;margin:22px 0 12px}.legal-meta{font-size:.69rem;color:var(--muted);padding-bottom:20px;border-bottom:1px solid var(--line);line-height:1.5}.legal-prose{max-width:66ch;margin:auto}.legal-prose h3{font-size:1rem;font-weight:650;line-height:1.4;margin:28px 0 12px}.legal-prose p{font-size:.88rem;line-height:1.75;margin:0 0 15px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}.legal-editor .sheet-content{display:flex;flex-direction:column;gap:12px}.legal-editor .field-label{margin:8px 0 -5px}.legal-editor-text{display:block;width:100%;min-height:320px;resize:vertical;border:1px solid var(--line);border-radius:17px;padding:16px;background:var(--raised);color:var(--ink);font:400 .85rem/1.65 inherit}.legal-editor .field-input{width:100%}.editor-help{font-size:.65rem;color:var(--muted);margin:0;line-height:1.6}.legal-preview summary{cursor:pointer;font-size:.85rem;font-weight:600;padding:12px 0;color:var(--accent)}.editor-actions{display:flex;gap:10px;position:sticky;bottom:-20px;background:var(--surface);padding:15px 0}.editor-actions button{flex:1;font-size:.8rem;min-width:0}.editor-status{font-size:.75rem;line-height:1.5;color:var(--accent)}.documents-sheet .preference-row{padding-left:4px;padding-right:4px}
@media(min-width:700px){.sheet{border-radius:30px;max-height:calc(100dvh - 60px)}.guide-sheet{height:min(850px,calc(100dvh - 60px));border-radius:32px}.guide-sheet .sheet-header{padding:22px 26px}.guide-sheet .sheet-content{padding:26px}.guide-message{max-width:86%;font-size:1rem}.guide-footer{padding:16px 26px 20px}.guide-suggestions{grid-template-columns:1fr 1fr}.guide-intro{padding:50px 20px 35px}.guide-suggestions button:last-child{grid-column:1/-1}.settings-sheet{max-width:560px}.legal-sheet,.legal-editor{max-width:780px}.ticket-face{min-height:290px;padding:26px}.ticket-portrait{width:100px;height:120px;flex-basis:100px}.ticket-person>strong{font-size:1.5rem}.ticket-top small{font-size:.6rem}.ticket-detail strong{font-size:.88rem}}
@media(min-width:1000px){.bottom-nav{box-shadow:inset 0 1px var(--edge),10px 0 50px #15233804}.nav-item svg{width:21px;height:21px}.nav-item span{font-size:.85rem}.view{max-width:1240px}.home-welcome{margin-top:16px}.day-focus{padding:30px 34px}.focus-time{font-size:2.6rem}.day-focus h2{font-size:1.65rem}.home-metric{padding:22px}.service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.service-grid .menu-card{min-height:150px}.menu-copy strong{font-size:1rem}.group-person-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.group-person{padding:22px}.person-avatar{width:76px;height:92px;flex-basis:76px}.person-info strong{font-size:1rem}.ticket-host+.settings-section{max-width:590px;margin-left:auto;margin-right:auto}.ticket-host~.settings-section,.ticket-host~.profile-session,.ticket-host~.btn-danger{max-width:590px;margin-left:auto;margin-right:auto}.ticket-host~.btn-danger{display:block;width:100%}}
@media(max-width:360px){.view{padding-left:15px;padding-right:15px}.top-actions{gap:5px}.brand small{font-size:.57rem!important}.brand strong{font-size:1.05rem}.icon-button{width:34px;height:34px}.ticket-face{padding:18px;gap:18px}.ticket-portrait{width:68px;height:85px;flex-basis:68px}.ticket-person>strong{font-size:1rem}.ticket-top small{font-size:.48rem}.guide-message{max-width:96%;padding:15px}.guide-brand small{font-size:.63rem}.guide-sheet .sheet-header{padding:15px}.guide-sheet .sheet-content{padding:17px}.progress-step span{font-size:.54rem}.person-avatar{width:54px;height:68px;flex-basis:54px}.group-person{gap:12px;padding:15px}}
@media(hover:hover){.theme-option:hover .theme-mini{transform:translateY(-2px)}.theme-mini{transition:transform .3s var(--spring)}.preference-row:is(button):hover{background:var(--raised)}.guide-launch:hover{box-shadow:0 10px 26px #8cafd52b}.small-action:hover{background:var(--accent-soft)}.ticket-card:hover:not(:focus-visible){filter:brightness(1.035)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ticket-card.flipped .ticket-turner{transform:rotateY(180deg)}}
html[data-motion=reduced] *,html[data-motion=reduced] *:before,html[data-motion=reduced] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
