#offers-view { padding-block: 34px 48px; }
.offers-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:26px; }
.offers-heading h1 { font-size:clamp(35px, 3.45vw, 58px); line-height:1.04; letter-spacing:-.056em; font-weight:800; }
.offers-kicker { color:var(--muted); font-weight:800; font-size:12px; letter-spacing:.15em; margin-bottom:13px; }
.offers-intro { color:var(--muted); max-width:65ch; margin-top:13px; font-size:clamp(15px,1.3vw,18px); }
.offers-mascot { width:clamp(120px,18vw,256px); height:190px; object-fit:contain; flex:none; }
.offers-surface { background:var(--surface); border:1px solid var(--line); border-radius:17px; }
.offers-empty { display:grid; grid-template-columns:1.08fr 1fr; overflow:hidden; }
.offers-empty[hidden] { display:none; }
.offers-empty > :is(div,aside) { padding:clamp(25px,4vw,62px); }
.offers-empty > div { align-content:center; }
.offers-empty > aside { border-left:1px solid var(--line); background:color-mix(in srgb,var(--surface) 45%,var(--bg)); }
.offers-empty h2 { margin-block:18px 9px; font-size:clamp(24px,2.55vw,39px); line-height:1.1; letter-spacing:-.04em; }
.offers-empty h3 { font-size:clamp(18px,1.6vw,24px); letter-spacing:-.025em; }
.offers-empty p, .offers-status, .offers-visible, .offers-form p, .offers-preview p { color:var(--muted); }
.offers-empty button { margin-top:23px; }
.offers-empty ul { display:grid; gap:17px; padding:0; margin:20px 0 0; list-style:none; }
.offers-empty li { display:flex; align-items:flex-start; gap:12px; }
.offers-empty li > .icon { width:34px; height:34px; border-radius:9px; padding:8px; background:var(--surface); border:1px solid var(--line); color:var(--blue-text); flex:none; }
.offers-empty li p { font-size:13px; margin-top:2px; }
.offers-symbol { display:grid; place-items:center; width:46px; aspect-ratio:1; flex:none; border-radius:11px; color:var(--blue-text); background:var(--blue-soft); }
.offers-status { margin-bottom:14px; font-size:13px; }
.offers-status:empty, .offers-form-error:empty { display:none; }
#offers-view :is(.secondary-button,.primary-button) { padding:8px 14px; font-weight:800; white-space:nowrap; }
#offers-view .secondary-button { border:1px solid var(--line); }
#offers-view .secondary-button:hover, .offers-filters button:hover { background:var(--surface-hover); }
#offers-view :is(input,select,textarea) { padding:10px 12px; min-height:43px; border:1px solid var(--line-strong); border-radius:10px; color:var(--ink); background:var(--surface); font:inherit; font-size:14px; }
#offers-view :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
.offers-editor:not([hidden]) { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(230px,1fr); align-items:start; gap:18px; }
.offers-form, .offers-preview { padding:clamp(17px,2.1vw,31px); min-width:0; }
.offers-description-label, .offers-preview h2 { font-size:18px; font-weight:800; }
.offers-form #offer-description-help { margin:5px 0 12px; font-size:13px; }
#offers-view #offer-product { width:100%; min-height:137px; line-height:1.62; background:var(--bg); resize:vertical; }
#offer-characters { text-align:right; font-size:12px; font-variant-numeric:tabular-nums; margin:4px 0 14px; }
.offers-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 15px; margin-bottom:15px; }
.offers-fields label, .offers-advanced label { display:block; font-size:13px; font-weight:800; }
.offers-fields :is(input,select), .offers-advanced input { display:block; width:100%; margin-top:5px; }
.offers-optional { grid-template-columns:repeat(3,minmax(0,1fr)); }
.offers-optional small { font-weight:600; color:var(--muted); }
.offers-advanced summary { width:fit-content; cursor:pointer; color:var(--muted); font-size:13px; }
.offers-advanced label { margin-top:9px; }
.offers-form-actions, .offers-row-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.offers-form-actions { justify-content:flex-end; border-top:1px solid var(--line); margin-top:18px; padding-top:16px; }
.offers-form-actions [data-draft] { margin-right:auto; }
.offers-form-actions .primary-button { display:flex; align-items:center; gap:6px; }
.offers-preview-art { display:grid; place-items:center; aspect-ratio:1.85; margin:16px 0; border-radius:13px; color:var(--blue-text); background:linear-gradient(145deg,var(--surface-hover),var(--blue-soft)); }
.offers-preview-art span { display:grid; place-items:center; width:80px; aspect-ratio:1; transform:rotate(-9deg); border:1px solid var(--line); background:var(--surface); border-radius:17px; box-shadow:6px 9px 0 var(--blue-soft),0 14px 32px #10245624; }
.offers-preview-art .icon { width:36px; height:36px; }
.offers-preview h3 { font-size:24px; line-height:1.2; letter-spacing:-.035em; overflow-wrap:anywhere; }
.offers-preview p { margin-top:10px; overflow-wrap:anywhere; }
.offers-preview-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:16px; }
.offers-tag, .offers-draft-tag { display:inline-block; border-radius:7px; background:var(--blue-soft); color:var(--blue-text); font-size:12px; font-weight:800; padding:4px 8px; }
.offers-draft-tag { background:var(--surface-hover); color:var(--muted); margin:3px; }
.offers-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px; }
.offers-metrics > div { display:flex; align-items:center; gap:13px; padding:17px; }
.offers-metrics strong { display:block; font-size:28px; line-height:1.15; font-variant-numeric:tabular-nums; }
.offers-metrics div > div > span { color:var(--muted); font-size:13px; }
.offers-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px; }
.offers-filters { display:flex; flex-wrap:wrap; gap:4px; margin-right:auto; }
.offers-filters button { border-radius:9px; padding:8px 11px; min-height:42px; font-size:13px; font-weight:800; color:var(--muted); }
.offers-filters button[aria-pressed=true] { background:var(--blue-soft); color:var(--blue-text); }
.offers-filters button span { margin-left:4px; }
.offers-search { position:relative; flex:1 1 220px; }
.offers-search .icon { position:absolute; left:11px; top:12px; color:var(--muted); width:18px; height:18px; }
#offers-view .offers-search input { padding-left:36px; width:100%; }
.offers-table { overflow:auto; }
.offers-table table { width:100%; min-width:680px; border-collapse:collapse; }
.offers-table th, .offers-table td { text-align:left; padding:13px 12px; border-bottom:1px solid var(--line); font-size:13px; }
.offers-table thead th { background:var(--bg); color:var(--muted); font-size:11px; letter-spacing:.075em; text-transform:uppercase; }
.offers-table tr:last-child td,.offers-table tbody tr:last-child th { border-bottom:0; }
.offers-row-name { display:flex; align-items:center; gap:12px; }
.offers-row-name button { display:block; padding:0; text-align:left; font-weight:800; overflow-wrap:anywhere; }
.offers-row-name small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:35ch; color:var(--muted); font-weight:500; font-size:12px; overflow-wrap:anywhere; }
.offers-visible { text-align:right; font-size:12px; margin-top:12px; }
.offers-no-match { color:var(--muted); padding:24px; }
.offers-form .offers-form-error { color:var(--ink); background:var(--blue-soft); padding:9px 12px; border-radius:8px; overflow-wrap:anywhere; }
.offers-dialog { position:fixed; inset:0; margin:auto; width:min(630px,calc(100% - 26px)); max-height:85dvh; padding:26px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:18px; }
.offers-dialog h2 { margin:0 32px 12px 0; overflow-wrap:anywhere; }
.offers-detail { overflow-wrap:anywhere; }
.offers-detail dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.offers-detail dt { font-weight:800; font-size:13px; }
.offers-detail dd { margin:0; color:var(--muted); }
@media(max-width:760px) {
  #offers-view { padding-top:24px; }
  .offers-editor:not([hidden]), .offers-empty { grid-template-columns:1fr; }
  .offers-empty > aside { border-left:0; border-top:1px solid var(--line); }
  .offers-mascot { width:92px; height:104px; }
  .offers-heading { gap:10px; }
  .offers-metrics { gap:7px; }
  .offers-metrics > div { padding:10px; }
  .offers-metrics .offers-symbol { display:none; }
}
@media(max-width:500px) {
  .offers-heading:has([data-new]:not([hidden])) { align-items:flex-start; flex-direction:column; }
  .offers-fields, .offers-optional { grid-template-columns:1fr; }
}
