:root{--ink:#192636;--muted:#77808d;--line:#e4e7ec;--bg:#f3f5f7;--orange:#ea5b2a;--soft:#fff0e9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ea5b2a;outline-offset:3px}header{max-width:920px;margin:auto;padding:24px 22px 16px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:11px;align-items:center;font-size:24px;font-weight:800;letter-spacing:-1px}.brand img{width:43px;height:43px}.brand small{display:block;font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:650}.orange{color:var(--orange)}.avatar{width:42px;height:42px;border:1px solid var(--line);background:white;border-radius:50%;font-size:23px;color:var(--ink)}main{max-width:920px;margin:auto;padding:12px 22px 120px}h1{font-size:28px;line-height:1.2;letter-spacing:-.8px;margin:8px 0}h2{font-size:19px;line-height:1.3;margin:0}p{margin:8px 0}.muted,small{color:var(--muted)}small{font-size:14px}.hero{background:var(--ink);color:white;padding:25px;border-radius:20px;margin:4px 0 20px;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;right:-40px;top:-65px;width:200px;height:200px;transform:rotate(25deg);border:28px solid #ffffff08;pointer-events:none}.hero .muted{color:#bac2cc}.hero-top{display:flex;justify-content:space-between;gap:12px}.hero strong{font-size:34px;display:block;letter-spacing:-1px}.pill{font-size:12px;border-radius:7px;padding:5px 8px;background:#ffffff13;height:fit-content;white-space:nowrap}.hero .primary{margin-top:20px}.primary{border:0;border-radius:12px;background:var(--orange);color:white;padding:13px 18px;font-weight:650;min-height:46px}.secondary{background:white;border:1px solid var(--line);border-radius:12px;padding:11px 15px;color:var(--ink);font-weight:600;min-height:44px}.text-button{background:transparent;border:0;color:var(--orange);font-weight:650;padding:7px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 27px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:16px 12px}.stat strong{display:block;font-size:25px}.stat small{font-size:13px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 12px}.page-head{display:flex;justify-content:space-between;align-items:center;margin:2px 0 18px;gap:10px}.page-head .primary{padding:10px 14px}.card{background:white;border:1px solid var(--line);border-radius:15px;padding:18px;margin:10px 0}.card.clickable{cursor:pointer}.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.card h3{font-size:17px;margin:0 0 4px;overflow-wrap:anywhere}.card p{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.amount{font-size:19px;font-weight:750;white-space:nowrap}.badge{font-size:12px;font-weight:650;padding:5px 8px;border-radius:6px;background:#eef1f5;color:#667385;white-space:nowrap}.badge.active,.badge.sent{background:#eaf0ff;color:#436abb}.badge.done,.badge.approved{background:#e8f5ec;color:#287944}.empty{padding:38px 20px;text-align:center;border:1px dashed #ccd3db;border-radius:16px;margin:14px 0;background:#ffffff80}.empty .symbol{font-size:40px;color:var(--orange)}.empty h2{margin:12px 0}.empty p{max-width:360px;margin:10px auto 20px;color:var(--muted)}.search{width:100%;background:white;border:1px solid var(--line);border-radius:12px;padding:13px 15px;margin-bottom:8px}nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffef;backdrop-filter:blur(18px);border-top:1px solid var(--line);display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom);z-index:5}nav button{width:min(25%,225px);border:0;background:none;color:var(--muted);padding:10px 0 13px;font-size:12px;font-weight:600}nav button span{display:block;font-size:25px;line-height:1.3;margin-bottom:3px}nav button.active{color:var(--orange)}dialog{border:0;padding:0;border-radius:22px;width:min(680px,calc(100% - 20px));max-height:92dvh;color:var(--ink);box-shadow:0 20px 90px #19263640}dialog::backdrop{background:#19263680;backdrop-filter:blur(3px)}form{padding:22px}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.close{background:var(--bg);border:0;border-radius:50%;height:36px;width:36px;font-size:25px;color:var(--muted)}label{display:block;font-size:14px;font-weight:600;margin:14px 0 6px}input,select,textarea{width:100%;border:1px solid #d9dee5;border-radius:10px;padding:12px;background:#fff;color:var(--ink);min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #ea5b2a50;border-color:var(--orange)}textarea{resize:vertical;min-height:85px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{width:100%;margin-top:15px}.item-edit{background:var(--bg);border:1px solid var(--line);padding:14px;border-radius:14px;margin:12px 0}.item-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.item-head select{max-width:155px;background:white;padding:8px}.remove{border:0;background:none;color:#b84833;padding:8px;font-size:14px}.triple{display:grid;grid-template-columns:.8fr 1fr 1.2fr;gap:8px}.totals{padding:16px;background:var(--ink);color:white;border-radius:14px;margin-top:16px}.totals p{display:flex;justify-content:space-between;font-size:14px}.totals .grand{border-top:1px solid #ffffff30;padding-top:12px;margin-top:12px;font-size:20px;font-weight:750}#form-error{color:#b43722;font-size:14px}#toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:12px;z-index:20;display:none;max-width:90%;width:max-content;box-shadow:0 4px 20px #0003}.logo-preview{max-width:240px;max-height:80px;display:block;margin:15px 0}.detail-lines p{margin:8px 0;white-space:pre-wrap}.action-row{display:flex;gap:10px;flex-wrap:wrap}.estimate-line{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.estimate-line small{display:block}.estimate-line b{overflow-wrap:anywhere}.notice{padding:14px;border-radius:12px;background:var(--soft);font-size:14px;margin:16px 0}.back{border:0;background:none;padding:0;color:var(--muted);margin:8px 0 15px}.loading{opacity:.55;pointer-events:none}@media(min-width:700px){.cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.hero{padding:30px}.hero strong{font-size:40px}.stats{gap:15px}.stat{padding:20px}.brand small{font-size:11px}}@media(max-width:380px){main{padding-left:14px;padding-right:14px}header{padding-left:14px;padding-right:14px}.amount{font-size:16px}.page-head h1{font-size:24px}.row{gap:8px}form{padding:16px}}
#workspace-bar{max-width:920px;margin:0 auto;padding:0 22px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}#workspace-bar small{font-size:12px}#workspace-bar select{max-width:430px;padding:8px;font-size:14px}.module-nav{max-width:876px;margin:0 auto 12px;display:grid;grid-template-columns:1.35fr 1fr .8fr;gap:8px;padding:0 2px}.module-nav:empty{display:none}.module-nav button,.segments button{background:white;border:1px solid var(--line);border-radius:10px;padding:10px 7px;font-size:14px;font-weight:600;color:var(--ink)}.module-nav button.selected,.segments button.selected{background:var(--ink);color:white;border-color:var(--ink)}.segments{display:flex;gap:8px;margin:12px 0}.segments button{flex:1}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.account{border-radius:12px;background:var(--bg);padding:14px}.account h3{font-size:16px;margin:0 0 12px}.account p,.settlement p{display:flex;justify-content:space-between;gap:12px;font-size:14px}.account p b,.settlement p b{white-space:nowrap}.account-total{border-top:1px solid var(--line);padding-top:10px;font-weight:700}.settlement{margin-top:16px;padding-top:6px}.settlement .account-total{font-size:17px;color:var(--orange)}.income{color:#287944}.expense{color:#b84833}.payment.voided{opacity:.65}.payment .card-top>b{white-space:nowrap}.payment.voided .card-top>b{text-decoration:line-through}.payment h3{font-size:15px}.finance-filters{margin-top:16px}.chat-link{display:block;width:100%;text-align:left;color:var(--ink)}.chat-link p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.unread{background:var(--orange);color:white;border-radius:20px;font-size:13px;font-weight:700;padding:2px 9px}.chat-messages{max-height:52dvh;overflow-y:auto;margin:16px 0;padding:12px 4px;display:flex;flex-direction:column;gap:12px;min-height:100px}.message{align-self:flex-start;max-width:90%;padding:12px 15px;background:white;border:1px solid var(--line);border-radius:16px 16px 16px 3px}.message.mine{align-self:flex-end;background:var(--soft);border-color:#f5d5c6;border-radius:16px 16px 3px 16px}.message small{font-size:12px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;font-size:16px}.message time{display:block;text-align:right;font-size:11px;color:var(--muted)}.message-form{padding:0}.message-form textarea{min-height:75px}.message-form button{display:block;width:100%;margin-top:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.invitation{border:2px solid var(--orange)}.invitation input{font-size:14px}@media(max-width:920px){.module-nav{margin-left:22px;margin-right:22px}}@media(max-width:580px){.account-grid{grid-template-columns:1fr}.payment .card-top{flex-direction:column}.row>.primary,.row>.secondary{font-size:14px;padding:12px 8px}.module-nav button{font-size:13px}.settlement .account-total{font-size:16px}}@media(max-width:380px){.module-nav{margin-left:14px;margin-right:14px}.module-nav button{font-size:12px}#workspace-bar{padding-left:14px;padding-right:14px}}
