@import url('../alma-base.css');
:root{font-size:16px;--focus:#3477df;--muted:#687078}
body{min-width:0}button,input,select,textarea{font-size:16px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:1px}a,button,summary{touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p,strong,summary{overflow-wrap:anywhere}h1{font-size:28px;line-height:1.2;letter-spacing:-.7px}h2{font-size:19px}h3{font-size:17px}p{line-height:1.5}small,.field-hint{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.layout{min-height:100dvh}.sidebar{width:242px;padding:22px 14px;gap:18px}.brand{padding:0 8px;gap:10px}.brand-mark{width:38px;height:38px;flex-shrink:0;font-size:23px;border-radius:13px}.brand-text{min-width:0}.brand-name{font-size:20px;letter-spacing:-.4px;max-width:160px}.brand-caption{font-size:10px;letter-spacing:.4px}.nav{gap:3px}.nav a{font-size:14px;line-height:1.25;padding:12px;min-height:46px;border-radius:14px}.nav .icon{width:20px;height:20px;flex:none}.sidebar-bottom{margin-top:auto}.workspace-card{padding:14px;font-size:13px}.workspace-card p{margin:8px 0 0}.main{margin-left:242px;min-width:0}.topbar{position:sticky;top:0;z-index:15;background:#fff;min-height:74px;padding:12px 26px;gap:16px;border-bottom:1px solid var(--line)}.shop-picker{min-width:0;max-width:560px;flex:1}.shop-picker select{width:100%;max-width:100%;font-weight:650;background:#f4f5f6;border:1px solid var(--line);padding:10px 34px 10px 12px;border-radius:12px;min-height:44px}.shop-picker small{display:block;font-size:11px;line-height:1.3;margin:3px 12px 0}.top-actions{margin-left:auto;flex:none;gap:10px}.role-tag{font-size:12px;color:var(--muted)}.store-link{display:inline-flex;gap:8px;min-height:44px}.mobile-menu{display:none}.drawer-backdrop{display:none}.content{padding:24px 26px 50px;max-width:1560px;margin:0 auto}.page-heading{margin-bottom:18px;align-items:flex-start;gap:12px}.page-heading h1{margin:0}.page-heading p{font-size:13px;margin:6px 0 0;color:var(--muted)}.page-heading>.button{min-height:42px;width:auto;padding:9px 16px;font-size:14px}.button{min-height:44px;min-width:44px;padding:10px 16px;line-height:1.3;font-size:14px;white-space:normal;border-radius:14px}.button.primary{background:#17181b;color:#fff}.button .icon{width:19px;height:19px}.button-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.text-button{min-height:36px;padding:2px 0;font-weight:650;text-align:left}.banner{padding:14px 16px;gap:10px;margin:0 0 16px;border-radius:14px;font-size:14px;align-items:flex-start}.banner p{margin:0}.banner .icon{width:19px;height:19px;flex:none;margin-top:1px}.banner.error{background:#fff0ef;color:#923535}.panel{margin:0 0 18px;border-radius:18px;min-width:0;overflow:clip}.panel-head{padding:18px 20px;gap:12px;align-items:flex-start}.panel-head h2{margin:0}.panel-head p{font-size:13px;margin:5px 0 0}.panel-body{padding:18px 20px}.panel-body>p:first-child{margin-top:0}.panel-body .panel{margin-bottom:14px}.stats-grid.compact-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.stat-card{padding:18px;border-radius:18px;min-width:0;box-shadow:none;border:1px solid var(--line)}.stat-card.blue{background:linear-gradient(150deg,#3169d1,#1551ac);color:#fff;border-color:transparent}.stat-card.blue .stat-note,.stat-card.blue .stat-head{color:#e3ecff}.stat-head{font-size:13px;gap:8px;display:flex;justify-content:space-between;align-items:flex-start}.stat-head .icon{width:19px;height:19px;flex:none}.stat-value{font-size:clamp(23px,2.6vw,35px);display:block;letter-spacing:-.9px;line-height:1.2;margin-top:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-note{font-size:12px;line-height:1.4;margin:10px 0 0;color:var(--muted)}.summary-strip{display:flex;flex-wrap:wrap;gap:12px;padding:8px 4px 20px;color:var(--muted);font-size:13px}.summary-strip strong{color:var(--ink)}.two-col{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:18px}.two-col>*,.appearance-layout>*{min-width:0}.integration-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.integration-row+.muted{font-size:13px}.pill{font-size:12px;line-height:1.3;padding:6px 9px;border-radius:9px;white-space:normal}.pill.orange{background:#fff0d9;color:#89571a}.issue p{margin:0 0 10px}.issue+.issue{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.empty{padding:28px 14px;min-height:0}.empty>.icon{width:27px;height:27px;color:#9aa1a9}.empty h3{font-size:16px;margin:12px 0 0}.empty p{font-size:14px;max-width:440px;margin:6px auto 0}.record-list{display:grid;gap:0}.record{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);min-width:0}.record:first-child{padding-top:0}.record:last-child{border-bottom:0;padding-bottom:0}.record-main{min-width:0;flex:1}.record-main p{font-size:13px;color:var(--muted);margin:4px 0}.record-title{font-size:15px}.record-money{display:grid;gap:6px;text-align:right;justify-items:end;max-width:45%;min-width:0}.record-money>strong{font-size:17px;line-height:1.3;font-variant-numeric:tabular-nums}.record-footer{display:flex;align-items:center;gap:10px}.order-card{flex-wrap:wrap}.order-card .record-footer{flex-basis:100%;justify-content:flex-end}.record-footer .button{min-height:38px;font-size:13px;padding:8px 12px}.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:22px}.field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}.field>span{font-size:13px;color:var(--muted);font-weight:550}.field input,.field select,.field textarea{border:1px solid #dfe2e5;background:#f6f7f8;color:var(--ink);width:100%;min-width:0;padding:11px 12px;border-radius:12px;min-height:46px}.filter-bar .field:first-child{flex:1;min-width:min(220px,100%)}.filter-bar .field:nth-child(2){min-width:180px}.list-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px;font-size:13px;color:var(--muted)}.list-footer>span{margin-right:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.form-grid .full{grid-column:1/-1}.form-error,.dialog-error{color:#a33737;font-size:14px;margin:6px 0 0}.form-error:empty,.dialog-error:empty{display:none}.form-error{grid-column:1/-1}.create-box{margin:0 0 20px;padding:16px;background:#f6f7f8;border-radius:14px}.create-box>summary{display:flex;gap:8px;align-items:center;font-size:15px;cursor:pointer}.create-box .icon{width:18px;height:18px}.field-hint{line-height:1.45;margin:0}.promo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:12px}.promo-card{padding:18px;border:1px solid var(--line);border-radius:16px;min-width:0}.promo-card p{font-size:13px;color:var(--muted);margin:10px 0}.row-between{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.row-between h3{margin:0}.discount{font-size:23px;letter-spacing:-.6px;flex:none}.fx-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #d6e8df;background:#f1f8f4;border-radius:16px;margin-bottom:18px}.fx-summary>div{min-width:0}.fx-summary>div:last-child{text-align:right;flex-shrink:0}.fx-summary p{font-size:12px;margin:5px 0 0;color:#557264}.fx-summary.is-stale{background:#fff7e9;border-color:#eadab8}.product-item{border-bottom:1px solid var(--line);padding:16px 0;margin:0}.product-item:first-child{padding-top:0}.product-item:last-child{border-bottom:0}.product-item>summary{font-size:16px;cursor:pointer;display:flex;align-items:flex-start;gap:12px;justify-content:space-between;font-weight:650}.product-item>summary>small{flex:none;font-size:12px;font-weight:400}.plan-row{padding:20px 0;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(190px,.8fr);gap:24px;border-top:1px solid var(--line);margin-top:16px}.plan-row h3{margin:0 0 14px}.reference-price strong{display:block;font-size:23px;margin:5px 0}.reference-price p{font-size:13px;color:var(--muted);margin:5px 0}.small-label{font-size:12px;color:var(--muted)}.reference-price details{margin-top:14px;font-size:13px}.reference-price summary{cursor:pointer;font-size:13px;font-weight:600}.reference-price a{display:inline-flex;gap:4px;align-items:center;margin-top:10px}.reference-price a .icon{width:14px;height:14px}.reference-price .approx{color:#256349;font-weight:600}.inline-price{display:grid;gap:10px}.inline-price .button{justify-self:start}.inline-price .field-hint{max-width:300px}.offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.offer-card{border:1px solid var(--line);border-radius:16px;padding:18px}.offer-card h3{margin:0 0 10px}.offer-card .inline-price{margin-top:18px}.appearance-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:18px;align-items:start}.media-slots{display:grid;gap:20px}.media-slot+.media-slot{border-top:1px solid var(--line);padding-top:20px}.media-frame{display:block;width:100%;background:#f0f2f4;border-radius:13px;overflow:hidden;margin:14px 0}.media-frame img{width:100%;height:100%;display:block}.media-unknown{padding:20px;border:1px dashed #c8a875;border-radius:13px;background:#fff8eb;margin:14px 0;font-size:14px}.media-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}.segmented{display:flex;background:#f2f3f5;padding:3px;border-radius:12px}.segmented .button{border:0;border-radius:10px;box-shadow:none;background:transparent;font-size:13px;padding:8px 10px;min-height:38px}.segmented .button[aria-pressed=true]{background:#fff;color:#17181b}.preview-stage{width:min(100%,350px);margin:18px auto 0;border:6px solid #202327;border-radius:30px;background:#fff;height:650px;overflow:hidden;box-shadow:0 8px 24px #19273012}.preview-stage.wide{width:100%;border-radius:12px;height:450px;border-width:2px}.preview-stage iframe{width:100%;height:100%;display:block;border:0;transform-origin:top left}.appearance-layout>.panel{position:sticky;top:100px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-item{padding:14px;background:#f6f7f8;border-radius:12px;min-width:0}.detail-item label{font-size:12px;color:var(--muted);display:block;margin-bottom:7px}.detail-item strong{font-size:15px;font-weight:600}.source-line{font-size:12px;color:var(--muted);margin:4px 0 0}.auth-view{max-width:440px;margin:10vh auto;padding:24px}.auth-view h1{margin-top:22px}.auth-view p{color:var(--muted)}.demo-banner{position:sticky;top:0;z-index:50;text-align:center;background:#fff0c2;color:#6e5110;font-size:12px;padding:8px 12px}.demo-banner+.layout .topbar{top:34px}.demo-banner+.layout .sidebar{top:34px}.version-card+.version-card{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}dialog{padding:0;width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:22px;box-shadow:0 24px 80px #0004;color:var(--ink)}dialog::backdrop{background:#151d2d70}dialog .dialog-head{position:sticky;top:0;background:#fff;padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}dialog .dialog-head h2{font-size:20px;margin:0}dialog .dialog-body{padding:20px;overflow-wrap:anywhere}dialog .dialog-body>h3{font-size:17px;margin:24px 0 12px}.step-list{display:grid;gap:10px}.step-list>div{display:flex;align-items:flex-start;gap:10px}.step-list span{display:grid;place-items:center;background:#f1f2f4;border-radius:100%;width:28px;height:28px;font-size:13px;flex:none}.step-list p{margin:0;font-size:12px;color:var(--muted)}.step-list strong{display:block;font-size:14px;font-weight:550;color:var(--ink);margin-top:2px}.history-item{border-left:2px solid #e1e4e7;padding-left:14px;margin-bottom:18px}.history-item p{margin:4px 0}.toast-region{position:fixed;z-index:100;bottom:18px;right:18px;left:auto;max-width:min(400px,calc(100% - 32px));pointer-events:none}.toast{position:relative;background:#1b1c20;color:#fff;padding:14px 18px;border-radius:14px;margin-top:8px;font-size:14px;box-shadow:0 6px 24px #0002}
@media(max-width:1150px){.stats-grid.compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col,.appearance-layout{grid-template-columns:minmax(0,1fr)}.appearance-layout>.panel{position:static}.sidebar{width:220px}.main{margin-left:220px}.content{padding:22px 20px 40px}.topbar{padding:12px 20px}.role-tag{display:none}.brand-name{max-width:140px}}
@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;width:272px;height:100dvh;top:0;bottom:0;transform:translateX(-100%);z-index:40}.sidebar.open{transform:translateX(0);box-shadow:none}.drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:35;background:#151d2d70;border:0;border-radius:0}.main{margin-left:0}.topbar{min-height:76px;padding:10px 12px;gap:8px}.mobile-menu{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:12px;padding:9px;background:transparent}.mobile-menu .icon{width:21px;height:21px}.shop-picker{min-width:0}.shop-picker select{font-size:16px;padding:10px 28px 10px 10px;max-width:100%;text-overflow:ellipsis}.shop-picker small{font-size:10px;margin-left:10px}.top-actions{gap:0}.store-link{min-width:42px;padding:10px}.store-link span{display:none}.content{padding:20px 14px 40px}.page-heading{margin-bottom:16px;align-items:center;flex-wrap:nowrap}.page-heading h1{font-size:24px}.page-heading p{font-size:12px}.page-heading>.button{width:auto;font-size:13px;min-height:42px;padding:9px 12px;flex:none}.panel{border-radius:16px;margin-bottom:14px}.panel-head{padding:16px;gap:10px;flex-wrap:wrap}.panel-head h2{font-size:18px}.panel-body{padding:16px}.stat-card{padding:15px;border-radius:16px}.stats-grid.compact-stats{gap:10px}.stat-head{font-size:12px}.stat-head .icon{display:none}.stat-value{font-size:clamp(21px,6.1vw,28px);margin-top:12px;letter-spacing:-.8px}.stat-note{font-size:11px}.summary-strip{font-size:12px;padding-bottom:14px}.record{gap:12px}.record-main p{font-size:12px}.record-money{max-width:48%}.record-money>strong{font-size:16px}.record-footer .button{font-size:13px}.filter-bar{gap:10px}.filter-bar .field{flex-basis:100%;min-width:0}.filter-bar .button{width:100%}.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .full{grid-column:1}.promo-card{padding:16px}.fx-summary{padding:14px;gap:12px;flex-wrap:wrap}.fx-summary>div:last-child{text-align:left}.plan-row{grid-template-columns:minmax(0,1fr);gap:18px}.sale-price{background:#f7f8f9;padding:16px;border-radius:13px}.inline-price .button{justify-self:stretch}.product-item>summary{gap:8px;font-size:15px}.offer-grid{grid-template-columns:minmax(0,1fr)}.offer-card{padding:16px}.preview-stage{height:590px;max-width:100%;border-width:5px}.detail-grid{gap:10px}.detail-item{padding:12px}.detail-item strong{font-size:14px}.media-actions .button{flex:1;min-width:min(140px,100%)}dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:18px}dialog .dialog-head{padding:14px 16px}dialog .dialog-head h2{font-size:18px}dialog .dialog-body{padding:16px}.demo-banner{font-size:11px;line-height:1.35;min-height:32px}.demo-banner+.layout .topbar{top:32px}.demo-banner+.layout .sidebar{top:32px;height:calc(100dvh - 32px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

[data-action=confirm]{background:#17181b;color:#fff}

.record-title{background:transparent;border:0;border-radius:0;box-shadow:none}.demo-banner+.layout .topbar{top:var(--demo-height,46px)}.demo-banner+.layout .sidebar{top:var(--demo-height,46px);height:calc(100dvh - var(--demo-height,46px))}

.layout{display:block}.main{grid-column:auto}.preview-stage iframe{transform-origin:top left}

.theme-toggle{font-size:21px;padding:8px;min-width:42px;min-height:44px}
html[data-user-theme=dark]{--ink:#f1f4f8;--text:#f1f4f8;--muted:#adb6c3;--line:#343d4b;--sidebar:#171b22;--action:#e6ecf7;--action-hover:#d0d9e8;background:#101216;color:#f1f4f8}
html[data-user-theme=dark] body,html[data-user-theme=dark] .main{background:#101216;color:var(--ink)}
html[data-user-theme=dark] .sidebar,html[data-user-theme=dark] .panel,html[data-user-theme=dark] .topbar,html[data-user-theme=dark] dialog,html[data-user-theme=dark] dialog .dialog-head{background:#191e27;color:var(--ink);border-color:var(--line)}
html[data-user-theme=dark] .workspace-card,html[data-user-theme=dark] .stat-card:not(.blue),html[data-user-theme=dark] .detail-item,html[data-user-theme=dark] .create-box,html[data-user-theme=dark] .sale-price,html[data-user-theme=dark] .field input,html[data-user-theme=dark] .field select,html[data-user-theme=dark] .field textarea,html[data-user-theme=dark] .shop-picker select{background:#242b36;color:var(--ink);border-color:var(--line)}
html[data-user-theme=dark] .nav a{color:#bac2cf}html[data-user-theme=dark] .nav a.active{background:#e2e8f2;color:#151b24}html[data-user-theme=dark] .brand-name,html[data-user-theme=dark] .record-title,html[data-user-theme=dark] .detail-item strong{color:var(--ink)}
html[data-user-theme=dark] .button{background:#242c38;color:var(--ink);border-color:#455165}html[data-user-theme=dark] .button.primary,html[data-user-theme=dark] [data-action=confirm]{background:#e1e9f8;color:#121820}
html[data-user-theme=dark] .pill{background:#2b3340;color:#ccd4df}html[data-user-theme=dark] .pill.green{background:#163f36;color:#9ddcc3}html[data-user-theme=dark] .pill.orange{background:#48361d;color:#edc184}
html[data-user-theme=dark] .banner{background:#252e3c;color:#d0d9e7}html[data-user-theme=dark] .banner.error{background:#46262b;color:#f1b2ba}html[data-user-theme=dark] .fx-summary{background:#19372c;border-color:#34644e;color:#bce3cf}html[data-user-theme=dark] .fx-summary p{color:#a9c9b9}html[data-user-theme=dark] .fx-summary.is-stale{background:#3d311e;border-color:#6d562e;color:#edd5a6}
html[data-user-theme=dark] .step-list strong{color:var(--ink)}html[data-user-theme=dark] .segmented,html[data-user-theme=dark] .step-list span{background:#252d3a}html[data-user-theme=dark] .segmented .button[aria-pressed=true]{background:#dfe6f2;color:#141b25}

.content-section{border-bottom:1px solid var(--line);margin:0;padding:16px 0}.content-section:first-of-type{padding-top:0}.content-section>summary{font-size:16px;font-weight:650;cursor:pointer}.text-fields{display:grid;gap:16px;margin-top:18px}.text-field{padding:14px;border:1px solid var(--line);border-radius:13px;min-width:0}.text-field h3{font-size:14px;line-height:1.4;margin:0}.text-field textarea{width:100%;min-height:100px;padding:12px;margin:12px 0 8px;border:1px solid var(--line);border-radius:10px;background:#f6f7f8;font:16px/1.5 inherit;color:var(--ink);resize:vertical}.text-field textarea:disabled{opacity:.65}.override-switch{display:flex;align-items:center;gap:6px;font-size:12px;flex:none}.override-switch input{width:18px;height:18px}.layout-list{list-style:none;margin:14px 0;padding:0}.layout-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.layout-item>div:first-child{min-width:0}.layout-item strong{font-size:14px}.layout-item small{display:block;font-size:11px;margin-top:4px}.move-buttons{display:flex;gap:4px;flex:none}.move-buttons button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:12px;font-size:19px;background:#f3f5f7;color:var(--ink)}.fixed-block{padding:12px;background:#f4f5f7;border-radius:12px;margin:14px 0}.sample-text{padding:12px;margin-top:12px;background:#f3f5f7;border-radius:12px}.sample-text pre{font:14px/1.5 inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}html[data-user-theme=dark] .text-field textarea,html[data-user-theme=dark] .move-buttons button,html[data-user-theme=dark] .fixed-block,html[data-user-theme=dark] .sample-text{background:#252d3a;color:var(--ink)}
