/* Administrative workspace: consistent hierarchy, compact controls, responsive inspection. */
:root {
  --admin-font:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --accent:#315cdb;
  --accent-deep:#244ab9;
  --accent-soft:#e9efff;
  --accent-pale:#f3f6ff;
  --ink:#1d293d;
  --muted:#68768b;
  --faint:#8a96a8;
  --line:#e0e6ef;
  --line-soft:#edf1f6;
  --canvas:#f4f6fa;
  --surface:#fff;
  --sidebar:#131e32;
  --sidebar-muted:#a4b1c7;
  --danger:#c44848
}
body {
  background:var(--canvas);
  font-family:var(--admin-font);
  font-size:13px;
  color:var(--ink);
  font-variant-numeric:tabular-nums
}
button,input,select,textarea {
  font-family:inherit
}
button,a,input,select,textarea {
  transition:background-color .14s,border-color .14s,box-shadow .14s
}
button:focus-visible,a:focus-visible {
  outline:2px solid #7898f2;
  outline-offset:3px
}
input:focus,select:focus,textarea:focus {
  outline:none;
  border-color:#7898f2!important;
  box-shadow:0 0 0 3px #315cdb15!important
}
button:disabled {
  opacity:.42
}
a {
  color:var(--accent-deep)
}
.admin-shell {
  grid-template-columns:224px minmax(0,1fr)
}
.admin-main {
  min-width:0;
  padding:24px 28px 48px
}
.admin-main>section {
  max-width:1660px;
  margin-inline:auto
}
.sidebar {
  padding:24px 14px 14px;
  background:var(--sidebar);
  border:0;
  color:#e5ebf5
}
.brand-lockup {
  padding:0 12px;
  gap:12px
}
.brand-symbol {
  background:var(--accent);
  border-radius:11px;
  box-shadow:none
}
.brand-lockup strong {
  font-size:19px;
  color:#fff
}
.brand-lockup small {
  font-size:10px;
  color:#8d9db7
}
.sidebar-label {
  margin:30px 12px 10px;
  color:#6e819e;
  font-size:10px;
  letter-spacing:.06em
}
.side-nav {
  padding:0 0 16px;
  scrollbar-color:#34445e transparent
}
.side-nav>a,.nav-group-toggle {
  min-height:40px;
  font-size:12px;
  gap:11px;
  padding:10px 12px;
  color:var(--sidebar-muted);
  border-radius:6px;
  font-weight:500
}
.nav-group-toggle .nav-icon,.side-nav>a .nav-icon {
  width:17px;
  height:17px
}
.side-nav>a:hover,.nav-group-toggle:hover,.side-nav .nav-children a:hover {
  background:#1d2c46;
  color:#fff
}
.nav-group.has-active>.nav-group-toggle {
  color:#e7efff
}
.nav-children {
  margin:2px 0 6px;
  padding:0;
  border:0
}
.side-nav .nav-children a {
  margin:2px 0;
  padding:8px 12px 8px 40px;
  min-height:34px;
  font-size:12px;
  color:var(--sidebar-muted);
  border-radius:5px;
  line-height:1.5
}
.side-nav a.active,.side-nav .nav-children a.active {
  color:#fff;
  background:#253c68;
  font-weight:600
}
.side-nav .nav-children a::before {
  display:none
}
.side-nav a.active::after {
  content:"";
  position:absolute;
  left:0;
  top:9px;
  bottom:9px;
  width:3px;
  background:#80a3ff;
  border-radius:0 3px 3px 0
}
.sidebar-account {
  padding:16px 10px 0;
  border-color:#2b3850;
  gap:10px
}
.sidebar-account strong {
  font-size:12px;
  color:#eef3fb
}
.sidebar-account small {
  font-size:10px;
  color:#96a7bf
}
.sidebar-account button {
  color:#9eacc4
}
.admin-avatar {
  background:#293b59;
  color:#bdcfff
}
.workspace-bar {
  height:56px;
  min-height:56px;
  margin:-24px -28px 25px;
  padding:0 28px;
  border-bottom:1px solid var(--line);
  background:#fff;
  justify-content:space-between;
  gap:16px
}
.workspace-breadcrumb,.workspace-tools {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:11px
}
.workspace-breadcrumb>span {
  color:var(--muted)
}
.workspace-breadcrumb i {
  color:#b6c0ce;
  font-style:normal
}
.workspace-breadcrumb strong {
  font-weight:600
}
.workspace-tools {
  gap:22px
}
.workspace-session {
  color:var(--muted);
  display:flex;
  gap:7px;
  align-items:center
}
.workspace-session i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#44a47b
}
.workspace-app-link {
  font-size:11px;
  color:var(--muted)
}
.admin-top {
  margin-bottom:22px;
  gap:18px;
  align-items:center
}
.admin-top .eyebrow,.eyebrow {
  font-size:10px;
  letter-spacing:.03em;
  color:var(--muted);
  margin-bottom:6px
}
.admin-top h1 {
  font:650 25px/1.35 var(--admin-font);
  letter-spacing:-.025em;
  margin:0
}
.admin-top p {
  font-size:12px;
  line-height:1.65;
  margin-top:7px;
  max-width:850px;
  color:var(--muted)
}
.primary-action,.secondary-action {
  min-height:36px;
  padding:8px 15px;
  font-size:12px;
  font-weight:500;
  border-radius:6px;
  box-shadow:none;
  line-height:1.5;
  white-space:nowrap
}
.primary-action {
  background:var(--accent);
  border:1px solid var(--accent);
  color:#fff
}
.primary-action:hover:not(:disabled) {
  background:var(--accent-deep);
  box-shadow:0 2px 5px #315cdb20
}
.secondary-action {
  background:#fff;
  border:1px solid var(--line);
  color:#43526a
}
.secondary-action:hover:not(:disabled) {
  background:#f6f8fc;
  border-color:#b7c4d7
}
.danger-action {
  background:var(--danger);
  border-color:var(--danger)
}
.text-action {
  font-size:11px;
  color:var(--accent);
  padding:4px 0
}
.ops-header-actions {
  gap:8px
}
.editor-state {
  font-size:10px;
  color:var(--muted)
}
/* Filters use two intentional rows, with a single bounded date-range control. */
.ops-query-panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:17px 20px;
  margin-bottom:18px
}
.ops-query-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px
}
.ops-query-heading h2,.ops-results-heading h2 {
  font-size:12px;
  font-weight:600;
  margin:0
}
.ops-filter-bar {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:end;
  gap:14px 16px;
  padding:0;
  margin:0;
  border:0
}
.ops-filter-bar label,.ops-date-filter {
  display:grid;
  gap:7px;
  min-width:0;
  font-size:11px;
  color:var(--muted);
  margin:0
}
.ops-filter-bar input,.ops-filter-bar select {
  height:38px;
  min-height:38px;
  border-radius:6px;
  padding:0 10px;
  font-size:12px;
  background:#fff;
  min-width:0;
  max-width:100%;
  color:var(--ink)
}
.ops-date-filter {
  grid-column:span 2
}
.ops-date-range {
  height:38px;
  border:1px solid var(--line);
  border-radius:6px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  background:#fff;
  min-width:0
}
.ops-date-range:focus-within {
  border-color:#7898f2;
  box-shadow:0 0 0 3px #315cdb15
}
.ops-date-range input {
  width:0;
  flex:1;
  border:0!important;
  box-shadow:none!important;
  padding:0;
  height:34px;
  min-height:34px;
  font-size:11px
}
.ops-date-range input::-webkit-calendar-picker-indicator {
  width:13px;
  height:13px;
  opacity:.5;
  margin:0;
  padding:2px
}
.ops-date-range>span {
  font-size:11px;
  color:#a2aec0;
  flex-shrink:0
}
.ops-filter-bar .ops-search {
  min-width:0;
  grid-column:span 4
}
.ops-filter-actions {
  grid-column:span 2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  height:38px
}
.ops-filter-actions>.primary-action {
  display:flex;
  align-items:center;
  gap:7px;
  height:38px;
  padding-inline:17px
}
.ops-filter-actions svg {
  height:14px;
  width:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7
}
.ops-quick-dates {
  display:flex;
  align-items:center;
  gap:3px
}
.ops-quick-dates button {
  padding:6px 8px;
  min-height:29px;
  background:transparent;
  border:0;
  border-radius:4px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap
}
.ops-quick-dates button:hover {
  background:#f1f4fa;
  color:var(--accent)
}
.ops-quick-dates button[aria-pressed=true] {
  background:var(--accent-soft);
  color:var(--accent)
}
[data-collection=media] .ops-filter-bar {
  grid-template-columns:repeat(7,minmax(0,1fr))
}
[data-collection=media] .ops-search {
  grid-column:span 5
}
.ops-stats {
  gap:0;
  align-items:stretch;
  margin:0 0 22px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden
}
.ops-stats>div {
  padding:15px 20px;
  flex:1;
  min-width:130px;
  gap:7px;
  border-right:1px solid var(--line-soft)
}
.ops-stats span {
  font-size:10px
}
.ops-stats strong {
  font-size:25px;
  font-weight:600;
  letter-spacing:-.03em;
  color:var(--ink)
}
.ops-results-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:11px;
  min-height:22px
}
.ops-results-heading .ops-notice {
  margin:0;
  min-height:0;
  font-size:10px;
  text-align:right
}
.ops-notice.is-error {
  color:var(--danger)
}
/* Tables retain horizontal scrolling inside their own panel, never the page. */
.table-panel,.operation-stream {
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:none;
  background:#fff;
  overflow:hidden
}
.table-scroll {
  max-width:100%;
  max-height:calc(100dvh - 260px);
  overflow:auto;
  scrollbar-width:thin
}
.data-table {
  width:100%;
  border-collapse:collapse
}
.data-table th {
  height:43px;
  padding:0 16px;
  background:#f8fafd;
  color:#748198;
  font-size:10px;
  font-weight:500;
  white-space:nowrap;
  position:sticky;
  top:0;
  z-index:1;
  border-bottom:1px solid var(--line)
}
.data-table td {
  padding:15px 16px;
  font-size:12px;
  border-bottom:1px solid var(--line-soft);
  line-height:1.6;
  vertical-align:middle
}
.data-table tbody tr:last-child td {
  border-bottom:0
}
.data-table tbody tr:hover {
  background:#f8faff
}
.ops-table {
  min-width:860px
}
.ops-table td:first-child {
  width:29%;
  min-width:200px;
  max-width:390px
}
.ops-table td:nth-child(2) {
  width:18%;
  min-width:125px
}
.ops-table td:nth-child(3) {
  min-width:95px
}
.ops-table td:nth-child(4) {
  min-width:75px
}
.ops-table td:nth-child(5),.ops-table td:nth-child(6) {
  min-width:110px
}
.ops-table td:last-child {
  width:112px;
  min-width:112px
}
.ops-table td>strong {
  font-size:12px;
  font-weight:500;
  line-height:1.6
}
.ops-table td>small {
  font-size:10px;
  margin-top:4px;
  color:var(--muted)
}
.ops-table td:first-child>small:last-child {
  font-family:Consolas,monospace;
  font-size:9px;
  color:#99a4b4;
  max-width:250px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.row-action,.category-row-actions button {
  min-height:29px;
  padding:5px 10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:5px;
  color:#43526a;
  font-size:11px;
  font-weight:400;
  line-height:1.5
}
.row-action:hover {
  border-color:#9ab0e9;
  color:var(--accent);
  background:var(--accent-pale)
}
.ops-table td>.record-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#f0f3f7;
  color:#647187;
  padding:3px 8px;
  font-size:10px;
  font-weight:500;
  border-radius:4px;
  white-space:nowrap
}
.record-status::before {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor
}
.record-status:is([data-status=active],[data-status=approved],[data-status=completed],[data-status=resolved],[data-status=normal],[data-status=delivered]) {
  color:#288260;
  background:#edf8f2
}
.record-status:is([data-status=pending],[data-status=waiting],[data-status=processing],[data-status=needs_info]) {
  color:#a17220;
  background:#fff7e6
}
.record-status:is([data-status=rejected],[data-status=hidden],[data-status=failed],[data-status=blocked],[data-status=disabled]) {
  color:#bc4b4b;
  background:#fff0f0
}
.record-status:is([data-status=read],[data-status=playing],[data-status=published]) {
  color:var(--accent);
  background:var(--accent-soft)
}
.ops-pagination {
  padding:13px 16px;
  gap:10px;
  font-size:10px;
  background:#fff
}
.ops-pagination label {
  display:flex;
  align-items:center;
  gap:5px
}
.ops-pagination select {
  height:30px;
  margin:0;
  padding:3px 6px;
  font-size:11px
}
.ops-pagination button {
  min-height:30px;
  padding:5px 10px;
  font-size:10px
}
.empty-state {
  padding:55px 20px;
  font-size:12px;
  color:var(--muted)
}
.ops-media-thumb {
  width:82px;
  height:64px;
  margin:0 12px 3px 0;
  background:#f3f5f9;
  border-radius:5px
}
.count-badge,.status-badge {
  font-size:10px;
  min-height:23px;
  padding:3px 8px;
  border-radius:4px
}
.table-number {
  font:600 14px var(--admin-font)
}
/* Overview and finance use a shared metric strip and aligned functional sections. */
.overview-kpis,.finance-kpis,.menu-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  gap:0;
  margin-bottom:20px
}
.overview-kpis article,.finance-kpis>div,.menu-stats>div {
  padding:19px 22px;
  min-width:0;
  border:0;
  border-right:1px solid var(--line-soft);
  gap:7px
}
.overview-kpis article:last-child,.finance-kpis>div:last-child,.menu-stats>div:last-child {
  border-right:0
}
.overview-kpis span,.finance-kpis span,.menu-stats span {
  font-size:11px;
  color:var(--muted)
}
.overview-kpis strong,.overview-kpis .kpi-primary strong,.finance-kpis strong,.menu-stats strong {
  font:600 28px/1.2 var(--admin-font);
  letter-spacing:-.03em
}
.overview-kpis small,.finance-kpis small {
  font-size:10px;
  line-height:1.6
}
.overview-kpis .kpi-primary strong {
  color:var(--ink)
}
.overview-kpis .kpi-attention strong {
  color:var(--accent)
}
.overview-grid {
  grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);
  gap:20px;
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible
}
.overview-column {
  padding:0;
  min-width:0;
  border:0;
  display:grid;
  gap:20px;
  align-content:start
}
.overview-grid .data-panel,.data-panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:21px 22px;
  box-shadow:none
}
.overview-grid .trend-panel,.overview-grid .pending-panel {
  padding:21px 22px;
  margin:0;
  border:1px solid var(--line)
}
.panel-heading {
  align-items:center;
  margin-bottom:20px;
  gap:14px
}
.panel-heading h2,.table-title h2 {
  font-size:14px;
  font-weight:600;
  margin:0
}
.panel-description {
  font-size:10px;
  line-height:1.7;
  margin-top:5px
}
.trend-summary {
  font-size:11px;
  color:var(--muted)
}
.trend-layout {
  grid-template-columns:25px minmax(0,1fr);
  gap:12px
}
.trend-chart {
  height:210px;
  gap:15px
}
.trend-axis {
  height:172px;
  font-size:10px
}
.trend-value {
  font-size:10px
}
.trend-column small {
  font-size:10px
}
.trend-bars i {
  width:min(25px,60%);
  border-radius:4px 4px 0 0;
  background:var(--accent);
  opacity:.85
}
.activity-item {
  min-height:65px;
  padding:13px 0;
  gap:11px
}
.activity-copy strong {
  font-size:12px;
  font-weight:500
}
.activity-copy small {
  font-size:11px
}
.activity-item time {
  font-size:10px
}
.pending-item strong {
  font-size:12px
}
.pending-item small {
  font-size:10px
}
.pending-icon {
  width:31px;
  height:31px;
  font-size:12px;
  border-radius:6px
}
.pending-all {
  font-size:11px;
  margin-top:8px;
  min-height:32px
}
.empty-inline {
  min-height:130px;
  font-size:11px
}
.category-row {
  grid-template-columns:minmax(65px,.6fr) 1fr auto;
  gap:10px
}
.category-row>span {
  font-size:11px
}
.category-row strong {
  font:600 11px var(--admin-font)
}
.category-track {
  height:5px
}
.finance-grid {
  grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);
  gap:20px
}
.finance-month small {
  font-size:11px
}
.budget-item {
  padding:14px 0;
  gap:10px
}
.budget-item strong {
  font-size:12px
}
.budget-item small,.budget-item button {
  font-size:11px
}
.table-title {
  padding:18px 20px
}
.finance-table {
  min-width:840px
}
.toolbar-line {
  min-height:64px;
  padding:13px 16px;
  gap:10px;
  border-radius:9px;
  background:#fff;
  flex-wrap:wrap
}
.toolbar-line select {
  height:36px;
  min-height:36px;
  min-width:130px;
  max-width:210px;
  font-size:12px;
  border-radius:6px
}
.wide-search {
  min-width:180px;
  max-width:400px
}
.search-box {
  height:36px;
  min-height:36px;
  border-radius:6px
}
.search-box input {
  height:33px;
  min-height:33px;
  font-size:12px
}
.result-count {
  font-size:10px;
  padding-right:0
}
.month-control {
  min-width:160px
}
.month-control>span {
  font-size:11px
}
.month-control input {
  height:36px;
  min-height:36px;
  font-size:12px;
  border-radius:6px
}
.user-group-table {
  min-width:1020px
}
.user-cell strong,.stacked-cell strong,.member-name-line strong {
  font-size:12px;
  font-weight:500
}
.user-cell small,.stacked-cell small,.group-member small {
  font-size:10px
}
.mini-avatar {
  width:30px;
  height:30px;
  border-radius:7px;
  font-size:12px
}
.group-members.is-paired {
  gap:12px
}
.member-name-line em,.group-metric em {
  font-size:9px
}
.group-status-list .status-badge {
  min-width:0;
  font-size:10px
}
.member-action {
  font-size:10px;
  padding:5px 8px
}
.group-metric {
  font-size:11px
}
.segmented-control {
  border-radius:6px
}
.segmented-control button {
  font-size:12px;
  min-height:34px;
  padding-inline:16px
}
.operation-entry {
  min-height:76px;
  grid-template-columns:105px 32px minmax(0,1fr) auto;
  padding:15px 18px;
  gap:14px
}
.operation-entry time {
  font-size:10px
}
.operation-symbol {
  width:32px;
  height:32px;
  font-size:12px;
  border-radius:6px
}
.operation-content strong {
  font-size:12px
}
.operation-content small {
  font-size:10px
}
/* Menu editing: compact library at left; ingredients and steps side by side. */
.menu-account-context,.menu-account-context.is-missing {
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:18px 20px;
  grid-template-columns:minmax(0,1fr) auto minmax(230px,300px);
  gap:22px;
  box-shadow:none;
  color:var(--ink);
  margin-bottom:18px
}
.menu-account-copy h2 {
  font-size:16px;
  color:var(--ink)
}
.menu-account-copy p {
  font-size:11px;
  color:var(--muted)
}
.menu-account-copy .section-kicker {
  font-size:10px;
  color:var(--muted)
}
.menu-account-selector>span,.menu-account-count span,.menu-account-count small {
  font-size:10px;
  color:var(--muted)
}
.menu-account-count strong {
  font-size:24px;
  color:var(--ink)
}
.menu-account-selector select {
  font-size:12px;
  min-height:38px;
  border-color:var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:6px
}
.content-workspace {
  grid-template-columns:280px minmax(0,1fr);
  gap:20px;
  align-items:start
}
.dish-library {
  position:sticky;
  top:20px;
  max-height:calc(100dvh - 40px);
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:none;
  overflow:hidden
}
.library-toolbar {
  padding:14px;
  gap:8px
}
.library-toolbar select,.library-toolbar input {
  min-height:34px;
  font-size:11px;
  border-radius:5px
}
.library-heading {
  padding:14px;
  font-size:12px
}
.library-heading strong {
  font-size:12px
}
.library-heading>small {
  font-size:10px
}
.dish-list {
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  padding:0 10px 12px;
  grid-auto-rows:max-content
}
.dish-list-item {
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  border:1px solid var(--line-soft);
  border-radius:6px;
  min-height:88px;
  overflow:hidden;
  background:#fff
}
.dish-list-item>img,.dish-card-image {
  width:76px;
  height:100%;
  min-height:86px;
  aspect-ratio:auto;
  object-fit:cover
}
.dish-card-copy {
  padding:10px;
  display:grid;
  gap:8px;
  min-width:0
}
.dish-card-title strong {
  font-size:12px;
  line-height:1.5
}
.dish-card-title small {
  font-size:10px;
  line-height:1.5
}
.dish-card-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px
}
.dish-card-meta b {
  font:600 12px var(--admin-font)
}
.dish-card-meta small,.status-dot {
  font-size:9px
}
.status-dot {
  min-height:20px;
  padding:2px 6px
}
.recipe-editor {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:none;
  min-width:0
}
.recipe-editor>* {
  min-width:0
}
.recipe-editor>.editor-heading,.recipe-editor>.image-and-basics,.recipe-editor>.ai-studio,.recipe-editor>.editor-section:first-of-type,.recipe-editor>.editor-section:last-of-type,.recipe-editor>input,.recipe-editor>.form-error {
  grid-column:1/-1
}
.recipe-editor>.editor-section:has(.metric-fields) {
  grid-column:1/-1
}
.editor-heading {
  position:static;
  grid-column:1/-1;
  margin:-24px -24px 0;
  padding:19px 24px;
  border-radius:9px 9px 0 0;
  gap:14px;
  background:#fff;
  border-bottom:1px solid var(--line)
}
.editor-heading h2 {
  font-size:18px
}
.editor-owner-line,.editor-owner-line strong,.dirty-note {
  font-size:10px
}
.editor-actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.editor-actions button {
  font-size:11px;
  min-height:33px;
  padding-inline:11px
}
.image-and-basics {
  grid-template-columns:minmax(170px,.8fr) minmax(220px,1.2fr);
  gap:20px
}
.dish-image-picker {
  min-height:232px
}
.image-overlay b {
  font-size:12px
}
.image-overlay small {
  font-size:10px
}
.basic-fields {
  gap:13px
}
.basic-fields label>span,.metric-fields label>span {
  font-size:11px;
  font-weight:500
}
.basic-fields input,.basic-fields select,.metric-fields input,.metric-fields select {
  font-size:12px;
  min-height:36px;
  border-radius:6px
}
.ai-studio {
  padding:15px;
  border-radius:6px
}
.ai-studio strong {
  font-size:12px
}
.ai-studio p {
  font-size:10px
}
.ai-action {
  font-size:11px;
  min-height:32px;
  border-radius:5px;
  box-shadow:none
}
.editor-section {
  padding-top:18px;
  border-top:1px solid var(--line-soft)
}
.section-heading {
  gap:8px;
  margin-bottom:13px
}
.section-heading h3 {
  font-size:13px
}
.section-heading span {
  font-size:10px
}
.section-heading p {
  font-size:10px;
  line-height:1.6
}
.metric-fields {
  gap:14px
}
.large-field textarea {
  font-size:12px;
  height:225px;
  min-height:150px;
  border-radius:6px
}
.large-field textarea[name=tips] {
  height:105px;
  min-height:85px
}
.large-field small {
  font-size:10px
}
.category-management-workspace {
  grid-template-columns:280px minmax(0,1fr);
  gap:20px;
  align-items:start
}
.category-create-panel,.category-list-panel {
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:none
}
.category-create-panel {
  padding:20px
}
.category-create-panel h2,.category-list-heading h2 {
  font-size:16px
}
.category-create-panel p {
  font-size:11px;
  line-height:1.7
}
.category-create-panel input {
  font-size:12px;
  min-height:36px;
  border-radius:6px
}
.category-list-heading {
  padding:20px
}
.category-admin-row {
  grid-template-columns:20px 92px minmax(0,1fr) auto;
  gap:12px;
  padding:16px
}
.category-cover-preview {
  width:92px;
  height:66px;
  border-radius:5px
}
.category-edit-field input {
  font-size:13px;
  min-height:36px;
  border-radius:5px
}
.category-edit-field small,.category-cover-caption {
  font-size:10px
}
.category-row-actions {
  max-width:190px;
  gap:6px
}
.category-row-actions .category-open-action {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent)
}
/* Persistent inspector heading and action footer, independently scrolling content. */
.admin-dialog {
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 20px 80px #14234429;
  color:var(--ink)
}
.admin-dialog::backdrop,.drawer-backdrop {
  background:#10213b55;
  backdrop-filter:blur(2px)
}
.admin-dialog form {
  padding:26px;
  gap:18px
}
.dialog-heading {
  gap:20px;
  align-items:flex-start
}
.dialog-heading h2 {
  font-size:20px;
  line-height:1.4;
  letter-spacing:-.02em
}
.dialog-heading p {
  font-size:11px;
  line-height:1.7
}
.dialog-heading>button,.drawer-close {
  width:30px;
  height:30px;
  flex-shrink:0;
  border:0;
  border-radius:5px;
  background:#f1f4f9;
  color:var(--muted);
  font-size:23px
}
.admin-dialog label,.admin-dialog label>span,.detail-drawer form>label>span {
  font-size:11px;
  font-weight:500
}
.admin-dialog input,.admin-dialog select,.admin-dialog textarea,.detail-drawer input {
  font-size:12px;
  border-radius:6px;
  min-height:36px
}
.ops-detail-dialog {
  position:fixed;
  inset:0 0 0 auto;
  width:min(820px,calc(100vw - 24px));
  height:100dvh;
  max-height:100dvh;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-left:1px solid var(--line);
  border-radius:0;
  overflow:hidden;
  box-shadow:-10px 0 60px #14234429
}
.ops-detail-dialog[open] {
  display:flex;
  flex-direction:column
}
.ops-detail-dialog>.dialog-heading {
  flex:0 0 auto;
  padding:22px 26px 18px;
  margin:0;
  border-bottom:1px solid var(--line);
  background:#fff
}
.ops-detail-dialog>.dialog-heading h2 {
  margin:5px 0;
  font-size:20px
}
.ops-detail-dialog>.dialog-heading p {
  margin:0;
  max-width:650px;
  overflow-wrap:anywhere
}
.ops-detail-dialog>.dialog-heading>button {
  background:#f1f4f9;
  font-size:23px
}
.ops-detail-dialog>#opsDetailStatus {
  flex:0 0 auto;
  margin:0;
  padding:9px 26px;
  font-size:10px;
  background:#f8fafd;
  border-bottom:1px solid var(--line-soft);
  min-height:34px
}
.ops-detail-scroll {
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 26px 26px;
  scrollbar-width:thin
}
.ops-detail-dialog #opsEditForm {
  padding:0;
  margin-top:25px;
  display:block;
  border-top:1px solid var(--line)
}
.ops-detail-dialog #opsEditForm[hidden] {
  display:none
}
.ops-detail-dialog h3 {
  font-size:13px;
  font-weight:600;
  margin:24px 0 14px
}
.ops-facts {
  grid-template-columns:115px minmax(0,1fr);
  gap:12px 20px;
  margin:22px 0 28px;
  font-size:12px;
  line-height:1.8
}
.ops-facts dt {
  color:#7a879a;
  font-size:11px
}
.ops-inner-table {
  font-size:11px;
  line-height:1.8
}
.ops-inner-table td {
  padding:10px 8px
}
.ops-inner-table tr:nth-child(odd) {
  background:#f9fbfd
}
.ops-detail-dialog label {
  font-size:11px;
  margin:14px 0;
  gap:7px
}
.ops-detail-dialog input,.ops-detail-dialog select,.ops-detail-dialog textarea {
  font-size:12px;
  min-height:36px;
  border-radius:6px;
  padding:8px 10px
}
.ops-detail-actions {
  gap:8px;
  margin:18px 0
}
.ops-detail-dialog>#opsRecordActions {
  flex:0 0 auto;
  padding:14px 26px;
  margin:0;
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow:0 -5px 15px #23355b05
}
.ops-detail-dialog>#opsRecordActions:empty {
  display:none
}
.ops-detail-dialog button {
  font-size:11px
}
.ops-purchase-summary {
  padding:20px 0;
  margin-bottom:10px
}
.ops-purchase-summary h3 {
  font-size:21px;
  margin:0 0 10px
}
.ops-purchase-summary>strong {
  font-size:22px;
  color:var(--ink)
}
.ops-purchase-summary p {
  font-size:11px
}
.ops-image-gallery {
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin:20px 0
}
.ops-photo-preview {
  height:205px;
  min-height:120px;
  background:#f3f5f9;
  border-radius:6px
}
.ops-photo-preview .ops-private-image {
  max-height:205px
}
.ops-photo figcaption {
  font-size:10px;
  line-height:1.7
}
.ops-photo .row-action {
  font-size:10px
}
.ops-record-metadata {
  margin-top:24px
}
.ops-record-metadata summary {
  font-size:11px
}
.ops-record-metadata .ops-facts {
  font-size:10px
}
.ops-detail-scroll #opsRestore {
  margin-top:25px
}
.ops-reason-dialog {
  width:min(460px,calc(100vw - 32px))
}
.ops-reason-dialog textarea {
  font-size:12px;
  border-radius:6px
}
.ops-image-dialog {
  padding:18px;
  border-radius:9px
}
.ops-image-dialog h2 {
  font-size:15px
}
.ops-image-dialog p {
  font-size:11px
}
.ops-image-viewport {
  background:#e9edf4;
  border-radius:5px
}
.detail-drawer {
  width:min(94vw,470px);
  padding:26px;
  background:#fff;
  box-shadow:-10px 0 60px #14234429
}
.drawer-profile {
  gap:14px;
  margin-bottom:20px
}
.large-avatar {
  width:54px;
  height:54px;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:22px
}
.drawer-profile h2 {
  font:600 22px var(--admin-font);
  margin:4px 0
}
.drawer-profile p {
  font-size:10px
}
.drawer-facts {
  gap:10px
}
.drawer-facts span {
  font-size:10px
}
.drawer-facts strong {
  font-size:13px
}
.switch-row b {
  font-size:12px
}
.switch-row small {
  font-size:10px
}
.account-avatar {
  background:#293b59;
  color:#bdcfff;
  border-radius:8px;
  font-size:12px
}
.brand-lockup>span {
  background:var(--accent);
  box-shadow:none;
  border:0;
  border-radius:10px
}
.side-nav {
  margin-top:0
}
.side-nav a:hover {
  transform:none
}
.side-nav>a.active::before {
  display:none
}
.admin-toast {
  font-size:12px;
  padding:12px 17px;
  background:#213452;
  border-radius:6px
}
.admin-toast.error {
  background:var(--danger)
}
/* Login uses the same workspace language and type scale. */
.auth-screen {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:80px;
  padding:100px max(7vw,40px);
  background:#fff;
  color:var(--ink);
  isolation:isolate
}
.auth-screen::before {
  position:absolute;
  inset:0 50% 0 0;
  width:auto;
  height:auto;
  background:var(--sidebar);
  border:0;
  border-radius:0;
  box-shadow:none;
  z-index:-1
}
.auth-screen::after {
  display:none
}
.auth-screen>.auth-brand {
  left:7vw;
  top:35px
}
.auth-screen>.auth-brand strong {
  color:#fff
}
.auth-screen>.auth-brand small {
  color:#8e9fba;
  font-size:10px
}
.brand-mark {
  border:0;
  border-radius:9px
}
.auth-intro {
  justify-self:start;
  max-width:430px;
  color:#fff
}
.auth-intro-label {
  font-size:11px;
  color:#8ca7de
}
.auth-intro h2 {
  font-size:32px;
  line-height:1.45;
  font-weight:600;
  margin:20px 0 14px;
  letter-spacing:-.03em
}
.auth-intro>p {
  font-size:13px;
  line-height:1.8;
  color:#9eafc8
}
.auth-intro-sections {
  display:grid;
  gap:24px;
  margin-top:65px
}
.auth-intro-sections>span {
  font-size:10px;
  color:#6f84a7;
  display:flex;
  gap:20px;
  align-items:center
}
.auth-intro-sections strong {
  font-size:12px;
  color:#bbcae0;
  font-weight:400
}
.auth-panel {
  width:min(100%,390px);
  padding:20px 0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#fff;
  gap:20px;
  animation:none;
  justify-self:center
}
.auth-panel h1 {
  font:600 26px var(--admin-font);
  letter-spacing:-.03em
}
.auth-panel>p:not(.form-error) {
  font-size:12px;
  margin-bottom:12px
}
.auth-panel label>span {
  font-size:11px;
  color:var(--ink);
  font-weight:500
}
.auth-panel input {
  min-height:43px;
  font-size:13px;
  border-radius:6px;
  background:#fff
}
.auth-submit {
  min-height:42px;
  font-size:12px;
  border-radius:6px;
  box-shadow:none
}
.auth-hint {
  font-size:10px;
  line-height:1.8
}
.form-error {
  font-size:11px
}
.auth-foot {
  left:7vw;
  font-size:10px;
  color:#7e90ab;
  letter-spacing:0
}
@media(min-width:1800px) {
  .admin-main {
    padding-inline:36px
  }
  .workspace-bar {
    margin-inline:-36px;
    padding-inline:36px
  }
  .trend-chart {
    height:235px
  }
  .trend-axis {
    height:197px
  }
  .content-workspace {
    grid-template-columns:310px minmax(0,1fr)
  }
}
@media(max-width:1250px) {
  .admin-shell {
    grid-template-columns:210px minmax(0,1fr)
  }
  .admin-main {
    padding-inline:24px
  }
  .workspace-bar {
    margin-inline:-24px;
    padding-inline:24px
  }
  .ops-filter-bar,[data-collection=media] .ops-filter-bar {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .ops-filter-bar .ops-search,[data-collection=media] .ops-search {
    grid-column:span 2
  }
  .ops-filter-actions {
    grid-column:1/-1;
    justify-content:flex-end
  }
  .ops-filter-bar .ops-date-filter {
    grid-column:span 2
  }
  .menu-account-context {
    grid-template-columns:minmax(0,1fr) minmax(200px,280px)
  }
  .menu-account-count {
    display:none
  }
  .menu-account-selector {
    grid-column:auto
  }
  .content-workspace {
    grid-template-columns:240px minmax(0,1fr)
  }
  .image-and-basics {
    grid-template-columns:1fr
  }
  .recipe-editor {
    grid-template-columns:1fr
  }
  .recipe-editor>* {
    grid-column:1!important
  }
  .editor-heading {
    flex-direction:column;
    align-items:stretch
  }
  .editor-actions {
    justify-content:flex-start
  }
  .category-management-workspace {
    grid-template-columns:1fr
  }
  .category-create-panel {
    position:static
  }
  .category-create-row {
    grid-template-columns:1fr auto
  }
  .category-admin-row {
    grid-template-columns:20px 92px minmax(0,1fr) auto
  }
  .overview-kpis article,.finance-kpis>div {
    padding:18px
  }
  .workspace-session {
    display:none
  }
}
@media(max-width:1000px) {
  .overview-grid {
    grid-template-columns:1fr
  }
  .overview-secondary {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px
  }
  .overview-primary {
    border:0
  }
  .finance-grid {
    grid-template-columns:1fr
  }
  .content-workspace {
    grid-template-columns:1fr
  }
  .dish-library {
    position:static;
    max-height:370px
  }
  .dish-list {
    grid-template-columns:1fr 1fr
  }
  .recipe-editor {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .recipe-editor>* {
    grid-column:auto!important
  }
  .recipe-editor>.editor-heading,.recipe-editor>.image-and-basics,.recipe-editor>.ai-studio,.recipe-editor>.editor-section:has(.metric-fields),.recipe-editor>.editor-section:last-of-type,.recipe-editor>input,.recipe-editor>.form-error {
    grid-column:1/-1!important
  }
  .recipe-editor .image-and-basics {
    grid-template-columns:minmax(180px,.8fr) minmax(210px,1.2fr)
  }
  .menu-account-context {
    grid-template-columns:minmax(0,1fr) 230px
  }
}
@media(max-width:860px) {
  .admin-shell {
    display:block
  }
  .sidebar {
    width:250px;
    padding:24px 14px 14px
  }
  .admin-main {
    padding:18px 22px 40px
  }
  .workspace-bar {
    display:none
  }
  .mobile-bar {
    margin-bottom:22px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
    gap:12px
  }
  .mobile-bar button {
    min-height:34px;
    font-size:12px;
    border-radius:6px;
    background:#fff;
    border:1px solid var(--line);
    color:var(--ink)
  }
  .mobile-bar .auth-brand strong {
    font-size:16px
  }
  .mobile-bar .auth-brand small {
    font-size:10px;
    color:var(--muted)
  }
  .mobile-bar .brand-mark {
    width:30px;
    height:30px;
    font-size:19px;
    border-radius:8px
  }
  .side-nav {
    max-height:none
  }
  .overview-kpis,.finance-kpis {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .overview-kpis article,.finance-kpis>div {
    border-right:1px solid var(--line-soft);
    border-bottom:1px solid var(--line-soft)
  }
  .overview-kpis article:nth-last-child(-n+2),.finance-kpis>div:nth-last-child(-n+2) {
    border-bottom:0
  }
  .operation-entry {
    grid-template-columns:100px 32px minmax(0,1fr)
  }
  .auth-screen {
    display:grid;
    grid-template-columns:1fr;
    background:#f5f7fb;
    padding:110px 24px 80px
  }
  .auth-screen::before,.auth-intro {
    display:none
  }
  .auth-panel {
    padding:30px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
    max-width:420px;
    width:100%
  }
  .auth-screen>.auth-brand {
    left:50%;
    transform:translateX(-50%);
    white-space:nowrap
  }
  .auth-screen>.auth-brand strong {
    color:var(--ink)
  }
  .auth-screen>.auth-brand small {
    color:var(--muted)
  }
  .auth-foot {
    left:0;
    right:0;
    text-align:center;
    color:var(--muted)
  }
  .ops-detail-dialog {
    width:min(780px,calc(100vw - 24px))
  }
}
@media(max-width:620px) {
  .admin-main {
    padding:16px 14px 32px
  }
  .admin-top {
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
    margin-bottom:18px
  }
  .admin-top h1 {
    font-size:23px
  }
  .admin-top p {
    font-size:11px;
    line-height:1.8;
    margin-top:6px
  }
  .admin-top .eyebrow {
    font-size:9px
  }
  .ops-header-actions {
    width:100%
  }
  .ops-header-actions button {
    min-height:33px;
    font-size:11px
  }
  .ops-query-panel {
    padding:15px 14px
  }
  .ops-query-heading {
    margin-bottom:13px
  }
  .ops-filter-bar,[data-collection=media] .ops-filter-bar {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px 10px
  }
  .ops-filter-bar label {
    min-width:0;
    font-size:10px
  }
  .ops-filter-bar .ops-search,[data-collection=media] .ops-search {
    grid-column:1/-1;
    grid-row:1
  }
  .ops-filter-bar .ops-date-filter {
    grid-column:1/-1
  }
  .ops-filter-actions {
    justify-content:space-between;
    grid-column:1/-1;
    margin-top:1px
  }
  .ops-filter-bar input,.ops-filter-bar select {
    font-size:11px
  }
  .ops-date-range input {
    font-size:12px
  }
  .ops-quick-dates button {
    padding:6px 7px;
    font-size:10px
  }
  .ops-stats {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-bottom:18px
  }
  .ops-stats>div {
    min-width:0;
    padding:13px 14px;
    border-bottom:1px solid var(--line-soft)
  }
  .ops-stats strong {
    font-size:23px
  }
  .ops-stats span {
    font-size:9px
  }
  .ops-results-heading {
    gap:10px
  }
  .ops-results-heading h2 {
    font-size:11px;
    flex-shrink:0
  }
  .ops-results-heading .ops-notice {
    font-size:9px
  }
  .ops-table {
    min-width:780px
  }
  .data-table td {
    padding:13px 14px
  }
  .table-scroll {
    max-height:calc(100dvh - 180px)
  }
  .ops-pagination {
    padding:12px;
    gap:8px;
    font-size:9px
  }
  .ops-pagination>span:first-child {
    width:100%
  }
  .ops-pagination button {
    font-size:10px;
    padding:5px 8px
  }
  .overview-kpis article,.finance-kpis>div {
    padding:15px 14px;
    gap:7px
  }
  .overview-kpis span,.finance-kpis span {
    font-size:10px
  }
  .overview-kpis strong,.overview-kpis .kpi-primary strong,.finance-kpis strong {
    font-size:25px
  }
  .overview-kpis small,.finance-kpis small {
    font-size:9px
  }
  .overview-grid {
    gap:16px
  }
  .overview-column {
    gap:16px
  }
  .overview-secondary {
    display:grid;
    grid-template-columns:1fr;
    gap:16px
  }
  .overview-grid .data-panel,.overview-grid .pending-panel,.overview-grid .trend-panel,.data-panel {
    padding:18px 15px;
    margin:0;
    border:1px solid var(--line)
  }
  .panel-heading h2 {
    font-size:13px
  }
  .panel-description {
    font-size:9px
  }
  .trend-summary {
    font-size:10px
  }
  .trend-layout {
    grid-template-columns:20px minmax(0,1fr);
    gap:7px
  }
  .trend-chart {
    gap:5px;
    height:200px
  }
  .trend-axis {
    height:162px;
    font-size:9px
  }
  .trend-value {
    font-size:9px
  }
  .trend-column small {
    font-size:9px
  }
  .activity-item {
    grid-template-columns:7px minmax(0,1fr);
    gap:9px
  }
  .activity-item time {
    grid-column:2;
    font-size:9px;
    margin-top:-6px;
    padding:0
  }
  .activity-copy strong {
    font-size:11px
  }
  .activity-copy small {
    font-size:10px
  }
  .toolbar-line {
    padding:12px;
    align-items:stretch;
    flex-direction:column;
    gap:9px
  }
  .toolbar-line select,.wide-search {
    width:100%;
    max-width:none;
    min-width:0
  }
  .result-count {
    margin:0;
    font-size:10px;
    padding:3px 0
  }
  .user-group-table {
    min-width:0
  }
  .user-group-table td {
    padding:0
  }
  .user-group-table .user-group-row {
    padding:17px 14px
  }
  .user-group-table td::before {
    font-size:10px
  }
  .user-group-table .group-members-cell {
    margin-bottom:12px
  }
  .member-action {
    font-size:10px
  }
  .finance-table {
    min-width:780px
  }
  .finance-table td {
    padding:13px 14px
  }
  .menu-account-context {
    grid-template-columns:1fr;
    padding:16px;
    gap:15px
  }
  .menu-account-selector {
    grid-column:1
  }
  .menu-account-copy h2 {
    font-size:15px
  }
  .menu-stats {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .menu-stats>div {
    padding:14px
  }
  .menu-stats strong {
    font-size:24px
  }
  .menu-stats span {
    font-size:9px
  }
  .content-workspace {
    gap:16px
  }
  .dish-list {
    grid-template-columns:1fr
  }
  .dish-library {
    max-height:350px
  }
  .dish-card-copy {
    padding:10px;
    display:grid;
    gap:8px
  }
  .dish-card-meta {
    display:flex;
    flex-direction:row;
    width:100%
  }
  .recipe-editor {
    padding:18px 14px;
    display:block
  }
  .recipe-editor>*+* {
    margin-top:20px
  }
  .recipe-editor>.editor-heading {
    margin:-18px -14px 0;
    padding:17px 14px
  }
  .editor-heading h2 {
    font-size:17px
  }
  .editor-actions button {
    font-size:10px
  }
  .recipe-editor .image-and-basics {
    grid-template-columns:1fr;
    gap:18px
  }
  .metric-fields {
    gap:8px
  }
  .metric-fields label>span {
    font-size:10px
  }
  .metric-fields input,.metric-fields select {
    font-size:11px;
    padding-inline:7px
  }
  .section-heading p {
    font-size:9px
  }
  .large-field textarea {
    height:185px
  }
  .category-create-row {
    grid-template-columns:1fr
  }
  .category-admin-row {
    grid-template-columns:18px 75px minmax(0,1fr);
    gap:10px;
    padding:14px
  }
  .category-cover-preview {
    width:75px;
    height:60px
  }
  .category-row-actions {
    grid-column:2/-1;
    max-width:none;
    justify-content:flex-start
  }
  .category-edit-field input {
    font-size:12px
  }
  .operation-entry {
    grid-template-columns:1fr auto;
    padding:15px
  }
  .operation-content,.operation-actions {
    grid-column:1/-1
  }
  .operation-entry time {
    grid-column:1
  }
  .ops-detail-dialog {
    width:100vw;
    max-width:100vw
  }
  .ops-detail-dialog>.dialog-heading {
    padding:20px 18px 16px
  }
  .ops-detail-dialog>.dialog-heading h2 {
    font-size:18px
  }
  .ops-detail-dialog>#opsDetailStatus {
    padding:9px 18px
  }
  .ops-detail-scroll {
    padding:0 18px 22px
  }
  .ops-detail-dialog>#opsRecordActions {
    padding:12px 18px
  }
  .ops-facts {
    grid-template-columns:85px minmax(0,1fr);
    gap:12px;
    font-size:11px
  }
  .ops-facts dt {
    font-size:10px
  }
  .ops-edit-fields {
    grid-template-columns:1fr
  }
  .ops-image-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .ops-photo-preview {
    height:160px;
    min-height:100px
  }
  .ops-image-dialog {
    padding:12px
  }
  .ops-image-dialog h2 {
    font-size:13px
  }
  .ops-image-dialog header {
    gap:9px
  }
  .ops-image-dialog .secondary-action {
    font-size:10px;
    padding:6px 9px
  }
  .admin-dialog form {
    padding:22px 18px
  }
  .dialog-heading h2 {
    font-size:18px
  }
  .detail-drawer {
    padding:24px 20px
  }
  .auth-panel {
    padding:28px 24px
  }
  .auth-panel h1 {
    font-size:23px
  }
  .auth-panel label>span {
    font-size:11px
  }
}
@media(prefers-reduced-motion:no-preference) {
  .ops-detail-dialog[open] {
    animation:inspector-in .18s ease-out
  }
  @keyframes inspector-in {
    from {
      transform:translateX(32px);
      opacity:.7
    }
    to {
      transform:none;
      opacity:1
    }
  }
  .nav-children:not([hidden]) {
    animation:nav-reveal .14s ease-out
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
/* Resolve inherited placement and keep supporting text comfortably readable. */
.overview-column>.data-panel {
  grid-column:auto;
  grid-row:auto
}
.ops-pagination label {
  white-space:nowrap
}
.ops-pagination select {
  width:auto;
  min-width:70px;
  min-height:30px
}
.dish-card-media {
  aspect-ratio:auto;
  width:76px;
  height:100%;
  min-height:86px;
  align-self:stretch
}
.dish-card-media img {
  height:100%;
  object-fit:cover
}
.dish-card-media .status-dot {
  top:auto;
  bottom:5px;
  right:5px;
  font-size:8px;
  padding:2px 4px;
  min-width:0;
  min-height:17px;
  border-radius:3px
}
.dish-card-copy {
  align-items:start
}
.dish-card-meta {
  flex-wrap:wrap
}
.dish-card-meta small {
  font-size:9px
}
.dish-list-item:hover {
  transform:none;
  border-color:#9ab0e9;
  box-shadow:none
}
.menu-account-context .editor-state {
  color:var(--muted);
  font-size:10px
}
.image-and-basics {
  padding:0
}
.image-uploader {
  min-height:232px;
  border-radius:7px
}
.image-overlay {
  background:#132037d9;
  border-radius:5px
}
.basic-fields textarea {
  font-size:12px;
  border-radius:6px;
  min-height:92px
}
.text-action.danger-action {
  color:var(--danger);
  background:transparent;
  border:0
}
.recipe-editor .switch-row input,.detail-drawer .switch-row input {
  min-height:23px;
  border-radius:22px
}
.ops-detail-dialog input[type=checkbox] {
  min-height:18px;
  height:18px
}
.admin-module {
  animation:none
}
.ops-stats:empty {
  display:none
}
.ops-stats>div:last-child {
  border-right:0
}
.user-group-table .group-members-cell {
  min-width:250px
}
.ops-filter-bar label,.ops-date-filter {
  font-size:12px
}
.ops-filter-bar input,.ops-filter-bar select {
  font-size:13px
}
.ops-date-range input {
  font-size:12px
}
.ops-table td,.ops-table td>strong {
  font-size:13px
}
.ops-table td>small,.data-table th {
  font-size:11px
}
.ops-stats span {
  font-size:11px
}
.ops-results-heading h2,.ops-query-heading h2 {
  font-size:13px
}
.ops-results-heading .ops-notice {
  font-size:11px
}
.ops-pagination {
  font-size:11px
}
.user-cell strong,.stacked-cell strong,.member-name-line strong {
  font-size:13px
}
.user-cell small,.stacked-cell small,.group-member small {
  font-size:11px
}
.workspace-breadcrumb,.workspace-tools,.workspace-app-link {
  font-size:12px
}
.side-nav>a,.nav-group-toggle {
  font-size:13px
}
.side-nav .nav-children a {
  font-size:12px
}
.admin-top p {
  font-size:13px
}
.panel-description {
  font-size:11px
}
.activity-copy strong {
  font-size:13px
}
.activity-copy small {
  font-size:12px
}
.pending-item strong {
  font-size:13px
}
.pending-item small {
  font-size:11px
}
.overview-kpis span,.finance-kpis span {
  font-size:12px
}
.overview-kpis small,.finance-kpis small {
  font-size:11px
}
.ops-detail-dialog>.dialog-heading p,.ops-detail-dialog>#opsDetailStatus {
  font-size:11px
}
.ops-facts {
  font-size:13px
}
.ops-facts dt {
  font-size:12px
}
.ops-detail-dialog label {
  font-size:12px
}
.ops-detail-dialog input,.ops-detail-dialog select,.ops-detail-dialog textarea {
  font-size:13px
}
.ops-inner-table {
  font-size:12px
}
@media(max-width:1000px) {
  .overview-secondary>.data-panel {
    grid-column:auto
  }
  .menu-account-context .menu-account-selector {
    grid-column:auto
  }
}
@media(max-width:620px) {
  .overview-secondary {
    grid-template-columns:1fr
  }
  .ops-filter-bar label,.ops-date-filter {
    font-size:11px
  }
  .ops-filter-bar input,.ops-filter-bar select {
    font-size:12px
  }
  .ops-date-range input {
    font-size:12px
  }
  .ops-table td,.ops-table td>strong {
    font-size:12px
  }
  .ops-results-heading .ops-notice {
    font-size:10px
  }
  .ops-stats span {
    font-size:10px
  }
  .ops-pagination {
    font-size:10px
  }
  .ops-facts {
    font-size:12px
  }
  .ops-facts dt {
    font-size:11px
  }
  .admin-top p {
    font-size:12px
  }
  .ops-stats>div {
    border-right:1px solid var(--line-soft)
  }
  .ops-stats>div:nth-child(even) {
    border-right:0
  }
  .ops-stats>div:nth-last-child(-n+2) {
    border-bottom:0
  }
  .user-group-table .group-members-cell {
    min-width:0
  }
  .menu-account-context .menu-account-selector {
    grid-column:1
  }
  .overview-kpis span,.finance-kpis span {
    font-size:11px
  }
  .overview-kpis small,.finance-kpis small {
    font-size:10px
  }
}
.budget-list {
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))
}
.budget-item {
  padding:18px 20px;
  gap:12px
}
.budget-item-heading>div {
  display:grid;
  gap:5px;
  min-width:0
}
.budget-item-heading strong {
  overflow-wrap:anywhere
}
.budget-item small {
  font-size:11px;
  line-height:1.7
}
.budget-item button {
  font-size:11px;
  min-height:27px
}
.section-kicker {
  font-size:10px;
  color:var(--muted);
  letter-spacing:.02em;
  font-weight:500;
  margin-bottom:6px
}
.table-title>span {
  font-size:11px
}
.mini-avatar {
  overflow:hidden
}
.group-members {
  min-width:0
}
.ops-image-gallery:has(>.ops-photo:only-child) {
  grid-template-columns:minmax(0,1fr)
}
@media(max-width:620px) {
  .budget-list {
    grid-template-columns:1fr
  }
  .budget-item {
    padding:17px 15px
  }
  .user-group-table td:last-child .member-actions {
    grid-template-columns:repeat(auto-fit,minmax(135px,1fr))
  }
  .ops-table,.ops-table tbody {
    display:block;
    min-width:0;
    width:100%
  }
  .ops-table thead {
    display:none
  }
  .ops-table tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:17px 14px;
    border-bottom:1px solid var(--line)
  }
  .ops-table tr:last-child {
    border-bottom:0
  }
  .ops-table td,.ops-table td:first-child,.ops-table td:nth-child(2),.ops-table td:nth-child(3),.ops-table td:nth-child(4),.ops-table td:nth-child(5),.ops-table td:nth-child(6),.ops-table td:last-child {
    display:block;
    width:auto;
    min-width:0;
    max-width:none;
    padding:0;
    border:0
  }
  .ops-table td:first-child,.ops-table td:nth-child(2),.ops-table td:last-child {
    grid-column:1/-1
  }
  .ops-table td::before {
    content:attr(data-label);
    display:block;
    color:var(--faint);
    font-size:10px;
    margin-bottom:6px;
    line-height:1.5
  }
  .ops-table td:first-child>strong {
    font-size:14px;
    font-weight:600
  }
  .ops-table td:first-child>small:last-child {
    max-width:none;
    font-size:9px;
    overflow-wrap:anywhere;
    white-space:normal
  }
  .ops-table td:nth-child(2)>strong {
    display:inline;
    font-size:12px
  }
  .ops-table td:nth-child(2)>small {
    display:inline;
    margin-left:8px
  }
  .ops-table td:last-child::before {
    display:none
  }
  .ops-table td:last-child .row-action {
    width:100%;
    min-height:35px;
    font-size:12px;
    background:#f6f8fd;
    color:var(--accent)
  }
  #businessConsole>.table-panel>.table-scroll {
    max-height:none;
    overflow:visible
  }
  .ops-media-thumb {
    width:78px;
    height:62px;
    float:left;
    margin-right:12px
  }
  .ops-table td:first-child::after {
    content:"";
    display:block;
    clear:both
  }
  .ops-table td:first-child>small:last-child {
    clear:both;
    padding-top:6px
  }
  .ops-image-gallery:has(>.ops-photo:only-child) .ops-photo-preview {
    height:220px
  }
  .ops-detail-dialog input[type=checkbox] {
    width:18px
  }
}
/* Controlled Chinese date range; native date segments are never displayed. */
.ops-date-range {
  padding: 0 10px;
  gap: 7px;
}
.ops-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 0;
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 400 12px var(--admin-font);
  text-align: left;
  white-space: nowrap;
}
.ops-date-trigger span { overflow: hidden; text-overflow: ellipsis; }
.ops-date-trigger.is-empty { color: var(--faint); }
.ops-date-trigger svg { width: 15px; height: 15px; color: #8390a4; flex: 0 0 auto; }
.ops-date-trigger:hover { color: var(--accent); }
.ops-date-trigger:focus-visible { outline-offset: 0; outline: 0; color: var(--accent); }
.ops-date-range > span { color: var(--faint); font-size: 11px; }
.admin-date-popover {
  position: fixed;
  inset: auto;
  width: min(326px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 35px #1d293d24;
  font-family: var(--admin-font);
  z-index: 100;
}
.admin-date-popover::backdrop { background: transparent; }
.admin-date-popover button { cursor: pointer; font-family: inherit; }
.admin-date-boundaries { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.admin-date-boundaries > button {
  flex: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  text-align: left;
}
.admin-date-boundaries small { font-size: 10px; color: var(--muted); }
.admin-date-boundaries strong { font-size: 11px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.admin-date-boundaries > span { color: var(--faint); font-size: 10px; }
.admin-date-boundaries > .is-active { border-color: #9eb6f6; background: var(--accent-pale); }
.admin-date-boundaries > .is-active small { color: var(--accent); }
.admin-date-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.admin-date-navigation > div { display: flex; justify-content: center; gap: 5px; }
.admin-date-navigation select {
  width: auto;
  min-width: 65px;
  min-height: 30px;
  height: 30px;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  color: var(--ink);
}
.admin-date-navigation select:hover { border-color: var(--line); }
.admin-date-navigation > button {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f3f6fa;
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
}
.admin-date-navigation > button:hover { background: var(--accent-soft); color: var(--accent); }
.admin-date-week, .admin-date-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.admin-date-week { margin-bottom: 6px; color: var(--faint); font-size: 11px; line-height: 25px; }
.admin-date-grid { row-gap: 4px; }
.admin-date-grid button {
  position: relative;
  height: 34px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.admin-date-grid button.is-other-month { color: #aeb8c7; }
.admin-date-grid button.is-in-range { border-radius: 0; background: var(--accent-pale); color: var(--accent-deep); }
.admin-date-grid button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.admin-date-grid button.is-selected, .admin-date-grid button.is-selected:hover { background: var(--accent); color: #fff; }
.admin-date-grid button.is-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.admin-date-grid button:disabled { opacity: 1; color: #cbd2dd; cursor: not-allowed; }
.admin-date-help { min-height: 17px; margin: 11px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.admin-date-footer { display: flex; gap: 10px; align-items: center; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.admin-date-footer button { min-height: 29px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.admin-date-footer button:hover { color: var(--accent); }
.admin-date-footer button:last-child { margin-left: auto; padding-inline: 12px; border-radius: 4px; background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .admin-date-popover:popover-open { animation: date-calendar-enter .12s ease-out; }
  @keyframes date-calendar-enter { from { opacity: .5; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 620px) {
  .ops-date-trigger { font-size: 12px; }
  .admin-date-grid button { height: 36px; font-size: 13px; }
}
/* Category management uses the same couple context as dish editing. */
.category-account-context { grid-template-columns: minmax(0,1fr) minmax(230px,340px); }
#categoryManagement .category-row-actions { max-width: 250px; }
#categoryManagement [data-category-move] { min-width: 27px; padding-inline: 6px; }
#categoryManagement .category-empty { font-size: 12px; line-height: 1.8; padding: 45px 24px; color: var(--muted); text-align: center; }
#categoryCreateForm input:disabled { background: #f5f7fb; }
@media (max-width: 620px) {
  .category-account-context { grid-template-columns: 1fr; }
  #categoryManagement .category-row-actions { max-width: none; }
}
.menu-account-context.category-account-context { grid-template-columns: minmax(0,1fr) minmax(230px,340px); }
#categoryManagement .category-row-actions { display: grid; grid-template-columns: 27px 27px auto auto auto; max-width: none; }
@media (max-width: 620px) {
  .menu-account-context.category-account-context { grid-template-columns: 1fr; }
  #categoryManagement .category-row-actions { display: flex; flex-wrap: wrap; }
}
.menu-account-context.ops-couple-context { grid-template-columns: minmax(0,1fr) auto minmax(260px,390px); }
.ops-life-empty { text-align: center; padding: 54px 22px; }
.ops-life-empty h2 { font-size: 16px; margin: 0 0 10px; }
.ops-life-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
#businessConsole:has(#opsCoupleContext:not([hidden])) .ops-filter-bar { grid-template-columns: repeat(5,minmax(0,1fr)); }
#businessConsole:has(#opsCoupleContext:not([hidden])) .ops-search { grid-column: span 3; }
@media(max-width:1250px){.menu-account-context.ops-couple-context { grid-template-columns:minmax(0,1fr) minmax(240px,340px); }#businessConsole:has(#opsCoupleContext:not([hidden])) .ops-filter-bar { grid-template-columns:repeat(3,minmax(0,1fr)); }#businessConsole:has(#opsCoupleContext:not([hidden])) .ops-search { grid-column:auto; }}
@media(max-width:620px){.menu-account-context.ops-couple-context { grid-template-columns:1fr; }#businessConsole:has(#opsCoupleContext:not([hidden])) .ops-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }#businessConsole:has(#opsCoupleContext:not([hidden])) .ops-search { grid-column:1/-1; }.ops-life-empty {padding:36px 18px;} }
#businessConsole:is([data-collection=catalog],[data-collection=content],[data-collection=admins],[data-collection=backups]) .ops-filter-bar {grid-template-columns:repeat(4,minmax(0,1fr));}
#businessConsole:is([data-collection=catalog],[data-collection=content],[data-collection=admins],[data-collection=backups]) .ops-search {grid-column:span 2;}
@media(max-width:620px){#businessConsole:is([data-collection=catalog],[data-collection=content],[data-collection=admins],[data-collection=backups]) .ops-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));}#businessConsole:is([data-collection=catalog],[data-collection=content],[data-collection=admins],[data-collection=backups]) .ops-search{grid-column:1/-1;}}

/* One search interaction for every couple account selector. */
.account-picker-control { display:flex; align-items:stretch; gap:6px; min-width:0; width:100%; }
.account-picker-control > :is(select,input) { flex:1; min-width:0; width:0; }
.account-picker-control > .account-picker-trigger { flex:0 0 54px; min-height:40px; padding:0 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--accent); font-size:12px; font-weight:600; }
.account-picker-trigger:hover:not(:disabled) { background:var(--accent-pale); border-color:#b6c7f5; }
.account-picker-trigger:disabled { opacity:.45; cursor:not-allowed; }
.account-search-popover { position:fixed; inset:auto; margin:0; box-sizing:border-box; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 12px 40px #14264626; color:var(--ink); overflow:auto; overscroll-behavior:contain; font-size:12px; font-weight:400; text-align:left; }
.account-search-popover::backdrop { background:transparent; }
.account-search-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.account-search-heading strong { font-size:14px; font-weight:650; }
.account-search-heading > button { width:28px; height:28px; min-height:0; padding:0; border:0; border-radius:4px; background:#f4f6fa; color:var(--muted); font-size:20px; line-height:1; }
.account-search-popover > input { display:block; box-sizing:border-box; width:100%; height:40px; min-height:40px; padding:0 11px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font:inherit; font-size:13px; }
.account-search-status { margin:10px 0; color:var(--muted); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.account-search-list { display:flex; flex-direction:column; gap:3px; }
.account-search-result { display:flex; flex-direction:column; gap:5px; box-sizing:border-box; width:100%; min-height:54px; padding:11px; border:0; border-radius:5px; background:transparent; color:var(--ink); text-align:left; white-space:normal; cursor:pointer; }
.account-search-result + .account-search-result { border-top:1px solid var(--line-soft); }
.account-search-result:hover:not(:disabled), .account-search-result[aria-selected=true] { background:var(--accent-pale); }
.account-search-result > strong { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.account-search-members { display:flex; flex-direction:column; gap:3px; font-size:11px; color:var(--muted); line-height:1.5; overflow-wrap:anywhere; }
.account-search-members .is-match { color:var(--accent-deep); font-weight:600; }
.account-search-result:disabled { cursor:default; opacity:.65; }
@media(prefers-reduced-motion:no-preference){.account-search-popover:popover-open{animation:date-calendar-enter .12s ease-out;}}

.ops-album-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0 0 18px; }
.ops-album-tabs { display:flex; gap:4px; padding:4px; border-radius:7px; background:#e8edf6; }
.ops-album-tabs button { min-height:34px; padding:6px 22px; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:13px; }
.ops-album-tabs button[aria-pressed=true] { background:#fff; color:var(--accent); font-weight:650; box-shadow:0 1px 3px #172c5020; }
#businessConsole[data-collection=photos] .ops-table { display:block; min-width:0; width:100%; }
#businessConsole[data-collection=photos] .ops-table thead { display:none; }
#businessConsole[data-collection=photos] .ops-table tbody { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:18px; }
#businessConsole[data-collection=photos] .ops-table tr { display:grid; grid-template-columns:1fr auto; align-content:start; gap:9px 12px; min-width:0; padding:0 0 14px; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:#fff; }
#businessConsole[data-collection=photos] .ops-table td { display:block; width:auto; min-width:0; padding:0 14px; border:0; font-size:11px; text-align:left; }
#businessConsole[data-collection=photos] .ops-table tr,#businessConsole[data-collection=photos] .ops-table td { height:auto; min-height:0; max-width:none; }
#businessConsole[data-collection=photos] .ops-table td::before { display:none; }
#businessConsole[data-collection=photos] .ops-table td:first-child { grid-column:1/-1; padding:0; }
#businessConsole[data-collection=photos] .ops-table td:first-child > :is(strong,small) { display:block; padding:0 14px; overflow-wrap:anywhere; }
#businessConsole[data-collection=photos] .ops-table td:first-child > strong { margin-top:12px; font-size:13px; }
#businessConsole[data-collection=photos] .ops-table td:first-child > small:last-child { display:none; }
#businessConsole[data-collection=photos] .ops-table .ops-media-thumb { float:none; display:flex; align-items:center; justify-content:center; width:100%; height:auto; aspect-ratio:4/3; margin:0; border:0; border-radius:0; background:#f0f3f8; color:var(--muted); }
#businessConsole[data-collection=photos] .ops-media-thumb img { width:100%; height:100%; max-height:none; object-fit:cover; }
#businessConsole[data-collection=photos] .ops-table td:nth-child(2) { grid-column:1; }
#businessConsole[data-collection=photos] .ops-table td:nth-child(2) > strong { font-size:11px; }
#businessConsole[data-collection=photos] .ops-table td:nth-child(3) { grid-column:2; grid-row:2; align-self:start; padding-left:0; }
#businessConsole[data-collection=photos] .ops-table td:nth-child(4),#businessConsole[data-collection=photos] .ops-table td:nth-child(6) { display:none; }
#businessConsole[data-collection=photos] .ops-table td:nth-child(5) { grid-column:1; color:var(--muted); }
#businessConsole[data-collection=photos] .ops-table td:last-child { grid-column:2; grid-row:3; padding-left:0; }
#businessConsole[data-collection=photos] .ops-table td:last-child .row-action { width:auto; min-height:30px; font-size:11px; padding:4px 10px; }
.ops-album-empty { padding:18px; background:#f5f7fb; color:var(--muted); text-align:center; }
@media(min-width:1800px){#businessConsole[data-collection=photos] .ops-table tbody{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:1100px){#businessConsole[data-collection=photos] .ops-table tbody{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){#businessConsole[data-collection=photos] .ops-table tbody{grid-template-columns:1fr;padding:12px;gap:12px;}.ops-album-toolbar>.secondary-action{font-size:11px;}.ops-album-tabs button{padding-inline:18px;}}
#businessConsole:has(#opsCoupleContext:not([hidden])):is([data-collection=photos],[data-collection=albums]) .ops-filter-bar { grid-template-columns:repeat(4,minmax(0,1fr)); }
#businessConsole:has(#opsCoupleContext:not([hidden])):is([data-collection=photos],[data-collection=albums]) .ops-search { grid-column:span 2; }
@media(max-width:1100px){#businessConsole:has(#opsCoupleContext:not([hidden])):is([data-collection=photos],[data-collection=albums]) .ops-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));}}

.ops-list-images { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 10px; }
.ops-list-images .ops-media-thumb { float:none; flex:0 0 104px; width:104px; height:82px; margin:0; overflow:hidden; border:1px solid var(--line); color:var(--muted); font-size:10px; cursor:zoom-in; }
.ops-list-images .ops-media-thumb:disabled { cursor:default; }
.ops-list-images .ops-media-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.ops-more-images { min-height:36px; padding:6px 10px; border:1px solid var(--line); border-radius:5px; background:#f5f7fb; color:var(--accent); font-size:11px; }
#businessConsole[data-collection=photos] .ops-list-images { display:block; margin:0; }
#businessConsole[data-collection=photos] .ops-list-images .ops-media-thumb { width:100%; height:auto; flex:auto; }
.ops-image-nav { display:flex; align-items:center; justify-content:center; gap:16px; padding:0 18px 12px; color:var(--muted); font-size:12px; }
.ops-image-nav .secondary-action { min-height:30px; padding:4px 12px; font-size:12px; }
#opsImageDownload[aria-disabled=true] { pointer-events:none; opacity:.45; }
@media(max-width:620px){.ops-list-images .ops-media-thumb{width:88px;height:72px;flex-basis:88px;}.ops-image-nav{padding-bottom:8px;}}
/* Support conversations: the composer stays visible while history scrolls. */
.ops-ticket-chat .ops-detail-scroll{background:#f5f7fb;padding:0 26px 20px}
.ops-ticket-chat #opsDetailBody{min-width:0}
.ops-ticket-context{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.ops-ticket-context summary{cursor:pointer;min-height:32px;padding:7px 0;overflow-wrap:anywhere}
.ops-ticket-context .ops-facts{margin:16px 0}
.ops-ticket-chat .ops-chat-refresh{float:right;margin-left:12px;padding:7px 12px;background:#fff}
.ops-ticket-messages{display:flex;flex-direction:column;gap:18px;padding:22px 0 6px}
.ops-chat-message{max-width:85%;align-self:flex-start;min-width:0}
.ops-chat-meta{font-size:11px;color:var(--muted);margin:0 2px 7px;overflow-wrap:anywhere;line-height:1.6}
.ops-chat-bubble{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px;padding:12px 16px;border-radius:3px 14px 14px;background:#fff;color:var(--ink);box-shadow:0 1px 2px #14234408}
.ops-chat-message.is-staff{align-self:flex-end}
.ops-chat-message.is-staff .ops-chat-meta{text-align:right}
.ops-chat-message.is-staff .ops-chat-bubble{background:#315ce8;color:white;border-radius:14px 3px 14px 14px}
.ops-chat-message.is-note{max-width:100%;align-self:stretch;border-left:2px solid #abb7ce;padding-left:12px}
.ops-chat-message.is-note .ops-chat-bubble{font-size:12px;background:transparent;padding:0;box-shadow:none;color:#5e6d85}
.ops-chat-message.is-event{align-self:center;max-width:100%;text-align:center}
.ops-chat-message.is-event .ops-chat-meta{display:none}
.ops-chat-message.is-event .ops-chat-bubble{background:transparent;box-shadow:none;font-size:11px;color:var(--muted);padding:0}
.ops-ticket-chat #opsEditForm{flex:0 0 auto;max-height:52dvh;overflow-y:auto;margin:0;padding:14px 26px 18px;background:white;border-top:1px solid var(--line)}
.ops-ticket-chat #opsEditForm>h3{display:none}
.ops-ticket-chat #opsEditFields{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.ops-ticket-chat #opsEditFields label{margin:0}
.ops-ticket-chat .ops-chat-state{display:flex;flex-direction:row;align-items:center;gap:10px}
.ops-ticket-chat .ops-chat-state select{width:130px}
.ops-ticket-chat .ops-chat-note{margin-left:auto;font-size:12px;color:var(--muted)}
.ops-chat-note summary{cursor:pointer;padding:8px 0}
.ops-ticket-chat .ops-chat-note[open]{width:100%;order:2}
.ops-ticket-chat .ops-chat-note textarea{max-height:90px}
.ops-ticket-chat .ops-chat-reply{order:3;width:100%;font-size:0}
.ops-ticket-chat .ops-chat-reply textarea{font-size:14px;line-height:1.6;resize:vertical;max-height:140px;min-height:76px;background:#f9fbfd}
.ops-ticket-chat #opsEditForm .ops-detail-actions{margin:12px 0 0;justify-content:flex-end;align-items:center}
.ops-chat-send-hint{font-size:11px;color:var(--muted);margin-right:auto}
.ops-ticket-chat label[hidden]{display:none}
@media(max-width:600px){.ops-ticket-chat .ops-detail-scroll{padding:0 16px 16px}.ops-ticket-chat #opsEditForm{padding:12px 16px}.ops-chat-message{max-width:92%}.ops-chat-send-hint{max-width:58%;line-height:1.6}.ops-ticket-chat .ops-chat-note{font-size:11px}.ops-ticket-chat .ops-chat-state select{width:105px}}
@media(prefers-reduced-motion:no-preference){.ops-chat-bubble{animation:ops-chat-appear .16s ease-out}.ops-ticket-chat .ops-chat-reply textarea{transition:border-color .15s,box-shadow .15s}.ops-ticket-chat .ops-chat-reply textarea:focus{box-shadow:0 0 0 3px #315ce815}@keyframes ops-chat-appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}}

/* Metric summaries select the same trend as the chart toolbar. */
.console-kpis>[data-console-metric]{cursor:pointer;transition:border-color .15s,box-shadow .15s}
.console-kpis>[data-console-metric]:hover{border-color:var(--metric-color)}
.console-kpis>[data-console-metric].active{border-color:var(--metric-color);box-shadow:inset 0 3px 0 var(--metric-color)}
.console-kpis>[data-console-metric]:focus-visible{outline:3px solid var(--metric-color);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.console-kpis>[data-console-metric]{transition:none}}

#memberCampaignForm fieldset { border:0; padding:0; margin:0; min-width:0; }
#memberCampaignForm label { display:grid; gap:8px; margin:12px 0; min-width:0; color:var(--muted); font-size:13px; }
#memberCampaignForm input,#memberCampaignForm textarea { box-sizing:border-box; width:100%; min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:12px; color:var(--ink); font:inherit; line-height:1.7; }
#memberCampaignForm textarea { resize:vertical; }
#memberCampaignForm fieldset>p { grid-column:1/-1; color:var(--muted); font-size:13px; line-height:1.8; }
#memberCampaignForm button { justify-self:start; }
