:root{font-family:"Noto Sans Thai","Leelawadee UI","Malgun Gothic",system-ui,sans-serif;color:#18243d;background:#faf9f6;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d9dce2;background:white;color:#18243d;border-radius:10px;padding:10px 15px;min-height:44px}button:hover{background:#fbf1dd}button:focus-visible,a:focus-visible{outline:3px solid #de8400;outline-offset:2px}button:disabled{opacity:.55;cursor:wait}.primary{background:#18243d;color:white;border-color:#18243d}.primary:hover{background:#304565}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}aside{background:#18243d;color:#fff;padding:28px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-size:26px;font-weight:800;color:#de8400;margin-bottom:28px}.brand img{width:42px;height:42px;border-radius:8px}aside small{color:#b9c1cf}nav{display:grid;gap:6px;margin:30px 0}nav button{text-align:left;background:transparent;border:0;color:#dbe0ea}nav button.active{background:#fbf1dd;color:#18243d}main{min-width:0}header{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:18px 28px;background:#fff;border-bottom:1px solid #ebe9e2}.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.content{padding:28px;max-width:1600px;margin:auto}h1{font-size:30px;margin:0 0 8px}h2{font-size:20px;margin:0 0 18px}h3{font-size:16px}.muted{color:#627087;font-size:13px;line-height:1.7}.notice{padding:12px 16px;background:#fbf1dd;border:1px solid #edd7b4;border-radius:12px;margin:16px 0}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.card,.panel{background:#fff;border:1px solid #e4e5e7;border-radius:18px;padding:22px}.card strong{display:block;font-size:28px;margin:10px 0;overflow-wrap:anywhere}.card:first-child{background:#18243d;color:#fff}.card:first-child .muted{color:#d4d9e2}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.panel{margin-bottom:18px;min-width:0}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{color:#6b7789;font-weight:500}th,td{padding:12px 10px;border-bottom:1px solid #eef0f2;vertical-align:top;max-width:330px;overflow-wrap:anywhere}td button{padding:6px 10px;font-size:12px;min-height:36px}.badge{display:inline-block;border-radius:8px;background:#f0f2f5;padding:4px 8px;font-size:12px}.badge.good{background:#e5f3eb;color:#216344}.badge.warn{background:#fff1d6;color:#895400}.badge.bad{background:#fce9e8;color:#91382e}.empty{padding:24px;color:#69778a;text-align:center}.login{max-width:540px;margin:10vh auto;padding:32px}.login button{width:100%;margin:5px 0;text-align:left}.login .brand{color:#18243d}.login .notice{margin-bottom:24px}label{display:grid;gap:7px;margin-bottom:14px;font-size:14px}input,select,textarea{width:100%;min-width:0;border:1px solid #cdd3dc;border-radius:9px;background:white;color:#18243d;padding:10px;min-height:44px}textarea{min-height:100px;resize:vertical}header select{width:auto;max-width:240px}dialog{width:min(700px,94vw);border:1px solid #d9dce2;border-radius:18px;padding:26px;max-height:90vh;overflow:auto}dialog::backdrop{background:#18243d77}#fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}#fields .wide{grid-column:1/-1}#form-error{color:#a73732;white-space:pre-wrap}#toast{position:fixed;bottom:24px;right:24px;padding:14px 20px;background:#18243d;color:white;border-radius:12px;display:none;max-width:90vw}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 monospace}.progress{height:7px;border-radius:10px;background:#eee;overflow:hidden}.progress i{display:block;height:100%;background:#de8400}.footer{padding:12px 28px;color:#738098;font-size:12px}a{color:#6f4a13}.error{background:#fce9e8;padding:18px;border-radius:12px}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}}
@media(max-width:760px){.shell{display:block}aside{height:auto;position:static;padding:14px 16px}.brand{font-size:22px;margin-bottom:6px}.brand img{width:32px;height:32px}aside>small{display:none}nav{display:flex;overflow-x:auto;margin:12px 0 0;gap:4px}nav button{white-space:nowrap;padding:9px 11px;flex-shrink:0}header{padding:14px 16px}.content{padding:18px 14px}h1{font-size:25px}.card,.panel{padding:16px;border-radius:14px}.cards{gap:10px;margin:18px 0}.card strong{font-size:24px}#fields{grid-template-columns:1fr}.login{margin:3vh auto;padding:24px}.footer{padding:12px 16px}}

th{white-space:nowrap}td .badge{white-space:nowrap}.progress{margin-bottom:10px}.panel h3{margin:12px 0 4px}
.card strong{font-size:clamp(17px,2vw,24px)}

.metric-card{text-align:left;width:100%;position:relative}.metric-card:hover{border-color:#de8400;box-shadow:0 4px 16px #18243d12}.metric-card:first-child:hover{background:#304565}.metric-link{display:block;font-size:12px;color:#9a620a;margin-top:12px}.metric-card:first-child .metric-link{color:#ffcf84}
.detail-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbf1dd;border:1px solid #edd7b4;border-radius:12px;padding:12px 16px;margin:18px 0}
.org-chart{padding:24px;background:#fff;border:1px solid #e4e5e7;border-radius:18px;margin-top:20px}.org-root{max-width:420px;margin:auto}.org-node{display:flex;flex-direction:column;gap:12px;width:100%;text-align:left;padding:20px;border:1px solid #d7dee8;border-top:4px solid #de8400;background:#faf9f6}.org-node strong{font-size:17px}.org-node span{font-size:12px;color:#627087}.org-root .org-node{background:#18243d;color:white}.org-root .org-node span{color:#f5cf99}.org-shared{text-align:center;color:#627087;font-size:13px;line-height:1.7;margin:20px 0}.org-entities{display:grid;grid-template-columns:1fr 2fr;gap:28px;border-top:2px solid #d7dee8;padding-top:24px}.org-entity{position:relative;min-width:0}.org-entity:before{content:'';height:24px;position:absolute;left:50%;top:-24px;border-left:2px solid #d7dee8}.org-children{margin:0 0 0 18px;padding:22px 0 0 18px;border-left:2px solid #d7dee8}.org-departments{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.org-duty-list{list-style:none;padding:0;margin:0}.org-duty-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #eef0f2;flex-wrap:wrap}.org-duty-list li>div{flex:1;min-width:180px}.org-duty-list .muted{max-width:280px}
@media(max-width:760px){.org-chart{padding:16px}.org-entities{grid-template-columns:1fr;gap:28px}.org-departments{grid-template-columns:1fr}.org-children{margin-left:8px;padding-left:14px}.org-node{padding:16px}.detail-filter{flex-wrap:wrap}}

nav button:hover{color:#18243d}

.fold{padding:18px;border:1px solid #dce2e9;border-radius:14px;margin:18px 0;background:white}.fold>summary{font-weight:700;cursor:pointer;min-height:30px}.fold[open]>summary{margin-bottom:20px}.decision-intro{margin:30px 0 18px}.decision-card{padding:18px 0;border-bottom:1px solid #e4e8ed;line-height:1.7}.decision-head{display:flex;gap:10px;justify-content:space-between;align-items:start}.decision-card dl{display:grid;grid-template-columns:100px 1fr;gap:6px;font-size:13px}.decision-card dt{color:#627087}.decision-card dd{margin:0;overflow-wrap:anywhere}.decision-card details{margin:12px 0;font-size:13px}.auto-result{padding:14px 0;border-bottom:1px solid #e4e8ed}.auto-result>.badge{margin-left:12px}.auto-result p{margin:8px 0}.org-node .org-status{font-size:12px;color:#88580c}.card{padding:16px}.card strong{margin:7px 0}.metric-link{margin-top:6px}

.visual-grid{align-items:start}.sales-plot{width:100%;height:auto;display:block}.sales-plot text{font:12px system-ui;fill:#627087}.chart-date-list{display:flex;gap:8px;overflow-x:auto;padding:5px 2px 12px;max-width:100%}.chart-date-list button{min-width:108px;flex-shrink:0;text-align:left}.chart-date-list span,.chart-date-list strong{display:block;font-size:12px}.chart-date-list strong{margin-top:8px}.unknown{background:repeating-linear-gradient(45deg,#f0f2f5,#f0f2f5 4px,#fff 4px,#fff 8px)!important;color:#69778a}.bar-row{width:100%;display:grid;grid-template-columns:minmax(100px,1fr) minmax(70px,1.3fr) 65px;align-items:center;gap:8px;border:0;border-bottom:1px solid #e8ecf1;border-radius:0;text-align:left;padding:14px 0;background:transparent}.bar-label{font-size:13px;overflow-wrap:anywhere}.bar-track{height:12px;border-radius:8px;background:#edf1f5;overflow:hidden}.bar-track i{display:block;height:100%;border-radius:8px;background:#b76b00}.bar-value{text-align:right;font-size:13px;font-weight:700}.bar-row small{grid-column:1/-1;color:#627087;font-size:12px}.visual-grid details{margin-top:16px}.agent-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0}.agent-flow button{text-align:left;background:#f6f8fa;padding:12px}.agent-flow span{font-size:12px;display:block}.agent-flow strong{font-size:24px;display:block;margin-top:8px}.agent-flow button:first-child{background:#18243d;color:#fff}.org-mini{display:block;height:6px;background:#e3e8ed;border-radius:6px;overflow:hidden;width:100%}.org-mini i{display:block;height:100%;background:#328070}.org-node small{font-size:12px;line-height:1.6}.org-root .org-mini{background:#46516a}.org-node>span{line-height:1.5}
@media(max-width:760px){.agent-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-flow button:first-child{grid-column:1/-1}.bar-row{grid-template-columns:minmax(90px,1fr) minmax(65px,1fr) 62px}.sales-plot{min-height:170px}}


#chart-tooltip{position:fixed;z-index:10000;max-width:min(290px,calc(100vw - 16px));padding:12px 15px;background:#18243d;color:#fff;border:1px solid #627087;border-radius:10px;box-shadow:0 5px 20px #18243d33;white-space:pre-line;line-height:1.6;font-size:13px;pointer-events:none}.chart-hit:focus-visible{outline:2px solid #de8400;outline-offset:-2px}.chart-hit:hover{fill:#de840012}

/* BEECon popup studio — cream plaster, light oak, botanical green, pastel upholstery */
:root{--studio-bg:#f5f0e8;--studio-paper:#fffdf8;--studio-ink:#353b30;--studio-muted:#686759;--studio-green:#40583f;--studio-line:#ded5c6;--studio-oak:#b08c60;--studio-rose:#f0e1dd;--studio-mint:#e2ebe1;--studio-blue:#e5ecf0;--studio-butter:#f3ecd5;color:var(--studio-ink);background:var(--studio-bg);font-size:15px}
body{background:var(--studio-bg);line-height:1.55}button,input,select,textarea{color:var(--studio-ink)}button{border-color:var(--studio-line);background:var(--studio-paper);border-radius:14px;transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#eee8db;border-color:#acb7a0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #526b43;outline-offset:3px}.primary,.primary:hover{background:var(--studio-green);color:#fffdf8;border-color:var(--studio-green)}a{color:#46603b;text-underline-offset:3px}.muted,.bar-row small,.decision-card dt,.org-shared,.footer{color:var(--studio-muted)}
.shell{grid-template-columns:244px minmax(0,1fr)}aside{background:repeating-linear-gradient(90deg,#ede7dc 0,#ede7dc 7px,#e9e2d5 7px,#e9e2d5 8px);color:var(--studio-ink);border-right:1px solid #d5cab6;padding:34px 20px;overflow-y:auto}.brand{color:var(--studio-green);font-size:28px;letter-spacing:-.8px;margin-bottom:20px}.brand img{background:#fffdf8;width:46px;height:46px;border-radius:50%;padding:4px;box-shadow:0 3px 12px #63533814}aside>small{display:block;font-size:10px;letter-spacing:2.2px;color:#65664f;margin:0 0 26px 4px}nav{gap:7px;counter-reset:studio-nav}nav button{color:#4e5548;border:1px solid transparent;border-radius:14px;padding:11px 12px;display:flex;gap:13px;align-items:center;font-weight:500}nav button:before{counter-increment:studio-nav;content:counter(studio-nav,decimal-leading-zero);font-size:10px;letter-spacing:.5px;opacity:.75;font-variant-numeric:tabular-nums}nav button.active{color:#fffdf8;background:var(--studio-green);box-shadow:0 5px 12px #40583f18}nav button:hover{color:var(--studio-ink);background:#fffdf8b8}nav button.active:hover{color:white;background:#354d35}
header{background:#fffdf8de;border-bottom:1px solid var(--studio-line);padding:18px 32px}header>span{font-size:13px;color:#555e4c}header button{border-radius:24px;padding:9px 16px}header select{border-radius:24px;background:#f8f5ee;border-color:var(--studio-line)}.content{padding:32px;max-width:1540px}.content>h1{font-size:30px;font-weight:650;letter-spacing:-.8px;color:#394a34;line-height:1.35}.content>h1:before{content:"BEECon / OPERATIONS STUDIO";display:block;color:#74745e;font-size:10px;letter-spacing:2.1px;font-weight:500;margin-bottom:10px}h2{font-weight:650;font-size:19px;color:#3c4d36;letter-spacing:-.3px}h3{color:#46533d}.notice{background:#eee8d7;border:1px solid #dcd1b9;border-radius:12px;color:#625940;font-size:13px;line-height:1.7}.content>.notice{border-left:3px solid #aeb999;background:#f1ede1;margin:18px 0 24px}
.cards{gap:14px;margin:24px 0 30px}.card,.panel{background:var(--studio-paper);border:1px solid var(--studio-line);border-radius:22px;box-shadow:0 5px 18px #6a553508}.metric-card{padding:20px;overflow:hidden;text-align:left;border-top:4px solid #afbc9c}.metric-card:nth-child(4n+2){border-top-color:#9fbfb3;background:#f0f5ef}.metric-card:nth-child(4n+3){border-top-color:#c4a29c;background:#faf0ec}.metric-card:nth-child(4n+4){border-top-color:#bcc9d1;background:#f1f5f6}.metric-card:first-child{background:var(--studio-green);color:#fffdf8;border-color:var(--studio-green);border-top-color:#9cb58a}.metric-card:first-child:hover{background:#354d35}.metric-card>span:first-child{font-size:13px;font-weight:600}.metric-card strong{font-size:clamp(20px,2.1vw,28px);font-weight:650;letter-spacing:-.5px;margin:12px 0 8px;font-variant-numeric:tabular-nums}.metric-card .muted{font-size:11px}.metric-card:first-child .muted{color:#e1e8da}.metric-link{font-size:11px;color:#536d41;margin-top:14px}.metric-card:first-child .metric-link{color:#e8dcaf}.metric-card:hover{border-color:#90a17a;box-shadow:0 7px 20px #5e6a4818}
.panel{padding:24px;margin-bottom:20px}.visual-grid{gap:20px}.visual-grid>.panel>h2:before{content:"";display:inline-block;width:9px;height:9px;border:2px solid #9eae8d;border-radius:50%;margin-right:10px}.visual-grid .actions button{border-radius:22px;font-size:12px}.sales-plot text{fill:#676a5c}.sales-plot>line{stroke:#e6e0d5}.sales-plot>path{stroke:#6b8053;stroke-width:3}.sales-plot>circle{fill:#6b8053}.chart-hit:hover{fill:#6b805315}.chart-hit:focus-visible{outline-color:#526b43}.chart-date-list button{background:#f5f1e8;border-color:#e2d9c8;border-radius:12px}.chart-date-list strong{font-size:12px;color:#3e5337}.bar-track{background:#e9e9df;height:10px}.bar-track i{background:#91a57a}.bar-row{border-bottom-color:#e9e2d7;border-radius:0}.bar-row:hover{background:#f1f2e9}.bar-value{color:#45563c}.bar-label{line-height:1.6}.visual-grid details summary{color:#536544;font-size:13px;min-height:40px;cursor:pointer}
.decision-intro{border-top:1px solid var(--studio-line);padding-top:28px;margin-top:12px}.decision-card{border-bottom:1px solid #e6dfd2;padding:20px 0}.decision-card strong{color:#3e4a35}.decision-card details{border:1px solid #e4dccd;background:#faf7f0;border-radius:10px;padding:10px 12px}.decision-card details summary{cursor:pointer;color:#526044}.decision-card .actions button{border-radius:22px;font-size:13px}.decision-card button[data-act=approve]{background:#e4eddf;color:#35542e;border-color:#c4d2b8}.decision-card button[data-act=reject]{background:#f7e8e3;color:#843e30;border-color:#dfc2b7}.badge{background:#eee9df;color:#625c4f;border-radius:20px;padding:4px 10px}.badge.good{background:#e4eddf;color:#35542e}.badge.warn{background:#f3e7c9;color:#765319}.badge.bad{background:#f4dfd9;color:#8b3d2d}.detail-filter{background:#eaf0e3;border-color:#d3dfc6;border-radius:16px}.fold{background:#faf8f1;border-color:var(--studio-line);border-radius:18px;padding:20px}.fold>summary{color:#4d603e;font-size:14px}.auto-result{border-color:#e6dfd2}.agent-flow{gap:10px}.agent-flow button{border-color:#e2dacb;border-radius:18px;background:#f0eee4}.agent-flow button:first-child{background:var(--studio-green);color:#fffdf8;border-color:var(--studio-green)}.agent-flow button:nth-child(2){background:var(--studio-butter)}.agent-flow button:nth-child(3){background:var(--studio-rose)}.agent-flow button:nth-child(4){background:var(--studio-mint)}.agent-flow button:nth-child(5){background:var(--studio-blue)}.agent-flow button strong{font-variant-numeric:tabular-nums}
.org-chart{background:#fbf9f3;border-color:var(--studio-line);border-radius:26px;padding:28px}.org-node{background:#fffdf8;border-color:#d8d3c3;border-top-color:#a4b58b;border-radius:18px}.org-node span{color:#626b56}.org-node .org-status{color:#755528}.org-node small{color:#625d50}.org-root .org-node{background:var(--studio-green);color:white;border-top-color:#b6c39e}.org-root .org-node span,.org-root .org-node small{color:#ecebd7}.org-entities,.org-children,.org-entity:before{border-color:#d4cbb8}.org-mini{background:#e9e9df}.org-mini i{background:#8eaa76}.org-root .org-mini{background:#637457}.org-departments>.org-node:nth-child(1){background:#f4eedb}.org-departments>.org-node:nth-child(2){background:#eaf0e6}.org-departments>.org-node:nth-child(3){background:#f5e9e4}.org-departments>.org-node:nth-child(4){background:#ebf0f2}
.table-wrap{border:1px solid #e5dfd2;border-radius:13px}thead{background:#eeefe5}th{color:#536046;font-size:12px}th,td{border-color:#ebe6dc;padding:13px 12px}tbody tr:nth-child(even){background:#fbf9f3}tbody tr:hover{background:#f0f2e8}.table-wrap button{border-radius:20px}input,select,textarea{background:#fffdf8;border-color:#d4ccbc;border-radius:12px}dialog{background:#fffdf8;border-color:#d9cfbd;border-radius:26px;box-shadow:0 24px 80px #3c493529}dialog::backdrop{background:#333f315c}.login{background:#fffdf8;border-top:5px solid #a9b68d;border-radius:30px}.login .brand{color:var(--studio-green)}.login h1{color:#3b5135}.login button{border-radius:15px}.login button:hover{background:#edf1e4}.footer{border-top:1px solid #e1d8c9;padding:18px 32px;font-size:11px;letter-spacing:.2px}#toast,#chart-tooltip{background:#354c36;color:#fffdf8;border-color:#8d9a7c;box-shadow:0 6px 22px #354c3625}#chart-tooltip{border-radius:14px}.error{background:#f5e4de;color:#813e30}.progress{background:#e7e8db}.progress i{background:#8ca472}.empty{color:#6a6b5b}.unknown{color:#67695e!important}
@media(max-width:1100px){.content{padding:26px}.metric-card strong{font-size:25px}}
@media(max-width:760px){.shell{display:block}aside{padding:14px 16px;background:#ece6d9;border-right:0;border-bottom:1px solid #d9cebc;overflow:visible}.brand{font-size:24px;gap:9px;margin:0}.brand img{width:36px;height:36px;padding:3px}aside>small{display:none}nav{margin:12px 0 0;gap:7px;padding-bottom:4px}nav button{padding:9px 12px;border-radius:24px;gap:7px;font-size:13px;background:#f8f4eb;border:1px solid #ddd3c2}nav button:before{font-size:9px}header{padding:14px 16px;background:#fffdf8}header>span{font-size:12px}.top-actions{gap:7px}header button,header select{font-size:12px;min-height:42px}.content{padding:22px 14px}.content>h1{font-size:26px}.content>h1:before{font-size:9px;letter-spacing:1.6px;margin-bottom:8px}.content>.notice{font-size:12px;margin:16px 0 20px}.cards{gap:10px;margin:20px 0 24px}.metric-card{padding:16px 13px;border-radius:18px}.metric-card strong{font-size:21px}.metric-card>span:first-child{font-size:12px}.metric-card .muted{font-size:10px}.metric-link{margin-top:10px;font-size:10px}.panel{padding:18px 15px;border-radius:20px}.panel h2{font-size:18px}.visual-grid{gap:0}.decision-intro{padding-top:22px}.decision-card{padding:18px 0}.org-chart{padding:18px 12px;border-radius:20px}.org-node{padding:15px}.fold{padding:17px 14px}.agent-flow button{padding:12px;border-radius:14px}.footer{padding:16px}.login{margin:18px 12px;padding:24px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}


/* BeeCon typography: Pretendard v1.3.9, SIL OFL 1.1. Source: https://github.com/orioncactus/pretendard */
@font-face{font-family:"Pretendard";src:url("/PretendardVariable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
html,body,body *,body *::before,body *::after{font-family:"Pretendard","Leelawadee UI",system-ui,sans-serif!important}
body{font-weight:400}
h1,h2,h3,h4,h5,h6,b,strong,th,.hero h1,.login-story h1,.login-side h2,.page-heading h1,.content>h1,.metric strong,.metric-card strong,.stat strong,.card strong,.brand-card h3,.brand-result strong{font-weight:700!important}
.primary,button[type="submit"],.text-button,.text-btn,.nav.active,nav button.active,.panel-head h2{font-weight:700!important}
input,select,textarea{font-weight:400}
label,.metric>span,.metric-card>span:first-child{font-weight:500}

/* Soft popup forms — BeeCon studio, 2026-10-25 */
dialog#modal,dialog#dialog{background:linear-gradient(135deg,#f1f4e9 0,#fffdf8 42%,#fcf0eb 100%);color:#354532;border:1px solid #ddd8c7;border-radius:32px;padding:28px;box-shadow:0 28px 90px #283e3433,0 3px 12px #283e3414;max-height:88vh;max-height:88dvh;overscroll-behavior:contain}
dialog#modal::backdrop,dialog#dialog::backdrop{background:#283b365c;backdrop-filter:blur(4px)}
#modal .modal-top,#dialog #form-title{background:linear-gradient(110deg,#e4ecd9,#f3e7dd);border:1px solid #dce3cf;border-radius:22px;padding:20px 22px;margin:0 0 22px;color:#354c31}
#modal .modal-top h2,#dialog #form-title{font-size:23px;line-height:1.45;letter-spacing:-.5px;color:#354c31}
#modal .close{background:#fffdf8;border:1px solid #d2dac7;color:#55674c;border-radius:50%;width:42px;height:42px;min-width:42px;display:grid;place-items:center;padding:0;line-height:1}
#modal .fields,#dialog #fields{gap:14px;align-items:start}
#modal .fields>label,#dialog #fields>label{background:#f1f3e9;border:1px solid #e0e5d6;border-radius:18px;padding:14px;margin:0;color:#4c6043;font-size:13px;font-weight:600;min-width:0}
#modal .fields>label:nth-of-type(3n+2),#dialog #fields>label:nth-of-type(3n+2){background:#f8ede7;border-color:#eddcd3;color:#765c4d}
#modal .fields>label:nth-of-type(3n),#dialog #fields>label:nth-of-type(3n){background:#edf2f0;border-color:#dce5df;color:#4f6960}
#modal input:not([type=checkbox]):not([type=radio]),#modal select,#modal textarea,#dialog input:not([type=checkbox]):not([type=radio]),#dialog select,#dialog textarea{background:#fffefb;color:#354532;border:1px solid #d5dcca;border-radius:13px;min-height:46px;padding:11px 13px;box-shadow:inset 0 1px 3px #32462b05;max-width:100%;transition:border-color .15s,box-shadow .15s}
#modal textarea,#dialog textarea{min-height:110px;line-height:1.7;resize:vertical}
#modal input::placeholder,#modal textarea::placeholder,#dialog input::placeholder,#dialog textarea::placeholder{color:#7a8271;opacity:1}
#modal input:focus,#modal select:focus,#modal textarea:focus,#dialog input:focus,#dialog select:focus,#dialog textarea:focus{outline:2px solid #789267;outline-offset:2px;border-color:#789267;box-shadow:0 0 0 5px #dbe5d066}
#modal [aria-invalid=true],#dialog [aria-invalid=true]{border-color:#b66050!important}
#modal .field-hint,#dialog #fields>.muted{font-size:12px;line-height:1.7;color:#67735e}
#dialog #fields>.muted{background:#f8f1df;border:1px solid #e9dfc3;border-radius:13px;padding:12px 15px;margin:0}
#modal .form-actions,#dialog #form>.actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #dfdece;padding:20px 0 0;margin:22px 0 0}
#modal .form-actions button,#dialog #form>.actions button{border-radius:999px;min-height:46px;padding:11px 25px;font-weight:700}
#modal .form-actions .primary,#dialog #submit{background:#506e46!important;color:#fff!important;border:1px solid #506e46;box-shadow:0 5px 12px #506e4624}
#modal .form-actions .primary:hover,#dialog #submit:hover{background:#3d5935!important}
#modal .form-actions .secondary,#dialog #close-dialog{background:#f4e5df;color:#755646;border:1px solid #e3cfc3}
#modal .form-actions .secondary:hover,#dialog #close-dialog:hover{background:#edd9cf}
#modal .form-error:not(:empty),#dialog #form-error:not(:empty){background:#f9e9e3;border:1px solid #e7c1b4;color:#8a3f2e;border-radius:13px;padding:12px 15px;margin-top:16px;line-height:1.6}
#modal .form-error:empty,#dialog #form-error:empty{display:none}
#modal input[type=file]::file-selector-button,#dialog input[type=file]::file-selector-button{background:#e6eddd;color:#455d3a;border:0;border-radius:20px;padding:7px 12px;margin-right:10px;font:inherit}
@media(max-width:640px){dialog#modal,dialog#dialog{width:calc(100vw - 20px);max-width:620px;padding:18px;border-radius:25px;max-height:90vh;max-height:90dvh}#modal .modal-top,#dialog #form-title{padding:16px;border-radius:17px;margin-bottom:16px}#modal .modal-top h2,#dialog #form-title{font-size:20px}#modal .fields,#dialog #fields{grid-template-columns:1fr;gap:12px}#modal .fields>label,#dialog #fields>label{padding:13px;border-radius:16px}#modal input,#modal select,#modal textarea,#dialog input,#dialog select,#dialog textarea{font-size:16px}#modal .form-actions,#dialog #form>.actions{gap:10px;padding-top:16px;margin-top:18px}#modal .form-actions button,#dialog #form>.actions button{flex:1;min-width:0;padding:12px 16px}}
@media(prefers-reduced-motion:reduce){#modal input,#modal select,#modal textarea,#dialog input,#dialog select,#dialog textarea{transition:none}}
