
:root{font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:#38271f;background:#fff8ef;font-size:18px;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,.button{cursor:pointer;border:0;border-radius:10px;min-height:48px;padding:11px 19px;background:#b83d12;color:white;font-weight:700;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:8px}button:hover,.button:hover{filter:brightness(.93)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd791b;outline-offset:3px}.secondary{background:#fff0df;color:#84300e}.text-button{background:transparent;color:#96350f}.muted{color:#705b4d;font-size:.88rem}h1,h2,h3,p{margin:0}h1{font-size:1.9rem;line-height:1.35;letter-spacing:-1.4px}h2{font-size:1.3rem;margin-bottom:16px}h3{font-size:1.05rem}.eyebrow{font-size:.7rem;letter-spacing:2px;font-weight:800;text-transform:uppercase;color:#96350f;margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;font-size:1.12rem;font-weight:800}.logo{display:grid;place-items:center;background:#b83d12;color:white;width:48px;height:48px;border-radius:13px;letter-spacing:-2px}.badge{display:inline-block;font-size:.7rem;background:#fff0df;color:#84300e;padding:4px 9px;border-radius:5px;font-weight:700}.badge.gold{background:#ffe69a;color:#693f00}.shell{display:grid;grid-template-columns:252px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #ecd8c7;padding:32px 22px;display:flex;flex-direction:column;gap:38px;position:sticky;top:0;height:100vh}.sidebar nav{display:grid;gap:8px}.nav{background:transparent;color:#705b4d;justify-content:flex-start;padding:14px}.nav.active{background:#ffe2c4;color:#b83d12}.sidebar footer{margin-top:auto;font-size:.78rem;color:#705b4d}.workspace{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;padding:22px 44px;background:#fff;border-bottom:1px solid #ecd8c7;gap:16px}.topbar .muted{font-size:.8rem}.main{max-width:1220px;margin:0 auto;padding:36px 44px 90px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.hero{padding:32px;background:#b83d12;color:white;border-radius:18px;position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:20px}.hero p{color:#fff0dd;margin-top:12px}.hero .eyebrow{color:#fff0dd}.hero .button{background:#ffdf70;color:#592b08;margin-top:24px}.hero-art{width:140px;min-width:100px;border:1px solid #f59b54;border-radius:70px 70px 15px 15px;display:grid;place-content:center;text-align:center;background:#943113;color:#ffe69a;font-size:2.4rem;font-weight:800}.hero-art small{font-size:.75rem;font-weight:400;letter-spacing:3px}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;margin-top:26px}.card{background:#fff;border:1px solid #ecd8c7;border-radius:15px;padding:25px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-head h2{margin:0}.shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.shortcut{background:#fff;border:1px solid #ecd8c7;color:#84300e;display:block;text-align:left;padding:21px}.shortcut span{display:block;font-size:.75rem;font-weight:400;color:#705b4d;margin-top:6px}.row{display:block;width:100%;background:transparent;color:inherit;text-align:left;padding:20px 0;border-bottom:1px solid #f1e2d6;border-radius:0}.row:last-child{border-bottom:0}.row h3{margin:9px 0 5px}.row .meta{font-size:.78rem;color:#705b4d}.filters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:22px}.filters input{flex:1;min-width:160px}.list{display:grid;gap:15px}.list .row{background:#fff;border:1px solid #ecd8c7;border-radius:12px;padding:22px}.empty{padding:40px;text-align:center;background:#fff;border:1px dashed #d8bba4;border-radius:12px;color:#705b4d}input,select,textarea{border:1px solid #b99880;border-radius:8px;min-height:48px;padding:11px 13px;background:white;color:#38271f;max-width:100%}label{display:grid;gap:7px;font-size:.85rem;font-weight:700}form{display:grid;gap:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}textarea{min-height:120px;resize:vertical}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:#b83d12;color:white;padding:8vw 7vw;display:flex;flex-direction:column;justify-content:center}.login-story .logo{background:#ffdf70;color:#b83d12}.login-story h1{font-size:2.8rem;margin:65px 0 24px}.login-story p{color:#fff0dd}.login-form{max-width:510px;width:100%;padding:55px 34px;align-self:center;justify-self:center}.login-form h2{font-size:1.65rem;margin:28px 0 10px}.login-form form{margin-top:28px}.login-form .note{font-size:.78rem;padding:17px;background:#fff0df;border-radius:8px;margin-top:25px}.tabs{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}.tabs button{background:#fff0df;color:#84300e}.tabs .active{background:#b83d12;color:white}.detail{white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0}.user-row{display:grid;grid-template-columns:1fr auto;gap:16px;border-bottom:1px solid #ddd;padding:20px 0}.user-row form{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.audit{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.8rem}th,td{padding:12px;text-align:left;border-bottom:1px solid #ddd;white-space:nowrap}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#38271f;color:#fff;padding:14px 22px;border-radius:10px;max-width:90vw;z-index:10;display:none}.mobile-brand{display:none}.offline{color:#873d2e}.help{margin-top:22px;font-size:.78rem}.demo-note{padding:10px 15px;background:#fff0df;color:#70502b;font-size:.76rem;border-radius:8px;margin-bottom:22px}
@media(max-width:1000px){.shell{grid-template-columns:210px 1fr}.main{padding:28px 24px 90px}.topbar{padding:18px 24px}.grid{grid-template-columns:1fr}.sidebar{padding:28px 15px}.user-row{grid-template-columns:1fr}.login-story{padding:40px}.login-story h1{font-size:2.2rem}}
@media(max-width:700px){:root{font-size:18px}.shell{display:block}.sidebar{height:auto;position:static;padding:16px;gap:18px;border:0}.sidebar .brand{font-size:1rem}.sidebar nav{display:flex;gap:7px;overflow-x:auto;padding-bottom:5px}.nav{flex-shrink:0;padding:10px 15px;font-size:.85rem}.sidebar footer{display:none}.topbar{padding:12px 18px}.topbar .muted{display:none}.main{padding:24px 18px 50px}h1{font-size:1.5rem}.heading{align-items:start}.hero{padding:26px 23px}.hero h2{font-size:1.4rem}.hero-art{display:none}.shortcuts{gap:8px}.shortcut{padding:16px 10px;font-size:.85rem}.shortcut span{font-size:.66rem}.card{padding:20px}.login{display:block}.login-story{padding:27px}.login-story h1{font-size:1.6rem;margin:26px 0 14px}.login-story p{font-size:.85rem}.login-form{padding:25px}.form-grid{grid-template-columns:1fr}.filters>*{width:100%}.heading .muted{display:none}}

.logo{flex-shrink:0}.sidebar .brand small{display:block;font-size:.75rem;white-space:nowrap}.grid + .card{margin-top:24px}
@media(max-width:700px){.topbar{align-items:center;gap:8px;font-size:.8rem}.topbar>div{min-width:0}.topbar>button{white-space:nowrap;padding:8px;flex-shrink:0;font-size:.8rem}.shortcuts{grid-template-columns:1fr}.shortcut span{display:inline;margin-left:10px}}

/* Design direction: warm, prominent and easy to read. */
:root{font-size:20px}h1{font-size:1.7rem}h2{font-size:1.35rem}h3{font-size:1.15rem}
.muted,.row .meta,.badge,.help,.demo-note,.login-form .note,label,.topbar .muted,.sidebar footer{font-size:.9rem}
button,.button,input,select{min-height:56px}.nav{font-size:1.1rem}.nav.active{box-shadow:inset 5px 0 #b83d12}
.hero{background:linear-gradient(115deg,#b83d12,#a52d23)}.hero p,.hero .eyebrow{color:#fff5eb}.hero .button{background:#ffdf70;color:#592b08}
.shortcut{border-top:5px solid #e86c19}.shortcut span{font-size:.9rem}.badge.gold{background:#ffe69a;color:#693f00}
.library-tabs{margin-bottom:24px}.eyebrow,.hero-art,.sidebar footer{display:none}.topbar .muted{display:none}
@media(max-width:700px){:root{font-size:20px}.sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.nav{justify-content:center;padding:12px 4px;font-size:1rem}.nav[data-page=admin]{grid-column:1/-1}.topbar{font-size:.9rem;flex-wrap:wrap}.topbar>button{font-size:.9rem}.heading h1{font-size:1.5rem}.shortcut{font-size:1.05rem}.shortcut span{display:block;margin-left:0;font-size:.9rem}.login-story h1{font-size:1.7rem}.login-story p{font-size:1rem}.sidebar .brand small{font-size:.9rem}}

/* G:ON identity */
.logo{position:relative;border-radius:16px;background:#bd3d12;box-shadow:0 4px 12px #b83d1220}.on-dot{position:absolute;right:6px;top:6px;width:9px;height:9px;background:#ffdf70;border-radius:50%}.brand{font-size:1.55rem;letter-spacing:-1px}.sidebar .brand small{font-size:.8rem;letter-spacing:0;color:#705b4d}.hero{border-top:6px solid #ffdf70}.hero h2{font-size:1.65rem;line-height:1.5}.shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.shortcut{font-size:1.1rem}.sidebar{gap:30px}.nav.active{font-weight:800}.heading h1{line-height:1.45}.login-story .brand small{color:#fff0dd}.section-head{flex-wrap:wrap}.row h3{overflow-wrap:anywhere}@media(max-width:700px){.shortcuts{grid-template-columns:1fr}.hero h2{font-size:1.5rem}.sidebar .brand small{font-size:.85rem}}
h1,h2,h3,.brand,.shortcut{word-break:keep-all}.heading{flex-wrap:wrap}.heading>.muted{white-space:nowrap}@media(max-width:1000px){.heading>.muted{display:none}}
.history-panel{margin-top:32px}.revision{border-top:1px solid #ecd8c7;padding:16px 0;overflow-wrap:anywhere}.revision summary{cursor:pointer;min-height:56px;font-weight:bold}.revision p{white-space:pre-wrap}button:disabled{opacity:.6;cursor:wait}#admin-body>h2{margin-top:18px}
form,label,.form-grid{min-width:0}input,select,textarea{min-width:0;width:100%}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:1000px){.form-grid{grid-template-columns:1fr}}

/* Large-text administration: preserve readable controls at narrow widths. */
.card,.list,.user-row>div,.topbar>div,.tabs button{min-width:0}
.card p,.badge,.topbar>div,.tabs button,.revision summary{overflow-wrap:anywhere}
.user-row{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.user-row form>label{flex:1 1 180px}
button,.button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.revision summary:focus-visible{outline:3px solid #bd791b;outline-offset:3px;border-radius:4px}
.org-create{margin:22px 0 26px}
.scan-status{margin:16px 0;font-weight:700}
#admin-body>.button,#admin-body>#scan-file{margin-bottom:18px}
.audit{min-width:0;max-width:100%}
.audit table{font-size:.9rem}
#toast{width:max-content;max-width:calc(100vw - 36px);overflow-wrap:anywhere}
@media(max-width:1000px){.user-row{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tabs button{padding:12px 8px;line-height:1.5}
 .user-row form{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 .card .card{padding:18px}
 .revision summary{line-height:1.7;padding:8px 0}
}
.member-filters{margin:24px 0 18px}
.member-actions{display:flex;flex-wrap:wrap;gap:10px}
#member-count{margin:14px 0}
#member-error:not(:empty){padding:18px;background:#fff0df;border-radius:10px;margin-bottom:20px}
#member-error p{margin-bottom:12px}
.member-save-message:empty{display:none}
.member-save-message{flex-basis:100%;font-size:.9rem;color:#84300e;overflow-wrap:anywhere}
@media(max-width:700px){.member-actions{display:grid;grid-template-columns:minmax(0,1fr)}}

.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;margin:24px 0}.overview-card{border:1px solid #e5d8c8;border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:12px;min-width:0}.overview-card h3{font-size:1.15rem}.overview-card button{margin-top:auto}.overview-number{font-size:2rem;font-weight:800;color:#b83d12}.overview-number span{font-size:1rem;margin-left:8px}
.image-preview{margin:24px 0;min-width:0}.image-preview img{display:block;width:100%;height:auto;max-width:100%;border:1px solid #e5d8c8;border-radius:10px}.image-preview img[hidden]{display:none}.image-preview p:empty{display:none}.image-preview h3{margin-bottom:14px}
.pdf-preview{margin:24px 0;min-width:0}.pdf-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}.pdf-controls label{margin:0}.pdf-scroll{max-width:100%;overflow:auto;max-height:75vh;border:1px solid #e5d8c8;background:#f4f1eb}.pdf-scroll canvas{display:block}.pdf-preview [data-message]:empty{display:none}.pdf-controls button{min-height:48px}.pdf-controls [data-page]{font-weight:bold}
.pdf-preview [hidden],.image-preview [hidden]{display:none!important}
.pdf-expand{margin-bottom:14px}.pdf-fullscreen{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));border:0;background:#fffaf3;color:#30251d;overflow:hidden}.pdf-fullscreen[open]{display:flex;flex-direction:column;gap:8px}.pdf-fullscreen::backdrop{background:#30251d}.pdf-close{align-self:flex-end;flex-shrink:0;min-height:48px}.pdf-fullscreen .pdf-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.pdf-fullscreen .pdf-panel>h3,.pdf-fullscreen .pdf-panel>p.muted{display:none}.pdf-fullscreen .pdf-controls{flex-shrink:0;margin:0 0 8px;gap:8px}.pdf-fullscreen .pdf-controls button{padding:10px;font-size:18px}.pdf-fullscreen .pdf-controls label{display:flex;align-items:center;gap:8px}.pdf-fullscreen .pdf-controls select{width:auto;margin:0;padding:8px}.pdf-fullscreen .pdf-scroll{flex:1;min-height:0;max-height:none;overscroll-behavior:contain}.pdf-modal-open{overflow:hidden}
.pdf-fullscreen .pdf-scroll,.image-fullscreen .image-scroll{touch-action:none}.gesture-hint{font-size:16px;line-height:1.5;margin:6px 0;flex-shrink:0}.pdf-preview>.pdf-panel>.gesture-hint,.image-preview>.pdf-panel>.gesture-hint{display:none}.image-scroll{overflow:auto;max-width:100%;max-height:75vh;min-height:0}.image-scroll img{max-width:none;box-sizing:border-box;height:auto}.image-controls{margin:12px 0;flex-shrink:0}.image-controls label{display:flex;align-items:center;gap:12px}.image-controls select{width:auto}.image-fullscreen .image-scroll{flex:1;max-height:none;overscroll-behavior:contain}
.image-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.image-controls label{flex-basis:100%}.image-scroll{touch-action:none}
.local-file-check{display:flex;align-items:flex-start;gap:12px;line-height:1.6}.local-file-check input{width:24px;min-width:24px;height:24px;min-height:24px;margin-top:4px}.local-file-check+p{font-size:16px}

[hidden]{display:none!important}

.period-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0;width:100%;margin:12px 0}.period-filters label{font-size:1rem}.period-filters select{font-size:1rem;min-height:52px}@media(max-width:380px){.period-filters{gap:6px}.period-filters select{padding-left:6px;padding-right:6px}}

.video-frame:has(iframe){aspect-ratio:16/9;margin:16px 0;background:#201a17}.video-frame iframe{width:100%;height:100%;border:0}

.video-frame video{display:block;width:100%;max-height:75vh;background:#18120e;margin:16px 0;border-radius:10px}

.video-tools{padding:12px 0}.video-time{font-weight:700;margin-bottom:8px}.video-tools label{font-size:1rem}.video-tools input[type=range]{min-height:48px;width:100%;padding:0;accent-color:#b83d12}.video-actions{display:flex;gap:8px;flex-wrap:wrap}.video-actions button{flex:1 1 auto;font-size:1rem;min-height:52px}.video-actions [data-full]{flex-basis:100%}.video-actions [hidden]{display:none}.video-fullscreen{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:16px;background:#18120e;color:#fff;border:0;overflow:auto}.video-fullscreen::backdrop{background:#18120e}.video-fullscreen .video-close{display:block;margin:0 0 12px auto;background:#fff0df;color:#84300e}.video-fullscreen .video-shell{max-width:1100px;margin:auto}.video-fullscreen video{display:block;width:100%;max-height:calc(100dvh - 290px);min-height:100px;object-fit:contain;background:#000}.video-fullscreen .video-tools{padding:8px 0}@media(orientation:landscape) and (max-height:600px){.video-fullscreen video{max-height:calc(100dvh - 200px)}.video-fullscreen{padding:8px}.video-fullscreen .video-close{margin-bottom:4px}}

.video-fullscreen{width:100%;max-width:100%;overflow-x:hidden}.video-fullscreen .video-shell,.video-tools{min-width:0}.video-fullscreen .video-shell{width:100%}

.install-app-button{font-size:1rem;min-height:48px}.login-story .install-app-button{align-self:flex-start;background:#fff8ef;color:#84300e;border:1px solid #fff8ef}.install-card{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0}.install-card span{font-size:.9rem}.install-help{width:min(580px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid #e7c8b5;border-radius:20px;padding:26px;color:#38271f;background:#fffaf5;font-size:18px;line-height:1.65}.install-help::backdrop{background:#23160fb3}.install-heading{display:flex;gap:16px;align-items:center}.install-heading h2{font-size:1.35rem;margin:0}.install-heading .eyebrow{margin:0}.install-help h3{font-size:1.1rem;margin-bottom:6px}.install-help ol{padding-left:25px}.install-help li{margin:8px 0}.install-help .muted{font-size:.9rem}.install-help button{min-height:48px}.install-address{overflow-wrap:anywhere;font-weight:700}.install-help [hidden]{display:none}
