/* Shared layout derived from the Owner's Muse references; existing business controls stay intact. */
:root{--muse-navy:#102b4e;--muse-blue:#2475e5;--muse-bg:#eaf0f7;--muse-line:#d1e0f4;--muse-ink:#202e40;--muse-muted:#6f829d;--blue:#2475e5;--surface:#eaf0f7;--border:#d1e0f4;--ink:#202e40;--muted:#6f829d}
html{scroll-behavior:smooth;scroll-padding-top:100px}body{background:var(--muse-bg);font-size:14px;color:var(--muse-ink)}
.muse-workbench .app-shell{grid-template-columns:220px minmax(0,1fr)}
.muse-workbench .sidebar{background:linear-gradient(165deg,#122e51,#0b2039);padding:26px 14px;color:#a9bfdc}
.muse-workbench .brand{font-size:21px;padding:0 9px;gap:10px}.brand-icon{border-radius:11px;background:#2d82ee}
.muse-workbench .sidebar>.brand{position:sticky;top:0;z-index:2;background:#122d50;padding-top:8px;padding-bottom:16px;margin-top:-8px;box-shadow:0 8px 12px #122d50}
.muse-workbench .sidebar nav a{padding:12px 14px;border-radius:11px;font-size:13px;font-weight:600;min-height:43px}
.muse-workbench .sidebar nav a.active{background:#2d7fe8;box-shadow:0 7px 18px #001b3a35}
.muse-workbench .side-caption{padding:27px 12px 12px;letter-spacing:.6px}
.muse-workbench .topbar{min-height:82px;height:auto;padding:15px 28px;gap:14px;background:#fbfdff}
.muse-workbench .breadcrumb{flex:1;min-width:90px;white-space:normal;line-height:1.7}.muse-workbench .breadcrumb span{margin:0 8px}
.muse-workbench .top-actions{gap:9px;flex-wrap:wrap;justify-content:flex-end}.muse-workbench .top-actions #actor-name{max-width:110px;overflow-wrap:anywhere}
.muse-workbench main{padding:32px 30px;max-width:1540px}.muse-workbench h1{font-size:30px;letter-spacing:-.6px;line-height:1.35}
.muse-workbench .page-heading{margin-bottom:24px;align-items:center}.muse-workbench .eyebrow{font-size:10px;color:#7087a4;letter-spacing:1.6px}
.muse-workbench .panel{border-radius:17px;border-color:var(--muse-line);padding:25px;box-shadow:0 3px 5px #173a6510,0 12px 26px #173a6505}
.muse-workbench h2{font-size:19px;color:#202e40;line-height:1.5}.muse-workbench h3{font-size:15px}.muse-workbench p{font-size:13px;line-height:1.9}
.muse-workbench .button{border-radius:10px;border-color:#b8cfee;color:#165db9;font-size:13px;font-weight:600;min-height:43px;padding:10px 16px}
.muse-workbench .button.primary{background:linear-gradient(#2e83ed,#1767d3);border-color:#2373de;color:white;box-shadow:0 5px 11px #216ad629}
.muse-workbench .button.subtle{background:#edf3fc;border-color:#d4e2f5;color:#5e779a}.muse-workbench .button.on-dark{background:#ffffff10;color:#dae9ff;border-color:#ffffff38}
.muse-workbench input,.muse-workbench select,.muse-workbench textarea{border-radius:10px;border-color:#cfdef4;background:#fcfdff;padding:12px;color:#253448;font-size:13px;min-height:43px}
.muse-workbench label{color:#36485f;font-weight:600;font-size:13px;line-height:1.7;gap:8px}.muse-workbench label input,.muse-workbench label select,.muse-workbench label textarea{font-weight:400}
.muse-workbench .checkbox input{min-height:16px}.muse-workbench .form-grid{gap:16px 20px}.muse-workbench .notice{border-radius:13px;border:1px solid #aacbf6;border-left-width:3px;background:#e4eeff;color:#4b688e;line-height:1.85;padding:17px 19px}
.muse-workbench .notice.warning{background:#fff8eb;border-color:#e9d4a5;color:#7c6338}.muse-workbench .notice.error{background:#fff0ed;border-color:#e9bdb3;color:#a4483e}
.muse-workbench #global-message[data-transient=true]{position:fixed;bottom:20px;right:24px;max-width:min(500px,calc(100vw - 40px));z-index:60;box-shadow:0 7px 28px #15365c20;margin:0;padding:13px 17px;font-size:12px}
.muse-workbench .hero{border-radius:18px;background:linear-gradient(115deg,#143259,#2a285d);padding:36px 40px;min-height:265px}.muse-workbench .hero h2{font-size:30px;color:white;line-height:1.55}
.muse-workbench .stats{gap:18px}.muse-workbench .stats article{border-radius:15px;padding:22px 24px;box-shadow:0 3px 12px #24436705}.muse-workbench .stats strong{font-size:28px;color:#263446;margin:14px 0 9px}
.muse-workbench .stats article>span{font-weight:600}.muse-workbench .record{background:#f0f5fc;border:1px solid #d0e0f6;border-radius:13px;padding:21px}.muse-workbench .record .button{font-size:12px;min-height:36px}
.muse-workbench .condition{background:#f0f5fc;border-color:#d0e0f6;border-radius:12px}.muse-workbench .condition select{font-size:13px}
.muse-condition-chips{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.muse-condition-chips span{padding:9px 11px;border:1px solid #cddff7;border-radius:9px;background:#f8fbff;color:#4e688d;font-size:12px;overflow-wrap:anywhere}.muse-workbench #muse-rule-editor>summary{font-size:13px;font-weight:600;color:#3979c9;padding:10px 0}
.muse-workbench .quote{background:#eaf2ff;border-radius:13px}.muse-workbench .pill{border-radius:20px;padding:5px 10px;font-size:11px}
.muse-modules{display:flex;align-items:center;gap:4px;padding:4px;background:#edf3fb;border:1px solid #cfdef3;border-radius:13px;white-space:nowrap}
.muse-modules a{padding:10px 12px;color:#71839c;font-size:12px;font-weight:700;border-radius:10px;display:block;line-height:1.5}
.muse-modules a.active{color:white;background:#1c6bd8;box-shadow:0 3px 9px #216ed537}.muse-modules>span{color:#93a5bd;font-size:12px}
.muse-service-link{font-size:12px;white-space:nowrap}.muse-menu{font-size:17px!important;min-width:41px;padding:8px!important}
.muse-common-services{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px;color:#597190;font-size:12px}
.muse-common-services>span:first-child{font-weight:700;color:#394e6a}.muse-common-services a{background:#f9fbff;border:1px solid #cbdbf1;padding:7px 11px;border-radius:8px;color:#236bc3;font-weight:600}.muse-common-services small{font-size:11px;color:#7c8da6}
.muse-local-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.muse-local-tabs a{padding:11px 16px;border:1px solid #d0def2;border-radius:11px;background:#fbfdff;color:#4e6481;font-size:13px;font-weight:600}
.muse-local-tabs a.active,.muse-local-tabs a:hover{background:#e6f0ff;color:#176ada;border-color:#8bb7ef}
.muse-steps{display:flex;align-items:center;gap:22px;margin:24px 0 28px;overflow:auto;padding:2px 0 6px}
.muse-steps a{display:flex;align-items:center;gap:10px;color:#4779ba;white-space:nowrap;font-size:13px;font-weight:600;flex:1}
.muse-steps a:not(:last-child):after{content:"";height:1px;min-width:20px;background:#cbddf5;flex:1;margin-left:10px}
.muse-steps b{display:grid;place-items:center;border-radius:50%;background:#1c6bd8;color:white;width:30px;height:30px;flex-shrink:0;box-shadow:0 0 0 4px #d9e8fc;font-size:14px}
.muse-period{display:flex;gap:28px;align-items:center}.muse-period>div:first-child{min-width:250px}.muse-period h2{margin:0}.muse-period p{margin:6px 0 0;color:#6c819d}
.muse-segments{display:flex;flex:1;background:#edf3fa;padding:5px;border:1px solid #d1e0f5;border-radius:14px;gap:5px}.muse-segments button{border:0;background:transparent;color:#647c9b;font-weight:700;padding:13px 20px;flex:1;border-radius:10px;font-size:14px}
.muse-segments button[aria-pressed=true]{background:#1c6bd8;color:white;box-shadow:0 4px 11px #185db130}
.muse-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px}.muse-plan-card{display:flex;flex-direction:column;background:#fcfdff;border:1px solid #cddff5;border-radius:17px;padding:22px 23px;min-width:0;box-shadow:0 3px 6px #1c467216;transition:border-color .15s,box-shadow .15s}
.muse-plan-card:hover{border-color:#3382eb;box-shadow:0 5px 16px #1c65ba20}.muse-plan-index{color:#2278e7;letter-spacing:5px;margin-bottom:17px;font-size:14px}.muse-plan-card h2{font-size:20px;margin:0 0 11px}.muse-plan-subtitle{font-size:12px;color:#56779f;font-weight:600}.muse-plan-card p{font-size:12px;line-height:1.8;margin:8px 0;flex:1;color:#6b809e}
.muse-plan-card p.muse-plan-connections{font-size:11px;color:#4075b1;flex:0}.muse-plan-footer{border-top:1px solid #e0e9f7;padding-top:16px;margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.muse-plan-footer b{display:block;font-size:14px;line-height:1.6}.muse-plan-footer small{display:block;font-size:11px;color:#7c8ca5;margin-top:6px}
.muse-plan-full{grid-column:1/-1;background:linear-gradient(115deg,#e1edff,#c5dcff);border-color:#90b9f4;min-height:190px}.muse-plan-full .muse-plan-footer{border-color:#abcaf1}.muse-custom-plan summary{font-size:14px;font-weight:600}
.muse-account-banner{display:grid;grid-template-columns:1fr 1.1fr 1.1fr 1.1fr;border:1px solid #315079;border-radius:18px;overflow:hidden;background:linear-gradient(110deg,#102c50,#2c285e);color:#fff;margin:0 0 24px}
.muse-account-banner>div{padding:25px;border-right:1px solid #ffffff1a}.muse-account-banner>div:last-child{border:0}.muse-account-banner span{font-size:12px;color:#b9cbea;display:block;margin-bottom:14px}.muse-account-banner h2{color:#fff;margin:0;font-size:23px}.muse-account-banner strong{font-size:16px;line-height:1.8}.muse-account-banner p{font-size:11px;color:#c4d5ee;margin:12px 0 0}
.muse-service-icon{width:44px;height:44px;display:grid;place-items:center;background:#e2edff;color:#1764db;border-radius:12px;font-weight:700;font-size:19px;margin-bottom:20px}.muse-connection-card>strong{font-size:14px;color:#365f96;line-height:1.8}
.muse-summary{border:1px solid #d1e0f4;border-radius:20px;padding:0;width:min(720px,calc(100vw - 36px));max-height:90dvh;background:#fcfdff;color:#202e40;box-shadow:0 30px 90px #112a4c45}.muse-summary::backdrop{background:#111e34a1;backdrop-filter:blur(5px)}
.muse-dialog-heading,.muse-dialog-footer{padding:22px 27px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d4e0f3;gap:12px}.muse-dialog-heading h2{margin:0}.muse-dialog-body{padding:26px}.muse-dialog-footer{border:0;border-top:1px solid #d4e0f3;justify-content:flex-end}.muse-summary-hero{padding:24px;border-radius:13px;background:linear-gradient(105deg,#163761,#332762);color:white;margin-bottom:16px}.muse-summary-hero span{font-size:12px;color:#bfd3ed}.muse-summary-hero h3{color:white;font-size:21px;margin:12px 0 0;line-height:1.6}
.muse-summary dl{margin:0 0 20px}.muse-summary dl>div{display:flex;justify-content:space-between;padding:16px 0;border-bottom:1px solid #d3e1f6;gap:25px;font-size:13px}.muse-summary dd{margin:0;text-align:right;font-weight:600}.muse-summary .notice{margin-bottom:0}
.muse-login{position:fixed;inset:0;z-index:100;display:grid;grid-template-columns:1.08fr 1fr;background:#eaf0f7;overflow:auto;text-align:left}
.muse-login-story{background:linear-gradient(140deg,#15365b,#33275e);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:8vh 6vw;position:relative;isolation:isolate;overflow:hidden;min-height:100dvh}
.muse-login-story:before,.muse-login-story:after{content:"";position:absolute;width:540px;height:540px;border:70px solid #5796f11a;right:-290px;top:-180px;border-radius:50%;z-index:-1}.muse-login-story:after{width:260px;height:260px;top:auto;right:auto;bottom:-200px;left:-160px;border-color:#9e8fff15}
.muse-login-story .brand{font-size:28px;gap:14px;padding:0}.muse-login-story .brand-icon{width:51px;height:51px;font-size:27px}.muse-login-story h2{color:white;font-size:clamp(32px,3.6vw,58px);line-height:1.34;margin:17px 0 25px;letter-spacing:-1.4px}
.muse-login-story p{color:#c4d8fa;font-size:16px;line-height:1.9}.muse-login-story .muse-kicker{color:#92b8ef;font-size:12px;margin-top:25px}.muse-login-story>small{color:#91afd6;font-size:12px;margin-top:35px}
.muse-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:30px}.muse-tags span{padding:8px 11px;border:1px solid #ffffff29;background:#ffffff06;border-radius:8px;color:#c9dfff;font-size:12px}
.muse-login-side{position:relative;display:flex;align-items:center;justify-content:center;padding:55px 4vw}.muse-login-card{background:#fcfdff;border:1px solid #d0dff3;border-radius:22px;padding:38px;width:100%;max-width:500px;box-shadow:0 18px 48px #28476b23}
.muse-login-card h2{font-size:29px;margin:6px 0 5px}.muse-kicker{letter-spacing:1.6px;color:#6d8bae;font-size:11px}.muse-login-card>p{margin:0 0 28px;color:#6f85a0}.muse-login-card label{margin-bottom:18px}.muse-login-card .muse-login-submit{width:100%;font-size:15px;min-height:50px;margin-top:4px}
.muse-login-close{position:absolute;top:22px;right:24px;font-size:22px!important}.muse-password{position:relative;display:block}.muse-password input{padding-right:65px}.muse-reveal{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:0;color:#5175a5;font-size:12px;padding:7px}
.muse-login-help{display:flex;justify-content:space-between;gap:12px;margin:25px 0 0;font-size:12px;color:#7c8aa0}.muse-login-note{border-top:1px solid #d2e0f4;margin:26px 0 0!important;padding-top:22px;text-align:center;font-size:11px!important}.muse-login-card #login-feedback{color:#a44235;font-size:12px;margin:10px 0;white-space:pre-line}
.muse-login-open{overflow:hidden}.muse-workbench.muse-sidebar-collapsed .app-shell{grid-template-columns:0 minmax(0,1fr)}.muse-sidebar-collapsed .sidebar{visibility:hidden;padding:0;overflow:hidden}
/* The profit screen shares the reference shell while retaining all existing form selectors. */
.muse-profit{padding-left:220px;font-family:"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif}.muse-profit-sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:linear-gradient(165deg,#122e51,#0b2039);padding:28px 14px;display:flex;flex-direction:column;color:#a8bdd9;overflow:auto;z-index:5}
.muse-brand{display:flex;gap:10px;align-items:center;color:white;text-decoration:none;font-size:21px;font-weight:700;padding:0 9px}.muse-brand span{background:#2e82ee;border-radius:10px;display:grid;place-items:center;width:39px;height:39px;font-size:21px}.muse-profit-sidebar>p{padding:20px 10px 12px;color:#7997bc;font-size:11px}
.muse-profit-sidebar nav{display:flex;flex-direction:column;gap:5px}.muse-profit-sidebar nav a{color:#b3c5df;text-decoration:none;padding:12px 14px;border-radius:11px;font-size:13px;font-weight:600}.muse-profit-sidebar nav a.active,.muse-profit-sidebar nav a:hover{background:#2d7fe8;color:white}.muse-profit-sidebar>small{margin-top:auto;padding:30px 10px 5px;color:#7d9abd;line-height:1.9;font-size:11px}
.muse-profit .top{background:#fbfdff;color:#26364c;min-height:82px;padding:14px 28px;display:flex;gap:15px;border-bottom:1px solid #d0e0f4;position:relative}.muse-profit-breadcrumb{flex:1;color:#66809f;font-size:12px;line-height:1.8}.muse-profit-breadcrumb strong{color:#243449}.muse-profit-breadcrumb>span{margin:0 10px}.muse-profit .muse-modules a{text-decoration:none}
.muse-profit main{max-width:1520px;padding:32px 30px}.muse-profit .heading h1{font-size:30px;letter-spacing:-.6px}.muse-profit .heading{margin-bottom:25px;gap:20px}.muse-profit .card{border:1px solid #cfdef3;border-radius:17px;box-shadow:0 3px 5px #173a6510,0 12px 26px #173a6505;padding:25px;margin-bottom:22px;scroll-margin-top:24px}.muse-profit h2{font-size:18px;color:#243346;line-height:1.5}.muse-profit .notice{border-radius:13px;padding:17px 20px;background:#e4eeff;border-color:#aacbf6;line-height:1.8}
.muse-profit .btn{border-radius:10px;border-color:#aac9f0;color:#1a64c4;background:#fbfdff;min-height:42px;padding:10px 14px;font-size:13px;font-weight:600}.muse-profit .btn.primary{color:white;background:linear-gradient(#2e83ed,#1767d3);border-color:#2373de;box-shadow:0 5px 11px #216ad629}.muse-profit .btn.danger{color:#aa4a42;border-color:#ebc9c4;background:#fff5f3}
.muse-profit input,.muse-profit select{border-radius:10px;min-height:43px;border-color:#cddff4;background:#fcfdff;color:#283e5d;font-size:13px;padding:11px}.muse-profit label{font-size:13px;font-weight:600;color:#3a4c64;margin-bottom:9px}.muse-profit .check input{min-height:16px}
.muse-profit .layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr);gap:22px}.muse-profit .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.muse-profit .row{border-color:#d0e0f6;border-radius:12px;padding:19px;background:#f2f6fc}.muse-profit .row-head{margin-bottom:18px}.muse-profit .metrics{gap:9px}.muse-profit .metric.hero{background:linear-gradient(120deg,#1a66cb,#254a84)}.muse-profit .results{top:24px;max-height:none}
.muse-profit.muse-sidebar-collapsed{padding-left:0}.muse-profit.muse-sidebar-collapsed .muse-profit-sidebar{display:none}
@media(min-width:1500px){.muse-workbench .topbar,.muse-profit .top{padding-left:35px;padding-right:35px}.muse-workbench main,.muse-profit main{padding:35px 38px}.muse-profit .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1250px){.muse-modules{gap:0}.muse-modules a{font-size:11px;padding:9px}.muse-modules>span{display:none}.muse-workbench .topbar,.muse-profit .top{padding:14px 20px;flex-wrap:wrap}.muse-workbench .breadcrumb{flex:1}.muse-workbench .top-actions .muse-service-link{display:none}.muse-workbench .top-actions #actor-name{display:none}.muse-period{align-items:stretch;flex-direction:column;gap:15px}.muse-account-banner{grid-template-columns:1fr 1fr}.muse-plan-card{padding:19px}.muse-profit .layout{grid-template-columns:1fr}.muse-profit .results{position:static}.muse-profit .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.muse-profit .muse-steps{gap:14px}}
@media(max-width:1000px){.muse-workbench .app-shell{grid-template-columns:190px minmax(0,1fr)}.muse-workbench main,.muse-profit main{padding:25px 20px}.muse-workbench h1,.muse-profit .heading h1{font-size:27px}.muse-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.muse-workbench .topbar>.muse-modules{order:4;width:100%;justify-content:center}.muse-workbench .sidebar{padding:25px 12px}.muse-workbench .brand{font-size:18px}.muse-workbench .brand-icon{width:35px;height:35px}.muse-profit{padding-left:190px}.muse-profit-sidebar{width:190px}.muse-profit .muse-modules{order:4;width:100%;justify-content:center}.muse-workbench .panel{padding:21px}.muse-login-story{padding:65px 5vw}.muse-login-card{padding:28px}.muse-login-story h2{font-size:38px}}
@media(max-width:720px){.muse-workbench .app-shell{display:block}.muse-workbench .sidebar{position:static;height:auto;padding:18px}.muse-workbench .sidebar nav{overflow-x:auto;flex-direction:row;white-space:nowrap}.muse-workbench .sidebar nav a{white-space:nowrap;padding:10px 12px;font-size:12px}.muse-workbench .muse-menu{display:none}.muse-workbench .topbar{min-height:70px;padding:14px 16px;gap:12px}.muse-workbench .top-actions{gap:8px}.muse-workbench .muse-modules{width:100%;order:4;justify-content:space-around}.muse-workbench main{padding:24px 15px}.muse-workbench .page-heading{align-items:flex-start}.muse-workbench .page-heading .button{align-self:flex-start}.muse-workbench h1{font-size:25px}.muse-workbench .hero{padding:27px;min-height:245px}.muse-workbench .hero h2{font-size:27px}.muse-plan-grid{grid-template-columns:1fr}.muse-plan-full{grid-column:auto}.muse-workbench .stats{gap:10px}.muse-workbench .stats article{padding:18px}.muse-steps{gap:15px}.muse-steps a{font-size:12px}.muse-steps a:not(:last-child):after{display:none}.muse-account-banner>div{padding:20px}.muse-account-banner strong{font-size:14px}.muse-account-banner h2{font-size:21px}.muse-account-banner span{font-size:11px}.muse-period{padding:18px!important}.muse-segments button{padding:12px}.muse-login{grid-template-columns:1fr}.muse-login-story{min-height:auto;padding:30px 26px 27px}.muse-login-story .brand{font-size:23px}.muse-login-story h2{font-size:31px;margin:20px 0 10px}.muse-login-story h2 br{display:none}.muse-login-story p{font-size:13px;margin:10px 0}.muse-login-story>small,.muse-login-story .muse-kicker,.muse-tags{display:none}.muse-login-side{padding:25px 18px 40px;align-items:flex-start}.muse-login-card{padding:28px 24px;max-width:520px}.muse-login-close{top:10px;right:10px;transform:translateY(-65px);z-index:2}.muse-login-card h2{font-size:26px}.muse-dialog-body{padding:22px}.muse-dialog-heading,.muse-dialog-footer{padding:18px 22px}.muse-summary-hero h3{font-size:18px}.muse-profit{padding-left:0}.muse-profit-sidebar{position:static;width:100%;padding:18px;max-height:185px}.muse-profit-sidebar nav{flex-direction:row;overflow:auto;white-space:nowrap;margin-top:16px}.muse-profit-sidebar p,.muse-profit-sidebar>small{display:none}.muse-profit-sidebar nav a{white-space:nowrap;font-size:12px;padding:10px 12px}.muse-profit .top{padding:14px 16px;gap:12px}.muse-profit .muse-menu{display:none}.muse-profit main{padding:24px 15px}.muse-profit .heading{flex-wrap:wrap}.muse-profit .card{padding:20px}.muse-profit .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.muse-profit .muse-modules{order:4;justify-content:space-around}.muse-profit.muse-sidebar-collapsed .muse-profit-sidebar{display:flex}.muse-workbench.muse-sidebar-collapsed .sidebar{visibility:visible;padding:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}
