:root{--ink:#203c36;--muted:#788b84;--green:#1f896a;--light:#eef5f0;--line:#e1e9e3;--paper:#fff;--amber:#a36a25;--red:#b64b48;font-family:'Yu Gothic UI','Meiryo',system-ui,sans-serif;color:var(--ink);font-size:14px;background:#f5f7f3}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:10px 15px;font-weight:600}button:hover{background:#f0f5f1}button:disabled{cursor:wait;opacity:.45}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#176f56}button.quiet{border:0;background:transparent;color:var(--muted)}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #d7e2da;border-radius:8px;background:white;color:var(--ink)}textarea{resize:vertical;line-height:1.8}input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}label{display:block;font-size:13px;color:#546b61;margin:15px 0 7px}label.check{display:flex;gap:10px;align-items:flex-start;line-height:1.6}h1,h2,h3,p{margin:0}h1{font-size:25px;letter-spacing:.02em}h2{font-size:19px}h3{font-size:14px}small,.muted{color:var(--muted)}small{font-size:12px;line-height:1.7}.shell{display:grid;grid-template-columns:82px 1fr;min-height:100vh}.nav{background:#173e33;display:flex;align-items:center;flex-direction:column;gap:9px;padding:25px 9px;position:sticky;top:0;height:100vh;color:white}.logo{width:44px;height:44px;border-radius:16px;background:#e5f0c4;color:#264b3c;font-size:26px;display:grid;place-items:center;font-weight:700;margin-bottom:38px}.nav button{width:63px;border:0;background:transparent;color:#b6cbc1;font-size:11px;display:grid;gap:7px;justify-items:center;padding:13px 3px}.nav .icon{font-size:21px;line-height:24px}.nav button.active{background:#325a4a;color:white}.nav .bottom{margin-top:auto}.main{min-width:0}.topbar{height:84px;padding:0 30px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.brandline{display:flex;align-items:center;gap:12px}.brandline strong{font-size:21px;letter-spacing:.02em}.brandline span{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:13px}.status{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:7px 10px;background:#f1f6f2;border-radius:20px;color:#587668}.dot{width:7px;height:7px;border-radius:100%;background:#82a893}.notice{background:#fff7e7;color:#8b6931;font-size:12px;padding:10px 30px;border-bottom:1px solid #ece3cc}.content{padding:29px 30px}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:25px}.page-head p{color:var(--muted);margin-top:9px;font-size:13px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:11px;color:var(--green);font-weight:700;margin-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px}.stat small{display:block}.stat strong{font-size:30px;font-weight:600;display:inline-block;margin-top:10px}.stat .unit{font-size:12px;margin-left:7px;color:var(--muted)}.workspace{display:grid;grid-template-columns:270px minmax(290px,1fr) 250px;background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden;min-height:590px;height:calc(100vh - 330px)}.conversations{border-right:1px solid var(--line);overflow-y:auto}.list-head{padding:20px 18px 15px}.list-head h3{margin-bottom:12px}.list-head input{background:#f5f7f3;font-size:12px}.contact{display:flex;gap:11px;width:100%;text-align:left;border:0;border-radius:0;padding:19px 17px;border-left:3px solid transparent;border-bottom:1px solid #f0f3ef;align-items:center}.contact.active{background:#f0f7ed;border-left-color:var(--green)}.avatar{width:40px;height:40px;flex-shrink:0;border-radius:13px;background:#e3eddb;color:#547647;display:grid;place-items:center;font-size:16px;font-weight:600}.avatar.alt{background:#f4e8dd;color:#967753}.contact-text{flex:1;min-width:0}.contact-text b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-text small{font-weight:400;display:block;font-size:11px;margin-top:5px}.count{border-radius:20px;background:var(--green);font-size:10px;color:white;padding:3px 6px}.chat{min-width:0;display:flex;flex-direction:column;background:#f4f7f1;overflow:hidden}.chat-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:white;border-bottom:1px solid var(--line);gap:12px}.chat-head h2{font-size:15px}.chat-head small{display:block;margin-top:4px}.chat-scroll{padding:22px;flex:1;overflow-y:auto;min-height:160px}.dayline{text-align:center;font-size:11px;color:#8b9a8b;margin:4px 0 25px}.bubble-row{display:flex;margin-bottom:19px;gap:9px;align-items:flex-end}.bubble-row.out{justify-content:flex-end}.bubble{border-radius:13px 13px 13px 3px;padding:14px 17px;background:white;max-width:85%;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e5ebe0}.out .bubble{background:#dfefcc;border:1px solid #d2e4bd;border-radius:13px 13px 3px 13px}.bubble-time{font-size:10px;color:#91a18e;white-space:nowrap}.composer{background:#fff;padding:18px 22px;border-top:1px solid var(--line)}.composer-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;font-size:12px}.pill{display:inline-flex;align-items:center;border-radius:5px;padding:4px 7px;font-size:10px;background:#eaf3e6;color:#578344;white-space:nowrap}.pill.amber{background:#fbf0dc;color:#a17a35}.pill.red{background:#fbe9e5;color:#a85d52}.composer textarea{height:114px;font-size:13px}.actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px}.actions small{margin-right:auto}.details{padding:23px 20px;overflow-y:auto}.detail-group{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}.detail-group h3{margin-bottom:15px}.detail-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:12px 0;align-items:center}.detail-line span{color:var(--muted)}.metric{font-size:33px;margin:6px 0}.metric small{font-size:14px}.note{font-size:11px;line-height:1.8;color:var(--muted);background:#f4f7f1;padding:11px;border-radius:8px}.reason{font-size:11px;line-height:1.7;color:#8b754f;margin:7px 0}.empty{padding:45px 22px;text-align:center;color:var(--muted);line-height:2;font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:18px}.panel>p{font-size:13px;line-height:1.9;color:var(--muted);margin-top:10px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-size:11px;color:var(--muted);font-weight:500;padding:14px 16px;background:#f7f9f5;white-space:nowrap}td{padding:16px;border-bottom:1px solid var(--line);vertical-align:top}td strong{font-size:13px;display:block;margin-bottom:5px}td small{display:block;max-width:280px}tr:last-child td{border:0}.table-wrap button{font-size:11px;padding:7px 10px;white-space:nowrap}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hint{font-size:11px;line-height:1.8;color:var(--muted);margin-top:7px}.setting-title{display:flex;align-items:center;justify-content:space-between}.report-text{white-space:pre-wrap;line-height:1.9;font-size:13px;margin-top:15px}.report-head{display:flex;gap:12px;align-items:center}.report-head small{margin-left:auto}.connection-line{padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.connection-line p{font-size:12px;margin-top:6px;color:var(--muted)}.connection-line:last-child{border-bottom:0}.error-box{color:#a74e46;background:#fff0ea;border:1px solid #f4d6cc;padding:14px;border-radius:10px;font-size:12px;line-height:1.8;margin-bottom:15px}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top left,#e0eddb,transparent 55%),#f6f8f2}.login-card{width:min(440px,92vw);padding:42px;background:#fff;border-radius:20px;border:1px solid var(--line);box-shadow:0 24px 70px #214a3012}.login-card .logo{margin-bottom:24px}.login-card p{margin:13px 0 25px;color:var(--muted);font-size:13px;line-height:1.9}.login-card button{width:100%;margin-top:20px}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;max-width:600px;width:94vw;max-height:90vh;color:var(--ink)}dialog::backdrop{background:#173e3366;backdrop-filter:blur(3px)}dialog h2{margin-bottom:10px}dialog p{font-size:12px;line-height:1.8;color:var(--muted)}dialog textarea{min-height:160px}.modal-body{white-space:pre-wrap;line-height:1.9;background:#f2f7ee;padding:18px;border-radius:10px;margin:20px 0;font-size:13px}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203e33;color:white;border-radius:10px;padding:14px 22px;box-shadow:0 7px 25px #0002;z-index:5;max-width:90vw;font-size:13px;white-space:pre-wrap}#toast.visible{display:block}.mobile-only{display:none}@media(min-width:1600px){.content{max-width:1700px;margin:auto}.workspace{grid-template-columns:320px minmax(400px,1fr) 290px}}@media(max-width:1180px){.workspace{grid-template-columns:240px minmax(260px,1fr)}.details{display:none}.content{padding:24px 20px}.brandline span{display:none}}@media(max-width:760px){.shell{grid-template-columns:1fr}.nav{position:relative;height:auto;flex-direction:row;padding:10px 15px;justify-content:space-between}.logo{display:none}.nav button{padding:8px 3px;gap:4px}.nav .bottom{margin:0}.topbar{height:66px;padding:0 18px}.content{padding:20px 13px}.notice{padding:10px 15px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:14px}.stat strong{font-size:24px}.workspace{display:block;height:auto;min-height:580px}.conversations{max-height:180px;border-bottom:1px solid var(--line)}.list-head{padding:12px 16px}.list-head h3{display:none}.contact{padding:12px 14px}.chat{min-height:500px}.chat-scroll{max-height:400px}.two-col{grid-template-columns:1fr}.page-head{align-items:flex-start}h1{font-size:21px}.panel{padding:18px}.topbar .quiet{display:none}.actions{flex-wrap:wrap}.actions small{width:100%}}
