/* Loaded only by the profile site. Original supplied logo is preserved. */
:root body[data-site="profile"]{background:#f4f7fc;color:#071d42}
:root body[data-site="profile"] .auth{background:radial-gradient(ellipse at 15% 10%,#dce8ff,transparent 48%),radial-gradient(ellipse at 95% 95%,#fff0e5,transparent 35%),#f5f8ff;padding:40px 20px}
:root body[data-site="profile"] .authbox{width:min(460px,100%);padding:44px 38px 38px;border:1px solid #dfe7f4;border-top:4px solid #0645ff;border-radius:24px;box-shadow:0 24px 80px #08245612}
:root body[data-site="profile"] .authbox .brand{margin:0 0 12px;display:block}
.rocket-logo{display:block;width:100%;height:auto;object-fit:contain}
:root body[data-site="profile"] aside .brand{padding:0;margin-bottom:30px}
:root body[data-site="profile"] aside .rocket-logo{max-width:210px}
:root body[data-site="profile"] .authbox .logintabs{background:#edf2fc;border-radius:12px;padding:5px}
:root body[data-site="profile"] .authbox .logintabs button{color:#677891}
:root body[data-site="profile"] .authbox .logintabs button.active{color:#0645ff;background:#fff;box-shadow:0 2px 8px #153c7310;font-weight:700}
:root body[data-site="profile"] .authbox form label{color:#405575}
:root body[data-site="profile"] .authbox input{background:#f9fbff;border-color:#dce5f3;height:52px;border-radius:11px;color:#071d42}
:root body[data-site="profile"] button.primary{background:#0645ff;border-color:#0645ff;color:white;box-shadow:0 4px 12px #0645ff20}
:root body[data-site="profile"] button.primary:hover{background:#0035d5;border-color:#0035d5;color:white}
:root body[data-site="profile"] .authbox button.primary{height:51px;border-radius:11px}
:root body[data-site="profile"] aside{border-top:4px solid #0645ff}
:root body[data-site="profile"] button:hover{background:#edf3ff}
:root body[data-site="profile"] nav button.active,:root body[data-site="profile"] .sitebadge,:root body[data-site="profile"] .branchtabs button.active,:root body[data-site="profile"] .branchcurrent{background:#eaf0ff;color:#0645df;border-color:#c9d8ff}
:root body[data-site="profile"] nav button i{background:#ff6b13}
:root body[data-site="profile"] .avatar,:root body[data-site="profile"] .badge,:root body[data-site="profile"] .countpill{background:#eaf0ff;color:#174acb}
:root body[data-site="profile"] input:focus,:root body[data-site="profile"] textarea:focus,:root body[data-site="profile"] select:focus{outline-color:#a8c0ff;border-color:#0645ff}
:root body[data-site="profile"] button:focus-visible{outline:3px solid #a8c0ff;outline-offset:2px}
:root body[data-site="profile"] .applychoices input{accent-color:#0645ff}
:root body[data-site="profile"] .profileattachments a{color:#0645df}
:root body[data-site="profile"] .inboxnotice{background:#edf3ff;border-color:#d6e2fb;color:#50678c}
:root body[data-site="profile"] .view-banner{background:#071d42;border-color:#071d42;color:#fff;border-radius:18px;border-left:5px solid #ff6b13}
:root body[data-site="profile"] .branch-view{background:#eaf1ff;border-color:#c6d7ff;border-left-color:#0645ff;color:#123776}
:root body[data-site="profile"] .view-return{border-color:#c6d7ff;color:#0645df}
:root body[data-site="profile"] .view-transition.to-admin{background:#eef3fff5;color:#071d42}
:root body[data-site="profile"] .view-transition.to-branch{background:#eaf1fff5;color:#0645df}
@media(max-width:600px){:root body[data-site="profile"] aside .rocket-logo{max-width:185px}:root body[data-site="profile"] aside .brand{margin-bottom:14px}}
/* Login: illuminated orbital backdrop, a quiet white surface, no taglines. */
:root body[data-site="profile"] .auth{position:relative;isolation:isolate;overflow:hidden;min-height:100svh;background:radial-gradient(ellipse at 50% 95%,#1449dd80,transparent 58%),radial-gradient(ellipse at 10% 15%,#17306e70,transparent 45%),#050c20;padding:48px 20px}
.rocket-orbits{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background-image:radial-gradient(#adc6ff66 .8px,transparent .8px);background-size:75px 75px;mask-image:linear-gradient(transparent,#000 25%,#000 80%,transparent)}
.rocket-orbits i{position:absolute;left:50%;top:50%;width:1050px;height:470px;border:1px solid #5885ff40;border-radius:50%;transform:translate(-50%,-50%) rotate(-32deg);box-shadow:0 0 60px #1b55ff12}
.rocket-orbits i:nth-child(2){width:1350px;height:650px;transform:translate(-50%,-50%) rotate(-32deg);border-color:#5885ff22}
.rocket-orbits i:nth-child(3){width:800px;height:340px;transform:translate(-50%,-50%) rotate(-32deg);border-color:#81a3ff55}
.rocket-orbits i:first-child:after{content:'';position:absolute;top:12%;left:14%;width:8px;height:8px;border-radius:50%;background:#ff792b;box-shadow:0 0 22px #ff792bcc}
:root body[data-site="profile"] .authbox{position:relative;width:min(440px,100%);padding:40px 38px 38px;border:1px solid #fff;border-radius:28px;background:linear-gradient(155deg,#fff 50%,#f2f6ff);box-shadow:0 32px 100px #0006,0 0 0 7px #ffffff08,0 0 85px #1557ff20;animation:rocket-reveal .55s ease-out}
:root body[data-site="profile"] .authbox .brand{margin:0 0 28px}
:root body[data-site="profile"] .authbox .logintabs{padding:5px;background:#e9eef7;border:1px solid #e2e8f3;border-radius:14px;margin-bottom:28px}
:root body[data-site="profile"] .authbox .logintabs button{border-radius:10px;padding:12px 6px;transition:background .2s,color .2s}
:root body[data-site="profile"] .authbox .logintabs button.active{color:#123578;box-shadow:0 3px 9px #172a4e10}
:root body[data-site="profile"] .authbox form label{font-weight:600;color:#52617a;font-size:12px}
:root body[data-site="profile"] .authbox input{height:58px;border-radius:13px;background:#fff;border:1px solid #d9e2f1;transition:border-color .2s,box-shadow .2s}
:root body[data-site="profile"] .authbox input:focus{outline:none;border-color:#3061ff;box-shadow:0 0 0 4px #0645ff0d}
:root body[data-site="profile"] .authbox #code{font-size:24px;letter-spacing:10px;font-weight:650}
:root body[data-site="profile"] .authbox #code::placeholder{letter-spacing:0;font-size:13px;color:#94a1b7;font-weight:400}
:root body[data-site="profile"] .authbox button.primary{position:relative;height:56px;margin-top:26px;border-radius:13px;background:linear-gradient(110deg,#174fff,#0039e8);border:1px solid #2256ff;box-shadow:0 8px 22px #0645ff30,inset 0 1px #ffffff30;font-size:14px;transition:transform .2s,box-shadow .2s}
:root body[data-site="profile"] .authbox button.primary:after{content:'↗';position:absolute;right:21px;font-size:19px;top:15px;font-weight:400}
:root body[data-site="profile"] .authbox button.primary:hover{background:linear-gradient(110deg,#285eff,#0742ef);box-shadow:0 11px 28px #0645ff40;transform:translateY(-1px)}
@keyframes rocket-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){:root body[data-site="profile"] .authbox{animation:none}:root body[data-site="profile"] .authbox button.primary{transition:none}}
@media(max-width:480px){:root body[data-site="profile"] .auth{padding:30px 22px}:root body[data-site="profile"] .authbox{padding:30px 24px;border-radius:24px}:root body[data-site="profile"] .authbox .brand{margin-bottom:22px}}

body[data-site="profile"] .branch-entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;max-width:1120px}
body[data-site="profile"] .branch-entry-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:20px;padding:26px;border:1px solid #dce5f5;border-radius:20px;background:#fff;color:#10254f;cursor:pointer;transition:box-shadow .18s,border-color .18s,transform .18s}
body[data-site="profile"] .branch-entry-card:hover{border-color:#2455ff;box-shadow:0 10px 28px #164bce14;transform:translateY(-2px)}
body[data-site="profile"] .branch-entry-card:focus-visible{outline:3px solid #2455ff;outline-offset:3px}
body[data-site="profile"] .branch-entry-icon{display:grid;place-items:center;width:48px;height:48px;background:#edf2ff;border-radius:14px;color:#2455ff}
body[data-site="profile"] .branch-entry-icon svg{width:25px;height:25px}
body[data-site="profile"] .branch-entry-card strong{font-size:20px}
body[data-site="profile"] .branch-entry-action{display:flex;justify-content:space-between;align-items:center;width:100%;padding-top:16px;border-top:1px solid #edf1f8;font-size:13px;font-weight:650;color:#2455ff}

body[data-site="profile"] .branch-code-value{font-variant-numeric:tabular-nums;letter-spacing:1px}body[data-site="profile"] .branch-code-copy{margin-left:12px;padding:5px 12px;border:1px solid #dce5f5;border-radius:8px;background:#edf2ff;color:#2455ff;font-size:12px;cursor:pointer}body[data-site="profile"] .branch-code-copy:hover{background:#dfe8ff}

body[data-site="profile"] .profile-media-section{border:1px solid #b9caff;background:linear-gradient(135deg,#f5f8ff,#fff)}
body[data-site="profile"] .profile-media-section textarea{min-height:140px;background:#fff}
body[data-site="profile"] .profile-photo-picker{margin-top:22px;padding:20px;border:1px dashed #8daaff;border-radius:14px;background:#fff}
body[data-site="profile"] .profile-photo-picker label{display:block;margin-bottom:12px;color:#164fff;font-weight:700}
body[data-site="profile"] .profile-photo-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:14px;margin-top:18px}
body[data-site="profile"] .profile-photo-preview{display:flex;flex-direction:column;gap:9px;padding:10px;background:#fff;border:1px solid #dce5f5;border-radius:12px;min-width:0}
body[data-site="profile"] .profile-photo-preview img{width:100%;height:150px;object-fit:contain;border-radius:8px;background:#f3f6fc}
body[data-site="profile"] .profile-photo-preview span{font-size:12px;overflow-wrap:anywhere}
body[data-site="profile"] .profile-photo-preview button{align-self:flex-end;border:0;background:#fff0f1;color:#bb3447;border-radius:6px;padding:5px 10px;cursor:pointer}

body[data-site="profile"] header{height:auto;min-height:78px;gap:12px;flex-wrap:wrap;padding:14px 0}
body[data-site="profile"] .profile-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
body[data-site="profile"] .profile-logout{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border:1px solid #cdd9ef;border-radius:10px;background:#fff;color:#183866;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
body[data-site="profile"] .profile-logout:hover{background:#edf3ff;border-color:#7498ee}
body[data-site="profile"] .profile-logout:disabled{opacity:.6;cursor:wait}
body[data-site="profile"] .profile-header-actions .view-return{margin:0;white-space:nowrap}
@media(max-width:600px){body[data-site="profile"] header>span:nth-child(2){display:none}body[data-site="profile"] .profile-header-actions{gap:6px}body[data-site="profile"] .profile-header-actions button{width:auto;font-size:12px;padding:9px 12px}}

body[data-site="profile"] .form-type-options{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}body[data-site="profile"] .form-type-options label{display:flex;align-items:center;gap:10px;padding:16px 20px;border:1px solid #ccdaf8;border-radius:12px;background:#fff;font-weight:700;cursor:pointer}body[data-site="profile"] .form-type-options input{width:20px;height:20px;accent-color:#2455ff;margin:0}body[data-site="profile"] .form-type-options label:has(input:checked){background:#edf3ff;border-color:#2455ff;color:#164fff}body[data-site="profile"] [data-form-kind][hidden],body[data-site="profile"] .applyfooter[hidden]{display:none}

.library-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0 12px}.library-toolbar input[type=checkbox]{width:auto}.library-toolbar .library-search{max-width:280px}.library-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-height:none;overflow:visible;margin-top:14px}.library-photo{display:flex;flex-direction:column;gap:7px;padding:8px;text-align:left;min-width:0}.library-photo img{width:100%;height:160px;object-fit:contain;background:#f3f6fc}.library-photo span{font-size:11px;overflow-wrap:anywhere}.library-photo.selected{border:2px solid #2455ff;background:#edf3ff}.library-photo:disabled{opacity:.4;cursor:not-allowed}.library-status{margin:8px 0}

.photo-downloads{display:flex;flex-wrap:wrap;gap:6px}.photo-download{display:inline-flex;white-space:nowrap;padding:8px 12px;border-radius:8px;background:#edf3ff;border:1px solid #ccdaf8;color:#164fff;text-decoration:none;font-weight:650;font-size:12px}.photo-download:hover{background:#dce8ff}

.comment-tag-panel{margin:22px 0}.tag-search{margin:14px 0;max-width:380px}.tag-groups{max-height:360px;overflow:auto}.tag-groups h3{font-size:12px;color:#687992;margin:16px 0 8px}.tag-chips,.selected-tags{display:flex;flex-wrap:wrap;gap:7px}.tag-chip{display:inline-flex;align-items:center;border:1px solid #d2dcee;background:#fff;border-radius:20px;padding:6px 12px;font-size:12px;color:#52647e}.tag-chip.selected{border-color:#2455ff;background:#edf3ff;color:#164fff}.tag-editor{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.tag-editor input{max-width:260px}.tag-status{font-size:12px;color:#164fff}.selected-tags{margin:12px 0}

.tag-editor{align-items:flex-end}.tag-editor-field,.tag-new-category{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650}.tag-new-category[hidden]{display:none}.tag-editor select{min-width:200px}.profile-inbox-table{min-width:1050px;width:100%}.profile-inbox-table td{vertical-align:middle}.profile-inbox-table th small{display:block;font-weight:400;margin-top:4px}.inbox-thumbnails{display:flex;gap:5px;align-items:center}.inbox-photo{padding:0;width:48px;height:62px;overflow:hidden;border-radius:8px;flex-shrink:0}.inbox-photo img{width:100%;height:100%;object-fit:cover}.inbox-no-photo{font-size:11px;color:#8b96a9}.inbox-name{font-weight:700;white-space:nowrap}.inbox-branch,.inbox-spec{white-space:nowrap}.inbox-tags{min-width:240px;width:35%;white-space:normal}.inbox-tags .tag-chip{padding:4px 9px;font-size:11px}.inbox-date{font-size:11px;color:#8491a6;min-width:115px}.inbox-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.inbox-actions button{white-space:nowrap;padding:7px 11px;font-size:12px}

.tag-category-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.tag-category-buttons button{padding:10px 16px;font-size:13px;font-weight:650;border:1px solid #cdd9ef;background:#fff;color:#52647e;border-radius:10px}.tag-category-buttons button.active{background:#164fff;border-color:#164fff;color:#fff}.comment-tag-panel .tag-search[hidden]{display:none}

.category-create,.category-tag-add{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:14px 0}.category-create label{display:grid;gap:8px;font-weight:650}.category-tag-add input{width:260px}.category-tag-add span{font-size:12px;color:#b34747}.tag-groups>section{padding:12px 0 18px;border-bottom:1px solid #e4ebf5}.comment-tag-panel:has(.category-create) .tag-groups{max-height:none}

.tag-panel-heading,.tag-category-heading{display:flex;align-items:center;gap:12px}.tag-panel-heading{justify-content:space-between}.tag-category-heading h3{margin:0}.tag-category-heading{margin:10px 0 14px}.category-add-toggle{padding:5px 10px;font-size:12px;color:#164fff;border:1px solid #cdd9ef;background:#edf3ff}.category-tag-add[hidden],.category-create[hidden]{display:none}.tag-panel-heading .new-category-toggle{font-size:12px;padding:8px 12px}

.comment-tag-panel .category-tag-add button,.comment-tag-panel .category-create button{width:auto;min-width:0;min-height:0;padding:6px 10px;font-size:12px;line-height:1.3;border-radius:7px}.comment-tag-panel .category-tag-add{align-items:center;gap:6px}.comment-tag-panel .category-tag-add input{padding:8px 10px;min-height:0;font-size:13px}.comment-tag-panel .category-add-toggle,.comment-tag-panel .category-action{padding:3px 7px;font-size:11px;min-height:0;width:auto;border-radius:6px;line-height:1.4}.tag-category-heading{gap:7px;flex-wrap:wrap}.comment-tag-panel .danger{color:#b44343}.comment-tag-panel .tag-delete{padding:2px 5px;margin-left:-8px;margin-right:5px;border:0;background:transparent;min-height:0;font-size:14px}

.application-details[hidden],.application-photo-step[hidden],.profile-photo-picker[hidden]{display:none!important}.application-selected-photos{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:18px 0 24px}.application-chosen-photo{display:grid;grid-template-columns:1fr auto;gap:8px;width:150px;align-items:center}.application-chosen-photo img{grid-column:1/-1;width:150px;height:180px;object-fit:cover;border-radius:12px}.application-chosen-photo button,.photo-step-cancel{font-size:12px;padding:6px 10px}.add-another-photo{border:1px dashed #a9bfff;color:#164fff;padding:16px}.application-photo-step .library-toolbar{margin-top:16px}
/* Role colors: blue for applicants, red for administrators. */
:root body[data-site="profile"][data-profile-view="branch"]{--role-accent:#1455f5;--role-hover:#0840cd;--role-soft:#edf3ff;--role-border:#cbdcff;--role-ink:#183c80;--role-bg:#f4f7ff;background:var(--role-bg)}
:root body[data-site="profile"][data-profile-view="admin"]{--role-accent:#d93246;--role-hover:#b91f34;--role-soft:#fff0f2;--role-border:#f3c8cf;--role-ink:#8e2435;--role-bg:#fff7f8;background:var(--role-bg);color:#3e1b25}
:root body[data-site="profile"][data-profile-view] aside{border-top-color:var(--role-accent)}
:root body[data-site="profile"][data-profile-view] button.primary{background:var(--role-accent);border-color:var(--role-accent);box-shadow:0 4px 12px color-mix(in srgb,var(--role-accent) 18%,transparent);color:#fff}
:root body[data-site="profile"][data-profile-view] button.primary:hover{background:var(--role-hover);border-color:var(--role-hover)}
:root body[data-site="profile"][data-profile-view] button:hover{background:var(--role-soft)}
:root body[data-site="profile"][data-profile-view] nav button.active,:root body[data-site="profile"][data-profile-view] .sitebadge,:root body[data-site="profile"][data-profile-view] .avatar,:root body[data-site="profile"][data-profile-view] .badge,:root body[data-site="profile"][data-profile-view] .countpill,:root body[data-site="profile"][data-profile-view] .category-add-toggle,:root body[data-site="profile"][data-profile-view] .photo-download,:root body[data-site="profile"][data-profile-view] .tag-chip.selected{background:var(--role-soft);border-color:var(--role-border);color:var(--role-ink)}
:root body[data-site="profile"][data-profile-view] nav button i{background:var(--role-accent)}
:root body[data-site="profile"][data-profile-view] .view-banner{background:var(--role-soft);border-color:var(--role-border);border-left-color:var(--role-accent);color:var(--role-ink)}
:root body[data-site="profile"][data-profile-view] .inboxnotice{background:var(--role-soft);border-color:var(--role-border);color:var(--role-ink)}
:root body[data-site="profile"][data-profile-view] input:focus,:root body[data-site="profile"][data-profile-view] textarea:focus,:root body[data-site="profile"][data-profile-view] select:focus{border-color:var(--role-accent);outline-color:var(--role-border)}
:root body[data-site="profile"][data-profile-view] button:focus-visible{outline-color:var(--role-border)}
:root body[data-site="profile"][data-profile-view] input{accent-color:var(--role-accent)}
:root body[data-site="profile"][data-profile-view] .tag-category-buttons button.active{background:var(--role-accent);border-color:var(--role-accent);color:#fff}
:root body[data-site="profile"][data-profile-view] .tag-status,:root body[data-site="profile"][data-profile-view] .profileattachments a,:root body[data-site="profile"][data-profile-view] .add-another-photo{color:var(--role-accent)}
:root body[data-site="profile"][data-profile-view] .library-photo.selected,:root body[data-site="profile"][data-profile-view] .form-type-options label:has(input:checked){border-color:var(--role-accent);background:var(--role-soft);color:var(--role-ink)}
:root body[data-site="profile"][data-profile-view="admin"] .branch-entry-card{border-color:var(--role-border)}
:root body[data-site="profile"][data-profile-view="admin"] .branch-entry-icon{background:var(--role-soft);color:var(--role-accent)}
:root body[data-site="profile"][data-profile-view="admin"] .branch-entry-action{color:var(--role-accent)}
:root body[data-site="profile"] .view-transition.to-admin{background:#fff0f2f5;color:#a32336}
:root body[data-site="profile"] .view-transition.to-branch{background:#edf3fff5;color:#1455f5}

:root body[data-site="profile"] nav button{white-space:nowrap}:root body[data-site="profile"] nav button svg{flex-shrink:0}

:root body[data-site="profile"] .library-toolbar{align-items:center;gap:12px}:root body[data-site="profile"] .library-toolbar .library-upload-button{height:46px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 20px;margin:0;font-size:13px;font-weight:700;border-radius:10px;white-space:nowrap;flex-shrink:0}:root body[data-site="profile"] .library-toolbar .library-search{height:46px;box-sizing:border-box;margin:0;padding:0 15px;border-radius:10px;flex:1;min-width:180px;max-width:360px}:root body[data-site="profile"] .library-upload[hidden]{display:none!important}:root body[data-site="profile"] .library-upload-button:disabled{opacity:.6;cursor:wait}

:root body[data-site="profile"] .application-chosen-photo{grid-template-columns:minmax(0,1fr) max-content;column-gap:8px}:root body[data-site="profile"] .application-chosen-photo button{width:auto;min-width:72px;min-height:32px;padding:6px 9px;white-space:nowrap;word-break:keep-all;line-height:1.3;border-radius:8px;font-size:12px}:root body[data-site="profile"] .application-chosen-photo>span{white-space:nowrap}

:root body[data-site="profile"] .application-chosen-photo .chosen-photo-toggle{grid-column:1/-1;width:150px;height:180px;padding:0;min-width:0;border:2px solid var(--role-accent,#1455f5);border-radius:12px;overflow:hidden;line-height:0;cursor:pointer}:root body[data-site="profile"] .chosen-photo-toggle img{width:100%;height:100%;display:block;border-radius:0}:root body[data-site="profile"] .chosen-photo-toggle:hover{opacity:.8}
/* Application list adapts to its actual available width, without side scrolling. */
:root body[data-site="profile"] #inboxrows{container-type:inline-size;min-width:0;overflow:visible}
:root body[data-site="profile"] .profile-inbox-table{min-width:0;table-layout:fixed;white-space:normal}
:root body[data-site="profile"] .profile-inbox-table th,:root body[data-site="profile"] .profile-inbox-table td{padding:15px 12px;overflow-wrap:anywhere;white-space:normal;min-width:0}
:root body[data-site="profile"] .profile-inbox-table th:nth-child(5){width:25%}
:root body[data-site="profile"] .profile-inbox-table .inbox-tags{min-width:0;width:auto}
:root body[data-site="profile"] .inbox-branch{font-weight:750;color:var(--role-ink)}
:root body[data-site="profile"] #inboxrows:has(tbody:empty) table{display:none}
@container (max-width:1100px){
 .profile-inbox-table,.profile-inbox-table tbody{display:block;width:100%}
 .profile-inbox-table thead{display:none}
 .profile-inbox-table tbody{padding:14px;box-sizing:border-box}
 .profile-inbox-table tr{display:grid;grid-template-columns:120px minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:14px;padding:18px;border:1px solid #ffffffdc;border-radius:14px;background:#ffffff66}
 .profile-inbox-table tr:last-child{margin-bottom:0}
 :root body[data-site="profile"] .profile-inbox-table td{border:0;padding:0}
 .profile-inbox-table td:nth-child(1){grid-column:1/-1;font-size:15px;padding-bottom:10px!important;border-bottom:1px solid #ffffffc9!important}
 .profile-inbox-table td:nth-child(2){grid-column:1;grid-row:2/4}
 .profile-inbox-table td:nth-child(3){grid-column:2;grid-row:2;font-size:16px}
 .profile-inbox-table td:nth-child(4){grid-column:2;grid-row:3}
 .profile-inbox-table td:nth-child(5){grid-column:1/-1;grid-row:4}
 .profile-inbox-table td:nth-child(6){grid-column:1/3;grid-row:5}
 .profile-inbox-table td:nth-child(7){grid-column:3;grid-row:2;text-align:right}
 .profile-inbox-table td:nth-child(8){grid-column:3;grid-row:5}
 .profile-inbox-table .inbox-actions{align-items:flex-end}
 .profile-inbox-table .inbox-date{min-width:0;align-self:center}
 .profile-inbox-table td:nth-child(4)::before{content:'스펙';display:block;font-size:10px;color:#68758b;margin-bottom:5px}
 .profile-inbox-table td:nth-child(5)::before{content:'코멘트';display:block;font-size:10px;color:#68758b;margin-bottom:7px}
}
@container (max-width:480px){
 .profile-inbox-table tr{grid-template-columns:100px minmax(0,1fr);gap:10px;padding:14px}
 .profile-inbox-table td:nth-child(7){grid-column:2;grid-row:3;text-align:left}
 .profile-inbox-table td:nth-child(4){grid-column:1/-1;grid-row:4}
 .profile-inbox-table td:nth-child(5){grid-row:5}
 .profile-inbox-table td:nth-child(6){grid-column:1/-1;grid-row:6}
 .profile-inbox-table td:nth-child(8){grid-column:1/-1;grid-row:7}
 .profile-inbox-table .inbox-actions{align-items:flex-start;flex-direction:row;flex-wrap:wrap}
 .profile-inbox-table .inbox-photo{width:44px;height:58px}
}

/* Filters stay aligned; the date range wraps as one control. */
:root body[data-site="profile"] .inbox-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px}
:root body[data-site="profile"] .inbox-filters>input{flex:1 1 120px;max-width:240px;min-width:0}
:root body[data-site="profile"] .inbox-filters>select{width:110px;max-width:100%}
:root body[data-site="profile"] .inbox-filters input,:root body[data-site="profile"] .inbox-filters select,:root body[data-site="profile"] .inbox-filters>button{height:42px;box-sizing:border-box}
.inbox-date-range{display:flex;align-items:center;gap:8px;height:42px;box-sizing:border-box;padding:0 12px;border:1px solid #d6dce5;border-radius:10px;background:#fff;max-width:100%;min-width:0}
.inbox-period-label{font-size:12px;color:#637083;white-space:nowrap}
:root body[data-site="profile"][data-profile-view] .inbox-date-range input{width:124px;min-width:0;height:38px;padding:0 4px;border:0;border-radius:5px;background:transparent;font-size:12px}
.inbox-date-range .date-separator{color:#8993a3}
.inbox-filters #inboxcount{white-space:nowrap;font-size:12px}
@media(max-width:600px){:root body[data-site="profile"] .inbox-filters>select{flex:1 1 110px}:root body[data-site="profile"] .inbox-filters>input{max-width:none;flex-basis:100%}.inbox-date-range{width:100%;gap:5px;padding:0 8px}:root body[data-site="profile"][data-profile-view] .inbox-date-range input{flex:1;width:0}.inbox-period-label{font-size:11px}}

/* Clear surfaces with restrained role accents. */
:root body[data-site="profile"][data-profile-view]{background:#f5f6f8;background-image:none;color:#202938}
:root body[data-site="profile"][data-profile-view] aside{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;border-right:1px solid #e5e8ed;box-shadow:none}
:root body[data-site="profile"][data-profile-view] .panel,:root body[data-site="profile"][data-profile-view] .tablewrap,:root body[data-site="profile"][data-profile-view] .branch-entry-card{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;border:1px solid #e3e7ed;box-shadow:0 3px 12px #1e293b04;border-radius:14px}
:root body[data-site="profile"][data-profile-view] .view-banner{background:#fff;border:1px solid #e3e7ed;border-left:4px solid var(--role-accent);color:#202938;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
:root body[data-site="profile"][data-profile-view] .view-banner .view-label{color:var(--role-accent);opacity:1}
:root body[data-site="profile"][data-profile-view] header{background:transparent;border-bottom:1px solid #e3e7ed;color:#637083}
:root body[data-site="profile"][data-profile-view] input:not([type=checkbox]):not([type=radio]):not([type=file]),:root body[data-site="profile"][data-profile-view] textarea,:root body[data-site="profile"][data-profile-view] select{background:#fff;border:1px solid #d6dce5;color:#263244;box-shadow:none}
:root body[data-site="profile"][data-profile-view] input::placeholder,:root body[data-site="profile"][data-profile-view] textarea::placeholder{color:#788598}
:root body[data-site="profile"][data-profile-view] input:focus,:root body[data-site="profile"][data-profile-view] textarea:focus,:root body[data-site="profile"][data-profile-view] select:focus{border-color:var(--role-accent);outline-color:var(--role-border)}
:root body[data-site="profile"][data-profile-view] .library-photo{background:#fff;border:1px solid #e0e5ed;border-radius:12px;box-shadow:none}
:root body[data-site="profile"][data-profile-view] .library-photo.selected{border-color:var(--role-accent);background:var(--role-soft)}
:root body[data-site="profile"][data-profile-view] .empty,:root body[data-site="profile"][data-profile-view] .empty strong{color:#647184}
:root body[data-site="profile"][data-profile-view] .profile-inbox-table th{background:#f8fafc;color:#586579}
:root body[data-site="profile"][data-profile-view] .profile-inbox-table td{border-color:#e8ecf1}
@container (max-width:1100px){:root body[data-site="profile"] .profile-inbox-table tr{background:#fff;border-color:#e2e7ee}:root body[data-site="profile"] .profile-inbox-table td:nth-child(1){border-bottom-color:#e8ecf1!important}}
:root body[data-site="profile"] .view-transition,:root body[data-site="profile"] dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
:root body[data-site="profile"] .view-transition.to-admin{background:#fff5f6}
:root body[data-site="profile"] .view-transition.to-branch{background:#f0f5ff}
:root body[data-site="profile"] .authbox{background:#fff}

:root body[data-site="profile"][data-profile-view] .inbox-date-range input:not([type=checkbox]):not([type=radio]):not([type=file]){width:110px;border:0;background:transparent;padding:0 3px;box-shadow:none}

@media(max-width:850px){body[data-site="profile"] .library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body[data-site="profile"] .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

:root body[data-site="profile"] header>span{display:none}
:root body[data-site="profile"] header{justify-content:flex-end}
:root body[data-site="profile"] .library-photo-skip{align-items:center;justify-content:center;border:1px dashed #c4ccda;background:#fafbfd;color:#53627b;min-height:202px}
.library-photo-skip .photo-skip-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#edf1f7;font-size:28px;transform:rotate(45deg);margin-bottom:12px}
.application-photo-step .library-toolbar{margin-top:0}

:root body[data-site="profile"] .library-photo[data-photo]>strong{align-self:center;display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;margin:3px 0 1px;border-radius:999px;background:#f0f3f8;color:#53627b;font-size:11px;font-weight:600;line-height:1.3;letter-spacing:.2px}
:root body[data-site="profile"] .library-photo.selected>strong{background:var(--role-soft);color:var(--role-accent)}

/* Role switch: crisp orbital motion, no glass or extra waiting. */
:root body[data-site="profile"] .view-transition{gap:28px;background:#f8faff;color:#1455f5;animation:none;backdrop-filter:none}
:root body[data-site="profile"] .view-transition.to-admin{background:#fff9fa;color:#d93246}
:root body[data-site="profile"] .view-transition.to-branch{background:#f8faff;color:#1455f5}
.transfer-art{width:160px;height:160px;position:relative;display:grid;place-items:center}
.transfer-orbit{position:absolute;inset:0;border:1px solid currentColor;border-radius:50%;opacity:.16}
.transfer-orbit.inner{inset:19px;opacity:.1}
.transfer-orbit:first-child::after{content:"";position:absolute;inset:-3px;border:3px solid transparent;border-top-color:currentColor;border-radius:50%;animation:transfer-spin 1.4s linear infinite}
.transfer-rocket{width:80px;height:80px;animation:transfer-float 1.5s ease-in-out infinite}
.transfer-rocket svg{display:block;width:100%;height:100%}
.transfer-flame{transform-origin:29px 52px;animation:transfer-fire .4s ease-in-out infinite alternate}
.transfer-spark{position:absolute;width:5px;height:5px;border-radius:50%;background:currentColor;animation:transfer-spark 1.2s ease-in-out infinite}
.transfer-spark.one{left:9px;top:55px}.transfer-spark.two{right:20px;bottom:14px;animation-delay:.5s}
.transfer-copy{display:flex;flex-direction:column;align-items:center;gap:9px}
:root body[data-site="profile"] .transfer-copy .transfer-label{font-size:10px;letter-spacing:3px;opacity:.65;font-weight:700}
:root body[data-site="profile"] .transfer-copy strong{font-size:26px;letter-spacing:-.6px;font-weight:700;color:#202938}
.transfer-track{width:100px;height:3px;border-radius:6px;background:#dfe5ee;overflow:hidden}
.transfer-track i{display:block;width:40%;height:100%;background:currentColor;border-radius:6px;animation:transfer-progress 1s ease-in-out infinite}
:root body[data-site="profile"] .view-transition.leaving{opacity:0;transform:none;transition:opacity .3s ease}
@keyframes transfer-enter{from{opacity:0}to{opacity:1}}
@keyframes transfer-spin{to{transform:rotate(360deg)}}
@keyframes transfer-float{50%{transform:translate(3px,-4px)}}
@keyframes transfer-fire{to{transform:scale(.8);opacity:.65}}
@keyframes transfer-spark{50%{opacity:.2;transform:scale(.6)}}
@keyframes transfer-progress{from{transform:translateX(-110%)}to{transform:translateX(360%)}}
@media(prefers-reduced-motion:reduce){:root body[data-site="profile"] .view-transition,:root body[data-site="profile"] .view-transition *,:root body[data-site="profile"] .view-transition *::after{animation:none;transition:none}.transfer-track i{width:100%}}

.tag-root-section{margin:12px 0;padding:18px!important;border:1px solid #e1e6ee!important;border-radius:12px;background:#fff}
.tag-child-section{margin:14px 0 0 12px;padding:14px!important;border:1px solid #e8ecf2!important;border-radius:10px;background:#f8fafc}
.tag-subcategory-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 18px;padding-left:12px;border-left:2px solid var(--role-border,#d6e0f4)}
.tag-subcategory-buttons:empty{display:none}.tag-subcategory-buttons button{padding:7px 13px;font-size:12px}.tag-subcategory-buttons button.active{color:var(--role-accent);background:var(--role-soft);border-color:var(--role-accent)}
.tag-item{display:inline-flex;align-items:center;gap:3px}.tag-item .category-action{padding:3px 5px;font-size:11px}.tag-item button:disabled{opacity:.25;cursor:default}
.category-parent-select{width:auto!important;max-width:180px;padding:5px 8px!important;font-size:11px!important;height:30px}
.tag-category-heading{flex-wrap:wrap}.tag-groups{max-height:none;overflow:visible}

/* Fixed-height filters need room for the complete text line. */
:root body[data-site="profile"] .inbox-filters>select,
:root body[data-site="profile"] .inbox-filters>input{height:44px;padding:0 12px;font-size:13px;line-height:normal}
:root body[data-site="profile"] .inbox-filters>select{min-width:110px;flex-shrink:0}
:root body[data-site="profile"] .inbox-filters>button{height:44px;padding:0 16px;line-height:normal}
:root body[data-site="profile"] .inbox-date-range{height:44px}
:root body[data-site="profile"][data-profile-view] .inbox-filters input:focus,
:root body[data-site="profile"][data-profile-view] .inbox-filters select:focus{outline:2px solid var(--role-border);outline-offset:2px;border-color:var(--role-accent)}

.tag-drag-handle{display:inline-flex;align-items:center;justify-content:center;font-size:18px;color:#9aa5b5;cursor:grab;user-select:none;flex-shrink:0;padding:0 3px}
.tag-item[draggable]{cursor:grab;position:relative;border-radius:20px;padding:3px 5px 3px 2px;border:1px solid #e4e8ee;background:#fff}
.tag-item[draggable] .tag-chip{border:0;background:transparent;padding:4px 7px}
.tag-item[draggable]:hover{border-color:#b9c4d4}.tag-item.dragging,.tag-drag-handle.dragging{opacity:.35;cursor:grabbing}
.tag-item.drop-before{box-shadow:-3px 0 0 var(--role-accent)}.tag-item.drop-after{box-shadow:3px 0 0 var(--role-accent)}
.tag-category-section.drop-before{border-top:3px solid var(--role-accent)!important}.tag-category-section.drop-after{border-bottom:3px solid var(--role-accent)!important}

:root body[data-site="profile"] .tag-admin .tag-panel-heading{gap:16px;margin-bottom:22px}
:root body[data-site="profile"] .tag-admin .tag-panel-heading .tag-search{margin:0;max-width:320px;height:42px;padding:0 14px}
:root body[data-site="profile"] .tag-admin .new-category-toggle{height:38px;padding:0 14px;border-radius:8px}
:root body[data-site="profile"] .tag-admin .tag-root-section{padding:20px!important;margin:0 0 18px}
:root body[data-site="profile"] .tag-admin .tag-category-heading{gap:8px;margin-bottom:16px}
:root body[data-site="profile"] .tag-admin .tag-category-heading h3{font-size:14px;color:#263244;margin:0 8px 0 0;font-weight:700}
:root body[data-site="profile"] .tag-admin .tag-child-section{margin-left:16px;border-left:2px solid #dbe2ec!important;background:#fafbfd}
:root body[data-site="profile"] .tag-admin .tag-child-section h3{font-size:13px}
:root body[data-site="profile"] .tag-admin .category-parent-select{margin-left:auto;border-color:transparent;background:#f5f7fa;color:#6b7688}
:root body[data-site="profile"] .tag-icon-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#7c8798;box-shadow:none}
:root body[data-site="profile"] .tag-icon-button:hover{background:#edf1f6;color:#263244}
:root body[data-site="profile"] .tag-icon-button.danger:hover{background:#fff0f2;color:#d93246}
:root body[data-site="profile"] .tag-item[draggable]{border-radius:8px;min-height:34px;padding:3px 7px;gap:5px;background:#f9fafc;border-color:#e7ebf1}
.tag-item-label{font-size:12px;color:#465368;line-height:1.5;padding:0 4px;user-select:none}
.tag-item-tools{display:flex;opacity:0;transition:opacity .12s ease}
.tag-item:hover .tag-item-tools,.tag-item:focus-within .tag-item-tools{opacity:1}
.tag-item[draggable] .tag-drag-handle{font-size:15px;color:#bac2ce}
.tag-item[draggable]:hover .tag-drag-handle{color:#7c8798}
:root body[data-site="profile"] .tag-admin .category-action,:root body[data-site="profile"] .tag-admin .category-add-toggle{height:28px;padding:0 9px;border-radius:6px;font-size:11px}
@media(hover:none){.tag-item-tools{opacity:1}}

:root body[data-site="profile"] .library-visibility{width:180px;height:46px;padding:0 12px;flex-shrink:0}.photo-visibility-badge{align-self:center;font-size:10px!important;color:#7c8798;padding-bottom:3px}

:root body[data-site="profile"] .category-inline-editor{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding:16px;margin:12px 0 18px;border:1px solid #e1e6ee;border-radius:10px;background:#f8fafc}
.category-inline-editor label{display:flex;flex-direction:column;gap:8px;flex:1 1 200px;max-width:340px;font-size:12px;font-weight:600;color:#465368}
:root body[data-site="profile"] .category-inline-editor input{height:40px;padding:0 12px;font-size:13px;background:#fff}
:root body[data-site="profile"] .category-inline-editor button{height:40px;padding:0 15px;border-radius:8px;font-size:12px}
.category-inline-editor .inline-error{flex-basis:100%;font-size:12px;color:#c42d42}.category-inline-editor .inline-error:empty{display:none}

:root body[data-site="profile"] .tag-status:empty{display:none}
:root body[data-site="profile"] .tag-status.is-success{color:#39705a;margin:8px 0 16px;font-size:12px}
:root body[data-site="profile"] dialog.comment-save-dialog{outline:none;width:min(380px,calc(100vw - 40px));box-sizing:border-box;padding:32px;border:1px solid #e5e9ef;border-radius:20px;background:#fff;color:#263244;box-shadow:0 24px 80px #13203930;text-align:center;max-height:90vh}
:root body[data-site="profile"] .comment-save-dialog::backdrop{background:#17213365;backdrop-filter:none}

.comment-save-ring{position:relative;width:132px;height:132px;margin:6px auto 28px;display:grid;place-items:center}
.comment-save-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:3}
.save-ring-base{stroke:#edf0f5}.save-ring-fill{stroke:#d93246;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .35s ease}
.comment-save-percent{font-size:34px;line-height:1;font-weight:650;letter-spacing:-1.5px;color:#273142;font-variant-numeric:tabular-nums}
.comment-save-percent span{font-size:14px;color:#929bac;margin-left:3px;letter-spacing:0;font-weight:500}
:root body[data-site="profile"] .comment-save-dialog h2{font-size:18px;margin:0 0 9px;letter-spacing:-.5px;font-weight:650}
.comment-save-count{font-size:14px;color:#6c788c;margin:0;font-variant-numeric:tabular-nums}
.comment-save-phase{margin-top:22px;color:#929bac;font-size:11px;display:flex;gap:7px;align-items:center;justify-content:center}
.comment-save-phase::before{content:"";width:5px;height:5px;border-radius:50%;background:#d93246;animation:save-pulse 1.4s ease-in-out infinite}
.is-finishing .save-ring-fill{animation:save-pulse 1.4s ease-in-out infinite}
@keyframes save-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.comment-save-phase::before,.is-finishing .save-ring-fill{animation:none}.save-ring-fill{transition:none}}

.library-filterbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:24px 0 14px}
.library-filter-tabs{display:flex;gap:4px;background:#e9edf3;padding:4px;border-radius:10px}
:root body[data-site="profile"] .library-filter-tabs button{height:34px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:#6b778a;font-size:12px;white-space:nowrap}
:root body[data-site="profile"] .library-filter-tabs button[aria-pressed="true"]{background:#fff;color:var(--role-accent);box-shadow:0 1px 4px #18264012;font-weight:650}
:root body[data-site="profile"] .library-filterbar input,:root body[data-site="profile"] .library-filterbar select{height:42px;padding:0 12px;font-size:12px;width:180px;max-width:100%}
:root body[data-site="profile"] .library-filterbar .library-search{margin-left:auto;width:240px}
.library-branch-filter[hidden]{display:none!important}.library-empty{grid-column:1/-1;padding:48px 16px;text-align:center;color:#7b8798;font-size:13px}
@media(max-width:600px){:root body[data-site="profile"] .library-filterbar .library-search{margin-left:0;flex:1 1 150px}.library-filter-tabs{max-width:100%}:root body[data-site="profile"] .library-filter-tabs button{padding:0 10px}}

:root body[data-site="profile"] .tag-category-section.drop-inside{border-color:var(--role-accent)!important;box-shadow:inset 0 0 0 1px var(--role-accent);background:var(--role-soft)}

.security-panel{padding:24px;margin-bottom:20px}.security-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.security-session{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid #e5e8ef}.security-session>div{min-width:0}.security-session p{font-size:12px;overflow-wrap:anywhere;color:#64748b;margin:8px 0}.security-session small{color:#64748b}.security-session button{flex-shrink:0}.security-panel form{display:grid;gap:16px;max-width:440px}.security-panel label{display:grid;gap:8px}.security-panel h2{margin-bottom:20px}.auth .remember-login{display:flex;align-items:center;gap:8px;margin:16px 0}.auth .remember-login input{width:16px;height:16px;margin:0}

.profile-branch-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.profile-branch-tabs button{padding:10px 16px}.profile-branch-tabs button.active{background:#fff1f2;border-color:#fda4af;color:#be123c;font-weight:700}#inboxbranch[hidden]{display:none}

:root body[data-site="profile"][data-profile-view] .add-another-photo{background:#f8fafc;color:#94a3b8;border:1px solid #e2e8f0;padding:10px 14px;box-shadow:none}.reselect-photo{background:#edf3ff;color:#2456cf;border:1px solid #cbd9f6;padding:12px 18px}.applyfield input::placeholder{color:#9aa5b5;opacity:1}.applyfield:has(#apply-spec){grid-column:1/-1}

body[data-site="profile"] .profile-header-identity{position:static;display:flex;align-items:center;gap:10px;margin:0 12px 0 0;padding:0;border:0;background:transparent;flex-shrink:0}body[data-site="profile"] .profile-header-identity strong{display:block;font-size:13px}body[data-site="profile"] .profile-header-identity small{display:block;margin-top:3px;font-size:11px;color:#8b96a9}body[data-site="profile"] .profile-header-identity .avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--role-soft,#edf3ff);color:var(--role-accent,#2456cf)}@media(max-width:600px){body[data-site="profile"] .profile-header-actions{flex-wrap:wrap;justify-content:flex-end}body[data-site="profile"] .profile-header-identity{margin-right:4px;gap:6px}}

body[data-site="profile"] .profile-home-logo{display:block;width:100%;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;cursor:pointer}body[data-site="profile"] .profile-home-logo:hover{background:transparent;box-shadow:none}body[data-site="profile"] .profile-home-logo:focus-visible{outline:2px solid var(--role-accent,#2456cf);outline-offset:5px}

body[data-site="profile"] .library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.library-card{min-width:0;display:flex;flex-direction:column;gap:6px}.library-card>.library-photo{width:100%;flex:1}.library-card .library-photo img{height:clamp(220px,24vw,340px)}
body[data-site="profile"] .library-zoom{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;font-size:12px;background:#fff;color:#64748b;border:1px solid #e2e8f0;border-radius:9px;box-shadow:none}
body[data-site="profile"] dialog.library-lightbox{width:min(1000px,94vw);max-width:94vw;max-height:94vh;padding:14px;border:0;border-radius:16px;background:#111827;color:white;box-shadow:0 24px 80px #0006}
.library-lightbox::backdrop{background:rgba(7,12,24,.8)}.lightbox-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.lightbox-heading button{padding:8px 12px;background:#263145;color:white;border:0;border-radius:8px}.library-lightbox>img{display:block;width:100%;height:calc(90vh - 80px);object-fit:contain;background:#111827}
@media(max-width:850px){body[data-site="profile"] .library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-card .library-photo img{height:240px}}
@media(max-width:600px){body[data-site="profile"] .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-card .library-photo img{height:220px}}

body[data-site="profile"] .profile-header-identity{height:42px;margin:0;padding:0 15px;border:1px solid #e1e7f0;border-radius:10px;background:#fff;box-sizing:border-box}
body[data-site="profile"] .profile-header-identity .avatar{display:none}
body[data-site="profile"] .profile-header-identity>div:not(.avatar){display:flex;align-items:center;gap:8px;white-space:nowrap}
body[data-site="profile"] .profile-header-identity strong{font-size:13px;line-height:20px;color:#24344d}
body[data-site="profile"] .profile-header-identity small{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;line-height:20px;color:#738097}
body[data-site="profile"] .profile-header-identity small::before{content:"";width:3px;height:3px;border-radius:50%;background:#b8c2d1}
body[data-site="profile"] .profile-header-actions .profile-logout,body[data-site="profile"] .profile-header-actions .view-return{height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 16px}
@media(max-width:600px){body[data-site="profile"] .profile-header-identity{padding:0 10px}body[data-site="profile"] .profile-header-actions .profile-logout,body[data-site="profile"] .profile-header-actions .view-return{padding:0 10px}}

.draft-autosave{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:12px;color:#8591a3}.draft-autosave button{font-size:12px;padding:5px 9px;background:transparent;border:0;color:#778499;box-shadow:none}.draft-autosave [hidden]{display:none!important}

body[data-site="profile"] dialog.application-review{width:min(760px,94vw);max-width:94vw;max-height:90vh;padding:24px;border:1px solid #e0e6ef;border-radius:20px;background:#fff;color:#18304e;box-sizing:border-box;box-shadow:0 24px 80px #14213b33}
.application-review::backdrop{background:#0f172a99}.review-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.review-heading h2{margin:0;font-size:21px}.review-body{max-height:calc(90vh - 180px);overflow:auto;margin:20px 0}.review-photos{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}.review-photos figure{margin:0;flex:1;min-width:180px;max-width:330px}.review-photos img{width:100%;height:300px;object-fit:contain;background:#f5f7fa;border-radius:12px}.review-photos figcaption{text-align:center;font-size:12px;color:#7b8798;margin-top:6px}.review-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.review-fields div{min-width:0}.review-fields dt{font-size:12px;color:#8190a3}.review-fields dd{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.review-tags{display:flex;flex-wrap:wrap;gap:6px}.review-tags span{background:#edf3ff;color:#2456cf;border-radius:20px;padding:5px 10px;font-size:12px}.review-comment{white-space:pre-wrap;overflow-wrap:anywhere}.review-actions{display:flex;justify-content:flex-end;gap:10px}.review-error:empty{display:none}@media(max-width:600px){.review-photos figure{min-width:120px}.review-photos img{height:230px}.review-fields{grid-template-columns:1fr}}

body[data-site="profile"] .applychoices[aria-label="페이"]{display:flex;gap:6px;flex-wrap:wrap}
body[data-site="profile"] .applychoices[aria-label="페이"] label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:42px;padding:0 10px;margin:0;box-sizing:border-box;border:1px solid #dce3ee;border-radius:9px;background:#fff;color:#65748b;font-size:13px;cursor:pointer}
body[data-site="profile"] .applychoices[aria-label="페이"] input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
body[data-site="profile"] .applychoices[aria-label="페이"] label:has(input:checked){background:#1455ff;border-color:#1455ff;color:#fff;font-weight:700}
body[data-site="profile"] .applychoices[aria-label="페이"] label:has(input:focus-visible){outline:2px solid #1455ff;outline-offset:3px}
body[data-site="profile"] .applychoices[aria-label="페이"] label:has(input:disabled){cursor:wait;opacity:.6}

.library-card .library-photo{position:relative;overflow:hidden}body[data-site="profile"] .library-photo[data-used="true"]{opacity:1;cursor:not-allowed}.library-photo[data-used="true"] img{filter:brightness(.5)}body[data-site="profile"] .library-photo .photo-used-stamp{position:absolute;left:7%;top:40%;width:86%;box-sizing:border-box;text-align:center;transform:rotate(-18deg);border:4px double white;border-radius:8px;padding:12px 3px;color:#fff;font-size:clamp(20px,2.3vw,36px);font-weight:900;letter-spacing:2px;text-shadow:0 2px 5px #0008;pointer-events:none;background:#ffffff0a}
.stats-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stats-tools select{width:180px}.stats-tools span,.stats-note{color:#758198;font-size:12px}.stats-note{margin:16px 0}.stats-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.stats-panel{padding:20px;min-width:0}.stats-panel h2{font-size:17px;margin:0 0 16px}.stats-panel table{width:100%;table-layout:fixed}.stats-panel th:first-child{width:60px}.stats-panel th:last-child{width:85px}.stats-panel td{overflow-wrap:anywhere}.stats-photo{display:flex;gap:12px;align-items:center}.stats-photo img{width:60px;height:76px;object-fit:contain;border-radius:6px;background:#f3f5f8}.stats-empty{padding:24px;color:#758198;text-align:center}@media(max-width:900px){.stats-columns{grid-template-columns:1fr}}
.library-usage-control{display:flex;align-items:center;gap:12px;margin:14px 0;font-size:13px;font-weight:600}.library-usage-control select{width:210px}.library-usage-toggle{width:100%;margin-top:6px;white-space:nowrap}
.stats-photo{width:100%;text-align:left;cursor:zoom-in;border:0;background:transparent;padding:4px}.stats-photo:hover{background:#f3f5f8}.stats-photo small{display:block;margin-top:6px;font-size:11px;color:#758198}.stats-photo:focus-visible{outline:2px solid #d72e48;outline-offset:2px}
/* Clear inbox headings and consistent download controls. */
:root body[data-site="profile"][data-profile-view] .profile-inbox-table th{font-size:15px;font-weight:750;color:#26364b;line-height:1.5;padding-top:19px;padding-bottom:19px}
:root body[data-site="profile"] .profile-inbox-table th small{font-size:11px;font-weight:400;color:#79869a}
:root body[data-site="profile"] .profile-inbox-table th:last-child{width:150px}
:root body[data-site="profile"][data-profile-view] .inbox-actions .photo-download{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;box-sizing:border-box;padding:8px 11px;border:1px solid #dce2eb;border-radius:9px;background:#fff;color:#34445b;font-size:12px;font-weight:600;line-height:20px;text-decoration:none;box-shadow:none}
:root body[data-site="profile"] .inbox-actions .photo-download svg{width:16px;height:16px;flex-shrink:0}
:root body[data-site="profile"][data-profile-view] .inbox-actions .photo-download:hover{background:#f1f4f8;border-color:#b5c0d0}
:root body[data-site="profile"] .inbox-actions>button{min-height:38px;box-sizing:border-box;border-radius:9px}
.library-upload-branches,.edit-branches{border:1px solid #e0e5ed;border-radius:10px;padding:12px;display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.library-upload-branches[hidden],.edit-branches[hidden]{display:none}.library-upload-branches label,.edit-branches label{display:inline-flex;align-items:center;gap:6px;font-size:13px}.library-upload-branches input,.edit-branches input{width:16px;height:16px;accent-color:#d72e48}.library-admin-actions{display:flex;gap:6px;margin-top:6px}.library-admin-actions button{flex:1;font-size:12px;padding:8px}.library-edit-dialog{width:min(520px,calc(100vw - 40px));box-sizing:border-box;border:1px solid #e0e5ed;border-radius:16px;padding:24px;background:#fff;color:#26364b}.library-edit-dialog::backdrop{background:#14203488}.library-edit-dialog h2{font-size:20px;margin:0 0 20px}.library-edit-dialog form>label{display:block;font-size:13px;margin:14px 0}.library-edit-dialog form>label input,.library-edit-dialog select{margin-top:6px;width:100%;box-sizing:border-box}.library-edit-dialog small{color:#758198}.library-edit-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.library-edit-dialog input[type=file]::file-selector-button{border:0;border-radius:6px;padding:8px;background:#eef1f6;color:#34445b;margin-right:10px}
.library-batch-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0;padding:12px;background:#f7f8fb;border:1px solid #e1e6ee;border-radius:10px}.library-batch-bar strong{margin-right:auto;font-size:13px}.library-batch-bar button{font-size:12px}.library-admin-card{position:relative}.library-admin-card.batch-selected{outline:2px solid #d6324d;outline-offset:3px;border-radius:12px}.library-batch-check{position:absolute;left:12px;top:12px;z-index:2;display:flex;padding:5px;border-radius:7px;background:#ffffffc9}.library-batch-check input{width:18px;height:18px;margin:0;accent-color:#d6324d}.library-admin-card .library-admin-actions{position:absolute;right:12px;top:12px;z-index:2;display:flex;gap:6px;margin:0;opacity:0;pointer-events:none;transition:opacity .15s}.library-admin-card:hover .library-admin-actions,.library-admin-card:focus-within .library-admin-actions{opacity:1;pointer-events:auto}:root body[data-site="profile"] .library-admin-actions button{display:grid;place-items:center;width:34px;height:34px;min-height:0;padding:7px;border:1px solid #ffffffba;background:#ffffffb8;backdrop-filter:blur(8px);color:#25364e;border-radius:9px;box-shadow:0 2px 8px #15223815}.library-admin-actions svg{width:19px;height:19px}.library-admin-actions button:hover{background:#fff!important}.library-admin-actions [data-delete-photo]:hover{color:#d6324d!important}@media(hover:none){.library-admin-card .library-admin-actions{opacity:1;pointer-events:auto}}

/* Keep the single code field centered, with equal insets and one text baseline. */
:root body[data-site="profile"] .authbox .logintabs,
:root body[data-site="profile"] .authbox #auth{width:100%;margin-inline:0;min-width:0}
:root body[data-site="profile"] .authbox #code{display:block;width:100%;margin-inline:0;padding:0 18px;height:58px;line-height:56px;text-align:center;text-indent:0;letter-spacing:normal;font-size:18px;font-variant-numeric:tabular-nums}
:root body[data-site="profile"] .authbox #code::placeholder{font-size:18px;letter-spacing:normal;line-height:inherit}
:root body[data-site="profile"] .authbox .remember-login input{width:16px;height:16px;padding:0;flex:0 0 16px}
