:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  color: #303133;
  background: #f0f2f5;
  --ink: #303133;
  --regular: #606266;
  --muted: #909399;
  --placeholder: #c0c4cc;
  --line: #e4e7ed;
  --border: #dcdfe6;
  --purple: #9699f8;
  --purple-dark: #623aa7;
  --lavender: #f5f5fe;
  --card: #fff;
  --success: #13ce66;
  --warning: #ffba00;
  --danger: #ff4949;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 20rem; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .57; }
a { color: var(--purple-dark); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .table-region:focus-visible {
  outline: 3px solid rgba(150, 153, 248, .65);
  outline-offset: 3px;
}
h1, h2, p { margin: 0; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .75rem 1rem; background: #fff; border-radius: .25rem; }
.skip-link:focus { transform: none; }
.boot-error { padding: 2rem; }
.boot-error p { margin-bottom: .75rem; }
#portal-boot:not([hidden]) ~ #app, #portal-boot:not([hidden]) ~ #customer-app { display: none; }
.pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; padding: .65rem 1rem; font-size: .86rem; }
.brand-mark svg, .nav svg, .btn svg, .tile-icon svg, .notice-icon svg, .notification svg, .icon-btn svg, .empty svg {
  width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track-piece { background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: #c0ccda; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9aa9bd; }

.workspace { display: grid; grid-template-columns: 13.125rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { min-height: 5.4rem; display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid #f0f2f5; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: .5rem; color: #fff; background: linear-gradient(145deg,#a5a8fa,#7b7ef0); box-shadow: 3px 3px 8px #b8baf4; }
.brand-mark svg { width: 1.4rem; height: 1.4rem; }
.brand strong, .sidebar-foot strong { display: block; font-size: .96rem; font-weight: 640; white-space: nowrap; color: var(--ink); }
.brand small { display: block; margin-top: .2rem; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .09em; white-space: nowrap; }
.nav { display: grid; gap: .95rem; padding: 1.2rem .62rem; }
.nav-title { color: var(--muted); font-size: .75rem; letter-spacing: .1em; font-weight: 650; margin: 0 .9rem .2rem; }
.nav a { min-height: 2.9rem; display: flex; align-items: center; gap: .78rem; margin: 0 .4rem; padding: .55rem .85rem; border-radius: .62rem; text-decoration: none; white-space: nowrap; color: var(--regular); font-size: .93rem; font-weight: 600; }
.nav a svg { color: #909399; }
.nav a:hover { background: #fff; color: #243054; box-shadow: 5px 5px 10px #b8baf4; }
.nav .selected { color: #243054; background: #fff; box-shadow: 5px 5px 10px #b8baf4; font-weight: 680; }
.nav .selected svg { color: var(--purple); width: 1.4rem; height: 1.4rem; }
.sidebar-foot { margin: auto .9rem 1.1rem; padding: .9rem .6rem 0; display: flex; align-items: flex-start; gap: .55rem; border-top: 1px solid var(--line); }
.sidebar-foot strong { font-size: .85rem; }
.sidebar-foot small { display: block; margin-top: .3rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.demo-dot { width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: var(--success); }
.sidebar-foot .demo-dot { margin-top: .35rem; }

.surface { min-width: 0; }
.topbar { min-height: 3.125rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #3c3c3c; color: #b3b9cf; padding: .5rem clamp(1rem,3.4vw,3.2rem); box-shadow: 0 1px 4px rgba(0,21,41,.08); position: sticky; top: 0; z-index: 9; }
.topbar-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: .6rem; }
.topbar .signout { cursor: pointer; color: inherit; }
.topbar .signout:hover, .topbar .signout:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.crumb { display: flex; align-items: baseline; gap: .65rem; min-width: 0; font-size: .86rem; }
.crumb > span:first-child { color: #8f9bb3; white-space: nowrap; }
.crumb strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 640; }
.crumb-sep { color: #5c6370; }
.mode-label { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .62rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #dfe6e9; font-size: .75rem; white-space: nowrap; font-weight: 650; }
.main { max-width: 102rem; margin: 0 auto; padding: 1.7rem clamp(1rem,3.4vw,3.2rem) 2.6rem; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.35rem; }
.eyebrow { color: var(--purple-dark); font-size: .8rem; font-weight: 720; letter-spacing: .12em; margin-bottom: .4rem; }
h1 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.subtitle { margin-top: .5rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.loading-state { background: #fff; padding: 1.2rem; border: 1px solid var(--line); border-radius: .25rem; color: var(--muted); font-size: .875rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.35rem; padding: .45rem .95rem; border: 1px solid transparent; border-radius: .25rem; text-decoration: none; white-space: nowrap; font-size: .875rem; font-weight: 640; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn svg { width: 1rem; height: 1rem; }
.primary { color: #fff; background: var(--purple); border-color: var(--purple); }
.primary:not(:disabled):hover { background: #abacf9; border-color: #abacf9; }
.primary:not(:disabled):active { background: #878adf; border-color: #878adf; }
.secondary { color: var(--regular); border-color: var(--border); background: #fff; }
.secondary:not(:disabled):hover { color: var(--purple); border-color: #c6c8fb; background: var(--lavender); }
.text-btn { padding: .3rem .55rem; color: var(--purple-dark); background: var(--lavender); border-color: #e2e3fc; min-height: 1.95rem; }
.text-btn:not(:disabled):hover { background: #ececfb; }
.icon-btn { width: 2rem; height: 2rem; display: inline-grid; place-items: center; padding: .25rem; border: 0; border-radius: .25rem; color: inherit; background: transparent; cursor: pointer; }
.icon-btn:not(:disabled):hover { background: rgba(150,153,248,.14); }
.icon-btn svg { width: 1rem; height: 1rem; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.tile, .panel { background: var(--card); border: 1px solid #e6ebf5; border-radius: .35rem; box-shadow: 0 0 10px rgba(191,191,191,.17); }
.tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; min-height: 5.9rem; }
.tile-icon { width: 3rem; height: 3rem; display: grid; place-items: center; flex: none; border-radius: .35rem; }
.tile-icon svg { width: 1.5rem; height: 1.5rem; }
.tile-icon.purple { color: var(--purple-dark); background: var(--lavender); }
.tile-icon.lilac { color: #c99400; background: #fdf6e3; }
.tile-icon.mint { color: #10a257; background: #e1f3d8; }
.tile p { font-size: .86rem; font-weight: 600; margin-bottom: .25rem; color: var(--muted); }
.tile strong { font-size: 1.65rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.tile strong small { color: var(--muted); font-size: .74rem; font-weight: 620; }
.panel { min-width: 0; margin-bottom: 1rem; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; }
.panel-heading h2 { font-size: 1.05rem; font-weight: 680; line-height: 1.32; color: var(--ink); }
.panel-heading p { color: var(--muted); font-size: .83rem; line-height: 1.5; margin-top: .3rem; }
.legend { color: var(--muted); display: inline-flex; align-items: center; gap: .48rem; font-size: .82rem; white-space: nowrap; }
.legend i { height: 2px; width: 1.1rem; display: inline-block; background: var(--purple); }
.chart { margin: -.25rem .65rem 1.15rem; }
.chart svg { display: block; width: 100%; height: clamp(9rem, 20vw, 14.4rem); overflow: visible; }
.grid-line { stroke: #e4e7ed; stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis-number { fill: #909399; font-size: 13px; text-anchor: end; }
.chart-dot { fill: #fff; stroke: var(--purple); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.chart-dates { display: flex; justify-content: space-between; padding: 0 1.5% 0 4.5%; color: var(--muted); font-size: .78rem; }
.home-next { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .95rem 1.1rem; border-radius: .25rem; border: 1px solid #b3d8ff; background: #ebf5ff; }
.notice-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: #4a6da8; background: rgba(32,160,255,.14); border-radius: .3rem; }
.home-next strong { font-size: .92rem; color: var(--ink); }
.home-next p { margin-top: .25rem; color: var(--regular); font-size: .85rem; line-height: 1.55; }
.home-next .btn { margin-left: auto; }

.search { width: min(100%,17rem); }
input:not([type=checkbox]), select { width: 100%; min-height: 2.35rem; padding: .42rem .68rem; border: 1px solid var(--border); border-radius: .25rem; color: var(--ink); background: #fff; font-size: .875rem; transition: border-color .15s; }
input:not([type=checkbox]):hover:not(:disabled), select:hover:not(:disabled) { border-color: #c0c4cc; }
input:not([type=checkbox]):focus, select:focus { border-color: var(--purple); outline: none; }
input::placeholder { color: var(--placeholder); opacity: 1; font-size: .85rem; }
select { appearance: none; padding-right: 2.1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c0c4cc' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .5rem center; }
.table-region { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: auto; background: #fff; }
th, td { padding: .7rem 1.1rem; border-bottom: 1px solid #dfe4ed; font-size: .875rem; line-height: 1.45; }
th { color: #1f2d3d; background: #eef1f6; white-space: nowrap; font-weight: 680; }
td { min-width: 5.5rem; color: var(--regular); }
td:first-child { min-width: 9rem; }
td:last-child { white-space: nowrap; }
td strong { color: var(--ink); font-weight: 640; overflow-wrap: anywhere; }
tbody tr:hover td { background: #e8f4ff; }
tbody tr:last-child td { padding-bottom: 1rem; }
.table-sub { display: block; margin-top: .17rem; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.sale { font-weight: 680; color: #1f2d3d; }
.pill { display: inline-flex; align-items: center; min-height: 1.5rem; padding: .1rem .52rem; border: 1px solid; border-radius: .25rem; font-size: .76rem; font-weight: 640; white-space: nowrap; }
.pill.green { color: #10a257; background: rgba(19,206,102,.1); border-color: rgba(19,206,102,.4); }
.pill.amber { color: #c99400; background: rgba(255,186,0,.12); border-color: rgba(255,186,0,.45); }
.pill.gray { color: var(--regular); background: #f5f7fa; border-color: var(--placeholder); }
.pill.purple { color: var(--purple-dark); background: var(--lavender); border-color: #c6c8fb; }
.pill.red { color: #e04545; background: rgba(255,73,73,.1); border-color: rgba(255,73,73,.4); }
.muted { color: var(--muted); }
.empty { display: grid; justify-items: center; gap: .5rem; padding: 2.8rem 1rem; text-align: center; color: var(--muted); }
.empty svg { width: 2rem; height: 2rem; color: var(--placeholder); margin-bottom: .15rem; }
.empty strong { color: var(--regular); }
.empty p { font-size: .85rem; }
.inline-help { border: 1px solid #b3d8ff; background: #f0f7ff; border-radius: .25rem; padding: .8rem .95rem; font-size: .875rem; color: var(--regular); margin-bottom: .9rem; }

.gift-scope { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; line-height: 1.6; }
.gift-scope .pill, .gift-detail-heading .pill { font-size: .84rem; }
.gift-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 0 0 1rem; }
.gift-summary > div { background: var(--card); border: 1px solid #e6ebf5; border-radius: .35rem; padding: .8rem 1rem; box-shadow: 0 0 10px rgba(191,191,191,.17); }
.gift-summary dt { font-size: .84rem; color: var(--muted); font-weight: 600; }
.gift-summary dd { margin: .25rem 0 0; font-size: clamp(1.3rem,3vw,1.7rem); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.gift-workspace { display: grid; grid-template-columns: minmax(12rem,17.5rem) minmax(0,1fr); align-items: start; gap: .9rem; }
.gift-channel-panel .panel-heading { padding-bottom: .8rem; }
.gift-channel-panel .panel-heading p, .gift-detail-heading p, .gift-goods-heading p { font-size: .84rem; }
.gift-channel-query { margin: 0 1rem .6rem; }
.gift-channel-list { max-height: 33rem; overflow: auto; overscroll-behavior: contain; margin: 0; list-style: none; padding: .2rem .8rem .8rem; }
.gift-channel-list li + li { margin-top: .55rem; }
.gift-channel { display: grid; width: 100%; text-align: left; gap: .26rem; border: 1px solid transparent; border-radius: .62rem; padding: .52rem .7rem; color: var(--ink); background: #fff; cursor: pointer; transition: box-shadow .15s; }
.gift-channel:hover { box-shadow: 5px 5px 10px #b8baf4; }
.gift-channel[aria-pressed="true"] { color: #243054; background: var(--lavender); border-color: #c6c8fb; box-shadow: 5px 5px 10px #b8baf4; font-weight: 640; }
.gift-channel strong { font-size: .9rem; overflow-wrap: anywhere; }
.gift-channel span { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; line-height: 1.45; }
.gift-detail-heading { flex-wrap: wrap; overflow-wrap: anywhere; }
.gift-quote-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin: 0 1.2rem .8rem; padding: .7rem .9rem; background: #f5f7fa; border-radius: .25rem; font-size: .875rem; color: var(--regular); }
.gift-quote-band strong { color: var(--purple-dark); margin-left: .3rem; }
.gift-quote-band p { color: var(--muted); font-size: .82rem; }
.gift-region { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; align-items: start; margin: 0 1.2rem; }
.gift-region details, .gift-exclusions { border: 1px solid var(--border); border-radius: .25rem; min-width: 0; background: #fff; }
.gift-region summary, .gift-exclusions summary { display: flex; align-items: center; gap: .45rem; padding: .6rem .7rem; cursor: pointer; font-size: .85rem; font-weight: 660; color: var(--ink); }
.gift-region summary::before, .gift-exclusions summary::before { content: '+'; color: var(--purple-dark); font-size: 1rem; }
.gift-region details[open] summary::before, .gift-exclusions[open] summary::before { content: 'âˆ’'; }
.gift-region summary:focus-visible, .gift-exclusions summary:focus-visible { outline: 3px solid rgba(150,153,248,.65); outline-offset: 1px; }
.gift-region summary span { margin-left: auto; font-weight: 500; color: var(--muted); }
.gift-region p, .gift-region-items { color: var(--muted); font-size: .83rem; line-height: 1.65; padding: 0 .75rem .65rem; }
.gift-region-items { list-style: none; margin: 0; overflow-wrap: anywhere; }
.gift-region-items .money { color: var(--ink); }
.gift-goods-heading { padding-top: 1.15rem; padding-bottom: .7rem; }
.gift-goods-heading h3 { margin: 0; font-size: .97rem; color: var(--ink); }
.gift-no-match { color: var(--muted); font-size: .86rem; line-height: 1.55; padding: .9rem 1.2rem 1.15rem; }
.gift-empty p { max-width: 34rem; line-height: 1.55; }
.gift-exclusions { margin: 1rem 1.2rem 1.15rem; border-color: rgba(255,186,0,.5); background: #fffbf0; }

.notification { display: flex; align-items: center; gap: .62rem; min-height: 2.6rem; padding: .3rem .55rem .3rem .8rem; margin-bottom: .95rem; border: 1px solid transparent; border-radius: .25rem; font-size: .875rem; line-height: 1.4; }
.notification.success { color: #13ce66; background: #e1f3d8; border-color: #c6ebd3; }
.notification.error { color: #e04545; background: #fef0f0; border-color: #fbd5d5; }
.notification svg { width: 1.05rem; height: 1.05rem; }
.notification .icon-btn { margin-left: auto; flex: none; }
.api-note { padding: .95rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }
.api-note p { margin-top: .38rem; color: var(--regular); line-height: 1.6; font-size: .86rem; }
code { color: var(--purple-dark); border: 1px solid #e2e3fc; background: var(--lavender); padding: .1rem .3rem; border-radius: .2rem; font-size: .85em; }
.verb { color: #10a257; background: #e1f3d8; padding: .16rem .4rem; border-radius: .2rem; font-size: .74rem; font-weight: 750; }
.verb.post { color: var(--purple-dark); background: var(--lavender); }

.editor { width: min(31rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: .3rem; padding: 0; color: var(--ink); box-shadow: 0 8px 32px rgba(0,0,0,.28); }
.editor::backdrop { background: rgba(0,0,0,.5); }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; padding: 1.1rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: 1.1rem; }
.editor-head p { margin-top: .35rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.form-fields { display: grid; gap: .55rem; padding: 1.1rem 1.25rem; }
.form-fields > label { font-weight: 640; font-size: .86rem; color: var(--regular); }
.form-fields input + label, .form-fields select + label { margin-top: .3rem; }
.form-summary { border-radius: .25rem; padding: .62rem .8rem; background: #f5f7fa; color: var(--regular); font-size: .875rem; }
.form-summary strong { margin-left: .25rem; color: var(--purple-dark); }
.form-fields .checkline { display: flex; align-items: center; gap: .45rem; min-height: 2rem; }
.checkline input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--purple); }
.form-error { margin: 0 1.25rem .95rem; padding: .55rem .7rem; border-radius: .25rem; background: #fef0f0; color: #e04545; font-size: .86rem; line-height: 1.5; }
.editor-actions { display: flex; justify-content: flex-end; gap: .55rem; padding: .8rem 1.25rem; border-top: 1px solid var(--line); }

@media (max-width: 65rem) {
  .workspace { grid-template-columns: 11.7rem minmax(0, 1fr); }
  .tiles { gap: .68rem; }
  .tile { gap: .7rem; padding: .8rem .8rem; }
  .tile-icon { width: 2.6rem; height: 2.6rem; }
  th, td { padding-right: .8rem; padding-left: .8rem; }
}
@media (max-width: 59rem) {
  .gift-workspace { grid-template-columns: minmax(0,1fr); gap: .15rem; }
  .gift-channel-list { max-height: 14rem; }
}
@media (max-width: 47rem) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; }
  .brand { min-height: 3.6rem; padding: .6rem 1rem; }
  .brand-mark { width: 2.2rem; height: 2.2rem; border-radius: .45rem; }
  .sidebar-foot, .nav-title { display: none; }
  .nav { display: flex; overflow-x: auto; gap: .25rem; padding: 0 .55rem .55rem; }
  .nav a { flex: 0 0 auto; min-height: 2.3rem; gap: .32rem; margin: 0; padding: .4rem .5rem; border-radius: .35rem; font-size: .83rem; box-shadow: none !important; }
  .nav a svg { width: .95rem; height: .95rem; }
  .topbar { min-height: 2.8rem; }
  .main { padding-top: 1.3rem; }
  .tile { flex-direction: column; align-items: flex-start; gap: .48rem; }
  .tile p { font-size: .77rem; }
  .tile strong { font-size: 1.35rem; }
  .tile-icon { width: 2.1rem; height: 2.1rem; border-radius: .4rem; }
  .tile-icon svg { width: 1.05rem; height: 1.05rem; }
  .panel-heading { padding: .9rem; }
  .chart svg { height: 10rem; }
  .gift-summary { gap: .4rem; }
  .gift-summary > div { padding: .5rem .6rem; }
  .gift-quote-band, .gift-region, .gift-exclusions { margin-left: .9rem; margin-right: .9rem; }
}
@media (max-width: 30rem) {
  .page-heading, .tools-heading { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .page-heading > .btn { align-self: flex-start; }
  .tiles { gap: .35rem; }
  .tile { min-height: 5.6rem; padding: .5rem; }
  .tile p { font-size: .72rem; }
  .home-next .btn { margin-left: 0; }
  .gift-region { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }

/* ÉÌÆ·Ä¿Â¼£ºÊÓÍ¼ÇÐ»»¡¢ÅúÁ¿²Ù×÷Óë·Ö×é±í¸ñ */
.catalog-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.view-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; }
.view-tabs button { border: 0; background: #fff; padding: .45rem .9rem; font-size: .84rem; font-weight: 620; color: var(--regular); cursor: pointer; }
.view-tabs button + button { border-left: 1px solid var(--border); }
.view-tabs button.active { background: var(--lavender); color: var(--purple-dark); font-weight: 700; }
.bulk-bar { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0 1.1rem .8rem; padding: .6rem .85rem; background: var(--lavender); border: 1px solid #c6c8fb; border-radius: .5rem; font-size: .86rem; }
.bulk-count { font-weight: 660; color: var(--purple-dark); margin-right: .3rem; }
.col-check { width: 2.6rem; text-align: center; }
td.col-check { min-width: 2.6rem; }
.row-check { width: 1rem; height: 1rem; margin: 0; accent-color: var(--purple); cursor: pointer; }
.row-actions { white-space: nowrap; }
.row-actions .text-btn + .text-btn { margin-left: .35rem; }
.nested-cell { background: #f5f7fa; padding: .5rem 1.1rem .7rem 2.2rem; }
tbody tr:hover td.nested-cell { background: #f5f7fa; }
.nested-table { background: transparent; }
.nested-table th, .nested-table td { padding: .4rem .8rem .4rem 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: .84rem; min-width: 0; }
.nested-table td:first-child { min-width: 10rem; }
.nested-table tbody tr:last-child td { padding-bottom: .4rem; }
.nested-table tbody tr:hover td { background: transparent; }
.radio-group { border: 0; padding: 0; margin: 0 0 .2rem; display: grid; gap: .3rem; }
.radio-group legend { font-weight: 640; font-size: .86rem; color: var(--regular); margin-bottom: .3rem; padding: 0; }
