:root { font-family:'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif; color:#213b28; background:#f4f6f1; font-size:16px; }
*{box-sizing:border-box}body{margin:0;line-height:1.65}h1,h2,h3,p{margin:0}h1{font-size:1.7rem;line-height:1.4;letter-spacing:-.04em}h2{font-size:1.25rem;margin-bottom:14px;line-height:1.5}h3{font-size:1.05rem}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,.button{cursor:pointer}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid transparent;border-radius:9px;background:none;color:inherit;line-height:1.5;font-size:.9375rem;font-weight:700;text-align:center}button:disabled{opacity:.45;cursor:default}.primary{background:#163d21;color:white}.primary:hover:not(:disabled){background:#0e2e17}.secondary{background:white;border-color:#d5dfcf}.secondary:hover{background:#eef4e9}.danger{color:#a34225;background:#fff5ef;border-color:#e8c6b6}.subtle{padding:4px 10px;font-size:.875rem;color:#52634e}:focus-visible{outline:3px solid #c28039;outline-offset:3px}[hidden]{display:none!important}label{display:block;font-size:.9375rem;font-weight:700;margin:16px 0 0}label input:not([type=checkbox]):not([type=color]),label textarea,label select{display:block;width:100%;margin-top:7px;min-height:46px;border:1px solid #cbd8c6;border-radius:8px;padding:10px 12px;background:white;color:#263c29;font-weight:400}textarea{resize:vertical;line-height:1.7}input[type=checkbox]{accent-color:#214e2b;width:18px;height:18px;flex-shrink:0}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%2324472a' stroke-width='1.8'/%3E%3C/svg%3E")!important;background-position:right 12px center!important;background-size:20px!important;background-repeat:no-repeat!important;padding-right:40px!important}.muted{font-size:.9375rem;color:#64715e;line-height:1.8;margin:10px 0}.eyebrow{font-size:.8125rem;letter-spacing:.13em;color:#727e69;font-weight:800;margin-bottom:6px}.panel{background:white;border:1px solid #dfe6da;border-radius:16px;padding:26px;margin-bottom:22px}.button-row,.quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.inline-label{display:flex;gap:8px;align-items:center;margin-top:0;font-weight:400}.form-status{font-size:.9375rem;color:#a34225;margin-top:16px}.global-status{position:sticky;top:88px;z-index:20;margin:0;background:#eaf2e3;padding:0 32px;line-height:2.8;font-size:.9375rem}.global-status:empty{display:none}.global-status.error{background:#fff1e9;color:#a34225}.auth-shell{max-width:490px;margin:60px auto;padding:0 22px}.auth-brand img{width:220px;max-width:100%;display:block;margin:0 auto 16px}.auth-brand p{text-align:center;margin-bottom:28px;color:#687660}.auth-panel h1{font-size:1.5rem}.auth-panel form>.primary{margin-top:24px;width:100%}.auth-panel>a{display:inline-block;margin-top:20px;font-size:.9375rem;text-decoration:underline}.admin-shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.admin-sidebar{background:#e9f0e2;padding:30px 18px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;border-right:1px solid #d5e0cd}.admin-logo img{width:186px;max-width:100%;display:block}.sidebar-caption{font-size:.75rem;color:#6f7d65;letter-spacing:.12em;padding:20px 10px}.admin-sidebar nav{display:flex;flex-direction:column;gap:6px}.admin-sidebar nav button{justify-content:flex-start;text-align:left;min-height:48px;padding-inline:15px;font-weight:600}.admin-sidebar nav button.active{background:#fff;color:#143c20;box-shadow:0 2px 5px #20451a08}.sidebar-bottom{margin-top:auto;padding-top:24px;display:flex;align-items:center;justify-content:space-between;font-size:.875rem}.admin-workspace{min-width:0}.admin-topbar{padding:22px 32px;background:#fff;border-bottom:1px solid #dfe6da;display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:25}.topbar-actions{display:flex;align-items:center;gap:12px}.admin-main{max-width:1500px;margin:auto;padding:30px 32px 60px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,#e5eedf,#f3f7ed);border:0;padding:32px}.welcome h2{font-size:1.65rem;letter-spacing:-.04em}.welcome-mark{font-size:3.6rem;font-weight:900;color:#779466;padding-right:20px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat{padding:24px}.stat strong{font-size:2.2rem;display:block;margin:6px 0}.stat p{font-size:.9375rem;color:#64715e}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading h2{margin-bottom:0}.section-heading .button-row{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.content-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.content-toolbar label{margin:0}.content-toolbar label:first-child{min-width:160px}.content-toolbar select{margin-top:4px}.editor-layout{display:grid;grid-template-columns:minmax(310px,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}.editor-controls{min-width:0}.section-list{display:flex;flex-direction:column;gap:8px}.section-item{display:flex;gap:8px;align-items:center}.section-item>button:first-child{flex:1;text-align:left;justify-content:flex-start;border:1px solid #e1e7dc;font-weight:500}.section-item.active>button:first-child{background:#e9f2e1;border-color:#a9bca0;font-weight:700}.section-item.dim{opacity:.6}.section-order{display:flex;gap:2px}.section-order button{padding:5px;min-width:32px;min-height:38px;font-size:.8125rem}.preview-panel{position:sticky;top:120px;min-width:0;border:1px solid #cbd7c4;border-radius:12px;overflow:hidden;background:white}.preview-label{padding:12px 16px;font-size:.875rem;background:#e7eedf;display:flex;flex-wrap:wrap;gap:4px 12px}.preview-label span{font-size:.8125rem;color:#63735b}iframe{width:100%;height:calc(100dvh - 190px);border:0;background:white;display:block}.field-item{border-top:1px solid #edf0e9;padding:16px 0}.field-item:first-of-type{border-top:0}.field-item>label{margin-top:0}.field-item .inline-label{margin-top:10px}.field-item .upload{font-size:.875rem;margin-top:10px}.field-item .upload input{max-width:100%;font-size:.875rem}.field-caption{font-size:.8125rem;color:#7b8575;margin:5px 0}.program-card-editor{margin-bottom:22px}.program-card-editor .section-heading{margin-bottom:10px}.form-field-row{padding:18px 0;border-bottom:1px solid #e5ebdf}.form-field-row:last-child{border-bottom:0}.form-field-row .form-grid{grid-template-columns:1fr 150px}.filter-row{display:flex;gap:20px;align-items:end;margin-bottom:24px}.filter-row label{margin:0;min-width:160px}.filter-row label:first-child{flex:1;max-width:420px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:.9375rem}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid #e6ecdf}th{background:#f5f8f1;font-size:.875rem;color:#5d6c54}td button{padding:6px 10px;min-height:38px}.badge{display:inline-block;padding:3px 9px;border-radius:6px;font-size:.8125rem;background:#eaf1e3;color:#34542b}.badge.warn{background:#fff0db;color:#81501d}.empty{text-align:center;padding:50px 10px;color:#7c8973}.record-line{display:grid;grid-template-columns:130px 1fr;gap:20px;border-bottom:1px solid #edf0e9;padding:12px 0;font-size:.9375rem;overflow-wrap:anywhere}.record-line span:first-child{color:#687660}.record-line span:last-child{white-space:pre-line}.setup-steps{padding-left:24px;line-height:2;font-size:.9375rem}.setup-steps li{margin-bottom:12px}.history-item{display:flex;gap:24px;padding:12px 0;border-bottom:1px solid #edf0e9;font-size:.9375rem}.history-item time{color:#74816b;flex-shrink:0}dialog{width:min(650px,calc(100% - 30px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #d6dfcf;border-radius:18px;padding:28px;color:#213b28;background:white}dialog::backdrop{background:#16271380;backdrop-filter:blur(3px)}dialog h2{font-size:1.4rem}code{background:#f0f4e9;padding:2px 5px;border-radius:4px;font-size:.875rem}input[type=color]{display:block;width:90px;height:44px;margin-top:10px;border:1px solid #cbd8c6;border-radius:6px;padding:4px;background:white}
@media(max-width:1150px){.admin-shell{grid-template-columns:205px minmax(0,1fr)}.admin-topbar{padding:20px}.admin-main{padding:24px 20px}.stats-grid{grid-template-columns:repeat(2,1fr)}.editor-layout{grid-template-columns:1fr}.preview-panel{position:static}.preview-panel iframe{height:650px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}.topbar-actions .muted{display:none}}
@media(max-width:700px){.admin-shell{display:block}.admin-sidebar{position:static;height:auto;padding:20px 16px}.admin-logo img{width:175px}.sidebar-caption{padding:12px 0}.admin-sidebar nav{flex-direction:row;overflow:auto;padding-bottom:8px}.admin-sidebar nav button{white-space:nowrap;min-height:44px}.sidebar-bottom{padding-top:8px;margin-top:0}.admin-topbar{position:static;display:block;padding:20px 16px}.topbar-actions{margin-top:16px;justify-content:flex-start}.admin-topbar h1{font-size:1.5rem}.admin-main{padding:20px 16px 40px}.panel{padding:20px}.welcome{padding:24px}.welcome h2{font-size:1.35rem}.welcome-mark{display:none}.stats-grid{gap:12px}.stat{padding:18px}.stat strong{font-size:1.8rem}.form-grid,.form-field-row .form-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-wrap:wrap}.content-toolbar{gap:12px}.content-toolbar label:first-child{flex:1}.content-toolbar button{flex-grow:1}.filter-row{flex-direction:column;align-items:stretch;gap:12px}.filter-row label:first-child{max-width:none}.record-line{grid-template-columns:90px 1fr;gap:12px}.history-item{display:block}.history-item time{display:block}.global-status{position:static;padding-inline:16px;line-height:1.8}.preview-panel iframe{height:620px}.button-row>*{flex-grow:1}}

/* Apps Script deployment workspace. */
.deployment-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;background:linear-gradient(110deg,#e6eedf,#fff);}.deployment-intro h2{font-size:1.6rem;letter-spacing:-.035em}.deployment-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start}.deployment-grid>div{min-width:0}.deployment-step{font-size:.875rem;font-weight:800;color:#8e551f;margin-bottom:8px}.deployment-grid .panel h2{font-size:1.2rem}.deployment-grid details{margin-top:20px}.deployment-grid summary{font-size:.9375rem;font-weight:700;cursor:pointer;min-height:40px;padding:8px 0}.deployment-grid details textarea{width:100%;padding:14px;border:1px solid #d3dfca;border-radius:9px;background:#f4f7ef;font-family:Consolas,monospace;font-size:.875rem;line-height:1.7;white-space:pre;overflow:auto;resize:vertical}.deploy-main-button{width:100%;margin-top:20px;min-height:52px}.deployment-result dl{margin:16px 0;font-size:.875rem;line-height:1.8}.deployment-result dt{font-weight:700;color:#687660;margin-top:14px}.deployment-result dd{margin:4px 0 0;overflow-wrap:anywhere}.deployment-grid .setup-steps{margin-top:18px}.deployment-grid .setup-steps a{text-decoration:underline}.deployment-intro .badge{flex-shrink:0;max-width:180px}.deployment-grid form>.secondary{margin-top:18px}.deployment-grid input[readonly]{background:#f3f6ee;color:#5c6e53}
@media(max-width:1100px){.deployment-grid{grid-template-columns:1fr}.deployment-intro{flex-wrap:wrap}.deployment-intro h2{font-size:1.4rem}}

.global-status { top:var(--admin-bar-height,108px); }
