@font-face{font-family:Pretendard;src:url('/library/assets/Pretendard-Regular.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Pretendard;src:url('/library/assets/Pretendard-Bold.woff2') format('woff2');font-weight:600 900;font-display:swap}
:root{--ink:#213d32;--green:#246e56;--soft:#eef5ed;--paper:#fafaf5;--line:#dce6dc;--muted:#61766b;--red:#ab453b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Pretendard,'Apple SD Gothic Neo',sans-serif;word-break:keep-all;line-height:1.65}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}:focus-visible{outline:3px solid #dca944;outline-offset:3px}button{border:0;background:transparent}input,textarea,select{width:100%;min-width:0;background:#fff;border:1px solid #bfcfc3;border-radius:8px;padding:11px 12px;line-height:1.5}input:focus,textarea:focus,select:focus{border-color:var(--green)}textarea{resize:vertical;min-height:110px}input[type=checkbox]{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}label{font-size:14px;font-weight:700}small,.hint{font-size:12px;color:var(--muted);font-weight:400}.primary,.secondary,.small-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:9px;padding:9px 17px;font-size:14px;font-weight:700;text-align:center;line-height:1.5}.primary{background:var(--green);color:#fff}.secondary{background:#fff;border:1px solid #bfcfc3}.small-button{font-size:12px;min-height:36px;padding:6px 10px;background:#f0f4ee;border:1px solid var(--line)}.danger{color:var(--red)}.admin-header{min-height:110px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:16px max(24px,calc((100% - 1420px)/2));gap:24px}.admin-header>.library-logo-lockup{width:258px;max-width:60%}.admin-header>div{display:flex;gap:20px;font-size:13px;font-weight:700;align-items:center}.admin-header button{padding:9px 12px;border:1px solid var(--line);border-radius:8px}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:800;color:var(--green)}.gate{width:min(740px,calc(100% - 40px));margin:65px auto;background:#fff;border:1px solid var(--line);border-radius:24px;padding:48px;box-shadow:0 12px 50px #203e3210}.gate h1{font-size:30px;line-height:1.4;letter-spacing:-.04em;margin:15px 0}.gate p{font-size:15px;color:var(--muted)}.separation{background:var(--soft);border-radius:12px;padding:17px}.gate-actions{display:flex;gap:10px;margin-top:26px;flex-wrap:wrap}.message{font-size:14px;color:var(--green);white-space:pre-line;min-height:1.5em;margin:14px 0}.message.error{color:var(--red);background:#fff1ed;border-radius:10px;padding:13px}.mfa-panel{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.mfa-panel h2{font-size:20px}.mfa-panel label{display:grid;gap:7px;margin:14px 0}.mfa-panel input{max-width:240px;letter-spacing:.25em;font-size:20px}.mfa-panel code{display:block;font-size:14px;overflow-wrap:anywhere;background:var(--soft);padding:10px;user-select:all}.mfa-panel img{display:block;max-width:100%;height:auto;margin-top:20px}.workspace{display:grid;grid-template-columns:235px minmax(0,1fr);max-width:1480px;margin:auto;min-height:calc(100dvh - 110px)}.sidebar{padding:30px 18px;border-right:1px solid var(--line);background:#f0f5ec}.sidebar-intro{padding:5px 12px 20px}.sidebar h1{font-size:24px;margin:5px 0 9px;letter-spacing:-.04em}.sidebar-intro p{font-size:13px;color:var(--muted);margin:0}.sidebar nav{display:grid;gap:4px}.sidebar nav button,.sidebar-bottom button,.sidebar-bottom a{width:100%;display:block;text-align:left;padding:11px 14px;border-radius:9px;font-size:14px;line-height:1.5}.sidebar nav button[aria-current=page],.sidebar-bottom button[aria-current=page]{background:var(--green);color:#fff;font-weight:700}.sidebar button:hover,.sidebar a:hover{background:#e2ebdd}.sidebar-bottom{border-top:1px solid #d1decc;margin-top:24px;padding-top:18px}.sidebar-bottom>a{font-size:12px;font-weight:700;color:var(--green);background:#fff;margin-bottom:10px}.editor-workspace{padding:34px 38px 70px;min-width:0}.editor-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.editor-top h2{font-size:30px;letter-spacing:-.04em;margin:4px 0 7px;line-height:1.4}.editor-top p{font-size:13px;color:var(--muted);max-width:620px;margin:0}.revision{display:grid;gap:4px;white-space:nowrap;color:var(--muted);font-size:12px;text-align:right}.save-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;background:var(--paper);border-bottom:1px solid var(--line);margin:18px 0}.save-bar>span{font-size:12px;flex-shrink:0}.save-bar>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.field-grid{display:grid;gap:20px}.field{display:grid;gap:7px;min-width:0}.field-text{max-width:100%}.field.checkbox{display:flex;align-items:center;gap:9px}.field-group{margin:0 0 22px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px;min-width:0}.field-group>legend{padding:0 7px;font-size:15px;font-weight:800}.array-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:12px}.array-header h3{font-size:16px;margin:0}.array-count{font-weight:400;font-size:12px;color:var(--muted);margin-left:8px}.array-list{display:grid;gap:12px}.array-item{padding:18px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}.array-item>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;font-size:14px;font-weight:700;list-style:none}.array-item>summary::-webkit-details-marker{display:none}.array-item>summary::before{content:'+';font-size:18px;color:var(--green)}.array-item[open]>summary::before{content:'−'}.array-title{flex:1;overflow-wrap:anywhere}.item-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.array-item>.field-grid{padding-top:20px}.array-item>.field-grid>.field-group{background:#f8faf6}.array-empty{padding:24px;border:1px dashed #bfd0c0;border-radius:10px;color:var(--muted);font-size:14px}.asset-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.asset-input select{grid-column:1/-1}.field-image-preview{max-width:260px;max-height:160px;object-fit:contain;border:1px solid var(--line);background:#f5f7f2;border-radius:8px}.panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.panel-heading h3,#history-panel h3{font-size:23px;margin:0 0 10px}.panel-heading p,#history-panel>p{font-size:13px;color:var(--muted);max-width:620px}.upload-control{position:relative;overflow:hidden;flex-shrink:0;cursor:pointer}.upload-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}#asset-usage{font-size:13px;color:var(--muted)}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.asset-card{padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}.asset-card img{width:100%;height:145px;object-fit:contain;background:#f4f6ef;border-radius:7px}.asset-card p{font-size:12px;margin:7px 0;overflow-wrap:anywhere}.asset-card code{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.asset-card>div{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.history-item{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff;margin:12px 0}.history-item strong{font-size:14px}.history-item p{font-size:12px;color:var(--muted);margin:4px 0}.editor-footnote{margin-top:40px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.admin-footer{padding:25px;text-align:center;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}dialog{max-width:480px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--ink);box-shadow:0 30px 100px #15362540}dialog::backdrop{background:#16352c88}dialog h2{margin:0 0 10px;font-size:22px}dialog p{font-size:14px;color:var(--muted);line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}
@media(max-width:1100px){.editor-workspace{padding-inline:24px}.workspace{grid-template-columns:205px minmax(0,1fr)}.save-bar{align-items:flex-start;flex-direction:column;gap:10px}.save-bar>div{justify-content:flex-start}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-header{padding:14px 20px;min-height:96px;gap:10px}.admin-header>.library-logo-lockup{width:210px}.admin-header>div{font-size:11px;flex-direction:column;gap:5px;align-items:flex-end}.gate{padding:28px 23px;margin:35px auto}.gate h1{font-size:25px}.gate p{font-size:14px}.workspace{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:18px 20px}.sidebar-intro{padding:0 0 13px}.sidebar h1{font-size:22px}.sidebar-intro p{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px;padding-bottom:6px}.sidebar nav button{white-space:nowrap;width:auto;flex-shrink:0;font-size:12px;padding:9px 12px}.sidebar-bottom{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px;padding-top:12px}.sidebar-bottom>a,.sidebar-bottom>button{width:auto;font-size:11px;padding:8px 10px;margin:0}.editor-workspace{padding:25px 20px 50px}.editor-top h2{font-size:26px}.editor-top{gap:10px}.revision{font-size:10px}.save-bar>div{display:grid;grid-template-columns:1fr 1fr;width:100%}.save-bar .primary,.save-bar .secondary{font-size:12px;padding:9px 10px}.array-item{padding:14px}.array-item>summary{flex-wrap:wrap;gap:8px}.item-actions{margin-left:auto}.field-group{padding:18px 15px}.panel-heading{flex-direction:column;gap:8px}.asset-grid{gap:10px}.asset-card img{height:110px}.history-item{gap:10px;padding:14px}.history-item button{font-size:11px;padding:7px 10px}.admin-footer{padding:20px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
/* Grid tracks must shrink to the viewport, not to the horizontal menu's
   intrinsic width. The menu alone may scroll; the page and editor may not. */
.workspace{width:100%;min-width:0}
.workspace>.sidebar,.workspace>.editor-workspace,.sidebar-intro,.sidebar nav,.editor-top,.editor-top>div,.save-bar,.save-bar>div,#document-form,#editor-fields,#assets-panel,#history-panel,.field-grid,.array-editor,.array-list,.array-item,.field-group,.field,.asset-input{min-width:0;max-width:100%}
#document-form,#editor-fields,.array-editor,.array-list,.field-group{width:100%}
.field-grid{grid-template-columns:minmax(0,1fr)}
.field-group{min-inline-size:0}
.field-group>legend{max-width:100%;overflow-wrap:anywhere}
.array-item>summary,.array-title,.item-actions{min-width:0;max-width:100%}
.array-title{overflow-wrap:anywhere}
.field>input,.field>textarea,.field>select,.asset-input>input,.asset-input>select{min-width:0;max-width:100%}
.save-bar button{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.workspace{grid-template-columns:minmax(0,1fr)}.sidebar nav{width:100%;overflow-x:auto;overscroll-behavior-x:contain}.save-bar>div{grid-template-columns:repeat(2,minmax(0,1fr))}.array-item>summary{flex-wrap:wrap}.item-actions{flex-wrap:wrap}}
