:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  background: #f7f7f3;
  color: #1f2d27;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a4c9ae; outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { max-width: 1540px; margin: 0 auto; padding: 0 56px; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e8ece5; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #dcebcf; color: #31775c; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; gap: 5px; }
.brand-copy strong { font-size: 22px; font-weight: 750; letter-spacing: .07em; }
.brand-copy small { color: #8b9b8e; font-size: 9px; font-weight: 750; letter-spacing: .25em; }
.header-actions { display: flex; align-items: center; gap: 11px; }
.account-name { max-width: 150px; overflow: hidden; color: #66786c; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.schedule-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 999px; background: #edf4e7; color: #3b7659; font-size: 12px; font-weight: 700; }
.pulse-dot { width: 7px; height: 7px; flex: none; background: #50a472; border-radius: 50%; box-shadow: 0 0 0 4px #d9ebd8; }

.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 19px; border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { color: white; background: #2d7357; box-shadow: 0 8px 16px #2d73571f; }
.button-primary:not(:disabled):hover { background: #245f47; box-shadow: 0 11px 20px #2d73572e; }
.button-secondary { color: #2d7357; background: white; border-color: #dce8dc; }
.button-secondary:not(:disabled):hover { border-color: #9fc6a7; background: #f5faf4; }
.button-quiet { color: #66786c; background: transparent; }
.button-quiet:not(:disabled):hover { background: #eef3eb; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 12px; border-radius: 10px; }
.button-full { width: 100%; justify-content: space-between; padding: 0 17px; }

.intro { position: relative; min-height: 326px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 0 34px; overflow: hidden; }
.intro-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow, .section-kicker { color: #5d8c6b; font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 22px; height: 1px; background: #5d8c6b; }
.intro h1 { margin: 16px 0 15px; font-size: clamp(36px, 4.2vw, 59px); line-height: 1.24; font-weight: 750; letter-spacing: -.045em; }
.intro h1 span { color: #4b8b67; }
.intro p { margin: 0; max-width: 560px; color: #728177; font-size: 14px; line-height: 1.85; }
.intro-visual { position: relative; flex: 0 0 380px; height: 280px; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid #e6eddd; border-radius: 50%; }
.orbit-one { width: 326px; height: 326px; }
.orbit-two { width: 225px; height: 225px; }
.visual-card { position: relative; z-index: 1; width: 296px; height: 218px; padding: 18px 19px; background: #fff; border: 1px solid #e9efe5; border-radius: 21px; box-shadow: 0 28px 64px #33594719; transform: rotate(-5deg); }
.visual-card-top, .visual-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.visual-card-top { color: #2e4034; font-size: 12px; font-weight: 700; }
.visual-example { color: #8da793; font-size: 10px; font-weight: 500; }
.visual-card svg { display: block; width: 100%; height: 136px; margin: 4px 0; overflow: visible; }
.visual-card-bottom { color: #a5b0a4; font-size: 10px; }
.visual-card-bottom strong { color: #367c62; font-size: 23px; line-height: 1; }
.visual-spark { position: absolute; z-index: 2; color: #d8ad73; font-size: 30px; }
.spark-one { top: 16px; right: 10px; }
.spark-two { bottom: 9px; left: 3px; color: #8fb894; font-size: 21px; }

.access-panel { position: relative; display: grid; grid-template-columns: 49px minmax(210px, 1fr) minmax(285px, 490px); align-items: center; gap: 18px; padding: 24px 27px; background: #fff; border: 1px solid #e7ece6; border-radius: 20px; box-shadow: 0 13px 42px #344b3510; }
.access-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #437b5c; background: #eaf3e7; border-radius: 13px; font-size: 27px; }
.access-copy h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.access-copy p { margin: 0; color: #8a978a; font-size: 12px; }
.login-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.login-form input { min-width: 0; }
.login-form .button { white-space: nowrap; }
.access-panel > .form-message { grid-column: 2 / -1; margin: -4px 0 0; }

input, textarea, select { width: 100%; padding: 12px 14px; color: #26392e; background: #fff; border: 1px solid #dce5dc; border-radius: 11px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
input:hover, textarea:hover, select:hover { border-color: #aebfaf; }
input:focus, textarea:focus, select:focus { border-color: #76a886; box-shadow: 0 0 0 3px #76a88624; }
input::placeholder, textarea::placeholder { color: #aab5aa; }
textarea { resize: vertical; min-height: 126px; line-height: 1.65; }

.overview { margin: 30px 0 39px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 3px 0 0; color: #26372c; font-size: 23px; letter-spacing: -.035em; }
.section-note { margin: 0 0 2px; color: #9aa79b; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.stat-card { min-height: 126px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 23px; background: #fff; border: 1px solid #e9eee8; border-radius: 17px; }
.stat-card-accent { background: #ecf4e9; border-color: #e3eedd; }
.stat-label { color: #6b7d6f; font-size: 12px; font-weight: 650; }
.stat-card strong { margin-top: 5px; color: #263a2e; font-size: 36px; font-weight: 750; line-height: 1.2; letter-spacing: -.05em; }
.stat-card-accent strong { color: #357a59; }
.stat-foot { margin-top: auto; color: #a0ada2; font-size: 11px; }
.stat-card-accent .stat-foot { color: #7d9b81; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 29px; padding-bottom: 55px; }
.products-heading { margin-bottom: 18px; }
.count-pill { margin-bottom: 3px; padding: 6px 11px; color: #78917b; background: #edf3e9; border-radius: 999px; font-size: 11px; font-weight: 700; }
.products-list { display: grid; gap: 13px; }
.product-card { padding: 21px 23px 19px; background: white; border: 1px solid #e6ece5; border-radius: 18px; box-shadow: 0 6px 26px #2b4d3410; }
.product-card:hover { border-color: #d2e2d1; box-shadow: 0 10px 34px #2b4d3417; }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-identity { min-width: 0; }
.product-title { margin: 0 0 6px; color: #26372e; font-size: 16px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.product-link { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: #8a9a8c; font-size: 11px; text-decoration: none; }
.product-link:hover { color: #337a59; }
.product-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-link svg { flex: none; width: 12px; height: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.status-pill::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-ok { color: #3f8c62; background: #eaf5e9; }
.status-pending { color: #967944; background: #fbf2df; }
.status-auth_required { color: #9b6a4c; background: #fbede4; }
.status-error { color: #b75958; background: #fff0ec; }
.product-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 21px 0 17px; }
.metric { padding: 13px 15px; background: #f8faf6; border: 1px solid #f0f3ee; border-radius: 12px; }
.metric-label { display: block; color: #87978a; font-size: 11px; }
.metric strong { display: block; min-height: 35px; margin-top: 5px; color: #2a4030; font-size: 24px; font-weight: 750; letter-spacing: -.03em; line-height: 1.3; }
.metric strong.is-unknown { color: #a9b4a7; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.metric-delta strong { color: #317f5d; }
.metric-delta strong.is-negative { color: #b86258; }
.product-times { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 15px; }
.product-times div { min-width: 0; }
.product-times dt { color: #a1aca1; font-size: 10px; }
.product-times dd { margin: 3px 0 0; color: #5f7165; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.product-interval { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 15px; padding: 10px 12px; background: #f8faf6; border: 1px solid #f0f3ee; border-radius: 11px; }
.interval-label { display: flex; align-items: center; gap: 10px; flex: 1 1 210px; color: #6b7d6f; font-size: 11px; font-weight: 650; }
.interval-label span { white-space: nowrap; }
.interval-select { width: auto; min-width: 112px; margin-left: auto; padding: 6px 9px; font-size: 11px; }
.product-interval .button { min-height: 32px; padding: 0 9px; }
.product-interval .button:disabled { cursor: default; }
.interval-message { flex: 1 0 100%; color: #a04e49; font-size: 11px; line-height: 1.4; }
.interval-message.is-success { color: #357c5a; }
.product-error { display: flex; gap: 7px; margin: 0 0 15px; padding: 9px 11px; color: #9b6058; background: #fff4ef; border-radius: 9px; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.product-error span:first-child { flex: none; font-weight: 800; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid #edf0ea; }
.sample-count { color: #9aa69b; font-size: 11px; }
.action-group { display: flex; gap: 7px; }
.action-group .button { min-height: 34px; padding: 0 10px; }

.add-panel { position: sticky; top: 20px; padding: 26px 24px 24px; background: #fff; border: 1px solid #e5ebe3; border-radius: 20px; box-shadow: 0 15px 45px #324c3510; }
.add-panel-top { display: flex; align-items: center; gap: 10px; }
.add-icon { width: 33px; height: 33px; display: grid; place-items: center; color: #357c5a; background: #e8f2e5; border-radius: 10px; font-size: 23px; line-height: 1; }
.add-panel h2 { margin: 19px 0 5px; font-size: 25px; letter-spacing: -.04em; }
.add-intro { margin: 0 0 23px; color: #869488; font-size: 12px; line-height: 1.7; }
.add-panel label { display: block; margin: 17px 0 8px; color: #435546; font-size: 12px; font-weight: 700; }
.required-mark { color: #cc765f; }
.optional-mark { color: #abb6a9; font-weight: 500; }
.add-panel .button-full { margin-top: 24px; }
.add-footnote { display: flex; gap: 8px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #edf0e9; color: #9aa89a; font-size: 10px; line-height: 1.7; }
.add-footnote span { font-size: 14px; line-height: 1.3; }
.add-footnote p { margin: 0; }
.form-message { margin: 11px 0 0; color: #a04e49; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.form-message.is-success { color: #357c5a; }
.notice { margin: 0 0 14px; padding: 12px 15px; color: #a04e49; background: #fff0ea; border: 1px solid #f7ded5; border-radius: 11px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.loading-state, .empty-state { padding: 48px 20px; color: #869589; background: #fff; border: 1px dashed #dce8d9; border-radius: 17px; text-align: center; font-size: 13px; }
.empty-illustration { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 12px; color: #7da985; background: #eef5ea; border-radius: 22px; font-size: 37px; }
.empty-state h3 { margin: 0 0 5px; color: #3a5240; font-size: 17px; }
.empty-state p { margin: 0; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 35px; color: #a0aaa0; border-top: 1px solid #e8ede5; font-size: 11px; }

.history-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; color: #26362b; background: #fff; border: 1px solid #e5ede4; border-radius: 22px; box-shadow: 0 30px 90px #162b1e3d; overflow: auto; }
.history-dialog::backdrop { background: #12271db0; backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 15px; padding: 24px 28px 18px; background: #fff; border-bottom: 1px solid #eef1ed; }
.dialog-head h2 { margin: 4px 0 2px; font-size: 23px; }
.dialog-head p { margin: 0; color: #90a091; font-size: 12px; overflow-wrap: anywhere; }
.dialog-close { width: 34px; height: 34px; flex: none; color: #64816b; background: #f2f6f0; border: 0; border-radius: 10px; font-size: 25px; line-height: 1; }
.dialog-close:hover { background: #e5efe3; }
.history-dialog .notice { margin: 18px 28px 0; }
.history-dialog .loading-state { margin: 22px 28px 28px; }
.history-chart { min-height: 224px; margin: 24px 28px 18px; padding: 18px 18px 9px; background: #f8fbf7; border: 1px solid #edf2eb; border-radius: 15px; }
.history-chart svg { display: block; width: 100%; height: 176px; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 1px; color: #91a093; font-size: 10px; }
.chart-empty { display: grid; place-items: center; min-height: 180px; color: #9aa89b; font-size: 12px; text-align: center; }
.table-scroll { margin: 0 28px 28px; overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
.history-table th { padding: 11px 9px; color: #91a092; border-bottom: 1px solid #e8eee6; text-align: left; font-size: 11px; font-weight: 650; }
.history-table td { padding: 13px 9px; color: #536b58; border-bottom: 1px solid #f0f3ee; }
.history-table td:nth-child(2) { color: #2e4835; font-weight: 750; }
.history-table .negative { color: #b86258; }
.history-empty { margin: 0 28px 30px; color: #8d9b8e; font-size: 12px; }

.account-section { padding: 7px 0 58px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.account-card { min-width: 0; padding: 26px; background: #fff; border: 1px solid #e5ebe3; border-radius: 20px; box-shadow: 0 15px 45px #324c3510; }
.account-card h3 { margin: 0 0 5px; color: #26372c; font-size: 19px; }
.account-card-intro { margin: 0 0 19px; color: #849487; font-size: 12px; line-height: 1.7; }
.account-form { display: grid; gap: 8px; }
.account-form label { margin-top: 8px; color: #435546; font-size: 12px; font-weight: 700; }
.account-form label:first-child { margin-top: 0; }
.account-form .button { justify-self: start; margin-top: 12px; }
.field-help { margin: -3px 0 2px; color: #91a092; font-size: 11px; line-height: 1.5; }

@media (max-width: 1120px) {
  .app-shell { padding: 0 35px; }
  .intro-visual { flex-basis: 310px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 315px; gap: 18px; }
  .product-card { padding: 18px; }
}

@media (max-width: 850px) {
  .app-shell { padding: 0 24px; }
  .intro { min-height: 290px; }
  .intro-visual { flex-basis: 220px; transform: scale(.75); transform-origin: center; margin: 0 -28px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .add-panel { position: static; grid-row: 1; }
  .access-panel { grid-template-columns: 46px 1fr; }
  .login-form, .access-panel > .form-message { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .app-shell { padding: 0 16px; }
  .site-header { min-height: 76px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 8px; }
  .schedule-pill { display: none; }
  .account-name { display: none; }
  .header-actions { gap: 2px; }
  .header-actions .button { font-size: 11px; padding: 0 8px; }
  .intro { min-height: unset; padding: 42px 0 30px; }
  .intro h1 { font-size: 39px; }
  .intro p { font-size: 12px; }
  .intro-visual { display: none; }
  .access-panel { gap: 12px; padding: 18px; }
  .access-copy h2 { font-size: 14px; }
  .access-copy p { font-size: 11px; }
  .login-form { grid-template-columns: 1fr; }
  .login-form .button { width: 100%; }
  .overview { margin: 29px 0; }
  .section-heading h2 { font-size: 21px; }
  .section-note { display: none; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 112px; padding: 13px 11px; }
  .stat-label { font-size: 10px; }
  .stat-card strong { margin-top: 7px; font-size: 28px; }
  .stat-foot { font-size: 9px; line-height: 1.35; }
  .product-card { padding: 18px 16px; }
  .product-title { font-size: 14px; }
  .product-metrics { gap: 7px; }
  .metric { padding: 10px; }
  .metric strong { font-size: 21px; }
  .metric strong.is-unknown { font-size: 13px; }
  .product-times dd { font-size: 10px; }
  .site-footer { flex-direction: column; gap: 4px; }
  .dialog-head { padding: 20px 18px 14px; }
  .history-chart { margin: 18px 17px; padding: 11px; }
  .table-scroll { margin: 0 17px 20px; }
  .account-card { padding: 20px 18px; }
  .account-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 左侧导航与列表工作台 */
.dashboard-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; gap: 30px; padding: 30px 0 62px; }
.sidebar { position: sticky; top: 22px; display: flex; flex-direction: column; min-height: min(650px, calc(100vh - 140px)); padding: 25px 13px 21px; background: #fff; border: 1px solid #e6ece4; border-radius: 19px; box-shadow: 0 10px 32px #324c3510; }
.sidebar-head { display: flex; flex-direction: column; gap: 5px; padding: 0 13px 25px; }
.sidebar-head strong { color: #2a3d2f; font-size: 20px; letter-spacing: -.03em; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 13px; color: #697b6c; background: transparent; border: 0; border-radius: 11px; cursor: pointer; text-align: left; text-decoration: none; font-size: 13px; font-weight: 650; transition: color .18s ease, background .18s ease; }
.nav-item:hover { color: #2e7055; background: #f3f8f1; }
.nav-item.is-active { color: #2d7357; background: #e9f3e6; font-weight: 750; }
.nav-icon { width: 19px; flex: none; text-align: center; font-size: 18px; line-height: 1; }
.sidebar-foot { margin: auto 12px 0; padding-top: 18px; color: #9aa89d; border-top: 1px solid #edf1eb; font-size: 11px; line-height: 1.7; }
.dashboard-main { min-width: 0; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 3px 0 26px; }
.page-intro h1 { margin: 4px 0 7px; color: #26372c; font-size: clamp(25px, 2.7vw, 33px); letter-spacing: -.04em; }
.page-intro p { max-width: 720px; margin: 0; color: #819084; font-size: 12px; line-height: 1.7; }
.page-intro .count-pill { flex: none; }
.overview { margin: 0 0 27px; }
.overview .section-heading { align-items: center; margin-bottom: 12px; }
.overview .section-heading h2 { margin: 0; font-size: 15px; }
.overview .stat-card { min-height: 104px; padding: 15px 19px; }
.overview .stat-card strong { font-size: 29px; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 13px; }
.toolbar-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; }
.toolbar-title h2 { margin: 0; color: #2a3c2f; font-size: 18px; }
.selection-count { color: #8c9b8e; font-size: 11px; }
.toolbar-controls-scroll { display: flex; align-items: center; gap: 16px; min-width: 0; max-width: 100%; margin-left: auto; overflow-x: auto; scrollbar-width: thin; }
.bulk-controls { display: flex; flex: none; align-items: center; gap: 8px; }
.bulk-controls select { width: 125px; min-height: 36px; padding: 6px 9px; font-size: 11px; }
.bulk-controls .button { white-space: nowrap; }
.products-filters { display: flex; flex: none; align-items: center; gap: 12px; }
.filter-field { display: inline-flex; flex: none; align-items: center; gap: 6px; color: #617565; font-size: 11px; font-weight: 700; white-space: nowrap; }
.filter-field input, .filter-field select { min-height: 36px; padding: 7px 10px; font-size: 12px; font-weight: 500; }
.products-filters select { width: 115px; }
.products-filters input { width: 140px; }
.filter-field input::placeholder { font-size: 11px; }
.filter-empty { margin-top: 0; }
.products-table-wrap { background: #fff; border: 1px solid #e5ebe3; border-radius: 16px; box-shadow: 0 8px 30px #324c3510; overflow-x: auto; }
.products-table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.products-table th { padding: 16px 10px; color: #7f8f82; background: #f8faf7; border-bottom: 1px solid #e9eee7; text-align: left; font-size: 11px; font-weight: 750; white-space: nowrap; }
.sort-header { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0; color: inherit; background: transparent; border: 0; font-size: inherit; font-weight: inherit; white-space: nowrap; }
.sort-header:hover, .products-table th[aria-sort="ascending"] .sort-header, .products-table th[aria-sort="descending"] .sort-header { color: #2d7357; }
.sort-icon { color: #9aab9c; font-size: 14px; font-weight: 700; line-height: 1; }
.products-table th[aria-sort="ascending"] .sort-icon, .products-table th[aria-sort="descending"] .sort-icon { color: #2d7357; }
.products-table td { padding: 17px 10px; color: #415546; border-bottom: 1px solid #edf1ec; vertical-align: top; font-size: 12px; }
.products-table tbody tr:last-child td { border-bottom: 0; }
.products-table tbody tr:hover { background: #fbfdf9; }
.products-table th:nth-child(1), .products-table td:nth-child(1) { width: 43px; padding-left: 17px; }
.products-table th:nth-child(2), .products-table td:nth-child(2) { width: 9%; }
.products-table th:nth-child(3), .products-table td:nth-child(3) { width: 20%; }
.products-table th:nth-child(4), .products-table td:nth-child(4) { width: 7%; }
.products-table th:nth-child(5), .products-table td:nth-child(5) { width: 8%; }
.products-table th:nth-child(6), .products-table td:nth-child(6) { width: 7%; }
.products-table th:nth-child(7), .products-table td:nth-child(7) { width: 125px; }
.products-table th:nth-child(8), .products-table td:nth-child(8) { width: 150px; }
.products-table th:nth-child(9), .products-table td:nth-child(9) { width: 165px; }
.products-table input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: #377d5d; cursor: pointer; }
.shop-name { display: block; color: #536757; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.title-button { display: block; width: 100%; margin: -3px 0 0; padding: 0; color: #263c2d; background: transparent; border: 0; text-align: left; font-size: 13px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.title-button:hover { color: #2d7357; text-decoration: underline; }
.status-cell { white-space: nowrap; }
.status-cell .status-pill { padding: 3px 7px; font-size: 9px; }
.status-next-time { display: block; margin-top: 7px; color: #9aa79b; font-size: 10px; line-height: 1.5; }
.action-cell { white-space: nowrap; }
.action-cell .button { padding-inline: 9px; white-space: nowrap; }
.action-cell .button + .button { margin-left: 6px; }
.row-error { margin: 7px 0 0; color: #a65f57; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.number-cell strong { display: block; color: #304633; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.number-cell strong.value-positive { color: #337c59; }
.number-cell strong.value-negative { color: #b35e55; }
.number-cell strong.value-muted, .value-muted { color: #a3aea3; font-weight: 500; }
.cell-hint { display: block; margin-top: 2px; color: #9ba79b; font-size: 10px; }
.open-link { color: #347b59; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.open-link:hover { text-decoration: underline; }
.row-interval-select { min-width: 105px; padding: 7px 8px; font-size: 11px; }
.interval-cell .interval-message { display: block; margin-top: 5px; font-size: 10px; }
.button-danger { color: #a9514f; background: #fff8f5; border-color: #f1d8d0; box-shadow: none; }
.button-danger:not(:disabled):hover { color: #943e3d; background: #fff0eb; border-color: #e8bbb0; }
.products-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 16px; margin-top: 13px; padding: 2px 3px; overflow-x: auto; scrollbar-width: thin; }
.page-summary, .page-indicator { flex: none; color: #7c8e80; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pagination-controls { display: flex; flex: none; align-items: center; gap: 10px; white-space: nowrap; }
.pagination-controls .button { flex: none; min-width: 68px; }
.filter-page-size select { width: 82px; min-height: 36px; padding: 6px 8px; }
.form-page-card { max-width: 680px; padding: 29px 31px; background: #fff; border: 1px solid #e5ebe3; border-radius: 20px; box-shadow: 0 15px 45px #324c3510; }
.form-page-card label { display: block; margin: 17px 0 8px; color: #435546; font-size: 12px; font-weight: 700; }
.form-page-card label:first-child { margin-top: 0; }
.form-page-card .button { margin-top: 22px; }
#product-input { min-height: 190px; }
.add-input-hint { margin: 7px 0 0; color: #7f9182; font-size: 11px; line-height: 1.6; }
.add-input-hint.is-error { color: #a04e49; }
.add-input-hint.is-success { color: #357c5a; }
.page-view > .account-card { max-width: 690px; }
.empty-state .button { margin-top: 20px; }

@media (max-width: 1040px) {
  .app-shell { padding: 0 30px; }
  .dashboard-layout { grid-template-columns: 196px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 800px) {
  .dashboard-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 19px; }
  .sidebar { position: static; min-height: 0; padding: 9px; border-radius: 14px; }
  .sidebar-head, .sidebar-foot { display: none; }
  .sidebar-nav { display: flex; gap: 3px; overflow-x: auto; }
  .nav-item { flex: 0 0 auto; width: auto; min-height: 40px; padding: 0 12px; white-space: nowrap; }
}

@media (max-width: 620px) {
  .app-shell { padding: 0 15px; }
  .dashboard-layout { padding-bottom: 36px; }
  .page-intro { align-items: start; flex-wrap: wrap; margin-bottom: 20px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro .count-pill { margin-top: 10px; }
  .overview { margin: 0 0 24px; }
  .products-toolbar { align-items: flex-start; }
  .toolbar-controls-scroll { flex-basis: 100%; margin-left: 0; }
  .products-pagination { flex-wrap: wrap; gap: 8px; overflow-x: visible; }
  .page-summary { width: 100%; }
  .pagination-controls { width: 100%; max-width: 100%; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
  .pagination-controls .button { min-width: 62px; padding-inline: 8px; }
  .filter-page-size select { width: 72px; }
  .form-page-card { padding: 22px 18px; }
}
