:root {
    color-scheme: light;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    background: #f3f5f2;
    color: #19312b;
}

* { box-sizing: border-box; }
html, body { min-width: 1180px; width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: #101416; color: #e9eef0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
svg { width: 17px; height: 17px; stroke-width: 1.8; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 40px; background: #101416; }
.login-panel { width: 390px; padding: 36px; border: 1px solid #30383c; border-radius: 7px; background: #171c1e; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.brand-mark { display: grid; width: 42px; height: 42px; margin-bottom: 22px; place-items: center; border-radius: 6px; background: #e7bf42; color: #172125; }
.brand-mark svg { width: 21px; height: 21px; }
.login-eyebrow { margin: 0 0 10px; color: #87a1a5; font-size: 13px; }
.login-panel h1 { margin: 0 0 7px; font-size: 26px; font-weight: 500; }
.login-subtitle { margin: 0 0 28px; color: #98a5a9; }
.login-form { display: grid; gap: 16px; }
.login-form label, .api-section label { display: grid; gap: 7px; color: #aab5b8; font-size: 14px; }
.login-form input, .api-section input { width: 100%; height: 38px; padding: 8px 10px; border: 1px solid #3b464a; border-radius: 5px; outline: none; background: #121719; color: #eef3f4; }
.login-form input:focus, .api-section input:focus, .search-field input:focus { border-color: #76aaad; box-shadow: 0 0 0 2px rgba(118, 170, 173, .15); }
.form-error { min-height: 18px; margin: -3px 0 -5px; color: #e8968b; font-size: 14px; }

.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid #3a4549; border-radius: 5px; background: #1c2326; color: #e8edef; white-space: nowrap; }
.button:hover { background: #252d30; }
.button-primary { border-color: #689a9d; background: #5c8f92; color: #fff; }
.button-primary:hover { background: #699da0; }
.button-danger { border-color: #984c44; background: #873f38; color: #fff; }
.button-danger:hover { border-color: #ad5a50; background: #984c44; }
.button-block { width: 100%; }
.icon-button { display: inline-grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid #394347; border-radius: 5px; background: #1a2022; color: #cbd4d6; }
.icon-button:hover { background: #252c2f; color: #fff; }

.app-shell { display: grid; height: 100vh; overflow: hidden; grid-template-columns: 232px minmax(960px, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 14px; border-right: 1px solid #233034; background: #0b1113; color: #dbe5e6; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 22px; font-size: 18px; font-weight: 500; }
.brand-mark-small { width: 30px; height: 30px; margin: 0; }
.brand-mark-small svg { width: 16px; height: 16px; }
.nav-label { margin: 12px 10px 7px; color: #779095; font-size: 13px; }
.nav-list { display: grid; gap: 3px; }
.nav-item { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 5px; background: transparent; color: #a9b8bb; text-align: left; }
.nav-item:hover { background: #172529; color: #eaf0f1; }
.nav-item.is-active { background: #29454a; color: #fff; }
.sidebar-status { position: absolute; right: 16px; bottom: 22px; left: 16px; display: flex; gap: 9px; padding-top: 16px; border-top: 1px solid #29383c; color: #a7b5b8; font-size: 14px; }
.sidebar-status > span { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #55a66d; box-shadow: 0 0 0 3px rgba(85, 166, 109, .12); }
.sidebar-status small { display: block; margin-top: 5px; color: #6f858a; }

.main-area { min-width: 0; height: 100vh; overflow-y: auto; background: #151a1c; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid #2b3336; color: #8f9da1; }
.topbar strong { color: #edf2f3; font-weight: 500; }
.account { display: flex; align-items: center; gap: 9px; color: #c7d0d2; }
.avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #303b3f; color: #fff; font-size: 14px; }
.account .icon-button { width: 30px; height: 30px; margin-left: 6px; border: 0; background: transparent; }

.view { display: none; padding: 25px 28px 34px; }
.view.is-active { display: block; }
.page-heading { display: flex; min-height: 55px; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 6px; font-size: 24px; font-weight: 500; }
.page-heading p { margin: 0; color: #93a0a4; }
.metrics { display: flex; margin-bottom: 18px; border-top: 1px solid #2c3538; border-bottom: 1px solid #2c3538; background: #181e20; }
.metric { width: 165px; padding: 14px 18px; border-right: 1px solid #2d3639; }
.metric span { display: block; margin-bottom: 5px; color: #8e9b9f; font-size: 13px; }
.metric strong { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.search-field { position: relative; display: block; width: 420px; }
.search-field svg { position: absolute; top: 10px; left: 11px; color: #7f8e92; }
.search-field input { width: 100%; height: 37px; padding: 8px 11px 8px 37px; border: 1px solid #384347; border-radius: 5px; outline: none; background: #151b1d; color: #eef3f4; }
.status-tabs { display: flex; gap: 24px; border-bottom: 1px solid #30393c; }
.status-tabs button { position: relative; padding: 10px 2px 11px; border: 0; background: transparent; color: #96a3a7; }
.status-tabs button[aria-selected="true"] { color: #a8dcde; }
.status-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #73a8aa; content: ""; }
.status-tabs span { margin-left: 3px; color: #718085; font-size: 14px; }

.table-wrap { overflow-x: auto; border-bottom: 1px solid #30383b; }
.data-table { width: 100%; min-width: 1020px; border-collapse: collapse; table-layout: fixed; }
.data-table th { height: 42px; padding: 9px 10px; border-bottom: 1px solid #30383b; background: #181e20; color: #8f9da1; font-size: 13px; font-weight: 500; text-align: left; }
.data-table td { height: 58px; padding: 8px 10px; border-bottom: 1px solid #262e31; color: #e2e8ea; vertical-align: middle; }
.data-table tbody tr:hover { background: #192124; }
.data-table tbody tr.is-checked { background: #1d2a2c; }
.col-check { width: 42px; }
.col-product { width: 360px; }
.col-price { width: 86px; }
.col-number { width: 76px; }
.col-merchant { width: 150px; }
.col-status { width: 95px; }
.col-ai-score { width: 88px; }
.col-ai-reason { width: 480px; }
.col-action { width: 48px; }
.align-right { text-align: right !important; font-variant-numeric: tabular-nums; }
.product-title { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: #edf2f3; font-weight: 500; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.product-title:hover { color: #9fd0d2; text-decoration: underline; }
.product-meta { display: block; max-width: 100%; margin-top: 5px; overflow: hidden; color: #76878c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.money { font-variant-numeric: tabular-nums; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.status-badge::before { width: 6px; height: 6px; border-radius: 50%; content: ""; }
.status-selected { background: #1d392b; color: #a3d8b5; }
.status-selected::before { background: #79c593; }
.status-unselected { background: #282f32; color: #abb6ba; }
.status-unselected::before { background: #76858a; }
.status-success { background: #1d392b; color: #a3d8b5; }
.status-failed { background: #3a2422; color: #eda89e; }
.row-action { width: 31px; height: 31px; border: 0; background: transparent; }
.empty-state { height: 180px !important; color: #7f8d91 !important; text-align: center; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; color: #8e9b9f; }
.table-footer-summary { display: flex; align-items: center; gap: 16px; }
.page-size-control { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.page-size-control select { height: 31px; padding: 0 24px 0 8px; border: 1px solid #364145; border-radius: 4px; outline: none; background: #1a2022; color: #9fadb1; font: inherit; }
.pagination { display: flex; gap: 5px; }
.pagination button { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid #364145; border-radius: 4px; background: #1a2022; color: #9fadb1; }
.pagination button:hover:not(:disabled) { background: #252d30; color: #fff; }
.pagination button[aria-current="page"] { border-color: #6e9fa2; background: #5c8f92; color: #fff; }
.import-table { min-width: 1100px; }

.api-layout { max-width: 880px; border-top: 1px solid #30383b; }
.api-section { padding: 21px 0; border-bottom: 1px solid #30383b; }
.api-section h2 { margin: 0 0 15px; font-size: 17px; font-weight: 500; }
.api-section-head { display: flex; align-items: center; justify-content: space-between; }
.api-section label { margin-bottom: 12px; }
.api-section pre { overflow-x: auto; margin: 13px 0; padding: 14px 16px; border-left: 3px solid #648f92; background: #101517; color: #ced7d9; }
.api-section code { font-family: "Cascadia Code", Consolas, monospace; font-size: 14px; }
.api-note { color: #8f9da1; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(0, 0, 0, .62); }
.modal-backdrop.is-open { display: grid; place-items: start center; padding-top: 80px; }
.modal { width: 570px; overflow: hidden; border: 1px solid #3a4549; border-radius: 7px; background: #171c1e; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.modal > header, .drawer > header { display: flex; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #2e373a; }
.modal h2, .drawer h2 { margin: 0; font-size: 18px; font-weight: 500; }
.modal-body { padding: 20px; }
.modal fieldset { padding: 0; border: 0; }
.modal legend { margin-bottom: 9px; color: #b6c0c3; font-size: 14px; font-weight: 500; }
.import-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.import-options label { position: relative; display: flex; min-height: 83px; gap: 10px; padding: 13px; border: 1px solid #384347; border-radius: 5px; background: #191f21; cursor: pointer; }
.import-options label:has(input:checked) { border-color: #6e9fa2; background: #1d2d30; }
.import-options input { margin: 2px 0 0; }
.import-options strong, .file-picker strong { display: block; margin-bottom: 6px; font-weight: 500; }
.import-options small, .file-picker small { display: block; color: #849398; line-height: 1.55; }
.file-picker { display: flex; min-height: 72px; align-items: center; gap: 12px; padding: 13px; border: 1px dashed #4a575b; border-radius: 5px; background: #141a1c; cursor: pointer; }
.file-picker > svg { width: 25px; height: 25px; color: #79aeb0; }
.file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.import-result { display: none; margin-top: 15px; padding: 12px 13px; border-left: 3px solid #72ba88; background: #1b3024; color: #b5dec1; line-height: 1.65; }
.import-result.is-visible { display: block; }
.import-result.is-error { border-color: #d7786d; background: #342321; color: #edaaa1; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid #2e373a; background: #14191b; }

.drawer-backdrop.is-open { display: flex; justify-content: flex-end; }
.drawer { width: 430px; min-height: 100vh; border-left: 1px solid #354044; background: #171c1e; box-shadow: -18px 0 50px rgba(0, 0, 0, .38); }
#detail-content { padding: 22px; }
.detail-title { margin: 0 0 12px; font-size: 19px; font-weight: 500; line-height: 1.65; }
.detail-status { margin-bottom: 22px; }
.detail-list { display: grid; grid-template-columns: 100px 1fr; margin: 0; border-top: 1px solid #30383b; }
.detail-list dt, .detail-list dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #293134; }
.detail-list dt { color: #839196; }
.detail-list dd { overflow-wrap: anywhere; color: #dbe2e4; }
.detail-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: #94c7c9; text-decoration: none; }
.detail-link:hover { text-decoration: underline; }

.toast { position: fixed; bottom: 26px; left: 50%; z-index: 80; display: none; align-items: center; gap: 8px; transform: translateX(-50%); padding: 10px 14px; border-radius: 5px; background: #e8edef; color: #172125; box-shadow: 0 12px 35px rgba(0, 0, 0, .35); }
.toast.is-visible { display: flex; }

/* Light workspace theme */
body { background: #f3f5f2; color: #19312b; }
.login-page { background: #edf1ed; }
.login-panel { border-color: #d2dbd5; background: #fff; box-shadow: 0 24px 60px rgba(43, 67, 59, .14); }
.login-eyebrow { color: #7a9087; }
.login-panel h1 { color: #19312b; }
.login-subtitle { color: #71867e; }
.login-form label, .api-section label { color: #49645a; }
.login-form input, .api-section input { border-color: #cbd6d0; background: #fff; color: #19312b; }
.login-form input:focus, .api-section input:focus, .search-field input:focus { border-color: #b8942d; box-shadow: 0 0 0 3px rgba(184, 148, 45, .14); }
.form-error { color: #b84f3f; }

.button { border-color: #ccd6d0; background: #fff; color: #28473c; }
.button:hover { border-color: #9caf9f; background: #f5f8f5; }
.button-primary { border-color: #c4a034; background: #caa63a; color: #17291f; font-weight: 600; }
.button-primary:hover { border-color: #b28d24; background: #d3b24f; }
.button-danger { border-color: #ad5a4d; background: #a1483d; color: #fff; }
.button-danger:hover { border-color: #9b4439; background: #b35246; }
.icon-button { border-color: #cad5cf; background: #fff; color: #50675f; }
.icon-button:hover { background: #edf2ee; color: #24463a; }

.sidebar { border-right-color: #2f493f; background: #38554b; color: #f2f6f3; }
.brand { color: #fff; }
.nav-label { color: #aec2ba; }
.nav-item { color: #d9e5e0; }
.nav-item:hover { background: #49675c; color: #fff; }
.nav-item.is-active { background: #667f75; color: #fff; font-weight: 600; }
.sidebar-status { border-top-color: #547066; color: #e0ebe6; }
.sidebar-status small { color: #b2c6be; }
.sidebar-status > span { background: #7fd09c; box-shadow: 0 0 0 3px rgba(127, 208, 156, .18); }

.main-area { background: #f3f5f2; }
.topbar { height: 64px; border-bottom-color: #49655b; background: #304b41; color: #c7d8d1; }
.topbar strong { color: #fff; }
.account { color: #fff; }
.avatar { background: #d2ae40; color: #20372e; font-weight: 700; }
.account .icon-button { color: #e5eee9; }
.account .icon-button:hover { background: #49665b; color: #fff; }

.view { padding: 27px 32px 36px; }
.page-heading h1 { color: #19312b; }
.page-heading p { color: #71857d; }
.metrics { border-color: #d5ddd8; background: transparent; }
.metric { border-right-color: #d5ddd8; }
.metric span { color: #6d8179; }
.metric strong { color: #1f3b31; }
.search-field svg { color: #7b8d86; }
.search-field input { height: 42px; border-color: #ccd6d0; background: #fff; color: #19312b; }
.search-field input::placeholder { color: #82928c; }
.status-tabs { border-bottom-color: #d4ddd7; }
.status-tabs button { color: #667b73; }
.status-tabs button[aria-selected="true"] { color: #8d6d11; font-weight: 600; }
.status-tabs button[aria-selected="true"]::after { background: #c5a037; }
.status-tabs span { color: #8b9a94; }

.table-wrap { overflow-x: auto; border: 0; }
.data-table { border-collapse: separate; border-spacing: 0 5px; }
.data-table th { height: 50px; border-top: 1px solid #cfd9d3; border-bottom-color: #cfd9d3; background: #e5ece7; color: #536a61; font-weight: 600; }
.data-table th:first-child { border-left: 1px solid #cfd9d3; border-radius: 5px 0 0 5px; }
.data-table th:last-child { border-right: 1px solid #cfd9d3; border-radius: 0 5px 5px 0; }
.data-table td { height: 64px; border-top: 1px solid #dce3df; border-bottom-color: #dce3df; background: #fff; color: #1d352d; }
.data-table td:first-child { border-left: 1px solid #dce3df; border-radius: 5px 0 0 5px; }
.data-table td:last-child { border-right: 1px solid #dce3df; border-radius: 0 5px 5px 0; }
.data-table tbody tr:hover td { border-color: #bccbc3; background: #f8faf8; }
.data-table tbody tr.is-checked td { border-color: #d2bd79; background: #fffaf0; }
.col-check { width: 58px; }
.product-title { color: #18392e; }
.product-title:hover { color: #8a6810; }
.product-meta { color: #788b83; }
.status-selected, .status-success { background: #e8f4ed; color: #247248; }
.status-selected::before { background: #47a76c; }
.status-unselected { background: #edf0ee; color: #60726b; }
.status-unselected::before { background: #899891; }
.status-failed { background: #fbece8; color: #bb5948; }
.row-action { background: transparent; }
.empty-state { color: #71857d !important; }
.table-footer { color: #677b73; }
.page-size-control select { border-color: #cad5cf; background: #fff; color: #536a61; }
.page-size-control select:focus { border-color: #b8942d; box-shadow: 0 0 0 3px rgba(184, 148, 45, .14); }
.pagination button { border-color: #cad5cf; background: #fff; color: #536a61; }
.pagination button:hover:not(:disabled) { background: #edf2ee; color: #28473c; }
.pagination button[aria-current="page"] { border-color: #b79229; background: #caa63a; color: #17291f; }

#check-all, .row-check { width: 22px; height: 22px; margin: 0; accent-color: #b99328; cursor: pointer; }

.api-layout { border-top-color: #d4ddd7; }
.api-section { border-bottom-color: #d4ddd7; }
.api-section pre { border-left-color: #c4a034; background: #e9eeea; color: #29483d; }
.api-note { color: #6d8179; }

.modal-backdrop, .drawer-backdrop { background: rgba(31, 50, 43, .56); }
.modal { border-color: #cbd6d0; background: #fff; box-shadow: 0 24px 80px rgba(33, 54, 47, .24); }
.modal > header, .drawer > header { border-bottom-color: #d8e0db; }
.modal h2, .drawer h2 { color: #19312b; }
.modal legend { color: #49645a; }
.import-options label { border-color: #d0d9d4; background: #f8faf8; }
.import-options label:has(input:checked) { border-color: #c1a03d; background: #fff9e9; }
.import-options input { accent-color: #b99328; }
.import-options small, .file-picker small { color: #71857d; }
.file-picker { border-color: #aebdb5; background: #f6f8f6; }
.file-picker > svg { color: #8d6d11; }
.import-result { border-left-color: #4b9d6a; background: #edf7f1; color: #256542; }
.import-result.is-error { border-color: #ce6f5e; background: #fceeea; color: #a94637; }
.modal footer { border-top-color: #d8e0db; background: #f4f6f4; }
.drawer { border-left-color: #cbd6d0; background: #fff; box-shadow: -18px 0 50px rgba(33, 54, 47, .2); }
.detail-title { color: #19312b; }
.detail-list { border-top-color: #d8e0db; }
.detail-list dt, .detail-list dd { border-bottom-color: #e1e7e3; }
.detail-list dt { color: #6f837a; }
.detail-list dd { color: #28473c; }
.detail-link { color: #87670f; }
.toast { background: #304b41; color: #fff; box-shadow: 0 12px 35px rgba(33, 54, 47, .25); }

/* Workflow and AI management */
.nav-label-secondary { margin-top: 24px; }
.heading-actions, .toolbar-actions { display: flex; align-items: center; gap: 8px; }
.metrics-ai-summary { display: grid; grid-template-columns: repeat(7, minmax(128px, 1fr)); overflow-x: auto; }
.metrics-ai-summary .metric { width: auto; min-width: 0; }
.metrics-ai-summary .metric:last-child { border-right: 0; }
.toolbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.selection-count { flex: 0 0 auto; color: #667b73; white-space: nowrap; }
.selection-count strong { color: #28473c; font-weight: 600; font-variant-numeric: tabular-nums; }
.toolbar select, .settings-form input, .settings-form textarea, .settings-form select { border: 1px solid #ccd6d0; border-radius: 5px; outline: none; background: #fff; color: #19312b; font: inherit; }
.toolbar select { height: 42px; padding: 0 34px 0 12px; }
.toolbar select:focus, .settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus { border-color: #b8942d; box-shadow: 0 0 0 3px rgba(184, 148, 45, .14); }
#pending-check-all, #library-check-all, .row-check { width: 22px; height: 22px; margin: 0; accent-color: #b99328; cursor: pointer; }
.ai-unprocessed { background: #edf0ee; color: #60726b; }
.ai-unprocessed::before { background: #899891; }
.ai-processing { background: #e8f1f7; color: #386b8b; }
.ai-processing::before { background: #5a98bf; }
.ai-recommended { background: #e8f4ed; color: #247248; }
.ai-recommended::before { background: #47a76c; }
.ai-not_recommended { background: #f2f0e9; color: #776b47; }
.ai-not_recommended::before { background: #aa9865; }
.ai-failed { background: #fbece8; color: #bb5948; }
.ai-failed::before { background: #d06d5c; }

.ai-job-band { margin: 18px 0 20px; padding: 18px 20px; border-top: 1px solid #d5ddd8; border-bottom: 1px solid #d5ddd8; background: #edf1ee; }
.pending-ai-job { margin-top: 0; }
.ai-job-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ai-job-head > div { display: grid; grid-template-columns: 12px auto; align-items: center; column-gap: 9px; }
.ai-job-head strong { font-size: 17px; font-weight: 600; }
.ai-job-head small { grid-column: 2; margin-top: 4px; color: #6d8179; }
.run-indicator { width: 9px; height: 9px; border-radius: 50%; background: #9aa8a2; }
.run-indicator.is-running { background: #4fa970; box-shadow: 0 0 0 4px rgba(79, 169, 112, .16); }
.progress-track { height: 7px; margin: 16px 0 18px; overflow: hidden; border-radius: 4px; background: #d5ddd8; }
.pending-ai-job .progress-track { margin-bottom: 0; }
.progress-track span { display: block; width: 0; height: 100%; background: #c5a037; transition: width .25s ease; }
.pending-toolbar { align-items: flex-end; flex-wrap: wrap; }
.pending-toolbar .toolbar-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.pending-table { min-width: 1470px; }
.library-table { min-width: 1160px; }
.col-pending-product { width: 580px; }
.col-links { width: 170px; }
.ai-score { color: #8a6810; font-size: 18px; font-weight: 700; }
.ai-reason { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-link-actions { display: flex; align-items: center; gap: 7px; }
.table-link-button { display: inline-flex; min-width: 70px; height: 34px; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid #c7d3cc; border-radius: 5px; background: #fff; color: #36594c; text-decoration: none; white-space: nowrap; }
.table-link-button:hover { border-color: #839e91; background: #edf3ef; color: #1f4436; }
.table-link-button.is-disabled { cursor: not-allowed; opacity: .45; }
.table-link-button svg { width: 15px; height: 15px; }

.settings-form { max-width: 1120px; border-top: 1px solid #d4ddd7; }
.ai-cost-summary { display: flex; max-width: 1120px; min-height: 54px; align-items: baseline; gap: 12px; margin: -5px 0 20px; padding: 12px 0; border-top: 1px solid #d4ddd7; border-bottom: 1px solid #d4ddd7; }
.ai-cost-summary span { color: #60766d; }
.ai-cost-summary strong { color: #8a6810; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-cost-summary small { color: #82938c; }
.settings-section { display: grid; grid-template-columns: 260px 1fr; gap: 34px; padding: 25px 0; border-bottom: 1px solid #d4ddd7; }
.settings-section-title h2 { margin: 0 0 7px; font-size: 18px; }
.settings-section-title p { margin: 0; color: #71857d; line-height: 1.65; }
.settings-fields { display: grid; gap: 15px; }
.settings-fields-two { grid-template-columns: 1fr 1fr; }
.settings-fields-four { grid-template-columns: repeat(4, 1fr); }
.settings-fields label { display: grid; gap: 7px; color: #49645a; font-size: 14px; }
.settings-fields input, .settings-fields select { height: 42px; padding: 0 11px; }
.settings-fields textarea { min-height: 110px; padding: 10px 11px; line-height: 1.65; resize: vertical; }
.settings-fields label.is-disabled { opacity: .5; }
.toggle-control { display: flex; height: 42px; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid #ccd6d0; border-radius: 5px; background: #fff; color: #49645a; cursor: pointer; }
.toggle-control input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.toggle-track { position: relative; width: 38px; height: 21px; flex: 0 0 auto; border-radius: 11px; background: #aebbb5; transition: background .18s ease; }
.toggle-track::after { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(37, 58, 49, .25); content: ""; transition: transform .18s ease; }
.toggle-control input:checked + .toggle-track { background: #b99328; }
.toggle-control input:checked + .toggle-track::after { transform: translateX(17px); }
.toggle-control:has(input:focus-visible) { border-color: #b8942d; box-shadow: 0 0 0 3px rgba(184, 148, 45, .14); }
.field-span-two { grid-column: span 2; }
.pricing-sync-button { margin-top: 14px; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 18px 0; }
.settings-actions > span { margin-right: auto; color: #6d8179; }
.modal-intro { margin: 0 0 16px; color: #62776e; }
.detail-note { margin-top: 20px; padding: 14px; border-left: 3px solid #c5a037; background: #f6f4eb; }
.detail-note p { margin: 7px 0 0; color: #536a61; line-height: 1.7; }
.toast.is-error { background: #9e493b; }
