:root{--green: #17563f;--green-soft: #eaf2ee;--gold: #b8912f;--ink: #16211d;--muted: #667a72;--line: #dfe6e2;--bg: #ffffff;--danger: #b23a2f;--danger-soft: #fdeeec;--ok: #1c7a4b;--radius: 10px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3{font-family:Cormorant Garamond,Georgia,serif;font-weight:700;margin:0 0 8px;letter-spacing:-.01em}h1{font-size:30px}h2{font-size:22px}h3{font-size:17px;font-family:Manrope,sans-serif;font-weight:700}p{margin:0 0 12px}a{color:var(--green)}.shell{display:flex;min-height:100%}.side{width:232px;border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;gap:4px;flex-shrink:0}.brand{font-family:Cormorant Garamond,serif;font-size:21px;font-weight:700;color:var(--green);padding:0 10px 18px}.brand span{color:var(--gold)}.navlink{display:block;padding:12px;min-height:44px;border-radius:var(--radius);color:var(--ink);text-decoration:none;font-weight:500}.navlink:hover{background:var(--green-soft)}.navlink.active{background:var(--green-soft);color:var(--green);font-weight:600}.main{flex:1;padding:28px 32px 64px;max-width:1040px}.side-foot{margin-top:auto;font-size:12px;color:var(--muted);padding:0 10px}.card{border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px;background:#fff}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.stat{border:1px solid var(--line);border-radius:var(--radius);padding:16px}.stat .label{color:var(--muted);font-size:13px;margin-bottom:6px}.stat .value{font-size:26px;font-weight:700;font-family:Cormorant Garamond,serif}.stat .sub{color:var(--muted);font-size:12px;margin-top:4px}button,.btn{min-height:44px;padding:0 18px;border-radius:var(--radius);border:1px solid var(--green);background:var(--green);color:#fff;font:inherit;font-weight:600;cursor:pointer}button:hover{filter:brightness(1.08)}button:disabled{opacity:.5;cursor:not-allowed}button.ghost{background:#fff;color:var(--green)}button.danger{background:#fff;color:var(--danger);border-color:var(--danger)}button.link{background:none;border:none;color:var(--green);min-height:32px;padding:0;text-decoration:underline}label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin:0 0 6px}input,select,textarea{width:100%;min-height:46px;padding:10px 12px;font:inherit;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink)}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:-1px}.field{margin-bottom:14px}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.row>*{flex:1 1 200px}.note{border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:8px;padding:12px 14px;margin-bottom:12px;font-size:14px}.note.bad{border-left-color:var(--danger);background:var(--danger-soft)}.note.good{border-left-color:var(--ok);background:var(--green-soft)}.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--line);color:var(--muted)}.pill.ok{color:var(--ok);border-color:#bfe0cd;background:var(--green-soft)}.pill.bad{color:var(--danger);border-color:#f0c9c4;background:var(--danger-soft)}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.muted{color:var(--muted)}.right{text-align:right}.auth{max-width:420px;margin:8vh auto;padding:0 20px}.auth .card{padding:28px}.tabs{display:flex;gap:8px;margin-bottom:18px}.tabs button{flex:1;background:#fff;color:var(--muted);border-color:var(--line)}.tabs button.on{background:var(--green-soft);color:var(--green);border-color:var(--green)}.inbox{display:grid;grid-template-columns:300px 1fr;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;height:calc(100vh - 200px);min-height:460px}.inbox-list{border-right:1px solid var(--line);overflow-y:auto}.inbox-filters{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}.inbox-filters button{flex:1;min-height:34px;padding:0 6px;font-size:13px}.thread-row{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 14px;min-height:68px;color:var(--ink);font-weight:400;cursor:pointer}.thread-row:hover{background:var(--green-soft);filter:none}.thread-row.on{background:var(--green-soft);box-shadow:inset 3px 0 0 var(--green)}.thread-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:3px}.thread-name{font-weight:600}.thread-preview{color:var(--muted);font-size:13px;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unread{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--green);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.inbox-thread{display:flex;flex-direction:column;overflow:hidden}.thread-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}.thread-head button{min-height:38px;font-size:13px}.thread-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:#fbfcfb}.bubble-row{display:flex}.bubble-row.customer{justify-content:flex-start}.bubble-row.you,.bubble-row.phone{justify-content:flex-end}.bubble{max-width:78%;padding:9px 12px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.bubble.you{background:var(--green-soft);border-color:#cfe3d8}.bubble.phone{background:#fdf6e3;border-color:#ecdcb0}.bubble-tag{font-size:11px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.04em}.bubble-meta{font-size:11px;color:var(--muted);margin-top:4px}.bubble-err{font-size:12px;color:var(--danger);margin-top:4px}.thread-input{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line)}.thread-input input{flex:1}@media (max-width: 760px){.inbox{grid-template-columns:1fr;height:auto}.inbox-list{max-height:260px;border-right:0;border-bottom:1px solid var(--line)}.inbox-thread{min-height:420px}}.shell-top{display:none}.main{min-width:0}@media (max-width: 760px){.shell{flex-direction:column;overflow-x:hidden}.shell-top{display:flex;flex-direction:column;gap:0;position:sticky;top:0;z-index:30;background:#fff;padding:8px 16px 10px;border-bottom:1px solid var(--line)}.shell-top .brand{padding:0;font-size:14px}.shell-title{font-family:Cormorant Garamond,Georgia,serif;font-size:24px;font-weight:700;line-height:1.2}.side{display:none}.main{padding:16px 16px calc(88px + env(safe-area-inset-bottom));width:100%}.main>h1:first-child,.main>div>h1:first-child{display:none}.main table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.main img,.main pre{max-width:100%}.phone-app.embedded{padding:0}.phone-app.embedded .phone-head{display:none}}.phone-app{max-width:560px;margin:0 auto;padding:12px 16px 48px}.phone-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.small{font-size:12px}.today-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.today-counts .stat{padding:10px 12px}.today-counts .value{font-size:24px}.today-row{display:block;width:100%;text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;margin-bottom:8px;min-height:48px;font-weight:400;height:auto}.today-row:hover{border-color:var(--green)}.today-row-top{display:flex;justify-content:space-between;gap:8px}.today-row-what{margin:4px 0 8px;font-size:14px;color:var(--ink);overflow-wrap:anywhere}.today-row-what .kind{font-weight:600;color:var(--green)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips .pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill.ad{color:var(--gold);border-color:#ead9ab;background:#fbf6e8}.pill.stage-new{color:var(--green);border-color:var(--green)}.pill.stage-confirmed{color:#fff;background:var(--green);border-color:var(--green)}.pill.stage-lost{color:var(--muted);text-decoration:line-through}.back{margin-bottom:10px}.detail-name{margin:0;overflow-wrap:anywhere}.detail-what{margin:10px 0;overflow-wrap:anywhere}.action-row{display:flex;gap:8px;margin:14px 0}.action-row .btn{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:var(--radius);border:1px solid var(--green);background:var(--green);color:#fff;font-weight:600;text-decoration:none}.action-row .btn.ghost{background:#fff;color:var(--green)}.stage-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.stage-row button{flex:1 1 auto;padding:0 12px}.chat-log{max-height:50vh;overflow-y:auto;display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.bubble{max-width:85%;padding:8px 10px;border-radius:10px;font-size:14px;overflow-wrap:anywhere}.bubble.them{align-self:flex-start;background:#f3f5f4}.bubble.us{align-self:flex-end;background:var(--green-soft)}.bubble-time{font-size:11px;color:var(--muted);margin-top:2px}.chat-reply{display:flex;gap:8px}.chat-reply input{flex:1;min-width:0}.team-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.bad-text{color:var(--danger);margin-top:6px}.pick-list{margin:8px 0 16px}.pick-row{display:flex;align-items:center;gap:12px;padding:10px 0;margin:0;border-bottom:1px solid var(--line);font-size:15px;font-weight:400;color:var(--ink);cursor:pointer}.pick-row input[type=checkbox]{width:22px;height:22px;min-height:0;flex:0 0 auto;padding:0;accent-color:var(--green)}.pick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.pick-actions button{flex:1 1 180px}.sc-log{max-height:55vh;min-height:200px}.sc-choices{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.sc-choices button{flex:1 1 auto;min-height:40px;padding:0 12px}.sc-tools{display:flex;gap:8px;margin-top:8px}.sc-tools button{flex:1}.sc-recording{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--danger);border-radius:var(--radius);padding:8px 10px;color:var(--danger)}.sc-notice{padding-left:18px;margin:0 0 12px;font-size:14px;line-height:1.5}.sc-notice li{margin-bottom:6px}.sc-line{display:flex;gap:8px;align-items:flex-start;font-size:14px;font-weight:400;color:var(--ink);padding:6px 8px;border-radius:8px;margin:0 0 4px}.sc-line input{width:auto;min-height:0;margin-top:3px}.sc-line.added{background:#fff7e0}.sc-list{padding-left:18px;font-size:14px}.sc-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}.sc-foot{margin-top:16px;text-align:center}.bill-balance{text-align:center}.bill-big{font-family:Cormorant Garamond,serif;font-size:34px;font-weight:700;color:var(--green)}.bill-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.bill-head select{max-width:170px;min-height:40px}.bill-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.bill-line b{white-space:nowrap}.bill-total{display:flex;justify-content:space-between;padding-top:12px;font-size:17px}.bill-meter{margin:14px 0 6px}.bill-meter-top{display:flex;justify-content:space-between;margin-bottom:6px}.bill-bar{height:8px;border-radius:999px;background:var(--green-soft);overflow:hidden;margin-bottom:6px}.bill-bar>div{height:100%;background:var(--green)}.phone-only{display:none}@media (max-width: 760px){.desk-only{display:none!important}.bottom-bar.phone-only{display:grid}button.phone-only{display:inline-block}.phone-head .brand{display:block;font-size:19px}.phone-app.has-bottom-bar{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.phone-head{position:sticky;top:0;z-index:5;background:var(--bg);margin:-12px -16px 12px;padding:10px 16px;border-bottom:1px solid var(--line)}.bottom-bar{grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:10;background:#fff;border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}.bottom-bar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:4px 2px;border:none;border-radius:var(--radius);background:none;color:var(--muted);font-size:11.5px;font-weight:600}.bottom-bar button.on{color:var(--green)}.bottom-bar button.on svg{background:var(--green-soft);border-radius:999px;padding:2px 12px;box-sizing:content-box}.sc-log{max-height:calc(100vh - 330px)}.more-list{padding:0 16px}.more-row{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:10px 0;background:none;border:none;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink);text-align:left;font-weight:400}.more-row:last-child{border-bottom:none}.more-row>span:first-child{display:flex;flex-direction:column}.more-chev{font-size:22px;color:var(--muted)}.more-signout{width:100%;margin-top:8px}}.greeting{margin:4px 0 14px}.greeting h1{font-size:28px;margin:0}.status-card{border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin-bottom:14px;background:#fff}.status-top{display:flex;align-items:center;gap:10px}.status-dot{width:10px;height:10px;border-radius:999px;background:var(--ok);flex:0 0 auto}.status-card.ok{background:var(--green-soft);border-color:#cfe3d8}.status-card.wait .status-dot{background:var(--gold)}.status-card.wait{border-left:3px solid var(--gold)}.status-card.bad .status-dot{background:var(--danger)}.status-card.bad{background:var(--danger-soft);border-color:#f0c9c4}.status-text{margin:6px 0 0 20px;font-size:14px;color:var(--muted)}.status-card button{margin:12px 0 0 20px}.list-title{margin:18px 0 10px}.page-title{margin:4px 0 12px}a.more-row{text-decoration:none}.more-foot{margin:16px 4px 4px}.bottom-bar.phone-only{display:none}@media (max-width: 760px){.bottom-bar.phone-only{display:grid}}
