:root{color:#233b50;background:#f2f6fa;font-size:16px}main{max-width:1600px;padding-top:30px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.work-main{min-width:0}.work-main .panel{margin-top:0}.rule-panel{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;margin-top:0;padding:22px}.rule-panel>label{display:block;font-size:14px}.rule-panel select{display:block;width:100%;margin-top:8px}.rule-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #e5edf3;font-size:14px}.rule-row strong{color:#16598a;white-space:nowrap}.rule-store-name{font-size:13px;margin-top:20px;color:#697e91}.rule-notes{border-top:1px solid #dde7f0;margin-top:24px;padding-top:20px}.rule-notes p{font-size:13px}.rule-notes h3{font-size:15px}.primary,.logo{background:#16598a;border-color:#16598a}.button,select,input,table{font-size:14px}.panel p{font-size:14px}.badge{background:#e7f0f9;color:#23608a}.import{background:#f5f9fd;border-color:#bad0e1}.stats{gap:10px}.stat{background:#f4f8fc;min-width:0;padding:16px}.stat strong{font-size:21px;overflow-wrap:anywhere}.filters{flex-wrap:wrap;font-size:14px}.filters select{max-width:230px}.process-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #e5edf4;padding-top:18px;margin-top:18px;font-size:14px;color:#698197}.pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:18px;font-size:14px}progress{width:100%;height:8px;accent-color:#16598a}input{padding:9px;border:1px solid #d2dfe9;border-radius:6px;color:#28485f;background:white}.issue-inputs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.issue-inputs input{width:135px}.issue{font-size:14px;overflow-wrap:anywhere}dialog{border:0;border-radius:16px;padding:28px;max-width:960px;width:calc(100% - 32px);max-height:90vh;color:#21394c;box-shadow:0 24px 100px #112d5060}dialog::backdrop{background:#17324f80;backdrop-filter:blur(2px)}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.dialog-table{max-height:55vh}.dialog-footer{display:flex;gap:12px;justify-content:flex-end;align-items:center;border-top:1px solid #dde6ed;padding-top:20px;margin-top:20px;font-size:13px}.dialog-footer span{margin-right:auto;color:#6d8194}.rate-input{width:110px}[hidden]{display:none!important}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 280px}.import{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.workspace{display:flex;flex-direction:column}.work-main,.rule-panel{width:100%}.rule-panel{position:static;max-height:none}.dialog-footer{flex-wrap:wrap}.dialog-footer span{width:100%}.process-bar{flex-wrap:wrap}.heading{align-items:flex-start;flex-direction:column}}

#login-dialog,#password-dialog{max-width:460px;width:90%}#password-dialog label{display:block;margin:12px 0}#password-dialog input,#login-password{width:100%;padding:12px}details>summary{cursor:pointer;padding:16px}#issues input[list]{min-width:150px}

/* Orange workspace and persistent dialog controls */
:root{background:#fff0df;color:#48372e}body{background:linear-gradient(135deg,#fff3e6,#ffe2bd);min-height:100vh}header{border-bottom-color:#f5d3af}.panel{border-color:#f1d9bd}.primary,.logo{background:#b94e0d;border-color:#b94e0d}.primary:hover{background:#a44208}.badge{background:#ffe3bf;color:#8e3f0c}.eyebrow,.text-button,.tabs .active{color:#a9470e}.tabs .active{border-color:#c65b17}.import{background:#fff8ef;border-color:#e8b77d}.stat,th{background:#fff7ec}.rule-row strong{color:#b64b0b}h2 b{color:#b7845f}progress{accent-color:#c35a17}button:focus-visible,label.button:focus-within,input:focus-visible,select:focus-visible{outline:3px solid #ffc17d;outline-offset:2px}
#rate-dialog[open],#export-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 32px)}.dialog-header,.dialog-footer{flex-shrink:0}.dialog-table{flex:1;min-height:0;max-height:none;overflow:auto;margin-top:12px}.dialog-table th{position:sticky;top:0;z-index:1}.dialog-footer{margin-top:12px;background:white;padding-top:16px}.dialog-header p{margin-bottom:8px}#export-dialog{max-width:700px}#export-stores{min-height:0;overflow:auto}.export-store{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #f1d9bd;border-radius:10px;margin:10px 0;cursor:pointer}.export-store input{width:18px;height:18px;accent-color:#b94e0d}.export-store small{display:block;margin-top:5px}#rate-error:empty,#export-error:empty{display:none}@media(max-width:600px){dialog{padding:18px}.dialog-footer .button{flex:1}.dialog-footer span{width:100%}.export-store strong{overflow-wrap:anywhere}}

#feishu-dialog[open]{display:flex;flex-direction:column;overflow:hidden;width:calc(100% - 32px);max-width:1500px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}#feishu-frame{width:100%;flex:1;min-height:0;border:1px solid #f0d8b9;border-radius:8px}.embed-note{font-size:13px;margin:0 0 12px}.embed-note a{color:#a9470e}#feishu-dialog .dialog-footer{flex-shrink:0}

.usage-guide{background:#fff8ed;border:1px solid #e9be8d;border-radius:14px;padding:18px 22px;margin-bottom:24px}.usage-top{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.usage-top strong{color:#9a4008}.usage-top span{color:#74543b;font-size:14px}.usage-steps{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;font-size:14px}.usage-steps b{display:inline-grid;place-items:center;background:#ffddb4;color:#a1440a;border-radius:50%;width:24px;height:24px;margin-right:8px}.usage-guide summary{font-size:13px;padding:12px 0 0;color:#956237}.usage-guide li{font-size:13px;line-height:1.8;color:#725b48;margin:8px 0}.account-settings summary,.rule-notes summary{padding:12px 0;font-size:13px}.heading{margin-bottom:24px}.rule-notes{padding-top:6px}.rule-panel>p{margin:10px 0}

.batch-overview{background:#fff4e3;padding:12px 16px;border-radius:10px;font-size:14px;color:#7a4d29}.filters input[type=search]{min-width:200px;max-width:100%;padding:9px;border:1px solid #efd7bd;border-radius:8px}.filters{flex-wrap:wrap}#processing-status{padding:12px;background:#fff1de;border-radius:8px}
