:root{--ink:#62676a;--title:#505659;--muted:#858a8d;--line:#dededb;--wash:#f6f6f4}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;line-height:1.5}button,input,textarea{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-underline-offset:3px}header{max-width:1280px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.brand{font-family:Georgia,serif;font-size:21px;letter-spacing:2px;text-decoration:none}.brand span{display:block;font:9px Arial,sans-serif;letter-spacing:3px}header nav{display:flex;gap:16px;align-items:center;font-size:12px}header nav a{text-decoration:none}.intro{max-width:1280px;margin:32px auto 22px;padding:0 24px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--muted);margin:0 0 8px}h1{font:400 54px/1 Georgia,serif;letter-spacing:-2px;margin:0 0 14px;color:#7b8083}h2{font-size:21px;font-weight:600;color:var(--title);letter-spacing:-.5px;margin:0 0 14px}h3{font-size:14px;color:var(--title);margin:0 0 10px}.intro>p:not(.eyebrow){font-size:13px;margin:8px 0;color:var(--muted)}#admin-banner{color:var(--title)}.file-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr);max-width:1280px;margin:0 auto 50px;padding:0 24px;gap:24px;align-items:start}.card{border:1px solid var(--line);padding:24px;min-width:0;background:white}.reader{min-height:350px;scroll-margin-top:12px}.reader-content,#reader-content{min-width:0}.muted{font-size:13px;line-height:1.7;color:var(--muted);margin:10px 0 18px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;min-height:42px;border:1px solid #252525;border-radius:2px;padding:9px 16px;font-size:13px;text-decoration:none;line-height:1.4}.primary{background:#252525;color:#fff}.secondary{background:white;color:var(--ink);border-color:#ccc}.text-button{background:none;border:0;padding:4px 0;color:var(--ink);font-size:12px;text-decoration:underline;text-underline-offset:3px;min-height:32px}input,textarea{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #ccc;border-radius:3px;background:white;padding:10px;min-height:44px;font-size:14px;margin-top:5px}textarea{min-height:180px;line-height:1.6;resize:vertical}input:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #777;outline-offset:2px}h2:focus{outline:none}label{font-size:12px;display:block;margin:0 0 12px}.search-row{display:flex;gap:8px;align-items:stretch}.search-row input{margin:0;flex:1}.search-row button{flex:none}.board form>label{margin-bottom:6px}.list-tools{display:flex;justify-content:space-between;align-items:center;min-height:28px;font-size:11px;color:var(--muted);margin-top:8px}.record{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;min-height:62px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.record[aria-pressed=true]{background:var(--wash)}.record-name{min-width:0;overflow-wrap:anywhere}.record-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none;color:var(--muted);font-size:11px}.record-status{font-size:10px}.pagination{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:18px;font-size:12px}.pagination button{min-height:34px;padding:5px 12px}#list-message:empty,#password-message:empty,.status-message:empty{display:none}.status-message,#list-message,#password-message{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.error{color:#9c4840}.reader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.reader-head h2{margin-bottom:3px;overflow-wrap:anywhere}.reader-head p{font-size:12px;margin:4px 0;color:var(--muted)}.reader-head button{flex:none}.reader-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-bottom:18px}.notice{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-size:14px;line-height:1.8;margin:0 0 22px}.file-url{overflow-wrap:anywhere;font-size:13px;line-height:1.7}.download-actions{display:flex;flex-direction:column;gap:8px}.download-actions .primary{width:100%;min-height:46px}.download-actions .secondary{align-self:flex-end}.download-hint{font-size:11px;color:var(--muted);margin:0;text-align:center}.ready-message{padding:22px 0;color:var(--muted);font-size:14px}.readonly-info{border-top:1px solid var(--line);padding-top:18px;margin-top:12px}.admin-label{font-size:11px;color:var(--muted);margin:0 0 8px}.edit-form{min-width:0}.edit-form .check{display:flex;gap:8px;align-items:center;line-height:1.5;margin:16px 0}.check input{width:17px;height:17px;min-height:17px;margin:0;flex:none;accent-color:#707679}.field-help{font-size:11px;color:var(--muted);margin:-5px 0 14px;line-height:1.6}.edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.preview-note{font-size:11px;background:var(--wash);padding:8px;margin-bottom:14px}dialog{border:1px solid var(--line);border-radius:5px;width:min(420px,calc(100% - 24px));padding:24px;max-height:calc(100dvh - 24px);overflow:auto;color:var(--ink);background:white}dialog::backdrop{background:rgba(60,67,72,.48)}.close{position:absolute;right:12px;top:8px;background:none;border:0;padding:4px;font-size:26px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}[hidden]{display:none!important}#link-fallback{font-size:12px}.file-detail-active .reader{scroll-margin-top:0}
@media(max-width:760px){header{padding:18px 16px}.brand{font-size:17px;letter-spacing:1.4px}header nav{gap:10px;font-size:11px}.intro{margin:24px auto 18px;padding:0 16px}h1{font-size:40px}.file-layout{display:flex;flex-direction:column;padding:0 16px;gap:16px;margin-bottom:24px}.board{order:0;width:100%}.reader{order:1;width:100%;min-height:190px}.card{padding:18px}.board h2{font-size:20px}input,textarea{font-size:16px}.file-detail-active header,.file-detail-active .intro,.file-detail-active .board{display:none}.file-detail-active .file-layout{display:block;padding:0 8px;margin:8px 0}.file-detail-active .reader{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);min-height:0;padding:16px;display:flex;flex-direction:column}.file-detail-active #reader-content{display:flex;flex-direction:column;min-height:0;flex:1}.file-detail-active .notice{overflow:auto;min-height:0;flex:1;margin-bottom:14px}.file-detail-active .download-actions{flex-shrink:0;background:white}.reader-head{margin-bottom:12px}.reader-head h2{font-size:19px}.reader-head button{padding:6px 10px;min-height:36px;font-size:12px}.file-detail-active .readonly-info{overflow:auto;flex:1;min-height:0}.file-detail-active .edit-form{overflow:auto;flex:1;min-height:0}.file-detail-active .edit-form textarea{min-height:170px}.file-detail-active .ready-message{flex:1}.reader-actions{gap:6px;margin-bottom:12px}.reader-actions button{font-size:12px;padding:7px 10px}dialog{padding:22px 18px}}
@media(max-width:360px){header nav a:first-child{display:none}.card{padding:14px}.file-layout{padding:0 10px}.record{font-size:12px}.reader-head{gap:6px}.reader-head h2{font-size:17px}}

.search-help{margin:8px 0 0;font-size:11px;line-height:1.6}

.settings-gear{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;border:1px solid #ccc;border-radius:3px;background:#fff;color:var(--title);font-size:21px;line-height:1;cursor:pointer;flex:none}.reader-head-controls{display:flex;align-items:center;gap:8px;flex:none}#file-settings-slot{display:inline-flex}.file-notices{min-width:0}.file-notice-section+.file-notice-section{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}#common-settings-dialog{width:min(600px,calc(100% - 24px));padding-top:28px}#common-settings-dialog h2{margin-right:30px}#common-notice{max-height:45dvh;min-height:180px}#common-settings-message{font-size:12px;line-height:1.6}
@media(max-width:760px){.file-detail-active .file-notices{flex:1;min-height:0;overflow:auto;margin-bottom:16px}.file-detail-active .file-notices .notice{overflow:visible;flex:none;margin-bottom:0}.reader-head-controls{gap:6px}.reader-head-controls .settings-gear{width:36px;min-height:36px;height:36px;padding:0;font-size:20px}.file-detail-active .reader-head h2{font-size:17px}.file-detail-active .reader-head>div:first-child{min-width:0}#common-settings-dialog{padding:24px 18px}#common-notice{min-height:150px}}

.rich-output{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.75}.notice-title{font-size:17px;margin:0 0 10px}.notice-body{font-size:14px}.admin-rich-body{font-size:14px;margin:0 0 18px}.file-notice-section{min-width:0}.read-check{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #d8d8d4;background:#f8f8f5;margin:16px 0 0;font-size:12px;line-height:1.6;cursor:pointer}.read-check input{width:18px;height:18px;min-height:18px;flex:none;margin:1px 0 0;accent-color:#666}.read-check span{min-width:0}.ack-status{font-size:12px;line-height:1.6;margin:0}.ack-status:empty{display:none}.download-actions .primary:disabled{background:#b4b7b6;border-color:#b4b7b6;opacity:1;color:#fff;cursor:default}.download-actions>.secondary{align-self:flex-start}.rich-editor{border:1px solid #d1d1cd;border-radius:3px;background:white;overflow:hidden;min-width:0;margin:0 0 14px}.editor-caption{font-size:12px;font-weight:600;padding:10px 12px 6px}.rich-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e3e3df;padding:7px 10px;background:#f8f8f5}.rich-toolbar button,.rich-toolbar select{width:auto;max-width:100%;min-height:32px;border:1px solid #ccc;border-radius:2px;background:white;color:#555;padding:4px 7px;font-size:12px;font-family:inherit;margin:0}.rich-toolbar select{min-width:65px;flex:0 1 auto}.format-button{min-width:32px}.format-bold{font-weight:700}.format-italic{font-style:italic}.format-underline{text-decoration:underline}.rich-input{min-height:150px;max-height:350px;overflow:auto;padding:12px;font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}.rich-editor-title .rich-input{min-height:48px;max-height:140px}.rich-input:empty::before{content:attr(data-placeholder);color:#aaa;pointer-events:none}.rich-input:focus{box-shadow:inset 0 0 0 1px #888}.editor-count{display:block;text-align:right;color:#999;font-size:10px;padding:2px 10px 5px}.notice-editor-card{border:1px solid #ccc;background:#fff;padding:16px;margin-bottom:18px;min-width:0}.notice-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.notice-card-head .muted{margin:0}.notice-card-actions{display:flex;gap:5px}.notice-card-actions button{min-height:30px;font-size:11px;padding:5px 9px}.notice-editor-card>.check{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}.notice-editor-card>.check input{margin:0}.rich-settings-dialog#common-settings-dialog{width:min(850px,calc(100% - 28px));max-height:calc(100dvh - 24px);padding:26px}.settings-footer{position:sticky;bottom:-26px;z-index:3;background:#fff;border-top:1px solid #ddd;padding:14px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.settings-footer .dialog-actions{margin:0;flex-wrap:wrap}.settings-footer>button{flex:none}.edit-actions{flex-wrap:wrap}:is(#notice-preview-dialog,#customer-download-dialog){width:min(720px,calc(100% - 24px));padding:24px;max-height:calc(100dvh - 24px)}#notice-preview-content{padding:18px;border:1px solid #ddd;min-width:0}#notice-preview-content .file-notices{margin-bottom:22px}#notice-preview-content .download-actions{margin-top:20px}#notice-preview-title:focus{outline:none}
@media(max-width:760px){.file-detail-active .file-notices{overflow:auto;min-height:0;flex:1;margin-bottom:16px}.rich-settings-dialog#common-settings-dialog{width:calc(100% - 16px);padding:20px 12px;max-height:calc(100dvh - 16px)}.notice-editor-card{padding:10px;margin-bottom:12px}.rich-toolbar{gap:4px;padding:6px}.rich-toolbar button,.rich-toolbar select{min-height:34px;font-size:12px}.rich-input{padding:10px;min-height:130px}.editor-caption{padding:8px 10px 4px}.settings-footer{bottom:-20px;align-items:stretch;flex-direction:column;padding-top:10px}.settings-footer>button{align-self:flex-start}.settings-footer .dialog-actions{justify-content:flex-end;gap:6px}.settings-footer button{font-size:12px;padding:8px 11px}.notice-title{font-size:16px}.read-check{font-size:12px;padding:10px}:is(#notice-preview-dialog,#customer-download-dialog){padding:18px 12px}#notice-preview-content{padding:14px}.file-detail-active .edit-form{padding-bottom:8px}}

/* Keep pagination anchored while requests run and on a short final page. */
#customer-list.paged-list{min-height:620px}#customer-list[aria-busy=true]{cursor:progress}.list-tools{gap:8px}#list-summary{min-width:0;white-space:nowrap}#list-message{margin:0}#list-message:not(:empty){margin:8px 0}

.intro:has(> #admin-banner[hidden]){display:none}.intro{margin:20px auto 0}.file-layout{margin-top:24px}

.intro-body{white-space:pre-wrap}#intro-editor-dialog{width:min(760px,calc(100% - 24px))}#intro-settings-open{flex:none}

.rich-toolbar .rich-color-label{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:11px;white-space:nowrap}.rich-toolbar input[type=color]{display:inline-block;flex:none;width:32px;max-width:32px;height:28px;min-height:28px;padding:2px;margin:0;border:1px solid #ccc;background:white;cursor:pointer}

.retention-fields{min-width:0;border:1px solid var(--line);padding:14px;margin:18px 0}.retention-fields legend{font-size:13px;padding:0 6px}.retention-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.retention-grid label{min-width:0}.retention-grid input{box-sizing:border-box;max-width:100%}.retention-tools{display:flex;gap:6px;flex-wrap:wrap}.retention-tools button{font-size:11px;padding:6px 10px;min-height:34px}.retention-result{font-size:13px;margin:12px 0}.retention-fields .field-help{margin:6px 0 0}.rich-toolbar .retention-insert,.rich-toolbar .retention-period{white-space:nowrap;width:auto;padding:4px 7px;font-size:11px}#common-retention-settings{margin:0 0 16px}#retention-settings-dialog{width:min(440px,calc(100% - 24px))}#retention-settings-dialog h2:focus{outline:none}

/* Compact, right-aligned acknowledgements and subtle notice separators. */
.file-notice-section+.file-notice-section{border-top:1px solid #e8e8e5;padding-top:16px;margin-top:16px}.file-notice-section>.read-check{display:flex;align-items:center;width:fit-content;max-width:100%;margin:12px 0 0 auto;padding:7px 0;min-height:34px;border:0;background:transparent;text-align:left}.file-notice-section>.read-check input{margin:0;align-self:center}.file-notice-section>.read-check span{overflow-wrap:anywhere}

.material-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}.material-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;min-width:0;padding:16px;border:1px solid #ccc;background:#fff;color:var(--ink);border-radius:3px;min-height:108px;overflow-wrap:anywhere}.material-card strong{font-size:16px;color:var(--title)}.material-state,.material-deadline{font-size:11px;color:var(--muted)}.material-edit-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}.material-edit-tabs button[aria-pressed=true]{border-color:#555;background:#f1f1ee}.material-field-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.material-field-grid select,#catalog-type-selector select{display:block;width:100%;min-width:0;max-width:100%;padding:10px;margin-top:6px;border:1px solid #ccc;background:#fff;font:inherit;color:inherit}.mobile-download-note{padding:16px;border:1px solid #ddd;background:#f7f7f4;font-size:13px;line-height:1.7}.preview-device-controls{display:flex;gap:8px;margin-bottom:14px}#catalog-type-selector{display:flex;align-items:flex-end;gap:10px;margin:16px 0}#catalog-type-selector label{flex:1;margin:0}#catalog-type-selector button{flex:none}.catalog-policy .check{display:flex;align-items:center;gap:8px}.catalog-policy input{width:17px;height:17px;min-height:17px;margin:0;accent-color:#666}.catalog-days{font-size:13px;margin:14px 0}#catalog-type-editor{padding:14px;border:1px solid #dededb;margin-bottom:18px}#catalog-type-editor .field-help{margin:10px 0 0}@media(max-width:560px){.material-field-grid{grid-template-columns:1fr}.material-list{gap:8px}.material-card{padding:12px;min-height:100px}.material-card strong{font-size:14px}#catalog-type-selector{align-items:stretch;flex-direction:column}#catalog-type-selector button{align-self:flex-start}}

.catalog-delete-confirm{grid-column:1/-1;border:1px solid #ddd;padding:12px;min-width:0}.catalog-delete-confirm p{margin:0 0 12px;overflow-wrap:anywhere}.catalog-delete-confirm button+button{margin-left:8px}

#catalog-type-selector{flex-wrap:wrap}.catalog-delete-confirm{flex:1 0 100%;box-sizing:border-box}

.download-read-hint{margin:12px 0 16px;padding:10px 12px;border:1px solid #dededb;background:#f7f7f4;color:#333;font-size:13px;line-height:1.6;overflow-wrap:anywhere}

.reader{min-height:0}.reader-compact #reader-content>:last-child{margin-bottom:0}.reader-compact .material-list{margin-bottom:0}.material-card{min-height:0}
@media(max-width:760px){.file-detail-active .reader.reader-compact{height:auto;max-height:none}.file-detail-active .reader-compact #reader-content{flex:initial}.reader-compact .material-card{min-height:0}}

.file-notice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-width:0}.file-notice-heading>.notice-title{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}.file-notice-heading>.read-check{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 1 auto;max-width:100%;margin:0 0 0 auto;padding:4px 0;min-height:30px;border:0;background:transparent;font-size:12px;text-align:right}.file-notice-heading>.read-check span{overflow-wrap:anywhere}.file-notice-heading>.read-check input{flex:none;width:17px;height:17px;min-height:17px;margin:0;accent-color:#707679}@media(max-width:560px){.file-notice-heading{gap:8px}.file-notice-heading>.read-check{font-size:11px;gap:6px;max-width:55%}.file-notice-heading>.read-check input{width:18px;height:18px;min-height:18px}}

@media(max-width:560px){.file-notice-heading>.read-check{font-size:10px;flex:none;max-width:none}.file-notice-heading>.read-check span{white-space:nowrap}}

.material-link-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}.file-capacity-input{display:flex;align-items:stretch;gap:6px;min-width:0}.file-capacity-input input{flex:1;min-width:0}.file-capacity-input select{flex:0 0 65px;margin-top:5px}.capacity-result{font-size:12px;margin:0 0 16px;line-height:1.6;color:var(--muted)}.capacity-result.error{color:#9c4840}.rich-toolbar .capacity-insert{white-space:nowrap;padding:4px 7px;font-size:11px}@media(max-width:560px){.material-link-grid{grid-template-columns:1fr;gap:0}}

/* Compact material metadata: avoid full-width short fields. */
#materials-edit-form .material-field-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr);max-width:680px;align-items:start;margin-bottom:14px}
#materials-edit-form .material-field-grid label{min-width:0;margin:0;font-size:13px}
#materials-edit-form .material-field-grid input,#materials-edit-form .material-field-grid select{box-sizing:border-box;margin-top:6px;height:42px;min-height:42px;padding:8px 10px}
#materials-edit-form .file-capacity-input{margin-top:6px}
#materials-edit-form .file-capacity-input input,#materials-edit-form .file-capacity-input select{margin-top:0}
#materials-edit-form .material-link-grid{grid-template-columns:minmax(0,1fr);margin-top:0}
@media(max-width:560px){#materials-edit-form .material-field-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}#materials-edit-form .material-field-grid>label:first-child{grid-column:1/-1;max-width:260px}}
/* Customer/admin separation and full-width customer reading layout. */
.file-admin-locked .file-layout{display:none!important}.file-admin-login{width:min(460px,calc(100% - 32px));margin:40px auto;box-sizing:border-box}

:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:start;gap:28px;min-width:0}
:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout>.file-notices{min-width:0;margin-bottom:0!important}:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout>.download-actions{position:sticky;top:18px;padding:16px;border:1px solid var(--line);background:white;box-sizing:border-box;margin-top:0!important;min-width:0}
:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout>.download-actions .primary{height:48px;min-height:48px;font-size:15px}:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout>.download-actions:only-child{grid-column:1/-1}
:is(#notice-preview-dialog,#customer-download-dialog){width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;padding:24px;max-height:calc(100dvh - 24px)}#notice-preview-content{padding:20px;box-sizing:border-box}
#notice-preview-content.preview-mobile{max-width:430px;margin:auto}.preview-mobile .notice-viewer-layout{display:flex;flex-direction:column;gap:18px}.preview-mobile .download-actions{width:100%;position:static}.preview-mobile .file-notice-heading{gap:8px;align-items:flex-start}.preview-mobile .read-check{font-size:10px}.preview-mobile .read-check span{white-space:normal}
.extra-notice-fold{border:1px solid var(--line);padding:0 14px;margin:16px 0}.extra-notice-head{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:14px 0;list-style:none}.extra-notice-head::-webkit-details-marker{display:none}.extra-notice-head>strong::before{content:'＋';margin-right:8px;font-weight:400}.extra-notice-fold[open]>.extra-notice-head>strong::before{content:'−'}.extra-notice-head>.check{display:flex;align-items:center;gap:7px;margin:0!important;font-size:12px;cursor:pointer}.extra-notice-head>.check input{margin:0}.extra-notice-fold[open]>.rich-editor{margin-bottom:14px}.extra-notice-fold:not([open])>:not(summary){display:none!important}
#catalog-type-selector{align-items:flex-end;gap:10px}#catalog-type-selector select,#catalog-type-selector>button{height:42px;min-height:42px;box-sizing:border-box;line-height:1.4}#catalog-type-selector>button{margin:0;padding:8px 14px}.rich-toolbar{align-items:center;gap:6px}.rich-toolbar button,.rich-toolbar select,.rich-toolbar input[type=color]{height:34px!important;min-height:34px!important;max-height:34px;box-sizing:border-box;line-height:1.25;margin:0!important;padding:4px 8px;border-radius:0}.rich-toolbar .rich-color-label{height:34px;min-height:34px;display:inline-flex;align-items:center;gap:6px;margin:0}.rich-toolbar input[type=color]{width:34px;max-width:34px;padding:2px}
#materials-edit-form .material-field-grid input,#materials-edit-form .material-field-grid select{height:42px;box-sizing:border-box}
@media(max-width:1000px){:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout{grid-template-columns:minmax(0,1fr) 200px;gap:20px}.file-notice-heading>.read-check{font-size:11px}.file-notice-heading>.read-check span{max-width:145px}}
@media(max-width:760px){header,.file-layout{max-width:100%}.file-detail-active .reader{height:auto;max-height:none;min-height:calc(100dvh - 16px);display:block}.file-detail-active #reader-content{display:block}.notice-viewer-layout{display:flex;flex-direction:column;gap:18px}.file-detail-active .notice-viewer-layout>.file-notices{overflow:visible;flex:none;width:100%}.notice-viewer-layout>.download-actions{position:sticky;top:auto;bottom:0;width:100%;padding:12px;z-index:2}.file-notice-heading>.read-check span{max-width:none}:is(#notice-preview-dialog,#customer-download-dialog){width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:18px 12px}#notice-preview-content{padding:14px}.extra-notice-head{gap:8px}.extra-notice-head>.check{font-size:11px}.mobile-download-note{margin:14px 0 0}#catalog-type-selector>button{align-self:stretch}#catalog-type-selector label{width:100%}.settings-footer{position:sticky;bottom:-20px}}

/* Popup width must not change the surrounding board or customer reader. */
:is(#notice-preview-dialog,#customer-download-dialog) .preview-mobile .notice-viewer-layout{display:flex;flex-direction:column}:is(#notice-preview-dialog,#customer-download-dialog) .preview-mobile .download-actions{position:static;width:100%}
@media(max-width:760px){:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout{display:flex;flex-direction:column}:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout>.download-actions{position:sticky;top:auto;bottom:0;width:100%}}

#customer-download-title{margin-right:32px}#customer-download-dialog .close{position:sticky;float:right;top:0;right:0;z-index:3;background:white;line-height:1}#customer-download-title:focus{outline:none}

/* Download action shares the material title row; notices use the entire popup width. */
:is(#notice-preview-dialog,#customer-download-dialog) .notice-viewer-layout{display:block!important}
.download-popup-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;min-width:0}
.download-popup-header>h2,.download-popup-header>h3{margin:0!important;min-width:0;overflow-wrap:anywhere;flex:1}
.download-popup-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none}
.download-popup-header .download-actions{position:static!important;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:0!important;margin:0!important;border:0!important;background:transparent;width:auto!important;max-width:300px}
.download-popup-header .download-actions .primary{width:auto;min-width:140px;height:42px;min-height:42px;padding:9px 16px;font-size:13px;white-space:nowrap}
.download-popup-header .ack-status{max-width:100%;font-size:11px}.download-popup-header .ack-status:not(:empty){flex-basis:100%;text-align:right}
#customer-download-dialog .download-popup-header .close{position:static;float:none;flex:none;margin:0;padding:0 3px;font-size:26px;line-height:1;background:transparent}
@media(max-width:560px){.download-popup-header{gap:10px}.download-popup-controls{gap:8px}.download-popup-header .download-actions{max-width:180px}.download-popup-header .download-actions .primary{min-width:116px;font-size:12px;padding:8px 10px}.download-popup-header>h2{font-size:18px}}

/* Material chooser presents a clear action while retaining one accessible native button. */
.customer-material-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:7px;align-items:center;background:#f7f7f5;border:1px solid #aaa;border-radius:2px;transition:background-color .15s,border-color .15s;cursor:pointer}
.customer-material-card>strong,.customer-material-card>.material-state,.customer-material-card>.material-deadline{grid-column:1;min-width:0}
.customer-material-card>.material-open-action{grid-column:2;grid-row:1/span 3;align-self:center;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;min-height:40px;background:#252525;color:white;border:1px solid #252525;border-radius:2px;font-size:12px;white-space:nowrap}
@media(hover:hover){.customer-material-card:hover{background:#eeeee9;border-color:#555}.customer-material-card:hover .material-open-action{background:#444}}
.customer-material-card:active{background:#e8e8e2}.customer-material-card:focus-visible{outline:2px solid #555;outline-offset:3px}
@media(max-width:560px){.customer-material-card{column-gap:10px}.customer-material-card>.material-open-action{font-size:11px;padding:8px 10px;min-height:36px}}

@media(max-width:560px){.material-list:has(>.customer-material-card){grid-template-columns:minmax(0,1fr)}}

#customer-download-dialog .download-popup-header .close{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;min-height:42px;padding:0;border:1px solid #bbb;border-radius:2px;background:#fff;font-size:25px;line-height:1;cursor:pointer}
@media(hover:hover){#customer-download-dialog .download-popup-header .close:hover{background:#f3f3ef;border-color:#777}}

.upload-gear{color:var(--title);text-decoration:none}.upload-gear svg{display:block;flex:none}.reader-head-controls>.settings-gear{box-sizing:border-box}

#material-type-dialog{width:min(480px,calc(100vw - 24px));padding:24px}#material-type-title{font-size:19px;margin:0 42px 20px 0}#material-type-title:focus{outline:none}.material-type-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.material-type-choice{min-width:0;min-height:48px;text-align:center;border-color:#aaa;overflow-wrap:anywhere}.material-type-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid #bbb;border-radius:2px;top:16px;right:16px;font-size:24px;line-height:1}.material-type-choice:hover{background:#f2f2ee;border-color:#666}@media(max-width:480px){.material-type-choices{grid-template-columns:minmax(0,1fr)}}

#material-editor-dialog{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px}#material-editor-title{font-size:20px}#material-editor-title:focus{outline:none}#material-editor-close{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;font-size:26px;line-height:1}#material-editor-content{min-width:0}#material-editor-dialog .edit-form{overflow:visible}#material-editor-dialog .material-edit-tabs{padding-top:4px}@media(max-width:560px){#material-editor-dialog{width:calc(100vw - 12px);padding:16px 12px}}

.customer-material-card>.material-open-action{min-width:142px}.customer-material-card:disabled{opacity:1;cursor:default;background:#f5f5f3;border-color:#d1d1cc;color:#999}.customer-material-card:disabled strong,.customer-material-card:disabled .material-state{color:#999}.customer-material-card:disabled>.material-open-action{background:#c5c7c6;border-color:#c5c7c6;color:#fff;cursor:default}.customer-material-card:disabled:active{background:#f5f5f3}.customer-material-card:disabled:hover{background:#f5f5f3;border-color:#d1d1cc}@media(max-width:560px){.customer-material-card>.material-open-action{min-width:128px}}

/* Download unlock: the button shows the progress itself, so the popup header never changes height. */
.download-actions .download-unlock{position:relative;display:inline-grid;align-items:center;justify-items:center;overflow:hidden;isolation:isolate;border:1px solid #b4b4af;border-radius:2px;background:#fff;color:var(--title);font-weight:700;transition:border-color .4s ease}
.download-actions .primary.download-unlock:disabled{border-color:#b4b4af;background:#fff;color:var(--title);opacity:1;cursor:default}
.unlock-fill,.unlock-sheen{position:absolute;inset:0;z-index:-1;pointer-events:none}
.unlock-fill{background:#e6e6e1;transform:scaleX(var(--unlock,0));transform-origin:left;transition:transform .7s cubic-bezier(.22,.8,.24,1),background-color .5s ease}
.unlock-sheen{right:auto;left:-55%;width:55%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);opacity:0}
.unlock-label{grid-area:1/1;transition:opacity .4s ease}
.unlock-ready{opacity:0;color:#fff}
[data-unlock=waiting] .unlock-sheen{opacity:1;animation:unlock-sheen 1.25s ease-in-out infinite}
@keyframes unlock-sheen{to{left:100%}}
.download-actions[data-unlock=ready] .download-unlock{border-color:#252525;cursor:pointer;animation:unlock-settle .9s ease-out .15s 1}
[data-unlock=ready] .unlock-fill{background:#252525}
[data-unlock=ready] .unlock-progress{opacity:0}
[data-unlock=ready] .unlock-ready{opacity:1}
@keyframes unlock-settle{from{box-shadow:0 0 0 0 rgba(37,37,37,.28)}to{box-shadow:0 0 0 7px rgba(37,37,37,0)}}
.unlock-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.unlock-fill,.unlock-label,.download-actions .download-unlock{transition:none}[data-unlock=waiting] .unlock-sheen{animation:none;opacity:0}.download-actions[data-unlock=ready] .download-unlock{animation:none}}
/* Keep the title and download button in view while long notices scroll. */
#customer-download-dialog{padding-top:0;scroll-padding-top:84px}
#customer-download-dialog>.download-popup-header{position:sticky;top:0;z-index:4;margin-top:0;padding:18px 0 10px;background:#fff;border-bottom:1px solid var(--line)}
/* Correction requests in the studio's customer list */
.record-flag{padding:1px 8px;border:1px solid #b4b4af;border-radius:20px;background:#fff;font-size:10.5px;font-weight:700;color:var(--title);white-space:nowrap}
.record-flag.is-hot{border-color:#252525;background:#252525;color:#fff}
.pending-requests{margin:14px 0 4px;padding:10px 12px;border:1.5px solid #252525;border-radius:3px}
.pending-requests h3{margin:0 0 2px;font-size:13px;font-weight:700;color:#252525}
.pending-requests .record{min-height:44px;padding:8px 0}
.pending-requests .record:last-child{border-bottom:0}

/* Phone rules in the download popup */
.page-address-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px}
.page-address-copy input{margin:0;min-height:42px}
.mobile-rule-note{margin:0 0 12px}
@media(max-width:480px){.page-address-copy{grid-template-columns:minmax(0,1fr)}}
/* What the contract covers: studio only */
.reader-head.has-contract-type{flex-wrap:wrap}
.reader-head.has-contract-type>div:first-child{flex:1 1 0;min-width:0}
.contract-type{flex:0 0 100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 14px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:3px;background:var(--wash)}
.contract-type[aria-busy=true]{opacity:.6}
.contract-type-title{font-size:12.5px;font-weight:700;color:var(--title);white-space:nowrap}
.contract-type-choices,.contract-snap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.contract-check{display:inline-flex;align-items:center;gap:7px;width:auto;min-height:36px;margin:0;padding:0 12px;border:1px solid #c4c4bf;border-radius:3px;background:#fff;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
.contract-check input{display:block;flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#252525;cursor:pointer}
.contract-check:has(input:checked){border-color:#252525;color:#252525}
.contract-check:has(input:focus-visible){outline:2px solid #555;outline-offset:2px}
.album-choice{display:inline-flex;border:1px solid #c4c4bf;border-radius:3px;background:#fff}
.album-choice label{position:relative;display:block;width:auto;margin:0;font-size:12.5px;cursor:pointer}
.album-choice label+label{border-left:1px solid #c4c4bf}
.album-choice input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer}
.album-choice span{display:flex;align-items:center;min-height:34px;padding:0 12px;color:var(--muted);white-space:nowrap}
.album-choice input:checked+span{background:#252525;color:#fff;font-weight:600}
.album-choice input:focus-visible+span{outline:2px solid #555;outline-offset:2px}
.reader-head .contract-type-note{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.reader-head .contract-type-note:empty{display:none}
.reader-head .contract-type-note.is-needed{font-weight:600;color:#252525}
.reader-head .contract-type-note.is-problem{font-weight:600;color:#a33}
.record-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.record-sub{display:flex;flex-wrap:wrap;gap:0 8px;font-size:11px;line-height:1.4;color:var(--muted)}
.record-type.is-unset{font-weight:600;color:var(--title)}
@media(max-width:560px){.contract-type{grid-template-columns:minmax(0,1fr)}}
.brand,header nav a{white-space:nowrap}
@media(max-width:760px){header{flex-wrap:wrap}}
/* Studio to-do box */
.pending-requests{max-height:300px;overflow:auto}
.pending-days{font-size:10.5px;color:var(--muted)}
.pending-days.is-late{font-weight:700;color:#a33}
/* Password dialog: remember this device; customer heading: forget it. */
.remember-device{display:flex;align-items:center;gap:8px;margin:10px 0 16px;font-size:13px;line-height:1.5;cursor:pointer}.remember-device input{width:17px;height:17px;min-height:17px;margin:0;flex:none;accent-color:#707679}.customer-logout{font-size:12px;color:var(--muted);white-space:nowrap}
/* Customers start with the search box alone. */
.search-only .list-tools,.search-only #customer-list:empty,.search-only #list-message:empty{display:none}
/* Customers: once inside, the search panel is gone and the page is theirs (phones already hide it). */
@media(min-width:761px){.file-customer.file-detail-active .board{display:none}.file-customer.file-detail-active .file-layout{grid-template-columns:minmax(0,1fr);max-width:920px}}
/* Same words and place as the step guide's own loading line, so the two read as one wait. */
.loading-note{margin:0;padding:24px 0;font-size:14px;color:var(--muted)}.load-back{margin-left:8px}
/* A remembered device skips the search screen: keep it out of sight until the script takes over (4s safety net). */
.file-resuming .board,.file-resuming #reader-content{opacity:0;animation:file-resume-reveal .01s linear 4s forwards}@keyframes file-resume-reveal{to{opacity:1}}
/* Keep-until dates: days left, marked from a week out. */
.deadline-left{font-weight:600;color:var(--ink)}.deadline-left.is-soon{color:#b3261e}
.deadline-alert{margin:0 0 16px;padding:12px 14px;border:1px solid #e3b4ae;border-radius:4px;background:#fdf3f2;font-size:13px;line-height:1.6}.deadline-alert p{margin:0;word-break:keep-all}.deadline-alert-date{white-space:nowrap}.deadline-alert-item{color:#8f1d15;font-weight:600}.deadline-alert-help{color:var(--ink)}
.expired-note{margin:18px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}.expired-note a{color:var(--ink)}
/* Password dialog: show/hide inside the field, and where to turn when it is forgotten. */
.password-field{position:relative;margin-top:5px}.password-field input{margin-top:0;padding-right:68px}.password-field .text-button{position:absolute;right:4px;top:0;bottom:0;min-height:0;padding:0 10px;color:var(--muted)}
.password-help{margin:0 0 16px;font-size:12px;line-height:1.6;color:var(--muted)}.password-help a,.search-empty a{color:var(--ink)}
.remember-device{margin-bottom:10px}
/* Search with nothing found. */
.search-empty{padding:8px 0 2px;font-size:13px;line-height:1.6}.search-empty p{margin:0 0 6px}
