:root{--purple:#6448b2;--ink:#2d2f33;--muted:#77727e;--bg:#f6f6fb;--line:#eeebf4;scrollbar-color:#d9d1e9 transparent}body{font-family:"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;background:radial-gradient(ellipse at 75% 8%,#ede8f780,transparent 50%),#f6f6fb;min-height:100dvh}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ab8ffe;outline-offset:4px}[hidden]{display:none!important}
#ota-main{margin:0 auto;padding:90px 28px 128px;max-width:1360px;min-width:0}.session-bar{min-height:42px;border:0;gap:10px}.session-bar>div{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.session-bar button{margin:0;padding:5px 12px}.session-bar .crumb{color:#9b91aa}.balance-chip{display:inline-flex;border-radius:30px;background:#ece6f7;color:var(--purple);padding:4px 11px;font-size:13px}.intro{margin:18px 0 24px}.intro h1{font-size:36px;font-weight:800;color:var(--purple);letter-spacing:-1px}.intro .eyebrow{color:#a392bb}.intro p:last-child{font-size:16px;color:#68616f}.pill{background:#f0eafa;border:0;font-size:13px;padding:9px 15px}.workflow{gap:10px;margin:0 0 26px}.workflow span{border:0;background:#fff9;border-radius:999px;padding:9px 14px;color:#7b6c91}.workflow i{color:#c1b1d7}.workspace{grid-template-columns:minmax(300px,.85fr) minmax(0,1.55fr);gap:26px}.card{border:0;border-radius:30px;padding:28px;box-shadow:0 12px 40px #30204005}.section-heading{margin-bottom:22px}.section-heading h2{font-size:22px;font-weight:700;color:#705173}.drop{border:2px dashed #e0d9ea;background:#f8f7fc;border-radius:24px;padding:34px 10px}.drop b{font-size:17px}.drop small{font-size:13px;color:#958b9f}.source .label{font-weight:600;color:#705173;margin-top:20px}.source textarea{display:block;margin-top:8px;background:#f6f5fa;border:0;border-radius:16px;padding:14px;min-height:75px}.source textarea:not(.short){height:170px}.source select{background:#f0eff5;border:0;border-radius:30px;margin-top:8px;padding:13px 16px}.source .tip{font-size:13px;line-height:1.9}.source .primary{border-radius:30px;padding:15px}.primary{background:linear-gradient(110deg,#6448b2,#a483ed);box-shadow:0 7px 16px #6448b219}.source details input{border-radius:12px;margin-top:8px}.toolbar input,.toolbar select,.toolbar button,.toolbar .button{border:0;border-radius:24px;background:#f0eff5;padding:9px 13px}.section-heading button{border-radius:22px;background:#f2edf9;border:0;color:var(--purple);padding:9px 13px;white-space:nowrap}.toolbar input{width:130px}.table-wrap{min-height:360px}.table-wrap th{background:#f6f5fa;padding:14px 10px}.table-wrap td{padding:16px 10px}.table-wrap td button{border:0;background:#f2edf9;color:var(--purple);border-radius:20px;padding:6px 10px}.empty{padding:85px 15px}.empty>div{font-size:44px;color:#c9b7e2}.empty h3{color:#7d6e90;font-size:18px}.empty p{color:#9e95aa}.export button{border-radius:24px;font-size:13px}.export span{white-space:nowrap}.storage-note{line-height:1.9;font-size:13px;color:#9e95a8}#editor,#proposal{border:0;border-radius:28px;margin:auto;max-height:90dvh}#editor .editor-head,#proposal .editor-head{padding:22px 26px}.editor-head h2{color:var(--purple)}.editor-head>button{background:#f1edf7;border:0;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;padding:0}.editor-footer{background:#fff;position:sticky;bottom:0;padding:16px 24px}.editor-footer button{border-radius:24px}.product-hero{border-radius:22px}.editor-tools button,.editor-tools select{border-radius:24px}dialog::backdrop{background:#27213177;backdrop-filter:blur(4px)}
#main-header{position:fixed;inset:0 0 auto;height:72px;background:#ffffffb3;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 12px 40px #00000008;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;transition:transform 2000ms cubic-bezier(.4,0,.2,1),opacity 2000ms ease}.site-brand{position:absolute;left:50%;transform:translateX(-50%);font-size:22px;font-weight:800;white-space:nowrap;color:#7c18f0;letter-spacing:-.4px}#user-menu-container{position:relative}#user-avatar{display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;height:40px;width:40px;background:var(--purple);color:#fff;font-size:16px;font-weight:800;padding:0;overflow:hidden;box-shadow:0 6px 18px #6448b219}#user-avatar img{width:100%;height:100%;object-fit:cover}.chrome-icon{border:0;background:transparent;color:#8b26ef;width:40px;height:40px;border-radius:50%;padding:8px;display:grid;place-items:center}.chrome-icon:hover{background:#eee7f8}.chrome-icon svg{width:26px;height:26px}#user-dropdown{position:absolute;left:0;top:48px;min-width:190px;background:#fff;border:1px solid #f0edf4;border-radius:24px;box-shadow:0 12px 25px #20103524;overflow:hidden;padding:8px 0}#user-dropdown a,#user-dropdown button{display:flex;align-items:center;gap:12px;padding:14px 18px;font-size:16px;color:#485165;width:100%;border:0;border-radius:0;text-align:left;background:white}#user-dropdown a:hover,#user-dropdown button:hover{background:#f7f5fb}#user-dropdown svg{width:20px;height:20px}
#drawer-wrapper{position:fixed;inset:0;z-index:80}#drawer-overlay{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#0006;opacity:0;transition:opacity 300ms ease;cursor:default}#drawer-content{position:absolute;inset:0 0 0 auto;width:min(300px,90vw);height:100dvh;background:#f6f6fb;padding:24px;box-shadow:-12px 0 50px #24103b20;transform:translateX(105%);transition:transform 300ms ease;overflow:auto;outline:none}#drawer-wrapper.is-open #drawer-overlay{opacity:1}#drawer-wrapper.is-open #drawer-content{transform:translateX(0)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 26px}.drawer-heading h2{font-size:22px;color:var(--purple);font-weight:800}#drawer-content nav{display:flex;flex-direction:column;gap:4px}#drawer-content nav a{display:flex;align-items:center;gap:16px;padding:15px 14px;border-radius:16px;color:#5a5b60;font-size:16px;font-weight:600}#drawer-content nav a:hover{background:#6448b20c;color:var(--purple)}#drawer-content nav a[aria-current=page]{background:#6448b211;color:var(--purple)}#drawer-content nav svg{width:24px;height:24px;flex:none}
#bottom-nav{position:fixed;inset:auto 0 0;height:calc(82px + env(safe-area-inset-bottom,0px));padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#ffffffed;backdrop-filter:blur(20px);box-shadow:0 -12px 40px #00000005;border-radius:32px 32px 0 0;z-index:45;display:flex;align-items:center;justify-content:space-around;transition:transform 2000ms cubic-bezier(.4,0,.2,1),opacity 2000ms ease}#bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#8da6ba;font-size:12px;line-height:15px;width:64px;height:60px;flex-shrink:0}#bottom-nav a svg{width:24px;height:24px}#bottom-nav a[aria-current=page]{border-radius:50%;width:60px;height:60px;color:#fff;background:linear-gradient(135deg,#a443ff,#df53ff);box-shadow:0 7px 14px #ba51ff29}#main-header.header-hidden{transform:translateY(-100%);opacity:0}#bottom-nav.nav-hidden{transform:translateY(110%);opacity:0}
@media(min-width:1500px){#ota-main{max-width:1440px;margin:0 auto}}@media(max-width:1000px){#ota-main{padding:86px 22px 120px}.workspace{grid-template-columns:1fr}.table-wrap{min-height:260px}.card{padding:25px}.intro h1{font-size:32px}}@media(max-width:600px){#ota-main{padding:86px 16px 115px}.session-bar{align-items:flex-start;flex-direction:column;padding:0;gap:8px}.session-bar>div{justify-content:flex-start;gap:8px}.session-bar .crumb{font-size:13px}.session-bar a{font-size:13px}.intro{margin:24px 0 18px}.intro h1{font-size:31px}.intro p:last-child{font-size:14px}.intro .pill{margin-top:6px}.workflow{gap:7px;margin-bottom:20px}.workflow span{font-size:12px;padding:7px 10px}.card{padding:21px;border-radius:26px}.section-heading h2{font-size:20px}.workspace{gap:20px}.table-wrap{min-height:260px}.export{gap:8px}.toolbar input{flex-basis:100%}.toolbar select{min-width:100px}.site-brand{font-size:20px}#main-header{padding:12px 18px}.editor-body{max-height:58dvh}.editor-footer{padding:14px 16px}#drawer-content nav a{padding:13px 12px}#bottom-nav a{width:58px}#bottom-nav a[aria-current=page]{width:58px;height:58px}}
@media(prefers-reduced-motion:reduce){#main-header,#bottom-nav,#drawer-content,#drawer-overlay{transition:none!important}}
#ota-main{padding-top:86px}.intro{margin-top:14px}.model-charge{font-size:13px;color:#806693;line-height:1.8;margin:8px 0 0}@media(max-width:600px){#ota-main{padding-top:83px}.intro{margin-top:12px}}
#fields .typed-control{display:flex;align-items:center;gap:8px}#fields .typed-control input{flex:1;min-width:0}#fields .typed-control small{flex:none;color:#897798;margin-top:6px}#fields input[type=date],#fields input[type=time]{min-height:43px}
/* Template-aligned personal rule library */
.rule-picker{padding:16px;margin:18px 0;background:#f5f2fb;border-radius:20px}.rule-picker .label{margin-top:0}.rule-picker small{display:block;margin-top:10px;color:#77658f}.rule-picker button{margin-top:8px}
#rule-library{position:fixed;inset:0;margin:auto;width:min(1000px,94vw);height:min(88vh,1000px);max-height:88vh;padding:0;border:0;border-radius:28px;overflow:hidden;color:#443753;background:#fff;box-shadow:0 24px 90px #30204438}#rule-library::backdrop{background:#25163c70;backdrop-filter:blur(4px)}#rule-library[open]{display:flex;flex-direction:column}#rule-library .editor-head,#rule-library .editor-footer{flex-shrink:0}.rules-body{overflow-y:auto;padding:20px 28px;min-height:0}.rules-actions{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.rule-field{padding:18px 0;border-bottom:1px solid #ebe6f3}.rule-field h3{font-size:17px;color:#6747aa}.rule-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.rule-field-grid .label{margin:0}.rule-field textarea{min-height:80px;resize:vertical}.date-offset{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px}.date-offset input{width:100px}#rule-error{color:#bc2844}.field-unit{display:flex;gap:8px;align-items:center}.field-unit input{min-width:0;flex:1}
@media(max-width:640px){.rule-field-grid{grid-template-columns:1fr}.rules-body{padding:16px}#rule-library .editor-footer{flex-wrap:wrap}.rule-field textarea{min-height:65px}}
#rule-library .label{display:flex;flex-direction:column;gap:7px;font-size:14px}#rule-library .label>input,#rule-library select,#rule-library textarea{width:100%}#rule-library textarea{height:90px;min-height:70px}#rule-library .rule-field textarea{height:86px}#rule-library .date-offset{white-space:nowrap}#rule-library .date-offset input{width:96px}#rule-library .rules-body{scroll-behavior:auto}#rule-library input:disabled,#rule-library textarea:disabled,#rule-library select:disabled{background:#f6f4fa;color:#82788e;cursor:default}
.product-children{margin-top:12px;padding-left:12px;border-left:2px solid #e8dff6}.product-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}.product-child .id{flex-basis:100%;margin-top:0}.product-child button,.product-history button{font-size:13px;padding:5px 9px}.product-history{margin-top:12px;color:#93879f;font-size:13px}.product-history button{display:block;margin:7px 0;overflow-wrap:anywhere}.export{flex-wrap:wrap}.export select{font-size:14px;min-width:160px}#editorMessage{margin:0;padding:9px 24px;border-top:1px solid #eee8f5;font-size:14px;overflow-wrap:anywhere;flex-shrink:0}#editorMessage:empty{display:none}#exportIssues,#mergeProducts,#productHistory{width:min(850px,94vw);max-height:86vh;overflow:auto}#exportProblems,#mergePreview,#historyContent{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 "Microsoft YaHei",sans-serif}#mergePrimary{display:block;width:100%;margin:12px 0}#confirmMerge{margin-top:18px}

#editor>.editor-head{position:relative;padding-right:114px}#editor .share-icon{position:absolute;right:66px;top:28px;width:36px;height:36px;padding:7px;border:0;border-radius:50%;background:#f2ecfa;color:#6747ad}#editor .share-icon svg{width:22px;height:22px}#editor .share-icon[hidden]{display:none}#copy-rule,#delete-rule{font-size:12px;padding:7px 11px;min-height:34px}
#editor #closeEditor{position:absolute;right:24px;top:28px}
#message,#listMessage,#mergeMessage{font-size:14px}#editorMessage{font-size:10px}
