:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#1b2944;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}a{color:#2459ef;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}.loading{padding:80px;text-align:center}.brand{display:flex;align-items:center;gap:11px;font-size:22px;font-weight:750;letter-spacing:-.6px}.mark{width:37px;height:37px;border-radius:11px;background:#2459ef;color:#fff;display:grid;place-items:center;font-size:20px}.brand small{display:block;font-size:10px;letter-spacing:1.6px;color:#7d8ba5;margin-top:4px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{padding:12vh 9vw;background:#11234a;color:#fff;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:470px;height:470px;border:1px solid #ffffff15;border-radius:50%;bottom:-160px;right:-150px;box-shadow:0 0 0 70px #ffffff05,0 0 0 140px #ffffff04}.login-story h1{font-size:44px;line-height:1.35;margin:100px 0 24px;letter-spacing:-2px}.login-story p{color:#b2bfd9;line-height:1.9;font-size:16px;max-width:400px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.login-form{width:380px}.eyebrow{color:#2459ef;letter-spacing:2px;font-size:12px;font-weight:700}.login-form h2{font-size:30px;margin:14px 0}.muted{color:#7c899d;font-size:13px;line-height:1.8}.field{display:flex;flex-direction:column;gap:8px;margin:18px 0}.field label{font-size:13px;font-weight:600}.field input,.field select,.field textarea,.search,.filter{border:1px solid #dde3ed;border-radius:7px;background:#fff;padding:11px 12px;color:#1b2944;width:100%;min-width:0}.field textarea{min-height:100px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#2459ef;outline:2px solid #2459ef16}.button{border:1px solid #dce3ef;background:white;border-radius:7px;padding:10px 17px;color:#31415e;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.button.primary{background:#2459ef;border-color:#2459ef;color:#fff}.button.small{padding:6px 11px;font-size:12px}.button.danger{color:#c74343;border-color:#f2d6d6}.button.wide{width:100%;margin:12px 0}.error{color:#c74646;background:#fff2f2;border-radius:6px;font-size:13px;padding:12px;display:none}.shell{display:grid;grid-template-columns:228px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#101f3e;color:#bdc8de;padding:31px 23px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{font-size:18px;color:#fff}.sidebar .mark{width:31px;height:31px;font-size:18px;border-radius:8px}.sidebar .brand small{font-size:9px;color:#8697ba}.side-caption{font-size:10px;letter-spacing:2px;color:#7b8baa;margin:46px 10px 15px}.nav-link{display:flex;gap:12px;align-items:center;color:#aebbd5;border-radius:8px;padding:14px;margin:5px 0;font-size:14px}.nav-link.active{background:#2459ef;color:#fff}.nav-icon{width:18px;font-size:18px}.side-bottom{margin-top:auto;border-top:1px solid #ffffff10;padding-top:20px}.side-bottom a{display:block;color:#aebbd5;font-size:12px;margin:13px 5px}.workspace{grid-column:2;min-width:0}.topbar{height:77px;background:#fff;border-bottom:1px solid #e7ebf3;display:flex;justify-content:space-between;align-items:center;padding:0 36px;font-size:13px;color:#78869c}.topbar strong{color:#263754;font-weight:600}.top-actions{display:flex;gap:18px;align-items:center}.avatar{width:29px;height:29px;border-radius:50%;background:#eaf0ff;display:inline-grid;place-items:center;color:#2459ef;font-size:12px}.content{padding:35px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{font-size:26px;margin:0 0 7px;letter-spacing:-.7px}.page-heading p{margin:0;color:#8390a3;font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{background:white;border:1px solid #e8edf5;border-radius:10px;padding:22px;position:relative}.stat p{font-size:12px;color:#8994a6;margin:0 0 16px}.stat strong{font-size:32px;letter-spacing:-1.5px}.stat small{color:#8795ad;font-size:12px;margin-left:10px}.stat .dot{position:absolute;right:22px;top:23px;width:8px;height:8px;border-radius:50%;background:#2459ef}.panel{background:white;border:1px solid #e7edf5;border-radius:10px;margin-bottom:24px;overflow:hidden}.panel-heading{padding:21px 23px;border-bottom:1px solid #eef1f6;display:flex;justify-content:space-between;align-items:center}.panel-heading h2{font-size:16px;margin:0}.panel-body{padding:23px}.toolbar{display:flex;gap:12px;padding:20px;flex-wrap:wrap;border-bottom:1px solid #edf0f6}.search{max-width:310px;font-size:13px}.filter{width:auto;max-width:170px;font-size:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{font-size:12px;color:#8a96a9;font-weight:500;text-align:left;background:#fbfcfe;padding:14px 20px}td{padding:17px 20px;border-top:1px solid #edf1f6;max-width:330px;overflow:hidden;text-overflow:ellipsis}td .name{font-weight:600;color:#263653;display:block;margin-bottom:5px}td .sub{color:#929db0;font-size:11px}.tag{display:inline-block;padding:4px 8px;border-radius:4px;font-size:11px;margin:2px;color:#60738d;background:#f1f4f9}.tag.published{background:#eaf7f0;color:#278256}.tag.draft{background:#fff4df;color:#ae7c23}.tag.archived,.tag.closed{background:#f0f2f5;color:#8a94a3}.tag.new{background:#fff0e6;color:#d58238}.tag.contacted{background:#eaf0ff;color:#2459ef}.demo{background:#f5f0ff;color:#8d68bd}.row-actions{display:flex;gap:8px;align-items:center}.empty{padding:58px 20px;text-align:center;color:#929eb0;font-size:14px}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:23px}.check-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid #f0f3f7;font-size:13px}.check-row:last-child{border:0}.callout{border-left:3px solid #2459ef;background:#f5f8ff;padding:16px;color:#667b9f;font-size:12px;line-height:1.9}.dialog-backdrop{position:fixed;inset:0;background:#0a1d4366;backdrop-filter:blur(3px);z-index:100;display:flex;align-items:center;justify-content:center;padding:25px}.dialog{background:#fff;border-radius:12px;width:790px;max-height:92vh;overflow:auto;box-shadow:0 30px 100px #0c214640}.dialog-header{padding:23px 27px;border-bottom:1px solid #edf0f6;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:white;z-index:1}.dialog-header h2{font-size:20px;margin:0}.close{border:0;background:#f1f4f9;color:#8290a7;width:29px;height:29px;border-radius:50%;font-size:20px}.editor{padding:5px 27px 25px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:23px}.span-2{grid-column:1/-1}.editor .field{margin:13px 0}.editor-footer{padding-top:20px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #edf0f6;margin-top:15px}.toggle{display:flex;gap:8px;align-items:center;font-size:13px;margin-top:14px}.toggle input{width:16px;height:16px;accent-color:#2459ef}.helper{font-size:11px;color:#8d99ac;line-height:1.7}.image-upload{display:flex;gap:12px;align-items:center}.image-upload img{width:70px;height:70px;object-fit:cover;background:#f3f6fb;border-radius:8px}.image-upload input{padding:7px;font-size:12px}.inquiry-detail{white-space:pre-wrap;font-size:14px;line-height:1.9;background:#f6f8fc;border-radius:8px;padding:20px;overflow-wrap:anywhere}#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#142847;color:#fff;padding:12px 22px;border-radius:8px;z-index:200;font-size:13px;box-shadow:0 6px 25px #0002;display:none}.footer-note{font-size:11px;color:#98a4b5;text-align:center;padding:6px}.issue{color:#b7822f}.mobile-title{display:none}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.sidebar{width:190px;padding:25px 16px}.shell{grid-template-columns:190px 1fr}.content{padding:25px}.topbar{padding:0 25px}.login-story{padding:10vh 6vw}.login-story h1{font-size:36px}}@media(max-width:720px){.login{grid-template-columns:1fr}.login-story{display:none}.login-form-wrap{min-height:100vh;padding:25px}.shell{display:block}.sidebar{inset:auto 0 0 0;height:66px;width:100%;padding:5px 8px;flex-direction:row;justify-content:space-around}.sidebar .brand,.side-caption,.side-bottom{display:none}.nav-link{flex-direction:column;gap:3px;font-size:10px;padding:6px 14px;margin:0;border-radius:6px}.nav-icon{font-size:17px}.workspace{padding-bottom:66px}.topbar{height:64px;padding:0 18px}.topbar .top-actions>a{display:none}.content{padding:24px 15px}.page-heading{align-items:flex-start}.page-heading h1{font-size:22px}.page-heading p{max-width:230px;line-height:1.6}.stats{gap:10px}.stat{padding:18px}.stat strong{font-size:28px}.stat small{display:block;margin:6px 0 0}.dialog-backdrop{padding:10px}.dialog{max-height:96vh}.dialog-header{padding:20px}.editor{padding:5px 20px 20px}.editor-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.toolbar{padding:14px;gap:9px}.search{max-width:none}.filter{max-width:none;flex:1}.button{padding:9px 12px}.panel-heading{padding:17px}.panel-body{padding:18px}.top-actions{gap:10px}}

.source-details{margin:12px 0;border:1px solid #e2e8f2;border-radius:8px;padding:0 17px;background:#fbfcff}.source-details summary{cursor:pointer;font-size:14px;font-weight:600;padding:17px 0}.source-details[open] summary{border-bottom:1px solid #e5eaf3;margin-bottom:10px}.source-details .helper{margin:12px 0}.field textarea.code-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;min-height:220px;line-height:1.7;white-space:pre}.source-details .editor-grid{padding-bottom:10px}

.classification-editor{border:1px solid #e0e7f3;background:#fbfcff;border-radius:9px;padding:18px;margin:14px 0}.classification-editor h3{font-size:15px;margin:0 0 8px}.primary-checks,.secondary-checks{display:flex;gap:9px 16px;flex-wrap:wrap}.primary-checks{padding:10px 0 17px;border-bottom:1px solid #e7edf6}.primary-checks label,.secondary-checks label{display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}.primary-checks input,.secondary-checks input{accent-color:#2459ef;width:15px;height:15px}.secondary-group{border-bottom:1px solid #edf1f8;padding:0 2px}.secondary-group:last-child{border-bottom:0}.secondary-group summary{cursor:pointer;padding:13px 0;font-size:13px;font-weight:600}.secondary-checks{padding:0 0 16px}.secondary-group[hidden]{display:none}

.super-factory-editor{border:1px solid #dce6fc;border-radius:9px;padding:18px;margin:10px 0;background:#f8faff}.super-factory-editor h3{margin:0 0 8px;font-size:15px}.super-factory-editor .toggle{font-weight:600;color:#2459ef}.cover-preview img{display:block;width:100%;max-width:420px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#edf1f8;margin:8px 0 12px}.cover-preview img[hidden]{display:none}.cover-upload-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cover-upload-actions input{width:auto;max-width:100%;font-size:12px;padding:7px}.tag.super{background:#e8eeff;color:#315be4}

/* Readable administration typography on desktop and mobile. */
:root{font-size:16px;line-height:1.65;color:#20304b}
body{font-size:16px;line-height:1.65}
button,input,textarea,select{line-height:1.5}
button,input,select,textarea{max-width:100%}
input::placeholder,textarea::placeholder{color:#68768a;opacity:1}
.brand{font-size:24px;line-height:1.3}
.brand small{font-size:12px;color:#59697f;letter-spacing:1px;line-height:1.5}
.sidebar{overflow-y:auto}
.sidebar .brand{font-size:20px;letter-spacing:-.4px}
.sidebar .brand small{font-size:12px;color:#c1cde2;letter-spacing:.8px}
.side-caption{font-size:12px;letter-spacing:1.3px;color:#b5c3de}
.nav-link{font-size:16px;color:#d2dcef;line-height:1.5}
.side-bottom a{font-size:14px;color:#c3cfe5;line-height:1.6}
.login-story p{color:#d1dbed;font-size:17px;line-height:1.85}
.login-story .brand small{color:#c1cde2}
.login-form{max-width:100%}
.eyebrow{font-size:12px;letter-spacing:1.4px}
.muted,.page-heading p{font-size:15px;color:#59697f;line-height:1.75}
.field label{font-size:15px;color:#30415c;line-height:1.6}
.field input,.field select,.field textarea,.search,.filter{font-size:16px;color:#20304b;line-height:1.5}
.field textarea{line-height:1.75}
.button{font-size:15px;line-height:1.5;min-height:42px}
.button.small{font-size:14px;min-height:36px}
.button.danger{color:#a83232}
.error{font-size:15px;line-height:1.7;color:#aa3030;overflow-wrap:anywhere}
.topbar{font-size:15px;color:#59697f;min-height:77px;height:auto;padding-top:12px;padding-bottom:12px;gap:12px;flex-wrap:wrap}
.top-actions{flex-wrap:wrap;row-gap:8px}
.avatar{font-size:14px;width:32px;height:32px;flex-shrink:0}
.page-heading{flex-wrap:wrap}
.page-heading h1{font-size:29px;line-height:1.4}
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat{min-width:0}
.stat p{font-size:15px;color:#59697f;line-height:1.6}
.stat small{font-size:13px;color:#59697f;line-height:1.6}
.panel-heading{gap:12px;flex-wrap:wrap}
.panel-heading h2{font-size:19px;line-height:1.5}
.search,.filter{font-size:16px}
.table-wrap{max-width:100%;overflow-x:auto}
table{font-size:15px;line-height:1.6}
th{font-size:14px;color:#52637b;font-weight:600;line-height:1.6}
td{line-height:1.65}
td .name{font-size:15px;line-height:1.6}
td .sub{font-size:13px;line-height:1.65;color:#59697f}
.tag{font-size:12px;line-height:1.6;color:#455a75;padding:4px 8px}
.tag.published{color:#1f6b46}
.tag.draft{color:#805a15}
.tag.archived,.tag.closed{color:#596575}
.tag.new{color:#965219}
.demo{color:#73509f}
.empty{font-size:16px;color:#59697f;line-height:1.75}
.check-row{font-size:15px;line-height:1.65;gap:14px}
.callout{font-size:14px;line-height:1.85;color:#465f84;overflow-wrap:anywhere}
.dialog{width:min(790px,100%)}
.dialog-header{gap:15px}
.dialog-header h2{font-size:23px;line-height:1.4}
.close{color:#52637b;width:34px;height:34px;flex-shrink:0;line-height:1}
.editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field{min-width:0}
.editor-footer{flex-wrap:wrap}
.toggle{font-size:15px;line-height:1.6}
.toggle input{flex-shrink:0}
.helper,.footer-note{font-size:13px;color:#59697f;line-height:1.75;overflow-wrap:anywhere}
.image-upload{min-width:0;flex-wrap:wrap}
.image-upload img{flex-shrink:0}
.image-upload input{font-size:14px;min-width:0;max-width:100%}
.inquiry-detail{font-size:16px;line-height:1.85}
#toast{font-size:15px;line-height:1.6;width:max-content;max-width:calc(100vw - 32px);text-align:center;overflow-wrap:anywhere}
.issue{color:#895f1e}
.source-details summary{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.field textarea.code-editor{font-size:14px;line-height:1.75;max-width:100%}
.classification-editor h3,.super-factory-editor h3{font-size:17px;line-height:1.5}
.primary-checks label,.secondary-checks label{font-size:14px;line-height:1.65;max-width:100%}
.primary-checks input,.secondary-checks input{width:17px;height:17px;flex-shrink:0}
.secondary-group summary{font-size:15px;line-height:1.6}
.cover-upload-actions input{font-size:14px;line-height:1.5}
@media(max-width:1050px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sidebar .brand{font-size:17px;gap:8px}
  .sidebar .brand small{font-size:12px;letter-spacing:0}
}
@media(max-width:720px){
  .sidebar{height:78px;overflow-x:auto;overflow-y:hidden;align-items:center;justify-content:space-around;padding:5px 4px}
  .nav-link{font-size:12px;line-height:1.4;padding:7px 10px;gap:4px;flex:0 0 auto;min-width:0;white-space:nowrap}
  .nav-icon{font-size:20px;line-height:1.2;text-align:center}
  .workspace{padding-bottom:78px}
  .topbar{font-size:14px;min-height:64px;padding:12px 16px}
  .top-actions{gap:10px}
  .page-heading{gap:14px}
  .page-heading h1{font-size:25px}
  .page-heading p{font-size:14px;max-width:none}
  .content{padding:24px 14px}
  .stat{padding:17px 14px}
  .stat p{font-size:14px;margin-bottom:12px}
  .stat small{font-size:12px}
  .button{font-size:14px;min-height:42px}
  .button.small{font-size:14px;min-height:38px}
  .toolbar{gap:10px}
  .filter{min-width:120px;flex:1 1 120px}
  th,td{padding:14px 16px}
  .panel-heading h2{font-size:18px}
  .editor-grid{grid-template-columns:minmax(0,1fr)}
  .dialog-header h2{font-size:21px}
  .classification-editor,.super-factory-editor{padding:15px}
  .primary-checks,.secondary-checks{column-gap:14px;row-gap:12px}
  .primary-checks label,.secondary-checks label{font-size:14px}
  .field input,.field select,.field textarea,.search,.filter{font-size:16px}
  .helper,.footer-note{font-size:13px}
  .callout{font-size:14px}
  #toast{bottom:94px;font-size:14px}
}

/* Shared site identity in the console and sign-in screen. */
.brand .mark{display:block;flex-shrink:0;object-fit:contain;background:transparent;border:0;border-radius:0}

/* Membership is an administrative display setting, separate from credentials. */
.membership-editor{border:1px solid #dfe6f0;border-radius:9px;padding:18px;margin:12px 0;background:#fbfcff;min-width:0}
.membership-editor h3{margin:0 0 8px;color:#304764;font-size:17px;line-height:1.5}
.membership-editor>.helper{margin:0 0 7px;font-size:14px;line-height:1.8}
.membership-editor .editor-grid{column-gap:20px}
.membership-editor input[type=date]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;font-size:16px}
.membership-cell{min-width:190px;white-space:normal}
.membership-status{display:inline-block;padding:4px 8px;border-radius:5px;color:#455a75;background:#f1f4f9;font-size:13px;line-height:1.6;font-weight:600}
.membership-status.enterprise{color:#28579f;background:#edf3ff}
.membership-status.flagship{color:#344c84;background:#e9effc}
.membership-status.expired{color:#8c4a2a;background:#fff2e9}
.membership-cell .membership-expiry{display:block;margin-top:5px;font-size:13px;line-height:1.65;color:#59697f;white-space:normal}
@media(max-width:720px){.membership-editor{padding:15px}.membership-editor>.helper{font-size:14px}.membership-cell{min-width:180px}}

/* Public layout controls use the same persisted value as the catalog. */
.site-settings{max-width:820px}
.settings-form{padding:25px}
.settings-form .field{margin:0 0 22px;max-width:520px}
.settings-form select{width:100%;max-width:300px;min-height:46px;font-size:16px}
.settings-form .helper{font-size:14px;line-height:1.8;color:#59697f;margin:10px 0 0}
.settings-layout-preview{display:grid;grid-template-columns:repeat(var(--settings-columns,4),minmax(0,1fr));gap:10px;max-width:650px;margin:0 0 15px}
.settings-layout-preview>span{display:grid;place-items:center;min-height:64px;border:1px solid #dce5f5;border-radius:7px;background:#f4f7fd;color:#315b9b;font-size:18px;font-weight:600}
.settings-summary{font-size:15px;line-height:1.8;color:#455c7e;margin:0 0 23px}
.settings-front-link{display:inline-flex;font-size:14px;color:#315b9b;margin-left:20px;line-height:1.8}
.settings-form>.error{margin:0 0 15px;font-size:15px}
@media(max-width:720px){.settings-form{padding:20px 16px}.settings-layout-preview{gap:7px}.settings-layout-preview>span{min-height:45px;font-size:16px}.settings-front-link{margin-left:12px}}
.login-story .brand .mark,.sidebar .brand .mark{filter:brightness(0) invert(1)}

/* Dedicated editing pages keep full enterprise records and related products together. */
.editor-breadcrumb{display:flex;align-items:center;gap:10px;color:#65748a;font-size:14px;margin:0 0 16px;flex-wrap:wrap}
.editor-breadcrumb>a{color:#315b9b}
.editor-page-heading{margin-bottom:21px}
.editor-page-heading p{overflow-wrap:anywhere}
.entity-editor-panel{max-width:1120px}
.entity-editor{padding:10px 27px 22px}
.entity-editor .editor-grid{column-gap:27px}
.entity-editor .editor-footer{align-items:center;gap:10px;padding-top:20px;margin-top:20px}
.entity-editor .editor-footer>[data-action="save-add-product"]{background:#f5f8ff;border-color:#cad9f6;color:#315fa9}
.editor-save-state{font-size:14px;color:#536b58;line-height:1.6;margin-right:auto}
.editor-save-state.is-dirty{color:#8b622a}
.editor-add-help{margin:12px 0 0;text-align:right}
.factory-products-panel{max-width:1120px}
.factory-products-panel .panel-heading>.helper,.factory-products-panel .panel-heading p{margin:5px 0 0}
.company-full-name{display:block;white-space:normal;min-width:210px;max-width:370px;overflow-wrap:anywhere;margin:3px 0 5px}
.identity-label{display:inline-block;font-size:12px;color:#66758b;font-weight:400;line-height:1.6;margin-right:7px;padding:1px 5px;background:#f2f5fa;border-radius:3px;vertical-align:1px}
.list-context{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;background:#edf3ff;border:1px solid #dce5f8;padding:13px 17px;border-radius:8px;color:#455d80;font-size:14px;margin:0 0 20px;overflow-wrap:anywhere}
.list-context strong{font-weight:600}
.list-context>a{white-space:nowrap;font-size:14px}
.row-actions{flex-wrap:wrap;min-width:230px}
.row-actions>.button{white-space:nowrap}
.site-information{max-width:1000px}
.site-information-list{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px 22px;font-size:15px;line-height:1.8;margin:0 0 26px}
.site-information-list dt{color:#66758b}
.site-information-list dd{margin:0;overflow-wrap:anywhere}
.settings-entry-links{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid #edf1f6;padding-top:22px}
.recommendation-layout{max-width:1000px}
.recommendation-layout .panel-heading .helper,.recommendations-panel .panel-heading .helper{margin:6px 0 0;font-size:14px;line-height:1.8}
.recommendation-layout .settings-form{display:grid;grid-template-columns:minmax(200px,1fr) minmax(240px,1.1fr);gap:12px 28px;align-items:start}
.recommendation-layout .settings-form .field{margin-bottom:0}
.recommendation-layout .settings-layout-preview{margin:0;gap:8px}
.recommendation-layout .settings-layout-preview>span{min-height:48px;font-size:16px}
.recommendation-layout .settings-summary{grid-column:1/-1;margin:0;font-size:14px}
.settings-draft-state{grid-column:1/-1;font-size:14px;line-height:1.7;color:#8b622a;margin:0}
.settings-draft-state:empty{display:none}
.recommendation-layout .settings-form>.error{grid-column:1/-1;margin:0}
.recommendation-layout #save-settings{justify-self:start}
.recommendation-layout .settings-front-link{justify-self:end;align-self:center;margin-left:0}
.recommendation-tabs{display:flex;gap:10px;padding:18px 20px;border-bottom:1px solid #edf0f6;overflow-x:auto;scrollbar-width:thin}
.recommendation-tabs>.button{white-space:nowrap;flex-shrink:0}
.recommendation-tabs [data-recommendation-count]{display:inline-grid;place-items:center;min-width:24px;padding:1px 5px;border-radius:4px;background:#eef2f9;font-size:13px;color:#536987}
.recommendation-tabs>.primary [data-recommendation-count]{background:#ffffff26;color:#fff}
.recommendation-only,.recommendation-switch{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#455b78;white-space:nowrap}
.recommendation-only input,.recommendation-switch input{width:18px;height:18px;accent-color:#2459ef;flex-shrink:0;cursor:pointer}
.recommendation-table td:first-child{white-space:normal;min-width:240px}
.recommendation-table td .sub{display:block;overflow-wrap:anywhere}
.recommendation-note{margin:0;padding:15px 20px;background:#fbfcfe;border-top:1px solid #edf1f6;font-size:14px}
.unsaved-dialog{padding:15px 27px 27px}
.unsaved-dialog p{font-size:16px;color:#52637b;line-height:1.8}
.unsaved-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:25px}
@media(max-width:1050px){.recommendation-layout .settings-form{grid-template-columns:minmax(0,1fr)}.recommendation-layout .settings-front-link{grid-column:1;justify-self:start}.recommendation-layout .settings-layout-preview{max-width:600px}}
@media(max-width:720px){
.sidebar{justify-content:flex-start;gap:2px;padding-left:7px;padding-right:7px}
.sidebar>.nav-link{flex:1 0 auto;padding-left:10px;padding-right:10px;min-width:61px}
.editor-breadcrumb{font-size:13px;margin-bottom:12px}
.editor-page-heading{align-items:flex-start;gap:12px}
.editor-page-heading>.button{font-size:13px;padding:8px 10px;min-height:37px}
.entity-editor{padding:6px 16px 19px}
.entity-editor .editor-footer{gap:9px;justify-content:flex-start}
.entity-editor .editor-footer>.button{flex:1 1 auto;white-space:nowrap;padding-left:10px;padding-right:10px}
.entity-editor .editor-footer>[data-action="save-add-product"]{flex-basis:100%;order:3}
.editor-save-state{flex:1 0 100%;font-size:13px}
.editor-add-help{text-align:left}
.list-context{gap:9px 15px;padding:12px 14px;font-size:14px}
.list-context>span:first-child{flex-basis:100%}
.site-information-list{grid-template-columns:1fr;gap:5px;margin-bottom:22px}
.site-information-list dd{margin-bottom:15px}
.settings-entry-links>.button{flex:1 1 auto}
.recommendation-tabs{gap:8px;padding:15px 14px}
.recommendation-tabs>.button{font-size:14px;padding:8px 10px}
.recommendation-layout .settings-form{gap:15px;padding:19px 16px}
.recommendation-layout .settings-layout-preview>span{min-height:43px}
.recommendation-layout .settings-front-link{margin-top:-2px}
.recommendation-only,.recommendation-switch{font-size:14px}
.recommendation-only input,.recommendation-switch input{width:20px;height:20px}
.recommendation-note{padding:14px 16px;font-size:13px}
.unsaved-dialog{padding:10px 20px 22px}
.unsaved-actions>.button{flex:1 1 auto}
}

/* Review drafts remain distinct from published enterprise and product records. */
.submission-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}
.submission-stats>span{display:flex;align-items:center;gap:12px;min-width:0;background:#fff;border:1px solid #e4eaf3;border-radius:8px;padding:15px 18px;color:#5c6e86;font-size:14px}
.submission-stats strong{font-size:24px;line-height:1.3;color:#304a70}
.submission-status{display:inline-flex;align-items:center;font-size:13px;line-height:1.6;border-radius:5px;padding:4px 9px;background:#f0f3f7;color:#58697e;white-space:nowrap}
.submission-status.submitted{background:#edf3ff;color:#2858ae}
.submission-status.approved{background:#eaf7ef;color:#26754c}
.submission-status.changes_requested{background:#fff3e8;color:#945b28}
.submission-kind{display:block;font-size:12px;color:#677d9e;line-height:1.7;margin-bottom:3px}
.submission-toolbar .search{flex:1 1 230px}
.submission-toolbar>.filter{flex:0 1 150px}
.submission-table td{white-space:normal;min-width:140px;vertical-align:top}
.submission-table td:first-child,.submission-table td:nth-child(2){min-width:220px}
.submission-table .sub{display:block;overflow-wrap:anywhere;white-space:normal;margin:3px 0}
.submission-table .submission-note-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:230px}
.submission-row-actions{min-width:140px;align-items:flex-start;gap:7px}
.submission-summary .panel-heading h2{font-size:22px;margin:0;overflow-wrap:anywhere}
.submission-metadata{display:grid;grid-template-columns:125px minmax(0,1fr);gap:13px 22px;margin:0;line-height:1.8;font-size:15px}
.submission-metadata>dt{color:#6a798f}
.submission-metadata>dd{margin:0;min-width:0;overflow-wrap:anywhere}
.submission-metadata .sub{display:block;color:#687b95;font-size:13px}
.submission-record-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}
.submission-draft-explanation{border-left:3px solid #a6bceb;padding:10px 13px;background:#f5f8fd;margin:20px 0 0;font-size:14px}
.review-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 30px;margin:0;font-size:15px;line-height:1.8}
.review-field{min-width:0}
.review-field.is-wide{grid-column:1/-1}
.review-field>dt{font-size:14px;color:#657991;margin-bottom:7px}
.review-field>dd{margin:0;color:#263d5d;min-width:0;overflow-wrap:anywhere}
.review-empty-value{color:#8390a1;font-size:14px}
.review-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.review-tags{display:flex;flex-wrap:wrap;gap:7px}
.review-tags>span{background:#f2f5fa;color:#4b6486;border-radius:4px;padding:3px 8px;font-size:14px;line-height:1.8;max-width:100%;overflow-wrap:anywhere}
.review-image{display:block;width:auto;max-width:180px;height:130px;object-fit:contain;border:1px solid #e4eaf4;border-radius:7px;background:#f8faff;margin:0 0 8px}
.review-image.is-cover{width:100%;height:auto;max-width:580px;max-height:330px;object-fit:contain}
.review-image-path{display:block;font-size:12px;color:#738198;overflow-wrap:anywhere}
.review-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.review-gallery figure{margin:0;min-width:0}
.review-gallery img{width:100%;height:170px;object-fit:contain;background:#f5f7fb;border:1px solid #e7edf5;border-radius:6px}
.review-gallery figcaption{font-size:12px;color:#738198;overflow-wrap:anywhere;margin-top:5px}
.review-content-section{border-bottom:1px solid #edf1f6;padding:0 0 16px;margin-bottom:16px}
.review-content-section:last-child{border:0;padding-bottom:0;margin-bottom:0}
.review-content-section h3{font-size:17px;line-height:1.65;color:#344f76;margin:0 0 8px}
.review-json{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fc;border-radius:6px;padding:13px;font-size:13px;line-height:1.8;margin:0}
.submission-review-panel .field{margin:0 0 20px}
.submission-review-panel .field .helper{margin:0}
.submission-review-actions{display:flex;flex-wrap:wrap;gap:11px;justify-content:flex-end}
.submission-review-actions>.button:first-child{margin-right:auto}
.submission-state-copy{margin:0 0 18px;color:#536a89;line-height:1.9;font-size:15px}
.submission-load-error{padding:25px;color:#536a89;font-size:15px;line-height:1.8}
.submission-load-error h2{font-size:21px;margin:0 0 8px;color:#344d70}
.submission-refresh-notice{padding:12px 16px;border:1px solid #e8dcc5;background:#fffbf3;border-radius:7px;color:#8c672d;font-size:14px;line-height:1.8}
@media(max-width:720px){
.submission-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.submission-stats>span{font-size:13px;gap:10px;padding:12px 14px}
.submission-stats strong{font-size:22px}
.submission-toolbar>.filter{flex:1 1 120px;max-width:none}
.submission-metadata{grid-template-columns:1fr;gap:4px;font-size:15px}
.submission-metadata>dd{margin:0 0 12px}
.submission-summary .panel-heading h2{font-size:20px}
.submission-record-links>.button{flex:1 1 auto}
.review-fields{grid-template-columns:minmax(0,1fr);gap:19px}
.review-field.is-wide{grid-column:auto}
.review-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.review-gallery img{height:140px}
.submission-review-actions{gap:9px}
.submission-review-actions>.button{flex:1 1 auto}
.submission-review-actions>.button:first-child{flex-basis:100%;margin-right:0}
.submission-load-error{padding:20px}
}

/* Upload controls keep storage paths out of the enterprise editing flow. */
.editor-image-field,.editor-gallery-field{border:1px solid #e0e7f2;background:#fbfcff;border-radius:9px;padding:18px;margin:12px 0}
.editor-image-field h3,.editor-gallery-field h3{font-size:17px;color:#304764;line-height:1.6;margin:0 0 13px}
.editor-image-label{font-size:15px;font-weight:600;line-height:1.6;color:#30415c}
.editor-image-upload{display:flex;align-items:center;gap:20px;min-width:0}
.editor-image-preview{display:grid;place-items:center;flex:0 0 138px;min-width:0;min-height:124px;background:#f0f4fa;border:1px solid #e0e7f2;border-radius:8px;overflow:hidden}
.editor-image-preview>a{display:flex;align-items:center;justify-content:center;width:100%;height:124px}
.editor-image-preview img{display:block;width:100%;height:100%;max-width:200px;object-fit:contain}
.editor-image-preview.is-cover{flex-basis:250px;min-height:145px}
.editor-image-preview.is-cover>a{height:145px}
.editor-image-preview.is-cover img{max-width:none}
.editor-image-empty{color:#76859a;font-size:13px;text-align:center;line-height:1.8;padding:15px}
.editor-image-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.editor-image-actions .helper{flex:1 0 100%;margin:0;font-size:13px}
.upload-picker.button{position:relative;display:inline-flex;overflow:hidden;cursor:pointer;margin:0;font-size:14px;font-weight:400;min-height:36px;white-space:nowrap}
.upload-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0;cursor:pointer;font-size:16px;border:0}
.upload-picker:focus-within{outline:3px solid #a5bdf7;outline-offset:3px}
.upload-picker.is-disabled{opacity:.55;cursor:default}
.upload-picker.is-disabled input{cursor:default}
.editor-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.editor-gallery-heading h3{margin:0}
.editor-gallery-heading h3>span{font-size:13px;font-weight:400;color:#667c99;margin-left:8px;white-space:nowrap}
.editor-gallery-field>.helper{margin:9px 0 14px}
.editor-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.editor-gallery-card{min-width:0;border:1px solid #dfe7f2;background:#fff;border-radius:8px;overflow:hidden}
.editor-gallery-preview{display:grid;place-items:center;min-height:150px;background:#f1f5fa}
.editor-gallery-preview>a{display:block;width:100%;height:150px}
.editor-gallery-preview img{display:block;width:100%;height:100%;object-fit:contain}
.editor-gallery-caption{padding:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;color:#5b7190}
.editor-gallery-actions{display:flex;gap:7px;align-items:center}
.editor-gallery-actions>.button{font-size:13px;min-height:32px;padding:4px 8px}
.editor-gallery-empty{background:#f1f5fa;border:1px dashed #d9e4f3;border-radius:7px;text-align:center;color:#70829a;padding:24px 15px;margin:0;font-size:14px}
.editor-upload-status{margin:11px 0 0;color:#436489;font-size:14px;line-height:1.8}
.editor-upload-status:empty{display:none}
.editor-upload-errors{font-size:14px;line-height:1.8;color:#a43b32;background:#fff4f2;border:1px solid #f0d9d5;border-radius:6px;margin:10px 0 0;padding:10px 14px 10px 31px;overflow-wrap:anywhere}
.editor-image-field [hidden],.editor-gallery-field [hidden],.super-factory-editor [hidden]{display:none!important}
.review-image-link{display:block;width:fit-content;max-width:100%}
.review-gallery a{display:block}
@media(max-width:1050px){.editor-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
.editor-image-field,.editor-gallery-field{padding:15px}
.editor-image-upload{align-items:flex-start;gap:14px;flex-wrap:wrap}
.editor-image-preview{flex-basis:110px;min-height:110px}
.editor-image-preview>a{height:110px}
.editor-image-actions{flex:1 1 140px;gap:8px}
.editor-image-preview.is-cover{flex-basis:100%;width:100%;min-height:150px}
.editor-image-preview.is-cover>a{height:170px}
.editor-gallery-grid{gap:10px}
.editor-gallery-preview{min-height:120px}
.editor-gallery-preview>a{height:120px}
.editor-gallery-caption{padding:9px;gap:7px}
.editor-gallery-actions{gap:6px;flex-wrap:wrap}
.editor-gallery-actions>.button{font-size:14px;padding:5px 7px;min-height:36px}
.editor-gallery-heading{gap:11px}
.editor-gallery-heading h3{font-size:16px}
}

/* Membership reminders and date changes use the dedicated membership service. */
.member-reminder-panel .panel-heading .helper{margin:5px 0 0;font-size:14px}
.member-reminder-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:18px 20px 12px}
.member-reminder-card{display:flex;align-items:center;gap:12px;border:1px solid #dfe7f3;border-radius:7px;background:#f7faff;padding:14px 16px;color:#516d95;min-width:0}
.member-reminder-card strong{font-size:25px;line-height:1.3;color:#315b94}
.member-reminder-card span{font-size:14px;line-height:1.6}
.member-reminder-card.today,.member-reminder-card.within_1{background:#fff7ec;border-color:#f0dfc9}
.member-reminder-card.expired{background:#fff3f1;border-color:#ecd5d1}
.member-reminder-note{display:flex;gap:10px 20px;justify-content:space-between;flex-wrap:wrap;padding:0 20px 16px;color:#6b7e99;font-size:13px;line-height:1.8}
.member-reminder-loading{padding:22px;color:#667b98;font-size:14px}
.member-refresh-error{color:#91632e;font-size:13px;line-height:1.8;margin:0;padding:0 20px 15px}
.member-stage{display:inline-flex;align-items:center;border-radius:5px;padding:3px 8px;background:#eff3f9;color:#5c7190;font-size:13px;line-height:1.6;white-space:nowrap}
.member-stage.active{background:#edf7f1;color:#2c7755}
.member-stage.within_30,.member-stage.within_7{background:#edf3ff;color:#315eab}
.member-stage.within_1,.member-stage.today{background:#fff3e3;color:#946326}
.member-stage.expired{background:#fff0ed;color:#a34e3d}
.member-stage.unknown,.member-stage.scheduled{background:#f4f0fb;color:#71618c}
.member-days{display:block;font-size:13px;color:#697e9d;line-height:1.8;margin-top:5px}
.member-inline-tier{display:block;font-size:15px;line-height:1.8;color:#304b72}
.member-inline-dates{color:#5d7290;font-size:13px;line-height:1.8;margin:5px 0 8px}
.member-list-table td{vertical-align:top;white-space:normal;min-width:150px}
.member-list-table td:first-child{min-width:230px}
.member-list-table .sub{display:block;white-space:normal;margin-top:4px;overflow-wrap:anywhere}
.member-list-table td>strong{font-size:14px;line-height:1.8}
.member-current-panel .panel-heading h2{font-size:22px;margin:0;line-height:1.5}
.member-current-panel .panel-heading .helper{margin:5px 0 0}
.member-current-panel .panel-body{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px}
.member-current-panel .member-inline-tier{font-size:17px}
.member-current-panel .member-inline-dates{margin:0}
.member-current-panel .member-days{margin:0}
.member-setting-panel,.member-history-panel,.member-current-panel{max-width:1150px}
.member-setting-panel .field .helper{margin:0;font-size:13px}
.member-setting-panel .field input[type=date]{min-width:0;width:100%;min-height:46px;display:block;font-size:16px}
.member-setting-panel [hidden]{display:none!important}
.member-form-warning{color:#91652d;border:1px solid #eee0cb;background:#fffaf2;border-radius:7px;padding:12px 15px;font-size:14px;line-height:1.85;margin:0 0 20px}
.member-date-preview{border:1px solid #cfdff6;background:#f4f8ff;padding:18px 20px;border-radius:8px;margin:4px 0 20px}
.member-date-preview h3{margin:0 0 12px;font-size:17px;color:#31537e}
.member-date-preview dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:8px 18px;font-size:15px;line-height:1.8;margin:0}
.member-date-preview dt{color:#627a9a}
.member-date-preview dd{margin:0;overflow-wrap:anywhere;color:#284a78;font-weight:600}
.member-date-preview p{font-size:13px;line-height:1.8;color:#677e9c;margin:14px 0 0}
.member-preview-empty{padding:14px 16px;border:1px dashed #d7e2f2;border-radius:7px;background:#f8faff;margin:0 0 20px}
.member-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.member-form-actions>.button:first-child{margin-right:auto}
.member-form-actions+.helper{margin:15px 0 0}
.member-save-notice{background:#eef8f1;color:#367257;padding:12px 15px;border-radius:7px;font-size:14px;line-height:1.8}
.member-history-table td{vertical-align:top;white-space:normal;min-width:150px;font-size:14px}
.member-history-table td .sub{display:block;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
.member-history-table .member-history-note{min-width:210px;white-space:pre-wrap;overflow-wrap:anywhere}
.membership-editor>.helper{margin:13px 0}
@media(max-width:1050px){.member-reminder-grid{gap:9px}.member-reminder-card{padding:12px;gap:8px;flex-wrap:wrap}.member-reminder-card strong{font-size:23px}.member-reminder-card span{font-size:13px}}
@media(max-width:720px){
.member-reminder-grid{display:flex;overflow-x:auto;gap:9px;padding:15px 16px 13px;scrollbar-width:thin}
.member-reminder-card{flex:0 0 118px;flex-direction:column;align-items:flex-start;gap:5px;padding:12px 14px}
.member-reminder-card span{font-size:14px}
.member-reminder-note{display:block;padding:0 16px 16px;font-size:13px}
.member-reminder-note>a{display:block;margin-top:6px}
.member-reminder-panel .panel-heading .helper{font-size:13px}
.member-list-panel .filter{max-width:none}
.member-current-panel .panel-heading h2{font-size:20px}
.member-current-panel .panel-body{display:block}
.member-current-panel .member-inline-dates{margin:6px 0 9px}
.member-current-panel .member-days{margin-top:6px}
.member-date-preview{padding:16px}
.member-date-preview dl{grid-template-columns:1fr;gap:4px}
.member-date-preview dd{margin-bottom:8px}
.member-form-actions>.button{flex:1 1 auto}
.member-form-actions>.button:first-child{margin-right:0}
.member-form-actions>#membership-save-button{flex-basis:100%}
}
