:root{--bg: #f3f5ef;--surface: #ffffff;--surface-2: #f8faf5;--ink: #17231b;--muted: #5e6b61;--line: #dde3d8;--nav: #14432a;--nav-ink: #e6f0df;--nav-muted: #9db7a2;--nav-active: #1e5a38;--accent: #f4ae1a;--accent-ink: #2a1a00;--accent-edge: #c9870a;--pos: #1f7a3a;--neg: #b3261e;--warn: #8a5a00;--info: #2b5c8a;--pos-bg: #e4f2e5;--neg-bg: #fbe7e5;--warn-bg: #fff1cf;--info-bg: #e3eef8;--wall: #eaefe4;--mine: #d8efd9;--wall-mark: rgba(20, 67, 42, .06);--shadow: 0 12px 40px rgba(20, 40, 25, .18);--elev: 0 1px 2px rgba(20, 40, 25, .05), 0 2px 8px rgba(20, 40, 25, .04);--r: 14px;--r-sm: 10px;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0f1612;--surface: #161f19;--surface-2: #1b261f;--ink: #e8efe6;--muted: #93a396;--line: #27352c;--nav: #0b1c12;--nav-ink: #e6f0df;--nav-muted: #7e9a84;--nav-active: #173826;--pos: #6ccb7a;--neg: #ff7a6e;--warn: #f2c155;--info: #7db3e8;--pos-bg: #16301e;--neg-bg: #3a1c19;--warn-bg: #33290f;--info-bg: #15283a;--wall: #111a14;--mine: #1e3a27;--wall-mark: rgba(230, 240, 223, .04);--shadow: 0 12px 40px rgba(0, 0, 0, .5);--elev: 0 1px 0 rgba(0, 0, 0, .4);color-scheme:dark}}:root[data-theme=dark]{--bg: #0f1612;--surface: #161f19;--surface-2: #1b261f;--ink: #e8efe6;--muted: #93a396;--line: #27352c;--nav: #0b1c12;--nav-ink: #e6f0df;--nav-muted: #7e9a84;--nav-active: #173826;--pos: #6ccb7a;--neg: #ff7a6e;--warn: #f2c155;--info: #7db3e8;--pos-bg: #16301e;--neg-bg: #3a1c19;--warn-bg: #33290f;--info-bg: #15283a;--wall: #111a14;--mine: #1e3a27;--wall-mark: rgba(230, 240, 223, .04);--shadow: 0 12px 40px rgba(0, 0, 0, .5);--elev: 0 1px 0 rgba(0, 0, 0, .4);color-scheme:dark}*{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Manrope,system-ui,sans-serif;font-variant-numeric:tabular-nums}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.actions.end{justify-content:flex-end}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:8px 16px;border-radius:var(--r-sm);font-weight:700;font-size:14px;min-height:40px;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .12s,border-color .12s,box-shadow .12s,transform .06s}.btn:not(.primary):hover{background:var(--surface-2);border-color:var(--muted)}.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent-edge);box-shadow:0 3px 0 var(--accent-edge)}.btn.primary:active{transform:translateY(2px);box-shadow:0 1px 0 var(--accent-edge)}.btn.danger{color:var(--neg)}.btn.sm{min-height:32px;padding:4px 12px;font-size:13px}.btn.icon{width:40px;height:40px;padding:0;border-radius:50%;flex:none}.btn.icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.btn:disabled{opacity:.5;cursor:not-allowed}.tag{display:inline-block;font-size:11.5px;font-weight:700;padding:1px 9px;border-radius:999px;background:var(--pos-bg);color:var(--pos);white-space:nowrap}.tag.warn{background:var(--warn-bg);color:var(--warn)}.tag.neg{background:var(--neg-bg);color:var(--neg)}.tag.info{background:var(--info-bg);color:var(--info)}.tag.muted{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}.field{display:flex;flex-direction:column;gap:4px;min-width:0}.field label,.field .label{font-size:13px;font-weight:700}.field .help{font-size:12px;color:var(--muted)}.input{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:8px 12px;min-height:40px;width:100%}textarea.input{min-height:88px;resize:vertical}.input:focus{border-color:var(--accent-edge);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 35%,transparent)}.input.code{font:800 26px/1 JetBrains Mono,ui-monospace,monospace;letter-spacing:.4em;text-align:center}.banner{border-radius:var(--r);padding:12px 16px;font-size:14px}.banner.neg{background:var(--neg-bg);color:var(--neg)}.banner.warn{background:var(--warn-bg);color:var(--warn)}.banner.info{background:var(--info-bg);color:var(--info)}.empty{text-align:center;padding:40px 20px;color:var(--muted)}.crumbs{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}.crumbs button{background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-weight:600}.crumbs .sep{opacity:.6}dialog{border:0;padding:0;border-radius:18px;box-shadow:var(--shadow);background:var(--surface);color:var(--ink);width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px)}dialog::backdrop{background:#0a190f8c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}dialog[open]{animation:dlg-in .18s ease-out}@keyframes dlg-in{0%{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}dialog .dh{padding:18px 22px 0}dialog .dh h3{margin:0;font-size:19px;font-weight:800}dialog .dh p{margin:4px 0 0;color:var(--muted);font-size:14px}dialog .db{padding:18px 22px;display:grid;gap:14px;overflow:auto}dialog .df{padding:14px 22px 18px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}@media(max-width:767px){dialog{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:18px 18px 0 0;max-height:92vh}}.brand-logo{display:block;text-decoration:none}.brand-logo img{display:block;height:auto;filter:drop-shadow(0 3px 0 rgba(0,0,0,.28))}.auth{min-height:100vh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(140% 60% at 0% 100%,rgba(244,174,26,.14),transparent 60%),var(--nav)}.auth .card{width:min(420px,100%);padding:26px 24px;background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow)}.auth .brand-logo{display:flex;justify-content:center;margin-bottom:18px}.auth .brand-logo img{width:156px}.auth h1{margin:0;font-size:24px;font-weight:800;letter-spacing:-.01em}.auth .meta{color:var(--muted);font-size:14px;margin:4px 0 18px}.auth form{display:grid;gap:14px}.auth .btn{width:100%}.shell{display:grid;grid-template-columns:80px minmax(0,1fr);height:100vh;height:100dvh}.rail{background:radial-gradient(140% 50% at 0% 100%,rgba(244,174,26,.1),transparent 60%),var(--nav);color:var(--nav-ink);display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0}.rail-item{width:70px;padding:8px 0 6px;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;font-weight:700;color:var(--nav-muted);text-decoration:none}.rail-item svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rail-item:hover{background:var(--nav-active);color:var(--nav-ink)}.rail-item.active{background:var(--nav-active);color:var(--nav-ink);box-shadow:inset 3px 0 0 var(--accent)}.rail-me{margin-top:auto;background:none;border:0;padding:0;cursor:pointer;border-radius:50%}.rail-me .avatar{background:var(--accent);color:var(--accent-ink)}.workspace{min-width:0;min-height:0}.avatar{width:38px;height:38px;border-radius:50%;background:var(--pos-bg);color:var(--pos);font-weight:800;font-size:13px;display:grid;place-items:center;flex:none}.avatar.anon{background:var(--surface-2);color:var(--muted);border:1px dashed var(--line)}@media(max-width:767px){.shell{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}.rail{order:2;flex-direction:row;justify-content:space-around;padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.rail-me{margin-top:0}.rail-item.active{box-shadow:inset 0 -3px 0 var(--accent)}}.attendances{display:grid;grid-template-columns:340px minmax(0,1fr);height:100%;min-height:0}.list-pane{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:var(--surface)}.list-head{padding:16px 16px 8px;display:grid;gap:10px}.list-head h1{margin:0;font-size:19px;font-weight:800}.list-head .search{background:var(--surface-2)}.chips{display:flex;gap:6px;padding:4px 16px 12px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:4px 12px;font-weight:700;font-size:12.5px;color:var(--muted);cursor:pointer;min-height:32px}.chip b{color:var(--ink);margin-left:5px}.chip[aria-pressed=true]{background:var(--nav);border-color:var(--nav);color:var(--nav-ink)}.chip[aria-pressed=true] b{color:var(--accent)}.list-scroll{flex:1;overflow-y:auto;min-height:0}.items{list-style:none;margin:0;padding:0}.item{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 16px;border:0;border-top:1px solid var(--line);background:none;text-align:left;cursor:pointer}.item:hover{background:var(--surface-2)}.item[aria-current=true]{background:var(--surface-2);box-shadow:inset 3px 0 0 var(--accent)}.item-main{display:flex;flex-direction:column;min-width:0}.item-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-preview{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:11.5px;color:var(--muted)}.waiting{color:var(--warn);font-weight:700}.badge{background:var(--accent);color:var(--accent-ink);font-weight:800;border-radius:999px;font-size:11px;min-width:20px;padding:0 6px;text-align:center}.more{justify-content:center;padding:12px}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--wall)}.conversation.idle{display:grid;place-items:center}.conv-head{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap}.conv-head .who{flex:1;min-width:160px;display:flex;flex-direction:column}.conv-head .who strong{font-size:15px}.conv-head .who span{color:var(--muted);font-size:12.5px}.wall{flex:1;overflow-y:auto;min-height:0;padding:16px 22px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2314432A' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M20 30c10-14 26-14 34 0-10 6-24 6-34 0z'/%3E%3Cpath d='M37 30v-8'/%3E%3Cpath d='M78 86c8-12 22-12 30 0-8 5-21 5-30 0z'/%3E%3Cpath d='M93 86v-7'/%3E%3C/g%3E%3C/svg%3E")}.timeline{display:flex;flex-direction:column;gap:7px}.event{align-self:center;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:600;border-radius:8px;padding:3px 10px;text-align:center}.bot-banner{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:0 auto 12px;width:fit-content;max-width:100%;background:var(--info-bg);color:var(--info);font-size:13px;font-weight:700;border-radius:10px;padding:6px 8px 6px 14px}.bubble{max-width:min(66%,560px);padding:7px 11px 5px;border-radius:10px;font-size:14px;box-shadow:0 1px 1px #14281914;overflow-wrap:anywhere}.bubble p{margin:0;white-space:pre-wrap}.bubble .label{display:block;font-size:11px;font-weight:800;color:var(--pos);margin-bottom:2px}.bubble .time{display:block;text-align:right;font-size:10.5px;color:var(--muted);margin-top:2px}.bubble.in{align-self:flex-start;background:var(--surface);border-top-left-radius:2px}.bubble.out{align-self:flex-end;background:var(--mine);border-top-right-radius:2px}.bubble.note{align-self:flex-end;background:var(--warn-bg);border:1px dashed var(--warn)}.bubble.note .label{color:var(--warn)}.bubble.system{align-self:center;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-size:13px;text-align:center}.bubble.system .label{color:var(--muted)}.bubble .image img{display:block;max-width:min(260px,100%);border-radius:7px}.bubble .audio{display:flex;align-items:center;gap:8px}.bubble .audio audio{height:36px;max-width:240px}.bubble .duration{font-size:11px;color:var(--muted)}.document{display:flex;align-items:center;gap:10px;background:color-mix(in srgb,var(--nav) 6%,transparent);border-radius:8px;padding:8px 10px}.doc-icon svg{width:26px;height:26px;stroke:var(--neg);fill:none;stroke-width:1.8}.doc-name{display:flex;flex-direction:column;min-width:0}.doc-name strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doc-name span{font-size:11.5px;color:var(--muted)}.claim-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--surface);border-top:1px solid var(--line);color:var(--muted);font-size:13.5px;flex-wrap:wrap}.claim-error{color:var(--neg);font-weight:700}.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 14px;background:var(--surface);border-top:1px solid var(--line);flex-wrap:wrap}.composer.is-note{background:var(--warn-bg)}.composer .write{flex:1;min-width:0;min-height:40px;max-height:140px;border-radius:20px;padding:9px 16px;resize:none}.composer .write::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer-error{flex-basis:100%}.note-toggle[aria-pressed=true]{background:var(--warn);color:#fff;border-color:var(--warn)}.recorder{flex:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.recorder .actions{margin-left:auto}.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--neg);animation:rec 1s infinite alternate}@keyframes rec{to{opacity:.3}}dialog.wide{width:min(760px,calc(100vw - 32px))}.choices{border:0;padding:0;margin:0;display:grid;gap:8px}.choices legend{font-size:13px;font-weight:700;margin-bottom:6px}.choice{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-sm);cursor:pointer}.choice:has(input:checked){border-color:var(--accent-edge);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card-grid section{grid-column:1 / -1}.card-grid h4{margin:0 0 6px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.money .label{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:800}.money strong{font-size:28px;color:var(--pos);font-weight:800}.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:13.5px}.facts dt{color:var(--muted)}.facts dd{margin:0;font-weight:700;text-align:right}.rows{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13.5px}.rows li{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:6px}.muted{color:var(--muted)}.bot-turns{display:flex;flex-direction:column;gap:8px;background:var(--wall);border-radius:var(--r-sm);padding:12px}.bot-turns .bubble{max-width:85%}.only-phone{display:none}@media(max-width:767px){dialog.wide{width:100vw}.attendances{grid-template-columns:1fr}.attendances.has-open .list-pane{display:none}.attendances:not(.has-open) .conversation{display:none}.list-pane{border-right:0}.only-phone{display:flex;padding:8px 14px;background:var(--surface);border-bottom:1px solid var(--line)}.conv-head .actions{width:100%}.wall{padding:12px}.bubble{max-width:85%}.card-grid{grid-template-columns:1fr}.composer .note-toggle{order:-1}.composer:after{content:"";flex-basis:100%;order:-1}}.settings{overflow-y:auto}.settings-inner{max-width:880px;margin:0 auto;padding:26px 24px 56px;display:grid;gap:16px}.settings-inner h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em}.settings-inner>.muted{margin:-10px 0 4px}.settings-sections{border:0;margin:0;padding:0;min-width:0;display:grid;gap:16px}.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;box-shadow:var(--elev);display:grid;gap:14px}.settings-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.settings-card h2{margin:0;font-size:16px;font-weight:800}.settings-card header p{margin:2px 0 0;color:var(--muted);font-size:13.5px}.settings-rows{list-style:none;margin:0;padding:0}.settings-rows li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}.row-name{display:flex;align-items:center;gap:8px;font-weight:700;flex-wrap:wrap}.days li{align-items:flex-start}.days .row-name{min-width:90px;padding-top:6px}.day-ranges{display:grid;gap:8px;justify-items:end}.range{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.range .input{width:120px}.field.narrow{max-width:260px}@media(max-width:767px){.settings-inner{padding:18px 16px 32px}.day-ranges{justify-items:start;width:100%}.range{justify-content:flex-start}}
