:root{--dark:#5a2d18;--brown:#7a3f20;--orange:#d77a24;--cream:#fff8ed;--light:#f6ebdd;--white:#fff;--ink:#3d2418;--muted:#725d50;--line:rgba(90,45,24,.16);--shadow:0 22px 55px rgba(72,38,22,.16)}*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#fffaf2,#ecd4ba);color:var(--ink);font-family:"Plus Jakarta Sans",Poppins,Arial,sans-serif;min-height:100vh}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}.topbar{height:78px;padding:8px clamp(18px,5vw,70px);display:flex;align-items:center;justify-content:space-between;background:rgba(255,251,245,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--dark)}.brand img{width:46px;height:55px;object-fit:contain}.brand b,.brand small{display:block}.brand b{letter-spacing:.08em;font-size:1.3rem}.brand small{font-size:.65rem;color:var(--muted)}nav{display:flex;align-items:center;gap:10px}nav a,nav button{border:0;background:transparent;color:var(--dark);font-weight:750;padding:12px;border-radius:12px;text-decoration:none}nav a:hover,nav button:hover{background:var(--light)}#app{min-height:calc(100vh - 78px)}.loading-card,.page-shell{max-width:1160px;margin:auto;padding:40px 20px}.eyebrow{font-size:.68rem;letter-spacing:.16em;font-weight:850;color:var(--orange)}h1,h2,p{margin-top:0}em{font-style:normal;color:var(--orange)}.auth-shell{max-width:1050px;margin:auto;min-height:calc(100vh - 78px);display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:70px;padding:45px 24px}.auth-copy h1{font-size:clamp(2.6rem,6vw,5rem);line-height:1;margin:12px 0 20px}.auth-copy p{font-size:1.05rem;line-height:1.7;color:var(--muted)}.auth-copy ul{padding:0;list-style:none}.auth-copy li{margin:12px 0}.auth-copy li:before{content:"✓";display:inline-grid;place-items:center;width:23px;height:23px;background:#f0c48f;border-radius:8px;margin-right:10px}.auth-card,.chat-panel,.session-panel,.recap-card,.pay-card,.history-item{background:rgba(255,253,249,.94);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:25px}.auth-card{padding:28px}.tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--light);padding:5px;border-radius:14px;margin-bottom:24px}.tabs button{border:0;background:transparent;padding:12px;border-radius:10px;font-weight:800;color:var(--muted)}.tabs button.active{background:white;color:var(--dark);box-shadow:0 4px 12px rgba(70,35,18,.1)}label{display:grid;gap:7px;font-weight:700;font-size:.85rem;margin:14px 0}input,textarea,select{width:100%;border:1px solid #d8c4b2;background:white;border-radius:13px;padding:13px 14px;min-height:48px;color:var(--ink);font-size:16px}textarea{resize:vertical}.primary,.secondary,.send{border:0;border-radius:14px;min-height:48px;padding:12px 18px;font-weight:800;cursor:pointer}.primary{background:var(--dark);color:white;width:100%}.primary:disabled{opacity:.45;cursor:not-allowed}.secondary{background:var(--light);color:var(--dark);border:1px solid var(--line);text-decoration:none;text-align:center}.form-note,.safe-note,.muted{color:var(--muted);font-size:.75rem;line-height:1.5}.error{color:#a52820;font-size:.8rem}.portal-layout{height:calc(100vh - 78px);display:grid;grid-template-columns:310px 1fr;gap:18px;padding:18px;max-width:1400px;margin:auto}.session-panel{padding:22px;overflow:auto}.session-panel .primary{margin:12px 0 18px}.session-list{display:grid;gap:9px}.session-item{border:1px solid var(--line);background:white;border-radius:14px;padding:13px;text-align:left;cursor:pointer;color:var(--ink)}.session-item.active{background:var(--dark);color:white}.session-item b,.session-item small{display:block}.session-item small{margin-top:5px;opacity:.75}.chat-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;min-width:0;overflow:hidden}.chat-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.chat-head h1{font-size:1.25rem;margin:5px 0 0}.progress-pill{padding:8px 12px;background:var(--light);border-radius:999px;font-weight:800;font-size:.8rem}.messages{overflow:auto;padding:22px;display:flex;flex-direction:column;gap:12px}.bubble{max-width:min(720px,82%);padding:13px 16px;border-radius:18px;line-height:1.55;white-space:pre-wrap}.bubble.user{align-self:flex-end;background:var(--dark);color:#fff;border-bottom-right-radius:5px}.bubble.assistant{align-self:flex-start;background:var(--light);border-bottom-left-radius:5px}.bubble time{display:block;font-size:.63rem;opacity:.65;margin-top:5px}.empty{text-align:center;margin:auto;max-width:400px;color:var(--muted)}.empty img{width:88px}.composer{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 20px;border-top:1px solid var(--line)}.composer textarea{min-height:56px}.send{background:var(--orange);color:white;min-width:88px}.safe-note{padding:0 22px;margin:0 0 12px}.action-box{margin:0 20px 16px;padding:14px;border-radius:15px;background:#fff0d7;display:flex;align-items:center;justify-content:space-between;gap:12px}.page-head{max-width:760px;margin-bottom:28px}.page-head h1{font-size:clamp(2rem,5vw,3.6rem);margin:10px 0}.page-head p{color:var(--muted);line-height:1.6}.payment-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.recap-card,.pay-card{padding:24px}.recap-card pre{white-space:pre-wrap;font:inherit;line-height:1.55;max-height:62vh;overflow:auto;background:var(--light);padding:16px;border-radius:14px}.pay-card .primary,.pay-card .secondary{margin-top:10px}.divider{text-align:center;color:var(--muted);font-size:.75rem;margin:18px 0;border-bottom:1px solid var(--line);line-height:.1em}.divider::first-line{background:#fff}.notice{padding:10px;border-radius:10px;background:#fff0d7;white-space:pre-wrap}.consent{grid-template-columns:auto 1fr;align-items:start;font-weight:500;line-height:1.45}.consent input{width:20px;min-height:20px}.history-list{display:grid;gap:14px}.history-item{padding:20px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px}.history-item h2{font-size:1.05rem;margin-bottom:6px}.status{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--light);font-size:.75rem;font-weight:800}.history-actions{display:flex;gap:8px;flex-wrap:wrap}.history-actions a,.history-actions button{width:auto}@media(max-width:760px){.topbar{height:68px;padding:6px 12px}.brand img{width:37px;height:45px}.brand small{display:none}nav{gap:0}nav a,nav button{padding:10px 7px;font-size:.75rem}.auth-shell{grid-template-columns:1fr;gap:24px;padding:28px 15px}.auth-copy h1{font-size:2.7rem}.portal-layout{height:auto;min-height:calc(100vh - 68px);grid-template-columns:1fr;padding:10px}.session-panel{max-height:230px}.chat-panel{min-height:calc(100vh - 90px)}.chat-head{padding:16px}.messages{min-height:380px;padding:14px}.composer{position:sticky;bottom:0;background:white;padding:10px}.bubble{max-width:90%}.payment-grid{grid-template-columns:1fr}.page-shell{padding:26px 13px}.history-item{grid-template-columns:1fr}.history-actions .primary,.history-actions .secondary{width:100%}}[hidden]{display:none!important}
.qris-picker{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.qris-picker label{margin:0}.qris-box{text-align:center;margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fffdf7}.qris-box img{display:block;width:min(100%,320px);height:auto;aspect-ratio:1;margin:0 auto 12px;border-radius:10px}.qris-box h3{font-size:28px;margin:8px 0}.pay-card hr{border:0;border-top:1px solid var(--line);margin:24px 0}@media(max-width:560px){.qris-picker{grid-template-columns:1fr}.qris-picker button{width:100%}}
