:root{--navy:#17375f;--blue:#2d6796;--line:#d9e2ec;--muted:#6f7c8d;--orange:#e77b22;--error:#b42318;--green:#16804f}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",Arial,sans-serif;background:#f4f7fa;color:#172033}a{color:inherit}.provider-register-shell{max-width:980px;margin:28px auto;padding:0 16px 50px}.provider-register-card,.provider-login-card,.provider-dashboard-card{background:#fff;border:1px solid #e4eaf0;border-radius:22px;box-shadow:0 12px 34px rgba(17,42,72,.07)}.provider-register-card{padding:26px}.provider-register-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.provider-register-head small,.provider-dashboard-hero small{color:#8b99aa;font-size:10px;font-weight:950;letter-spacing:.14em}.provider-register-head h1{margin:5px 0 5px;font-size:31px;line-height:1.15;color:#102a4f}.provider-register-head p{margin:0;color:var(--muted);font-size:14px}.provider-primary-btn,.provider-secondary-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 17px;border:0;border-radius:12px;text-decoration:none;font-weight:900;cursor:pointer}.provider-primary-btn{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff}.provider-primary-btn.submit{background:linear-gradient(135deg,#e88629,#cf641d)}.provider-primary-btn:disabled{opacity:.45;cursor:not-allowed}.provider-secondary-btn{background:#eef3f7;color:#324a64}.provider-alert{margin:18px 0 0;padding:13px 15px;border-radius:12px;font-size:13px;line-height:1.6}.provider-alert.error{background:#fff1f1;color:var(--error);border:1px solid #f5c6c2}.provider-alert.success{background:#edf9f2;color:#16683f;border:1px solid #cdebd9}.provider-calc-prefill{margin-top:18px;padding:13px 15px;border:1px solid #dce5ef;border-radius:13px;background:#f7faff}.provider-calc-prefill summary{cursor:pointer;color:#39516c;font-weight:850}.provider-calc-prefill summary strong{float:right;color:#c66319}.provider-calc-grid{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.provider-calc-grid span{padding:6px 9px;border-radius:999px;background:#fff;color:#657286;font-size:11px}.provider-stepper{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:10px;margin:23px 0 18px;padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e5ebf1}.provider-stepper button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#8a96a5;font-weight:850;cursor:pointer;padding:0}.provider-stepper button b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#dde5ed;color:#617187}.provider-stepper button.active{color:var(--navy)}.provider-stepper button.active b,.provider-stepper button.done b{background:var(--navy);color:#fff}.provider-stepper i{height:2px;background:#dde5ed}.provider-form-step{min-height:370px;padding:19px 2px 8px}.provider-step-head{display:flex;gap:13px;align-items:center;margin-bottom:18px}.provider-step-head>b{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#edf3f8;color:var(--navy);font-size:12px}.provider-step-head h2{margin:0;color:#17375f;font-size:21px}.provider-step-head p{margin:4px 0 0;color:#7f8b9a;font-size:12px}.provider-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.provider-field{display:block}.provider-field.full{grid-column:1/-1}.provider-field>span{display:block;margin-bottom:7px;color:#32445b;font-size:13px;font-weight:900}.provider-field input,.provider-field select{width:100%;min-height:49px;padding:11px 13px;border:1px solid #cfd9e5;border-radius:11px;background:#fff;color:#172033;font-size:15px;outline:none}.provider-field input:focus,.provider-field select:focus{border-color:#5f88ad;box-shadow:0 0 0 3px rgba(65,109,150,.11)}.provider-field input[readonly]{background:#f2f5f8;color:#687689}.provider-field small{display:block;margin-top:5px;color:#98a2b3;font-size:10px}.field-message{display:none;margin-top:6px;color:var(--error);font-size:11px;font-style:normal;font-weight:800}.provider-field.invalid input,.provider-field.invalid select{border-color:#df6b61;background:#fffafa}.provider-field.invalid .field-message,.group-message.show{display:block}.provider-region-presets{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}.region-preset{min-height:38px;padding:0 12px;border:1px solid #ccd8e5;border-radius:999px;background:#f5f8fb;color:#4b5d72;font-weight:850;cursor:pointer}.region-preset.active{background:var(--navy);border-color:var(--navy);color:#fff}.region-preset.partial{background:#e8f1fb;color:#285e94;border-color:#a8c4df}.provider-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.provider-check-grid label{display:flex;align-items:center;gap:7px;min-height:43px;padding:8px 10px;border:1px solid #e0e6ed;border-radius:10px;background:#fafbfd;color:#4d5b6d;font-size:12px;font-weight:750;cursor:pointer}.provider-check-grid label:has(input:checked){background:#edf4fa;border-color:#87a9c7;color:#17375f}.provider-check-grid input{width:17px;height:17px}.provider-keyword-head{display:flex;align-items:center;justify-content:space-between}.provider-keyword-head h3{margin:0}.provider-keyword-head span{padding:5px 8px;border-radius:999px;background:#eef3f7;color:#496078;font-size:11px;font-weight:900}.provider-keyword-group{margin-top:16px}.provider-keyword-group h4{margin:0 0 7px;color:#5b6879;font-size:12px}.provider-check-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.exposure-field{margin-top:20px;max-width:470px}.provider-submit-note{display:flex;gap:9px;align-items:center;margin-top:20px;padding:13px 15px;border-radius:12px;background:#fff7e9;color:#7c4c1d;font-size:12px}.provider-submit-note b{white-space:nowrap}.provider-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px;padding-top:17px;border-top:1px solid #e7ecf1}.provider-auth-page{display:grid;min-height:100vh;place-items:center}.provider-auth-shell{width:min(440px,calc(100% - 28px))}.provider-login-card{padding:30px}.provider-login-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:var(--navy);color:#fff;font-size:21px;font-weight:950}.provider-login-card h1{margin:16px 0 5px}.provider-login-card>p{color:var(--muted);font-size:13px}.provider-login-card form{display:grid;gap:13px;margin-top:20px}.provider-login-card label{font-size:12px;font-weight:900;color:#46566a}.provider-login-card input{display:block;width:100%;min-height:49px;margin-top:6px;padding:11px 13px;border:1px solid #cfd9e5;border-radius:11px;font-size:15px}.provider-login-links{display:flex;justify-content:space-between;gap:10px;margin-top:18px;font-size:11px;color:#607289}.provider-dashboard-header{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 1080px)/2));background:#fff;border-bottom:1px solid #e4e9ef}.provider-dashboard-header>a{font-size:19px;font-weight:950;color:var(--navy);text-decoration:none}.provider-dashboard-header div{display:flex;align-items:center;gap:13px;color:#667588;font-size:12px}.provider-dashboard-shell{max-width:1080px;margin:26px auto;padding:0 16px 50px}.provider-dashboard-hero{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.provider-dashboard-hero h1{margin:4px 0 5px;color:#102a4f}.provider-dashboard-hero p{margin:0;color:#6c798a}.provider-dashboard-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.provider-dashboard-card{padding:20px}.provider-dashboard-card:first-child{grid-row:span 2}.provider-dashboard-card h2{margin:0 0 14px;color:#24384f}.provider-application-item{padding:13px 0;border-bottom:1px solid #e9edf2}.provider-application-item:last-child{border-bottom:0}.provider-app-head{display:flex;justify-content:space-between;gap:12px}.provider-app-head strong{color:#17375f}.provider-app-head time{color:#9aa4b1;font-size:10px}.provider-app-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.provider-app-meta span{padding:5px 7px;border-radius:7px;background:#f3f6f9;color:#647286;font-size:10px}.provider-reject-note{margin:9px 0 0;padding:8px 10px;border-radius:8px;background:#fff2f1;color:#a43c33;font-size:11px}.provider-progress{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.provider-progress b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--navy);color:#fff;font-size:11px}.provider-progress span{font-size:11px;font-weight:850;color:#43556b}.provider-progress i{flex:1;min-width:15px;height:2px;background:#dce4ec}.provider-progress .muted{opacity:.42}.provider-proof-state{margin-top:16px;padding:10px;border-radius:9px;background:#f5f8fb;color:#5b697b;font-size:11px}.provider-support-card p{color:#6b7888;font-size:12px;line-height:1.7}.provider-support-card small{display:block;margin-top:10px;color:#9ba5b1;font-size:10px}.provider-primary-btn.inline{min-height:42px;font-size:12px}.provider-empty{color:#8a95a3;font-size:12px}@media(max-width:720px){.provider-register-shell{margin:10px auto;padding:0 9px 90px}.provider-register-card{border-radius:15px;padding:15px}.provider-register-head{align-items:center}.provider-register-head h1{font-size:23px}.provider-register-head p{font-size:12px}.provider-register-head .provider-secondary-btn{min-height:38px;padding:0 10px;font-size:11px}.provider-stepper{position:sticky;top:0;z-index:5;margin:15px -6px 10px;padding:10px 11px;border-radius:12px}.provider-stepper button span{display:none}.provider-stepper button b{width:25px;height:25px}.provider-form-step{min-height:auto;padding:12px 0 4px}.provider-step-head{margin-bottom:13px}.provider-step-head>b{width:36px;height:36px}.provider-step-head h2{font-size:18px}.provider-field-grid{grid-template-columns:1fr;gap:12px}.provider-field.full{grid-column:auto}.provider-field input,.provider-field select{min-height:47px;font-size:16px}.provider-check-grid,.provider-check-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.provider-check-grid label{min-height:42px;padding:7px 8px;font-size:11px}.provider-form-actions{position:fixed;left:8px;right:8px;bottom:72px;z-index:40;margin:0;padding:8px;border:1px solid #d9e2eb;border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(15,42,70,.18);backdrop-filter:blur(8px)}.provider-form-actions button{flex:1}.provider-calc-prefill{font-size:11px}.provider-submit-note{align-items:flex-start}.provider-dashboard-grid{grid-template-columns:1fr}.provider-dashboard-card:first-child{grid-row:auto}.provider-dashboard-hero{align-items:flex-start;flex-direction:column}.provider-dashboard-header{padding:0 14px}.provider-login-card{padding:23px}.provider-login-links{flex-direction:column}.provider-app-head{align-items:flex-start}.provider-progress i{display:none}}


/* R85.3 Provider Center landing */
.provider-center-entry-page{
    min-height:100vh;
    padding:26px 0;
    background:
        radial-gradient(circle at 15% 12%,rgba(45,103,150,.08),transparent 28%),
        #f4f7fa;
}
.provider-center-entry-shell{
    width:min(860px,calc(100% - 28px));
}
.provider-center-entry-card{
    padding:28px;
    border:1px solid #dfe7ef;
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 44px rgba(17,42,72,.09);
}
.provider-center-entry-head{
    display:flex;
    align-items:center;
    gap:16px;
    padding-bottom:20px;
    border-bottom:1px solid #e7edf3;
}
.provider-center-brand{
    width:58px;
    height:58px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:linear-gradient(145deg,#122d4d,#245f8d);
    color:#fff;
    text-decoration:none;
    font-size:21px;
    font-weight:950;
}
.provider-center-entry-head small{
    color:#8c99a9;
    font-size:10px;
    font-weight:950;
    letter-spacing:.14em;
}
.provider-center-entry-head h1{
    margin:4px 0 4px;
    color:#102a4f;
    font-size:30px;
}
.provider-center-entry-head p{
    margin:0;
    color:#6f7c8d;
    font-size:13px;
}
.provider-center-entry-grid{
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:15px;
    margin-top:20px;
}
.provider-center-login-panel,
.provider-center-register-panel{
    min-height:300px;
    padding:22px;
    border:1px solid #dce5ee;
    border-radius:18px;
}
.provider-center-login-panel{
    background:#fff;
}
.provider-center-register-panel{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:linear-gradient(145deg,#17375f,#245f8d);
    color:#fff;
    text-decoration:none;
    box-shadow:0 12px 26px rgba(23,55,95,.16);
}
.provider-center-panel-title>span,
.provider-center-register-panel span{
    display:inline-flex;
    padding:5px 8px;
    border-radius:999px;
    background:#eef3f8;
    color:#55718e;
    font-size:10px;
    font-weight:900;
}
.provider-center-register-panel span{
    background:rgba(255,255,255,.13);
    color:#dce9f4;
}
.provider-center-panel-title h2,
.provider-center-register-panel h2{
    margin:10px 0 5px;
    font-size:21px;
}
.provider-center-panel-title h2{
    color:#17375f;
}
.provider-center-panel-title p{
    margin:0;
    color:#738094;
    font-size:12px;
    line-height:1.6;
}
.provider-center-register-panel p{
    margin:0;
    color:#d5e2ed;
    font-size:12px;
    line-height:1.7;
}
.provider-center-login-panel form{
    display:grid;
    gap:13px;
    margin-top:18px;
}
.provider-center-login-panel label{
    color:#46566a;
    font-size:12px;
    font-weight:900;
}
.provider-center-login-panel input{
    display:block;
    width:100%;
    min-height:49px;
    margin-top:6px;
    padding:11px 13px;
    border:1px solid #cfd9e5;
    border-radius:11px;
    background:#fff;
    font-size:15px;
}
.provider-center-register-panel strong{
    display:block;
    margin-top:auto;
    padding-top:24px;
    font-size:17px;
}
.provider-center-register-panel small{
    display:block;
    margin-top:8px;
    color:#b9cede;
    font-size:10px;
    line-height:1.5;
}
.provider-center-entry-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:18px;
    color:#7b8797;
    font-size:11px;
}
.provider-center-entry-footer a{
    color:#345b82;
    font-weight:850;
    text-decoration:none;
}
@media(max-width:720px){
    .provider-center-entry-page{padding:10px 0}
    .provider-center-entry-shell{width:calc(100% - 18px)}
    .provider-center-entry-card{padding:16px;border-radius:17px}
    .provider-center-entry-head{align-items:flex-start;gap:11px;padding-bottom:14px}
    .provider-center-brand{width:45px;height:45px;border-radius:13px;font-size:17px}
    .provider-center-entry-head h1{font-size:23px}
    .provider-center-entry-head p{font-size:11px;line-height:1.5}
    .provider-center-entry-grid{grid-template-columns:1fr;margin-top:14px;gap:10px}
    .provider-center-login-panel,
    .provider-center-register-panel{min-height:auto;padding:16px;border-radius:14px}
    .provider-center-login-panel form{margin-top:14px}
    .provider-center-register-panel strong{padding-top:20px}
    .provider-center-entry-footer{align-items:flex-start;flex-direction:column}
}

/* R86 registration: two steps + image preview */
.provider-stepper-two{grid-template-columns:auto 1fr auto}
.provider-subtitle{margin:3px 0 12px;color:#34475e;font-size:15px}
.provider-section-divider{height:1px;margin:22px 0;background:#e5ebf1}
.provider-image-preview{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(150px,260px) minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:12px;
  border:1px solid #d8e3ee;
  border-radius:13px;
  background:#f8fafc;
}
.provider-image-preview[hidden]{display:none}
.provider-image-preview img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:contain;
  border-radius:10px;
  border:1px solid #dce4ec;
  background:#fff;
}
.provider-image-preview b{display:block;color:#35475e;font-size:12px;word-break:break-all}
.provider-image-preview button{
  margin-top:10px;
  min-height:38px;
  padding:0 12px;
  border:1px solid #efb8b1;
  border-radius:9px;
  background:#fff2f0;
  color:#a83b32;
  font-weight:900;
  cursor:pointer;
}
@media(max-width:720px){
  .provider-image-preview{grid-template-columns:120px minmax(0,1fr);gap:10px}
  .provider-image-preview button{width:100%}
  .provider-stepper-two button span{display:inline;font-size:11px}
}
@media(max-width:430px){
  .provider-stepper-two button span{display:none}
  .provider-image-preview{grid-template-columns:1fr}
  .provider-image-preview img{max-height:240px}
}

/* R87 final-step actions */
.provider-form-actions [hidden]{display:none!important}
.provider-support-unread{
    display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;
    padding:0 6px;border-radius:999px;background:#ef6b24;color:#fff;font-size:11px
}

/* R88申請必填與最後一步 */
.provider-form-actions.is-final-step #provider-next{display:none!important}
.provider-form-actions.is-final-step #provider-submit{display:inline-flex!important}
.provider-optional{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;background:#eef3f7;color:#748397;font-size:9px;font-style:normal;font-weight:850}
.provider-required-tag{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;background:#fff0e5;color:#b65d18;font-size:9px;font-style:normal;font-weight:900}

/* R105 金主廣告圖片庫 */
.provider-image-library-card{grid-column:1/-1}
.provider-image-library-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.provider-image-library-head h2{margin-bottom:6px}
.provider-image-library-head p{margin:0;max-width:720px;color:#5d6d7f;line-height:1.65}
.provider-image-library-head>span{flex:0 0 auto;padding:6px 11px;border-radius:999px;background:#edf3f8;color:#315778;font-weight:900;font-size:12px}
.provider-image-upload-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0;padding:14px;border:1px solid #dce6ef;border-radius:14px;background:#f8fafc}
.provider-image-upload-form label{display:grid;gap:7px;min-width:min(100%,320px);font-weight:900;color:#263b50}
.provider-image-upload-form input{max-width:100%;padding:10px;border:1px solid #cfdbe6;border-radius:10px;background:#fff}
.provider-image-upload-form small{color:#718096;padding-bottom:11px}
.provider-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:13px}
.provider-image-item{overflow:hidden;border:1px solid #dce5ed;border-radius:14px;background:#fff}
.provider-image-item img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f1f4f7}
.provider-image-item>div{padding:11px 12px;display:grid;gap:4px}
.provider-image-item strong{color:#98600b}
.provider-image-item.approved strong{color:#19713f}
.provider-image-item.rejected strong{color:#a83939}
.provider-image-item time{color:#7a8794;font-size:12px}
.provider-image-item p{margin:4px 0 0;color:#8f3c3c;font-size:13px;line-height:1.5}
@media(max-width:720px){
    .provider-image-library-head{display:block}
    .provider-image-library-head>span{display:inline-flex;margin-top:10px}
    .provider-image-upload-form{display:grid;align-items:stretch}
    .provider-image-upload-form label{min-width:0}
    .provider-image-upload-form small{padding-bottom:0}
    .provider-image-upload-form .provider-primary-btn{width:100%;justify-content:center}
    .provider-image-grid{grid-template-columns:1fr 1fr;gap:9px}
}
@media(max-width:460px){.provider-image-grid{grid-template-columns:1fr}}
