:root {
  --page: #f0f4f8; --surface: #fff; --surface-soft: #f8fafc;
  --text: #18324f; --muted: #586b7d; --border: #d6dfe8;
  --accent: #2463a6; --focus: #a85f00;
  --error-bg: #fff0eb; --error-border: #e9b7a5; --error-text: #8a3425;
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --page: #101923; --surface: #192735; --surface-soft: #203141;
  --text: #e5edf5; --muted: #b0c0cf; --border: #405468;
  --accent: #8bbcf0; --focus: #edbe70;
  --error-bg: #432b30; --error-border: #b87c83; --error-text: #ffd3d6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 16px; }
button, input, textarea, select { font: inherit; }
button, a { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #153d4a; color: #fff; font-weight: 750; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.landing-page { min-height: 100dvh; }
.landing-header { max-width: 1320px; margin: 0 auto; padding: 20px clamp(24px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.landing-header .brand { color: var(--text); text-decoration: none; font-size: 20px; line-height: 1.1; }
.landing-header .brand-mark { width: 43px; height: 43px; border-radius: 12px; font-size: 23px; }
.landing-header small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .03em; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 17px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-link:hover { border-color: var(--accent); }
.landing-hero { max-width: 1320px; min-height: 590px; margin: 0 auto; padding: clamp(48px, 7vw, 104px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(350px, .86fr); align-items: center; gap: clamp(36px, 6vw, 94px); position: relative; }
.landing-hero::before { content: ""; position: absolute; inset: 15% 32% 12% 0; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, #c8dce875, transparent 66%); pointer-events: none; }
.hero-copy { max-width: 650px; }
.hero-copy .eyebrow { display: inline-block; margin-bottom: 22px; padding: 7px 12px; border: 1px solid #b9d1d7; border-radius: 6px; background: #e7f0f2; color: #185766; font-size: 12px; letter-spacing: .03em; text-transform: none; }
.hero-copy h1 { margin: 0; font-size: clamp(40px, 5.5vw, 74px); line-height: 1.06; letter-spacing: -.045em; }
.hero-lead { max-width: 560px; margin: 24px 0 28px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.52; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 14px; }
.note-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #2a8e8a; box-shadow: 0 0 0 4px #2a8e8a22; }
.landing-card { width: 100%; max-width: 455px; justify-self: end; padding: clamp(26px, 3.4vw, 42px); box-shadow: 0 24px 65px #18324f20; }
.landing-card h2 { margin: 6px 0 8px; font-size: clamp(30px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.card-eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.landing-card .intro { margin-bottom: 26px; font-size: 15px; }
.landing-details { max-width: 1320px; margin: 0 auto; padding: 28px clamp(24px, 5vw, 72px) 66px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.landing-details > div { padding: 22px 24px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.detail-number { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.landing-details h2 { margin: 10px 0 7px; font-size: 19px; }
.landing-details p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.48; }
.landing-footer { max-width: 1176px; margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
:root[data-theme="dark"] .hero-copy .eyebrow { border-color: #396974; background: #183841; color: #b5e4ed; }
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 430px); padding: clamp(24px, 5vw, 38px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 14px 45px #18324f12; }
h1 { margin: 28px 0 8px; font-size: clamp(28px, 4vw, 34px); line-height: 1.15; }
.intro, .section-intro { color: var(--muted); line-height: 1.5; }
.intro { margin: 0 0 28px; }
.field { min-width: 0; }
.field + .field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.field input, .field select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--text); }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.primary-button, .secondary-button { min-height: 44px; padding: 10px 16px; border-radius: 8px; font-weight: 650; }
.primary-button { border: 1px solid #153d4a; background: #153d4a; color: #fff; }
.primary-button:hover { background: #225667; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.secondary-button { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.secondary-button:hover { background: var(--surface-soft); }
.auth-card .primary-button { width: 100%; margin-top: 24px; }
.auth-page .admin-login-eyebrow { margin: 28px 0 0; }
.role-warning { margin: 10px 0 0; padding: 11px 13px; border: 1px solid #d9c39a; border-radius: 8px; background: #fbf4e7; color: #674e1e; font-size: 13px; line-height: 1.45; }
:root[data-theme="dark"] .role-warning { border-color: #876e43; background: #3b3328; color: #f3dfb8; }
.switch-line { margin: 22px 0 0; line-height: 1.45; font-size: 14px; }
.message { margin: 18px 0 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); line-height: 1.45; }
.message-error, .message[data-state="error"] { border-color: var(--error-border); background: var(--error-bg); color: var(--error-text); }
.admin-header { max-width: 1160px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-shell { max-width: 1040px; margin: 0 auto; padding: 0 24px 48px; }
.page-heading { margin: 24px 0 28px; }
.page-heading h1 { margin: 4px 0 8px; }
.page-heading p:last-child { color: var(--muted); margin: 0; }
.eyebrow { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.panel { margin-top: 20px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.panel h2 { margin: 0 0 18px; font-size: 20px; }
.invite-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.invite-form .field + .field { margin: 0; }
.field-wide { grid-column: 1 / -1; }
.invite-form .primary-button { justify-self: start; }
.new-codes { margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.new-codes h3 { margin: 0 0 6px; font-size: 17px; }
.new-codes p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.new-codes textarea { display: block; margin-bottom: 12px; resize: vertical; font-family: ui-monospace, Consolas, monospace; }
.section-intro { margin: -8px 0 18px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 13px; color: var(--muted); }
td .secondary-button { min-height: 36px; padding: 6px 10px; white-space: nowrap; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-invitation { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); min-width: 220px; }
.inline-invitation code { overflow-wrap: anywhere; }
.inline-invitation p { margin: 0; line-height: 1.4; }
.inline-invitation button { justify-self: start; }
.empty-state { margin: 0; padding: 18px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-page { min-height: 100dvh; }
.admin-brand { color: var(--text); text-decoration: none; }
.admin-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.account-menu { position: relative; }
.account-avatar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-weight: 750; cursor: pointer; list-style: none; }
.account-avatar::-webkit-details-marker { display: none; }
.account-avatar:hover, .account-menu[open] .account-avatar { border-color: var(--accent); background: var(--surface-soft); }
.account-avatar:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.account-menu-panel { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; display: grid; gap: 6px; width: min(280px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 36px #18324f24; overflow-wrap: anywhere; }
.account-menu-panel p { margin: 0; }
.account-menu-label { color: var(--muted); font-size: 12px; }
#account-role { color: var(--accent); font-size: 14px; font-weight: 650; }
#account-email { color: var(--muted); font-size: 13px; }
.account-menu-panel button { margin-top: 10px; text-align: left; }
.admin-shell { max-width: 1160px; }
.admin-intro { margin-top: 30px; }
.admin-intro h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; }
.admin-nav { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.admin-nav a { flex: none; padding: 13px 17px; color: var(--muted); font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
.admin-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.section-head { margin: 0 0 16px; }
.section-head h2 { margin: 5px 0 7px; font-size: clamp(22px, 2.8vw, 29px); letter-spacing: -.02em; }
.section-head p:last-child { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.5; }
.admin-section { margin-top: 44px; scroll-margin-top: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-stats > div { padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.admin-stats span { display: block; color: var(--muted); font-size: 14px; }
.admin-stats strong { display: block; margin-top: 8px; font-size: 33px; line-height: 1; letter-spacing: -.035em; }
.admin-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.admin-actions a { display: flex; flex-direction: column; gap: 12px; min-height: 120px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; }
.admin-actions a:hover { border-color: var(--accent); box-shadow: 0 8px 24px #18324f12; }
.admin-actions strong { font-size: 18px; }
.admin-actions span { color: var(--accent); font-size: 14px; font-weight: 650; }
.attention-panel { margin-top: 14px; }
.attention-panel h3 { margin: 0 0 14px; font-size: 19px; }
.admin-section .panel { margin-top: 14px; }
.admin-section .panel h3 { margin: 0 0 17px; font-size: 19px; }
.form-divider { padding-bottom: 9px; border-bottom: 1px solid var(--border); color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: .05em; }
.form-divider span { margin-left: 9px; color: var(--text); font-size: 16px; letter-spacing: 0; }
.inline-fields { display: flex; gap: 10px; }
.inline-fields input { flex: 1; min-width: 0; }
.inline-fields button { flex: none; }
.invite-form .primary-button { margin-top: 4px; }
.package-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.package-form .field + .field { margin: 0; }
.package-form .primary-button { justify-self: start; }
.package-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.package-options legend { padding: 0 5px; font-size: 14px; font-weight: 650; }
.package-options label { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.package-options label:has(input:checked) { border-color: var(--accent); background: var(--surface-soft); }
.check-field { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.check-field input, .package-options input { width: 17px; height: 17px; accent-color: var(--accent); }
.package-subfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.invite-form { margin-top: 22px; }
.recipient-row { padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); }
.recipient-row + .recipient-row { margin-top: 10px; }
.recipient-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.recipient-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recipient-fields label input { display: block; margin-top: 7px; }
.choices-list { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 9px; }
.choices-list legend { padding: 0 5px; font-weight: 650; }
.choices-list > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choices-list .check-field { font-weight: 500; }
.code-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.code-item strong { flex: 1 1 200px; overflow-wrap: anywhere; }
.code-item code { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .admin-nav { flex-wrap: wrap; overflow: visible; }
  .admin-nav a { padding: 10px 12px; }
  .admin-stats { grid-template-columns: 1fr; gap: 8px; }
  .admin-actions { grid-template-columns: 1fr; gap: 8px; }
  .admin-actions a { min-height: 0; }
  .admin-stats > div { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
  .admin-stats strong { margin: 0; font-size: 26px; }
  .inline-fields { flex-direction: column; }
  .package-form, .package-subfields { grid-template-columns: 1fr; }
  .recipient-fields, .choices-list > div { grid-template-columns: 1fr; }
  .package-form .primary-button { width: 100%; }
}
@media (max-width: 600px) {
  .landing-header { padding: 16px; }
  .landing-header .brand { font-size: 16px; }
  .landing-header .brand-mark { width: 37px; height: 37px; font-size: 19px; }
  .landing-header small { font-size: 10px; }
  .header-link { padding: 8px 11px; font-size: 13px; }
  .landing-hero { padding: 40px 16px 24px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .hero-lead { margin: 19px 0 22px; }
  .landing-card { padding: 24px; }
  .landing-details { grid-template-columns: 1fr; padding: 22px 16px 36px; gap: 12px; }
  .landing-footer { margin: 0 16px; }
  .auth-page { padding: 12px; }
  .admin-header { padding: 18px 16px; }
  .admin-shell { padding: 0 16px 32px; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .primary-button { width: 100%; }
  table { min-width: 690px; }
}
@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .landing-card { max-width: 540px; justify-self: stretch; }
}
.password-rules{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.password-rules[hidden]{display:none}
.password-rules li{padding:4px 10px;border:1px solid currentColor;border-radius:999px;font-size:12px;opacity:.65}
.password-rules li.met{opacity:1;font-weight:700}
.password-rules li.met::before{content:"✓ "}
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.subnav a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.subnav a:hover { border-color: var(--accent); }
.subsection { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.section-head.compact { margin-bottom: 14px; }
.section-head.compact h3 { margin: 0 0 6px; font-size: 20px; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-stats { margin-bottom: 4px; }
.demo-filter { max-width: 260px; margin-bottom: 18px; }
.demo-need { max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; }
td[data-state="failed"] { color: var(--error-text); font-weight: 700; }
td[data-state="sent"] { font-weight: 600; }
#demo-rows td input, #demo-rows td select { min-width: 150px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
/* Status colours follow the ClickUp list, so the same word has the same colour in both places. */
:root { --st-new: #3f5fe0; --st-contacted: #5b3fd1; --st-booked: #e8701a; --st-done: #1f9a5a; --st-declined: #d3225f; }
.demo-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.demo-stats > div[data-status] { border-left: 5px solid var(--sc); }
.demo-stats > div[data-status] span { color: var(--sc); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
[data-status="new"] { --sc: var(--st-new); }
[data-status="contacted"] { --sc: var(--st-contacted); }
[data-status="booked"] { --sc: var(--st-booked); }
[data-status="done"] { --sc: var(--st-done); }
[data-status="declined"] { --sc: var(--st-declined); }
#demo-rows td select[data-status] { background: var(--sc); border-color: var(--sc); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
#demo-rows td select[data-status] option { background: #fff; color: #173553; text-transform: none; font-weight: 400; }
#demo-rows td .danger-button { min-height: 36px; margin-top: 8px; padding: 4px 12px; border: 1px solid var(--error-text); border-radius: 8px; background: transparent; color: var(--error-text); font-weight: 700; cursor: pointer; }
#demo-rows td .danger-button:hover { background: var(--error-text); color: #fff; }

/* Admin responsive system: preserve scan order and make every action touch-friendly. */
.admin-page{overflow-x:hidden}
.admin-header,.admin-shell{width:min(100%,1160px)}
.admin-brand{min-width:0;overflow-wrap:anywhere}
.admin-header-actions{min-width:0}
.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-nav{scrollbar-width:thin;scroll-snap-type:x proximity}
.admin-nav a{scroll-snap-align:start;min-height:48px;display:inline-flex;align-items:center}
.panel,.admin-stats>div,.admin-actions a{min-width:0}
.field input,.field select,.field textarea,.inline-fields button,.primary-button,.secondary-button{min-height:46px}
.table-scroll{overscroll-behavior-inline:contain;scrollbar-width:thin}
.table-scroll table{min-width:680px}
.account-menu-panel button{min-height:44px}
@media(max-width:1050px){
  .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-intro{margin-top:24px}
}
@media(max-width:700px){
  .admin-header{align-items:flex-start;padding:16px}
  .admin-header-actions{margin-left:auto}
  .admin-header-actions .header-link{min-height:44px;padding-inline:12px}
  .admin-shell{padding-inline:16px;padding-bottom:32px}
  .admin-intro{margin-top:18px;margin-bottom:20px}
  .admin-intro h1{font-size:clamp(32px,9vw,42px)}
  .admin-nav{margin-inline:-16px;padding-inline:16px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}
  .admin-nav a{padding:10px 13px;white-space:nowrap}
  .admin-stats,.admin-actions{grid-template-columns:1fr;gap:8px}
  .admin-stats>div{padding:15px 16px}
  .admin-actions a{min-height:0;padding:16px}
  .panel{padding:18px 16px;border-radius:12px}
  .section-head h2{font-size:clamp(24px,7vw,31px)}
  .subnav{flex-wrap:nowrap;overflow-x:auto;margin-inline:-2px;padding-bottom:3px}
  .subnav a{white-space:nowrap}
  .invite-form,.package-form{grid-template-columns:1fr;gap:15px}
  .invite-form .field+.field,.package-form .field+.field{margin:0}
  .inline-fields{flex-direction:column}
  .inline-fields button,.invite-form .primary-button,.package-form .primary-button{width:100%}
  .package-options{gap:8px}
  .package-options label{flex:1 1 100px;justify-content:center}
  .package-subfields,.recipient-fields,.choices-list>div{grid-template-columns:1fr}
  .recipient-heading{align-items:flex-start;flex-direction:column}
  .recipient-heading button{width:100%}
  .pm-actions{display:grid;grid-template-columns:1fr}
  .pm-actions button{width:100%}
  .account-menu-panel{right:-8px;width:min(280px,calc(100vw - 32px))}
}
@media(max-width:420px){
  .admin-brand{font-size:15px;gap:7px}
  .brand-logo{width:32px;height:32px}
  .admin-header-actions .header-link{font-size:13px;padding-inline:9px}
  .account-avatar{width:42px;height:42px}
  .panel{padding-inline:14px}
  th,td{padding:11px 10px}
}

.package-tier-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow-y: auto; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.package-tier-dialog::backdrop { background: rgb(0 0 0 / .45); }
#packages-table table { min-width: 1040px; }
#package-rows td { overflow-wrap: normal; word-break: normal; }
#package-rows td:nth-child(2), #package-rows td:nth-child(3) { white-space: nowrap; }
#package-rows td:last-child { min-width: 230px; }
