:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203532;background:#f7f5f0;font-synthesis:none;--teal:#1f4b4a;--sage:#8aa88b;--amber:#e3963e;--line:#e0e5df;--muted:#556963}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--teal)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ab6b16;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em}h1{font-size:clamp(2rem,4vw,3.15rem);line-height:1.08}h2{font-size:1.8rem}h3{font-size:1rem}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.75rem;font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid var(--teal);border-radius:10px;padding:.78rem 1rem;background:var(--teal);color:white;font-weight:650;min-height:44px;text-decoration:none}.btn svg{width:18px;height:18px;flex-shrink:0}.btn.secondary{color:var(--teal);background:white;border-color:#c8d4cd}.btn.ghost{color:var(--teal);background:transparent;border-color:transparent}.btn.danger{color:#a02d2d;background:#fff5f3;border-color:#e5b5ae}.pill{padding:.28rem .65rem;border-radius:20px;font-size:.75rem;font-weight:700;white-space:nowrap;background:#e8efeb;color:#31594e}.pill.amber{color:#7a4910;background:#fff0d8}.pill.done{background:#def0e2;color:#235432}.pill.cancelled{background:#f6e4e0;color:#8a3d30}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:16px}.loading{padding:15vh 24px;text-align:center}.skip{position:absolute;left:10px;top:-100px;background:white;padding:1rem;z-index:99}.skip:focus{top:10px}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:1.55rem;color:var(--teal);text-decoration:none;white-space:nowrap}.brand img{width:44px;height:44px;border-radius:50%}.beta-banner{background:#fcf0dc;color:#6b461b;text-align:center;padding:.6rem 1rem;font-size:.8rem;border-bottom:1px solid #eddec3}.layout{display:grid;grid-template-columns:248px 1fr;min-height:calc(100dvh - 37px)}.sidebar{padding:30px 20px;background:#fffefb;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:34px;position:sticky;top:0;height:calc(100dvh - 37px)}.sidebar .brand{padding-left:8px}.nav{display:grid;gap:8px}.nav button{display:flex;align-items:center;gap:12px;border:0;color:var(--muted);background:transparent;text-align:left;border-radius:10px;padding:14px;font-weight:550;font-size:.95rem}.nav button.active{background:#e6efeb;color:var(--teal);font-weight:750}.nav svg{width:20px;height:20px;flex-shrink:0}.sidebar-bottom{margin-top:auto;display:grid;gap:20px}.account{padding:15px 8px 0;border-top:1px solid var(--line)}.account p{font-size:.875rem}.account .name{font-weight:700}.shell{min-width:0}.topbar{padding:22px 42px;background:#fffefb;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar strong{font-size:.9rem}.topbar .brand{display:none}.topbar .connection{font-size:.8rem;color:var(--muted)}.content{max-width:1320px;margin:auto;padding:36px 42px 60px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading p{margin-top:10px}.hero-card{background:var(--teal);border-radius:18px;padding:28px;color:#f5faf6;margin-bottom:24px;display:grid;grid-template-columns:1fr auto;gap:25px;align-items:center}.hero-card h2{font-size:2rem;margin:12px 0}.hero-card p{color:#d4e5dd;max-width:48ch}.hero-card .btn{background:#f3ca8b;border-color:#f3ca8b;color:#243c37}.stat{border-left:1px solid #577976;padding:0 20px 0 34px;min-width:150px}.stat b{display:block;font-size:2.8rem;font-weight:450;line-height:1.2}.stat span{font-size:.85rem;color:#d4e5dd}.columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start}.panel{background:#fffefb;border:1px solid var(--line);border-radius:16px;padding:24px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.panel-head h2{font-size:1.45rem}.list{display:grid;gap:12px}.visit{padding:18px;border:1px solid var(--line);border-radius:12px;background:white}.visit-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.service-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#e9f0eb;color:var(--teal);flex-shrink:0}.service-icon svg{width:22px;height:22px}.visit h3{margin-bottom:5px}.visit .details{padding-left:56px;margin-top:12px;display:grid;gap:6px}.visit footer{display:flex;gap:8px;flex-wrap:wrap;padding-left:56px;margin-top:15px}.visit footer .btn{font-size:.875rem;padding:.5rem .8rem}.empty{text-align:center;color:var(--muted);padding:32px 14px;border:1px dashed #cad5ce;border-radius:12px}.empty p{margin-bottom:15px}.field{display:grid;gap:7px;margin-bottom:16px}.field label{font-size:.875rem;font-weight:650}.field input,.field select,.field textarea{width:100%;border:1px solid #c7d3cb;background:white;border-radius:9px;padding:12px;color:#263f38;min-height:46px}.field textarea{resize:vertical;min-height:88px}.field .hint{font-size:.8rem;color:var(--muted)}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task{display:flex;gap:12px;align-items:flex-start;padding:15px 0;border-bottom:1px solid var(--line)}.task:last-child{border-bottom:0}.task input{width:20px;height:20px;accent-color:var(--teal);flex-shrink:0}.task.done .task-text{text-decoration:line-through;color:var(--muted)}.task-text{display:block;overflow-wrap:anywhere}.task small{color:var(--muted)}.entry{border-bottom:1px solid var(--line);padding:16px 0}.entry:first-child{padding-top:0}.entry:last-child{border-bottom:0}.entry p{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.timeline{list-style:none;padding:0;margin:20px 0}.timeline li{position:relative;padding:0 0 20px 25px;border-left:2px solid #d5e0d7;margin-left:6px}.timeline li:before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;background:var(--sage);border-radius:50%}.timeline li:last-child{border-color:transparent;padding-bottom:0}.timeline small{display:block;color:var(--muted);margin-top:4px}.messages{display:grid;gap:12px;max-height:350px;overflow:auto;margin:20px 0}.message{background:#f0f4ef;border-radius:12px;padding:14px}.message.mine{background:#e5eeeb;margin-left:25px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}.message small{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow:auto;color:#203532;background:#fffefb}dialog::backdrop{background:#122f2dcc;backdrop-filter:blur(3px)}dialog h2{margin-bottom:8px}dialog>.row:first-child{margin-bottom:20px}.modal-close{border:0;background:#edf1eb;border-radius:50%;width:40px;height:40px;color:var(--teal);font-size:1.5rem;flex-shrink:0}#toast{position:fixed;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#173e3b;color:white;padding:14px 20px;border-radius:12px;z-index:100;max-width:calc(100vw - 32px);box-shadow:0 8px 30px #0002;display:none}#toast.show{display:block}.error-banner{background:#fff1ed;border:1px solid #e9b7a9;color:#853728;border-radius:10px;padding:14px;margin-bottom:18px}.login{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:var(--teal);color:#f8faf5;padding:7vw;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:28px}.login-story .brand{color:white;margin-bottom:30px}.login-story h1{font-size:clamp(2.8rem,5vw,4.6rem);max-width:10ch}.login-story p{max-width:36ch;color:#d3e7de;font-size:1.05rem}.login-form{display:flex;align-items:center;justify-content:center;padding:36px}.login-form>.stack{width:100%;max-width:420px;gap:24px}.login-form h2{font-size:2.1rem}.login-form .btn{width:100%}.notice{padding:18px;background:#fbefdc;border:1px solid #eddec3;border-radius:12px;color:#775022;font-size:.9rem}.install-help{border-top:1px solid var(--line);padding-top:18px}.install-help summary{cursor:pointer;font-size:.875rem;font-weight:650}.install-help p{font-size:.875rem;margin-top:10px}.audit-row{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:.85rem}.audit-row strong{display:block}.mobile-nav{display:none}.inset-note{padding:18px;background:#edf2eb;border-radius:12px;font-size:.9rem;color:#3f6053}.session-role{background:#e8efea;border-radius:8px;padding:7px 10px;color:#3e6051;font-size:.8rem}.totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr));gap:12px;margin-bottom:24px}.total{padding:18px 22px;background:white;border:1px solid var(--line);border-radius:12px}.total b{display:block;font-size:1.8rem;font-weight:550}.total span{font-size:.85rem;color:var(--muted)}.profile-list{display:grid;gap:20px;margin-top:24px}.profile-list dt{font-size:.875rem;color:var(--muted);margin-bottom:5px}.profile-list dd{margin:0}.prototype-frame{width:100%;height:75dvh;border:1px solid var(--line);border-radius:12px;background:white}.hidden{display:none!important}@media(max-width:1100px){.layout{grid-template-columns:210px 1fr}.content{padding:30px 24px 55px}.topbar{padding:20px 24px}.columns{grid-template-columns:1fr}.sidebar{padding:24px 12px}}@media(max-width:700px){.layout{display:block}.sidebar{display:none}.topbar{padding:14px 18px}.topbar .brand{display:flex;font-size:1.3rem}.topbar .brand img{width:35px;height:35px}.topbar>strong{display:none}.topbar .connection{display:none}.content{padding:26px 18px calc(100px + env(safe-area-inset-bottom))}.page-heading{align-items:flex-start}.page-heading .btn{font-size:.85rem;padding:.65rem .8rem}.page-heading p{font-size:.9rem}.hero-card{padding:24px;grid-template-columns:1fr}.hero-card h2{font-size:1.7rem}.stat{display:none}.panel{padding:20px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:10px 8px calc(12px + env(safe-area-inset-bottom));background:#fffefbf5;border-top:1px solid var(--line);backdrop-filter:blur(12px);z-index:10;gap:4px}.mobile-nav button{border:0;background:transparent;min-width:0;flex:1;padding:7px 2px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:5px;font-size:.75rem;border-radius:8px}.mobile-nav button.active{background:#e6efeb;color:var(--teal);font-weight:700}.mobile-nav svg{width:21px;height:21px}.login{grid-template-columns:1fr}.login-story{padding:34px 28px;gap:20px}.login-story .brand{margin-bottom:4px}.login-story h1{font-size:2.6rem;max-width:15ch}.login-story p{font-size:.95rem}.login-form{padding:32px 24px}.totals{gap:8px}.total{padding:15px 12px}.total span{font-size:.75rem}.total b{font-size:1.5rem}.visit .details,.visit footer{padding-left:0}.visit-top{flex-wrap:wrap}.two-fields{grid-template-columns:1fr}#toast{bottom:calc(92px + env(safe-area-inset-bottom))}dialog{padding:22px}.session-role{font-size:.75rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{.sidebar,.mobile-nav,.topbar,.beta-banner,button{display:none!important}.layout{display:block}.content{padding:0}.panel,.visit{break-inside:avoid}}

/* Preserve reading and control access when text is enlarged. */
.panel,.field,.visit,.visit-top>.row,.visit-top>.row>div{min-width:0}.total span,h1,h2,h3{overflow-wrap:anywhere}.panel-head{flex-wrap:wrap}@media(max-width:700px){.page-heading,.topbar{flex-wrap:wrap}.page-heading>div{min-width:0}.mobile-nav button span{overflow-wrap:anywhere}.visit-top>.row{flex:1}}

@media(max-width:700px){.visit-top>.row{flex:1 1 100%;align-items:flex-start}.mobile-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,4.5rem),1fr))}.mobile-nav button{width:100%}.mobile-nav button span{overflow-wrap:normal}.content{padding-bottom:calc(7rem + env(safe-area-inset-bottom))}}
