:root{--bg:#f4f6f0;--panel:#fff;--ink:#243b30;--muted:#7a887c;--line:#e2e8df;--accent:#41684d;--wash:#eaf1e5;--warn:#ad623e;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 11px;background:white;color:var(--ink);outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#87a78d;box-shadow:0 0 0 3px #edf3e8}input:read-only{background:#f5f6f3;color:#849183}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);box-shadow:none}input[type=color]{height:41px;padding:4px}.button{border:1px solid var(--line);background:white;padding:10px 15px;border-radius:7px;font-weight:500;font-size:13px;color:var(--ink)}.button:hover{border-color:#a4b49f}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover{background:#365a40}.text-button{border:0;background:none;padding:6px 3px;color:var(--accent);font-size:12px}.danger{color:#a85540}.error{color:#a04735;font-size:13px;line-height:1.7;white-space:pre-line}.error:empty{display:none}.subtle{color:var(--muted);font-size:12px;line-height:1.7}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-box{max-width:440px;width:100%;padding:40px;border:1px solid var(--line);background:white;border-radius:14px}.brand{display:flex;flex-direction:column;font-size:23px;letter-spacing:-.7px;font-weight:650;line-height:1.4}.brand span{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:2px;margin-top:3px}.auth-box h1{font-size:22px;font-weight:550;margin:38px 0 8px}.auth-box>p{font-size:13px;line-height:1.7;color:var(--muted)}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#596d5e}form>label{margin:19px 0}.auth-box .primary{width:100%;margin-top:10px}.app-shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100dvh}.sidebar{display:flex;flex-direction:column;background:#eef2e8;border-right:1px solid var(--line);padding:32px 20px;position:sticky;top:0;height:100dvh}.sidebar .brand{padding-left:12px}nav{margin-top:48px;display:grid;gap:6px}.nav-item{display:flex;gap:11px;align-items:center;text-align:left;border:0;background:none;padding:13px 12px;color:#647660;border-radius:7px;font-size:13px}.nav-item.active{background:#dde8d6;color:#294d35;font-weight:550}.nav-item svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:22px;padding:16px 12px 0}.sidebar-bottom a{font-size:12px;color:#496844;display:flex;justify-content:space-between}.sidebar-bottom small{font-size:10px;line-height:1.9;color:#86927e}.main-shell{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;font-size:12px;background:#fafbf8;color:#7e8c7b}.topbar>div{display:flex;align-items:center;gap:20px}.topbar #account-name{color:#4c624f}main{max-width:1560px;margin:auto;padding:40px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}.page-heading h1{font-size:28px;font-weight:550;letter-spacing:-.5px;margin:0 0 10px}.page-heading p{margin:0;color:var(--muted);font-size:13px}.heading-actions{display:flex;gap:10px}.filters{display:flex;align-items:center;gap:12px;margin:0 0 20px}.search{max-width:320px;width:100%}.filters>label:not(.search){width:125px}.filters input,.filters select{height:39px;font-size:12px}.filters #module-count{margin-left:auto}.table-wrap{background:white;border:1px solid var(--line);border-radius:9px;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{height:45px;padding:0 18px;font-size:11px;font-weight:500;color:var(--muted);background:#fbfcf9;border-bottom:1px solid var(--line)}td{padding:19px 18px;border-bottom:1px solid #edf0e9}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf8}.module-name{display:flex;gap:12px;align-items:center}.module-name .symbol{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:#f1f5ed;border-radius:7px;flex:none}.module-name svg{width:24px;height:24px;stroke:#819279;fill:none;stroke-width:1.3}.module-name strong{display:block;font-weight:550;font-size:13px}.module-name small{display:block;color:#8a9584;font-size:10px;margin-top:6px}.row-actions{display:flex;justify-content:flex-end;gap:12px}.status{font-size:11px;border-radius:4px;padding:5px 8px;background:#f1f3ed;color:#7b8676}.status.published{background:#eaf3e4;color:#496c3a}.status.offline{background:#f9eee3;color:#976846}.draft-dot{display:block;color:#aa8149;font-size:10px;margin-top:7px}.empty{text-align:center;padding:72px 20px}.empty h2{font-size:17px;font-weight:500}.empty p{color:var(--muted);font-size:12px}.page-note{font-size:11px;color:#929b8e;line-height:1.8;margin:20px 0}dialog{padding:0;border:1px solid #dce4d5;border-radius:12px;color:var(--ink);background:white}dialog::backdrop{background:#18312745;backdrop-filter:blur(3px)}#module-editor{width:1160px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px)}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;border-bottom:1px solid var(--line)}.editor-header h2{font-size:21px;font-weight:550;margin:0 0 6px}.close-button{background:none;border:0;font-size:25px;color:#778771;width:30px;height:30px}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 390px;max-height:calc(100dvh - 215px);overflow-y:auto}.module-form{padding:24px 28px;min-width:0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}h3{font-size:13px;font-weight:550;margin:24px 0 13px}.default-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.default-fields label{font-size:11px}.default-fields input{font-variant-numeric:tabular-nums}details{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}summary{font-size:12px;font-weight:500;color:#5c7153;cursor:pointer}.range-head,.range-row{display:grid;grid-template-columns:90px 1fr 1fr 65px 32px;gap:7px;align-items:center;font-size:11px;margin-bottom:9px}.range-head{color:var(--muted);margin-top:16px}.range-row input{padding:7px 5px;font-size:11px}fieldset{border:1px solid var(--line);border-radius:8px;margin:8px 0 20px;padding:12px}legend{font-size:12px;color:#596d5e}.check-row{display:flex;flex-wrap:wrap;gap:15px}.check-row label{display:flex;flex-direction:row;align-items:center;gap:6px}.preview-panel{background:#f7f9f3;border-left:1px solid var(--line);padding:22px;min-width:0}.preview-heading{display:flex;align-items:center;justify-content:space-between}.preview-heading h3{margin:0}.preview-panel iframe{border:1px solid var(--line);border-radius:8px;width:100%;height:300px;margin-top:14px;background:#f4f7ed}.preview-state{font-size:12px;line-height:1.7;color:#507147;padding:10px;background:#edf3e8;border-radius:5px}.preview-state.bad{background:#fff0e6;color:#a25a36}.secondary-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.version-item{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;gap:10px}.version-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.editor-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;border-top:1px solid var(--line);background:white}.editor-footer>span{font-size:12px;color:var(--muted)}.editor-footer>div{display:flex;gap:10px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:90vw;background:#284831;color:white;padding:12px 20px;border-radius:8px;font-size:13px;opacity:0;pointer-events:none;z-index:9999;transition:opacity .16s}#toast.show{opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1150px){.app-shell{grid-template-columns:172px minmax(0,1fr)}main{padding:28px}.topbar{padding:0 28px}.editor-body{grid-template-columns:minmax(0,1fr) 320px}.module-form{padding:22px}.preview-panel{padding:18px}.page-heading h1{font-size:25px}.heading-actions{flex-direction:column}.default-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:14px 16px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:18px;padding:0}.brand span{font-size:9px;letter-spacing:1px}.sidebar nav{display:flex;margin:0;gap:3px}.nav-item{padding:10px 8px;font-size:11px}.nav-item svg{display:none}.sidebar-bottom{display:none}.topbar{height:46px;padding:0 16px;font-size:10px}.topbar>div{gap:10px}main{padding:23px 16px}.page-heading{align-items:flex-start;margin-bottom:24px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px;line-height:1.8}.heading-actions{flex:none;gap:7px}.heading-actions .button{font-size:11px;padding:8px 10px}.filters{gap:7px}.filters .search{min-width:0}.filters>label:not(.search){width:100px;flex:none}.filters #module-count{display:none}table{font-size:11px}th,td{padding-left:12px;padding-right:12px}td{padding-top:14px;padding-bottom:14px}.module-name{gap:8px}.module-name strong{font-size:12px}#module-editor{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.editor-body{display:flex;flex-direction:column;max-height:calc(100dvh - 182px)}.editor-header{padding:17px}.editor-header h2{font-size:18px}.module-form{padding:18px}.preview-panel{border-left:0;border-top:1px solid var(--line);padding:18px}.preview-panel iframe{height:240px}.editor-footer{padding:13px 15px}.editor-footer .button{padding:9px 12px;font-size:12px}.editor-footer>span{font-size:10px}.field-row{gap:10px}.range-head,.range-row{grid-template-columns:73px 1fr 1fr 50px 26px;gap:5px;font-size:10px}.range-row input{font-size:10px}.auth-box{padding:28px}.default-fields{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Keep clipped accessibility labels within the horizontally scrolling table. */
.table-wrap{position:relative}.filters>.text-button{flex:none;white-space:nowrap}
