/* Cue corporate workspace. Shared support-console primitives live here too. */
:root {
  color-scheme: light;
  --navy: #163e35;
  --ink: #193d34;
  --muted: #5f6e64;
  --paper: #f5f4ee;
  --line: #dfe4da;
  --green: #245a46;
  --white: #fffefa;
  --red: #a13639;
  --lime: #d6eb8e;
  --radius: 18px;
  font: 15px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
::selection { color: var(--navy); background: var(--lime); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #397954;
  outline-offset: 4px;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid #d4ded1;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
button:hover { background: #edf1e6; border-color: #b3c3ae; }
button:active { background: #e2e9db; }
button:disabled { cursor: not-allowed; opacity: .55; }
button.primary { background: var(--navy); border-color: var(--navy); color: #fffefa; }
button.primary:hover { background: #245846; border-color: #245846; }
button.danger { color: var(--red); border-color: #e4cac7; }
button.danger:hover { background: #fff0ec; border-color: #c69d98; }
button:disabled:hover { box-shadow: none; }
h1, h2, h3 { color: inherit; text-wrap: balance; }
h1 { margin: 5px 0 12px; font-size: clamp(30px, 3.1vw, 43px); font-weight: 600; letter-spacing: -.055em; line-height: 1.1; }
h2 { margin: 0 0 20px; font-size: 19px; font-weight: 650; letter-spacing: -.035em; line-height: 1.3; }
h3 { margin: 0 0 12px; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
p { margin: 0 0 18px; }
small { font-size: 12px; line-height: 1.5; }
.muted, small { color: var(--muted); }
.eyebrow { margin-bottom: 10px; color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }

/* Navigation stays distinct from customer controls and operational records. */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  margin: 12px 0 12px 12px;
  padding: 29px 17px 22px;
  overflow-y: auto;
  border: 1px solid #244d40;
  border-radius: 20px;
  color: #e6eee2;
  background: var(--navy);
  scrollbar-width: thin;
  scrollbar-color: #759482 transparent;
}
.brand { display: inline-block; color: inherit; font-size: 30px; font-weight: 700; letter-spacing: -.075em; line-height: 1.15; text-decoration: none; }
.brand span { color: var(--lime); }
.sidebar .brand { padding: 0 14px; }
.sidebar .eyebrow { margin: 12px 14px 36px; color: #b9cbb6; font-size: 9px; letter-spacing: .19em; }
.nav { display: grid; gap: 5px; }
.nav button {
  position: relative;
  justify-content: flex-start;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #cfddcd;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.nav button::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; margin-right: 5px; border: 1px solid #8fa891; border-radius: 2px; }
.nav button:hover { background: #244c3f; color: #fffefa; }
.nav button[aria-current="page"] { background: var(--lime); border-color: var(--lime); color: var(--navy); font-weight: 700; }
.nav button[aria-current="page"]::before { background: var(--navy); border-color: var(--navy); }
.sidebar :focus-visible, .login-story :focus-visible { outline-color: var(--lime); }
.sidebar footer { margin-top: auto; padding: 30px 14px 0; font-size: 11px; color: #b9cbb6; }
.sidebar footer > span { display: block; border-top: 1px solid #3b5c4b; padding-top: 19px; }
.sidebar footer button { margin-top: 12px; width: 100%; color: #e8efe3; background: transparent; border-color: #52725d; font-size: 12px; }
.sidebar footer button:hover { background: #244c3f; }
.workspace { min-width: 0; }
.topbar { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(24px, 3vw, 48px); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.topbar > div { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.topbar span { overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 5px 10px; color: #24533c; background: #eaf0e2; border: 1px solid #dce5d0; border-radius: 6px; font-size: 11px; font-weight: 650; line-height: 1.35; vertical-align: middle; }
.tag.warning { color: #76551a; border-color: #eadcb3; background: #fbf1d6; }
main { max-width: 1560px; padding: 38px clamp(24px, 3vw, 48px) 64px; margin: 0 auto; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.heading > div { min-width: 0; }
.heading > button { flex-shrink: 0; }
.heading p { margin: 0; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr)); gap: 16px; margin-bottom: 22px; }
.card { min-width: 0; padding: 25px; margin-bottom: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 3px #203b2703; }
.grid > .card { margin-bottom: 0; }
.metric { margin: 15px 0 5px; font-size: clamp(29px, 2.5vw, 40px); font-weight: 550; line-height: 1.15; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.card .grid { margin-bottom: 18px; }
.card .grid .card { margin: 0; padding: 19px; background: #f9f9f3; box-shadow: none; }
.card > :last-child { margin-bottom: 0; }

/* Scroll dense records within their panel, rather than the whole workspace. */
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 11px; scrollbar-width: thin; scrollbar-color: #a8b8a0 #f3f5ed; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.55; }
th { color: #65705f; background: #f3f5eb; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
td, th { padding: 15px 16px; border-bottom: 1px solid #e7ebe0; vertical-align: top; }
th { white-space: nowrap; }
td { min-width: 105px; max-width: 340px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
tbody tr { background: var(--white); }
tbody tr:hover { background: #f6f8ef; }
tr:last-child td { border-bottom: 0; }
td button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.table-wrap small { display: block; max-width: 230px; margin-top: 4px; }
.empty { margin: 0; padding: 48px 22px; border: 1px dashed #d3dccb; border-radius: 12px; color: var(--muted); background: #fafaf4; text-align: center; font-size: 13px; }
.toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.toolbar label { flex: 1; min-width: min(100%, 160px); margin-bottom: 0; }
label { display: grid; gap: 8px; margin-bottom: 18px; color: #355341; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #cdd7c6; border-radius: 9px; color: var(--ink); background: #fffefa; font-size: 14px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #687562; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #a1b599; }
input:focus, select:focus, textarea:focus { border-color: #4a7755; outline: 3px solid #4a77552e; outline-offset: 2px; }
input:disabled, select:disabled, textarea:disabled { background: #f0f2e9; color: #707c6d; cursor: not-allowed; }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 20px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.actions > :is(select, input) { flex: 1 1 190px; width: auto; max-width: 380px; }
.actions + p, .actions + div { margin-top: 18px; }
.error { padding: 16px 18px; margin-bottom: 20px; color: #8e3032; background: #fff1ec; border: 1px solid #e9c8c0; border-radius: 11px; font-size: 13px; overflow-wrap: anywhere; }
.info { padding: 17px 20px; margin-bottom: 24px; border: 1px solid #dce5d0; border-radius: 12px; color: #40533a; background: #ecf1e1; font-size: 13px; line-height: 1.7; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 22px; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 6px 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.message { padding: 16px 20px; margin: 16px 0; border-left: 3px solid #acc59a; border-radius: 0 10px 10px 0; color: #37513e; background: #f1f5e9; white-space: pre-wrap; overflow-wrap: anywhere; }
.internal-note { background: #fcf5df; border-color: #cfac5d; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.section-tabs button { background: transparent; border-color: transparent; color: var(--muted); }
.section-tabs button:hover { color: var(--navy); background: #e9edde; }
.section-tabs button[aria-pressed="true"] { color: var(--navy); background: #e2ecce; border-color: #cfdeba; }
.published-price { border-top: 3px solid #abc972; }
.published-price .eyebrow { text-transform: capitalize; letter-spacing: .03em; }
.disclosure > summary { margin-left: 16px; cursor: pointer; list-style-position: outside; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.disclosure > summary::marker, .login-form summary::marker { color: var(--green); }
.disclosure[open] > summary { margin-bottom: 24px; }
.disclosure > .card { padding: 0; margin-bottom: 0; border: 0; box-shadow: none; }
.disclosure form { max-width: 760px; }
.disclosure input, .disclosure select { max-width: 100%; }
.publication-preview { padding: 10px; margin-bottom: 24px; border-radius: 12px; background: #f0f3e7; }
.text-action { justify-content: flex-start; min-height: 36px; padding: 4px 0; border: 0; border-radius: 3px; color: var(--green); background: transparent; font-weight: 650; text-align: left; }
.text-action:hover { color: var(--navy); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Authentication retains its native passkey and private QR-code workflows. */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; padding: 14px; gap: 14px; }
.login-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(36px, 6.5vw, 108px); border-radius: 22px; color: var(--white); background: var(--navy); }
.login-story::before { content: ""; position: absolute; z-index: -1; width: 38vw; height: 38vw; right: -22vw; bottom: -14vw; border: 1px solid #698064; border-radius: 50%; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff03; pointer-events: none; }
.login-story .brand { position: relative; margin-bottom: 10px; font-size: 34px; }
.login-story .eyebrow { color: #cbdcb9; font-size: 10px; }
.login-story h1 { max-width: 550px; margin: clamp(52px, 8vh, 100px) 0 26px; font-size: clamp(40px, 4.8vw, 70px); font-weight: 500; letter-spacing: -.065em; line-height: 1.03; white-space: pre-line; }
.login-story p { max-width: 360px; margin-bottom: 0; color: #c1d0b9; font-size: 15px; line-height: 1.8; }
.login-form { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: none; margin: 0; padding: 40px clamp(24px, 4vw, 64px); }
.login-form > .card { width: 100%; max-width: 450px; padding: 36px; margin-bottom: 0; border-color: #e1e5d8; border-radius: 20px; background: #fffefa; box-shadow: 0 14px 45px #23382407; }
.login-form h2 { margin-bottom: 16px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.05em; }
.login-form p { font-size: 13px; line-height: 1.7; }
.login-form .card .card { padding: 20px 0 0; border: 0; box-shadow: none; }
.login-form .card .card h2 { font-size: 20px; }
.login-form form > button { width: 100%; margin-top: 4px; }
.login-form > .error { width: 100%; max-width: 450px; }
.login-form > a { margin: 8px 0 18px; }
.login-form details { margin: 20px 0; font-size: 13px; }
.login-form summary { padding: 8px 0; cursor: pointer; font-weight: 550; }
.authenticator-qr { display: block; width: 280px; max-width: 100%; height: auto; margin: 22px auto; background: #fff; image-rendering: pixelated; }
.passkey-button { width: 100%; min-height: 49px; margin: 8px 0; }
.passkey-help { margin-top: 18px; font-size: 12px; }
.reauth-dialog { width: calc(100% - 32px); max-width: 490px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 32px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 24px 100px #08271d40; }
.reauth-dialog::backdrop { background: #102e256e; backdrop-filter: blur(4px); }
.reauth-dialog h2 { font-size: 26px; font-weight: 600; letter-spacing: -.05em; }
.reauth-dialog p { font-size: 13px; }
.reauth-dialog .actions { margin-top: 26px; }

.support-page { max-width: 1060px; padding-top: 48px; }
.support-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(24px, 4vw, 60px); color: var(--white); background: var(--navy); }
.support-header a { color: var(--white); }
.support-header > a:last-child { font-size: 13px; text-underline-offset: 4px; }
.skip { position: fixed; z-index: 1000; top: -120px; left: 16px; padding: 12px 18px; border: 1px solid var(--navy); border-radius: 8px; color: var(--navy); background: var(--white); font-weight: 600; }
.skip:focus { top: 16px; }
#notice:not(:empty) { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 16px 22px; border: 1px solid #597050; border-radius: 12px; color: var(--white); background: var(--navy); font-size: 13px; box-shadow: 0 12px 35px #14362925; overflow-wrap: anywhere; }
.no-script { max-width: 540px; margin: 10vh auto; padding: 32px; }
[hidden] { display: none !important; }

@media (min-width: 1600px) { .layout { grid-template-columns: 282px minmax(0, 1fr); } .sidebar { padding-inline: 22px; } }
@media (max-width: 1080px) {
  .layout { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .topbar { align-items: flex-start; }
  .topbar > span { max-width: 210px; }
  .login-story { padding: 40px; }
  .login-form { padding: 24px; }
  .login-form > .card { padding: 28px; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; margin: 10px 10px 0; padding: 20px 14px 14px; overflow: visible; border-radius: 16px; }
  .sidebar .brand { padding: 0 10px; font-size: 27px; }
  .sidebar .eyebrow { margin: 8px 10px 18px; }
  .nav { display: flex; gap: 5px; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
  .nav button { flex: 0 0 auto; min-height: 44px; padding: 10px 12px; white-space: nowrap; }
  .sidebar footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; padding: 14px 10px 0; border-top: 1px solid #3b5c4b; }
  .sidebar footer > span { padding: 0; border: 0; }
  .sidebar footer button { width: auto; min-height: 40px; margin: 0; padding: 9px 14px; }
  .topbar { min-height: 70px; padding: 18px 24px; }
  main { padding: 30px 24px 48px; }
  .heading { align-items: flex-start; gap: 16px; margin-bottom: 26px; }
  h1 { font-size: 33px; }
  .card { padding: 22px; border-radius: 14px; }
  .login { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 0; }
  .login-story { padding: 30px; border-radius: 16px; }
  .login-story h1 { max-width: 520px; margin-top: 30px; font-size: 42px; }
  .login-story p { max-width: 510px; font-size: 13px; }
  .login-form { padding: 30px 16px; }
  .login-form > .card { max-width: 540px; }
  td button { min-height: 44px; }
  .text-action { min-height: 44px; }
}
@media (max-width: 480px) {
  .topbar { flex-direction: column; gap: 10px; padding-inline: 18px; }
  .topbar > span { max-width: none; }
  .topbar > div { justify-content: flex-start; }
  main { padding: 26px 16px 44px; }
  .heading { flex-wrap: wrap; }
  .heading > button { min-height: 40px; padding: 9px 13px; }
  h1 { font-size: 30px; }
  .card { padding: 19px; }
  .grid { gap: 12px; }
  .metric { font-size: 35px; }
  td, th { padding: 13px 12px; }
  .actions > :is(input, select) { flex-basis: 100%; max-width: none; }
  .toolbar > button { width: 100%; }
  .login-story { padding: 26px; }
  .login-story h1 { font-size: 36px; }
  .login-form { padding: 22px 4px; }
  .login-form > .card { padding: 26px 22px; }
  .support-header { padding: 22px 18px; }
  .support-header .brand { font-size: 26px; }
  .reauth-dialog { padding: 25px; }
  #notice:not(:empty) { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .nav button[aria-current="page"], .section-tabs button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .nav button::before { forced-color-adjust: auto; }
  button, .card, .tag, .info, .error, .sidebar, .table-wrap { border-color: CanvasText; }
}
@media print {
  .sidebar, .topbar, .skip, #notice, .heading > button, .section-tabs { display: none !important; }
  body, .card { background: white; color: black; }
  .layout { display: block; }
  main { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
/* Account offers remain readable without a long, single-column settings wall. */
.offer-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; max-width: 840px; }
.offer-form > :not(label), .offer-form > label:has(textarea), .offer-form > label:has([name="promotionId"]), .offer-form > label:has([name="tenantName"]) { grid-column: 1 / -1; }
.offer-form > button { justify-self: start; }
.offer-form > label[hidden] { display: none; }
@media(max-width:650px) { .offer-form { grid-template-columns: 1fr; } }

/* Inline list stays scrollable without an operating-system popup. */
.recording-account-list{display:block;width:100%;height:15rem;max-height:40vh;overflow-y:auto;background-image:none;padding:6px}.recording-account-list option{padding:10px 12px;white-space:normal;overflow-wrap:anywhere}
