:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f7f7f8;
  --ink: #191a1d;
  --muted: #666971;
  --line: #e6e7ea;
  --radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
:is(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid #3e6ee5; outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: 40px; line-height: 1.16; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.3; }
p { line-height: 1.6; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; display: inline-block; }
.shell { max-width: 1168px; margin: auto; padding: 0 40px; }
body > .shell { min-height: 100svh; display: flex; flex-direction: column; }
.shell > main { flex: 1; min-width: 0; }
.skip { position: absolute; left: -9999px; top: 10px; padding: 12px; background: white; z-index: 100; }
.skip:focus { left: 20px; }

/* Navigation */
.header { min-height: 80px; display: flex; align-items: center; gap: 64px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-size: 23px; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; }
.main-nav { display: flex; align-self: stretch; gap: 30px; font-size: 14px; }
.main-nav a { display: flex; align-items: center; position: relative; color: var(--muted); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.header-actions .button { min-height: 42px; padding: 10px 15px; }
.header-actions .account-button span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-link { position: relative; border-color: transparent !important; }
.unread-dot { position: absolute; top: 7px; right: 5px; background: #3e6ee5; border: 2px solid white; width: 9px; height: 9px; border-radius: 50%; }

/* Shared controls */
.button { min-height: 46px; padding: 12px 18px; border: 1px solid #dfe0e4; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; transition: background .15s, border-color .15s; }
.button:hover { background: var(--surface); border-color: #bfc2c8; }
.button-dark { background: var(--ink); border-color: var(--ink); color: white; }
.button-dark:hover { background: #35363b; border-color: #35363b; }
.button-dark .icon { filter: invert(1); }
.button-danger { background: #a62e2e; border-color: #a62e2e; color: white; }
.button-danger:hover { background: #872323; border-color: #872323; }
.site-dialog { width: min(460px,calc(100vw - 32px)); margin: auto; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: 0 20px 70px #0003; animation: dialog-enter .15s ease-out; }
.site-dialog::backdrop { background: #191a1d66; }
.site-dialog h2 { font-size: 24px; line-height: 1.3; margin: 0 24px 16px 0; }
.site-dialog p { font-size: 14px; line-height: 1.65; color: var(--muted); white-space: pre-line; }
.site-dialog-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; width: 32px; height: 32px; border-radius: 6px; font-size: 25px; color: var(--muted); }
.site-dialog-close:hover { background: var(--surface); }
.site-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-dialog { animation: none; } }
.button-icon { padding: 12px; min-width: 44px; }
.button-small { min-height: 40px; padding: 9px 12px; font-size: 13px; }
.button-small .icon { width: 16px; height: 16px; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-link { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; line-height: 1.6; min-height: 32px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 17px; height: 17px; }
.eyebrow { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.lead { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 530px; }
.quiet { color: var(--muted); font-size: 14px; }
.help { font-size: 12px; font-weight: 400; line-height: 1.65; color: var(--muted); display: block; margin-top: 9px; }
.help a { text-decoration: underline; text-underline-offset: 3px; }
.help .icon { width: 14px; height: 14px; }
code { font-size: .85em; background: #f0f1f3; border-radius: 4px; padding: 2px 6px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Home and games */
.hero { padding: 52px 0 42px; }
.hero h1 { max-width: 780px; font-size: 44px; letter-spacing: -.045em; }
.hero .lead { margin-top: 14px; }
.section { padding-bottom: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { font-size: 19px; letter-spacing: -.025em; }
.game-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.game-image { display: block; background: #161616; overflow: hidden; aspect-ratio: 16/9; }
.game-image > img { width: 100%; height: 100%; object-fit: cover; }
.game-info { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.game-info h3 { margin: 10px 0 12px; font-size: 25px; }
.game-info p:not(.eyebrow) { font-size: 14px; color: var(--muted); white-space: pre-line; }
.game-info .button { margin-top: auto; }
.featured-game { display: grid; grid-template-columns: 1.65fr 1fr; }
.featured-game .game-image { height: 100%; min-height: 330px; }
.featured-game .game-info { justify-content: center; padding: 36px; gap: 26px; }
.featured-game .button { margin-top: 0; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.featured-game + .game-grid { margin-top: 24px; }
.game-grid .game-info { min-height: 225px; }
.more-soon { margin: 24px 0 0; font-size: 13px; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-links > a { display: flex; gap: 14px; align-items: center; padding: 24px 0; font-size: 14px; }
.quick-links > a + a { border-left: 1px solid var(--line); padding-left: 28px; }
.quick-links > a:first-child { padding-right: 28px; }
.quick-links > a > .icon:last-child { margin-left: auto; width: 17px; height: 17px; }
.quick-links > a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* News and documents */
.news-section { padding-top: 44px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-direction: column; align-items: flex-start; }
.news-card h3 { margin: 12px 0; }
.news-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.news-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.news-card > .text-link { margin-top: 20px; }
.page-heading { padding: 48px 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.page-heading .lead { margin-top: 12px; }
.page-heading > .button { flex-shrink: 0; }
.article { max-width: 720px; margin: 40px auto; }
.article-date { margin: 36px 0 16px; }
.article h1 { font-size: 40px; line-height: 1.2; margin-bottom: 28px; overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; color: #4c4f56; }
.document { width: 100%; max-width: 720px; margin: 48px auto; }
.document h1 { font-size: 40px; margin: 16px 0; }
.document h2 { font-size: 22px; margin: 30px 0 14px; }
.document p { font-size: 15px; color: #4c4f56; margin: 15px 0; }
.document a { text-decoration: underline; text-underline-offset: 3px; }
.document .updated { font-size: 12px; color: var(--muted); }
.document-header { min-height: 80px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.document-header nav { display: flex; gap: 25px; font-size: 13px; }
.document video, .demo video { width: 100%; height: auto; border-radius: 10px; margin: 25px 0; }
.home { width: 100%; max-width: 800px; margin: 48px auto; }
.home h1 { margin-bottom: 24px; }
.home p { margin-top: 15px; }
.support-links { display: flex; gap: 20px; margin-top: 20px; }
.support-button { font-weight: 600; text-decoration: underline; }
.demo > p > a { text-decoration: underline; }

/* Support intake */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice-card { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; align-items: center; gap: 20px; min-height: 132px; }
.choice-card:hover { background: var(--surface); border-color: #c7c9cf; }
.choice-card h2 { font-size: 20px; letter-spacing: -.025em; }
.choice-card p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.choice-card > .icon:last-child { margin-left: auto; width: 18px; height: 18px; }
.wizard-wrap { max-width: 640px; margin: 36px auto; }
.steps { list-style: none; display: flex; padding: 0 0 24px; margin: 28px 0 32px; gap: 32px; border-bottom: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.steps li > span { width: 26px; height: 26px; border-radius: 6px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.steps .current { color: var(--ink); font-weight: 600; }
.steps .current > span { background: var(--ink); color: white; }
.steps .complete > span { background: #eef0f3; }
.steps .icon { width: 15px; height: 15px; }
.wizard-panel { border: 0; padding: 0; }
.wizard-panel > h2 { font-size: 28px; }
.wizard-panel > .quiet { margin: 10px 0 28px; }
.category-grid { display: flex; flex-direction: column; gap: 10px; }
.category-card { width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: white; display: flex; align-items: center; gap: 16px; text-align: left; }
.category-card:hover { background: var(--surface); border-color: #c7c9cf; }
.category-card > span { font-size: 15px; font-weight: 500; }
.category-card > .icon:last-child { margin-left: auto; width: 17px; height: 17px; }
label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 22px; }
label input, label textarea, label select { margin-top: 8px; }
input, textarea, select { width: 100%; background: #fff; border: 1px solid #d4d6dc; border-radius: 7px; color: var(--ink); padding: 12px; font-size: 15px; line-height: 1.45; min-height: 46px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #787c85; }
input[type=file] { font-size: 12px; line-height: 1.6; padding: 12px; background: var(--surface); border-color: var(--line); }
input[type=file]::file-selector-button { border: 1px solid #d4d6dc; padding: 7px 10px; border-radius: 5px; background: white; color: var(--ink); margin-right: 10px; cursor: pointer; }
.optional { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; }
.file-label > .icon { width: 17px; height: 17px; margin-right: 6px; }
.honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.review-list { margin: 24px 0; }
.review-list > div { display: flex; border-bottom: 1px solid var(--line); padding: 14px 0; gap: 25px; font-size: 14px; }
.review-list dt { color: var(--muted); min-width: 90px; }
.review-list dd { margin: 0; overflow-wrap: anywhere; }
.review-message { border-radius: 8px; background: var(--surface); padding: 20px; margin-bottom: 25px; }

/* Requests and inbox */
.ticket-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket-row { display: flex; padding: 22px 12px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: var(--surface); }
.ticket-row > div { min-width: 0; }
.ticket-row h3 { font-size: 17px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ticket-row p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.reference { color: var(--muted); font-size: 11px; display: block; margin-bottom: 6px; }
.row-end { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; padding: 5px 8px; font-size: 11px; font-weight: 500; background: #f0f1f3; line-height: 1.3; white-space: nowrap; text-transform: capitalize; }
.status-in_progress { background: #edf2fd; color: #375b94; }
.status-waiting_for_you { background: #fbf2df; color: #805e20; }
.status-resolved { background: #edf5ee; color: #396344; }
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state > .icon { width: 28px; height: 28px; opacity: .45; margin-bottom: 18px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { max-width: 460px; margin: 12px auto 24px; color: var(--muted); font-size: 14px; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.conversation-wrap { max-width: 760px; margin: 36px auto; }
.conversation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0; }
.conversation-heading h1 { font-size: 30px; line-height: 1.2; margin-top: 12px; overflow-wrap: anywhere; }
.conversation { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.message { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: white; }
.staff-message { background: var(--surface); }
.message-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 16px; }
.message-meta time { font-size: 11px; color: var(--muted); margin-left: auto; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.75; }
.attachments { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.attachments a { display: inline-flex; gap: 8px; padding: 10px; border-radius: 7px; border: 1px solid var(--line); background: white; font-size: 12px; align-items: center; overflow-wrap: anywhere; max-width: 100%; }
.attachments small { color: var(--muted); }
.attachments .icon { width: 15px; height: 15px; }
.reply-panel textarea { margin: 0; }
.reply-panel label { margin-bottom: 12px; }
.reply-panel select { max-width: 300px; }
.reply-panel > label:not(:first-child) { margin-top: 20px; }
.reply-files { font-size: 12px; font-weight: 400; margin: 0 !important; max-width: 65%; }
.reply-files input { font-size: 11px; padding: 7px; min-height: 0; }
.tracking-panel { display: flex; gap: 16px; background: var(--surface); margin-bottom: 32px; }
.tracking-panel p { font-size: 14px; margin: 8px 0 16px; }
.tracking-panel > div { min-width: 0; flex: 1; }
.tracking-panel label { margin: 0; }
.tracking-panel input { font-size: 12px; }
.inbox-item-icon { padding: 10px; background: var(--surface); border-radius: 8px; }
.ticket-row > .icon:last-child { margin-left: auto; width: 17px; height: 17px; }

/* Account and team workspace */
.signin-panel { text-align: center; max-width: 540px; margin: 12px auto 40px; padding: 40px; }
.signin-panel > .icon { width: 30px; height: 30px; margin-bottom: 20px; }
.signin-panel h2 { font-size: 24px; }
.signin-panel > p:not(.help) { color: var(--muted); font-size: 14px; margin: 16px auto 24px; max-width: 380px; }
.signin-panel .help { margin-top: 20px; }
.signin-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; }
.profile-panel { text-align: center; }
.profile-initial { display: flex; margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 50%; background: #f0f1f3; font-size: 26px; font-weight: 600; align-items: center; justify-content: center; }
.profile-panel h2 { font-size: 24px; margin-bottom: 8px; overflow-wrap: anywhere; }
.profile-panel > .button { margin-top: 20px; }
.account-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 10px; }
.account-details p { display: flex; align-items: center; font-size: 12px; gap: 7px; padding: 10px 0; }
.account-details p > span { margin-right: auto; color: var(--muted); }
.account-details .icon { width: 15px; height: 15px; }
.role-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.account-links { display: flex; flex-direction: column; }
.account-settings { margin-top: 24px; max-width: 760px; }
.account-settings h2 { margin-top: 0; }
.account-connections { margin-top: 24px; width: 100%; text-align: left; }
.account-connection, .account-pending, .account-file-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-connection p, .account-pending p { margin: 5px 0 0; }
.account-connection > .icon { width: 20px; }
.account-pending { justify-content: flex-start; margin-bottom: 18px; }
.account-pending > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-file-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.preference-option { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; font-weight: 400; }
.preference-option input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; }
.preference-option small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.test-email-panel > summary { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.test-email-panel[open] > summary { margin-bottom: 16px; }
.test-email-history { margin-top: 28px; }
.test-email-history article { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.test-email-history p { margin: 4px 0 0; overflow-wrap: anywhere; }
.account-tile { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 28px 16px; min-height: 110px; }
.account-tile:hover { background: var(--surface); }
.account-tile > .icon:last-child { margin-left: auto; width: 17px; height: 17px; }
.account-tile h3 { font-size: 19px; }
.account-tile p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.admin-layout { display: grid; grid-template-columns: 190px 1fr; gap: 40px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; align-self: start; position: sticky; top: 20px; }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 7px; font-size: 13px; }
.admin-nav a:hover { background: #fafafa; }
.admin-nav a.active { background: #f0f1f3; font-weight: 600; }
.admin-nav a .icon { width: 18px; height: 18px; }
.admin-content { min-width: 0; }
.admin-content h2 { font-size: 23px; margin-bottom: 20px; }
.admin-content .section-heading { align-items: center; }
.admin-content .section-heading h2 { margin: 0; }
.admin-content .panel { margin: 20px 0 28px; }
.admin-section { margin-top: 40px; }
.admin-item { border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 10px; }
.admin-item > div { min-width: 0; }
.admin-item strong { font-size: 14px; overflow-wrap: anywhere; }
.admin-item .help { margin-top: 4px; overflow-wrap: anywhere; }
.admin-cards { margin-top: 20px; }
.admin-content h3 { font-size: 20px; margin-bottom: 24px; }
.admin-content .admin-cards h3 { margin: 0; }
.owner-note { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 8px; padding: 16px; font-size: 12px; margin-top: 20px; overflow-wrap: anywhere; }
.code-input { font-family: Consolas, monospace; font-size: 12px; }
summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 15px 0; }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.mail-status h3 { display: flex; gap: 12px; align-items: center; }
.mail-status > p { font-size: 13px; }
.mail-status .help { overflow-wrap: anywhere; }
.search-field { position: relative; margin: 20px 0; }
.search-field > .icon { position: absolute; left: 14px; top: 22px; width: 18px; height: 18px; opacity: .6; }
.search-field input { padding-left: 44px; }

.footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer nav { display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--muted); }
.footer nav a { display: flex; gap: 5px; align-items: center; min-height: 28px; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer nav .icon { width: 13px; height: 13px; }
.footer p { font-size: 13px; color: var(--muted); }
.footer p a { text-decoration: underline; }
.copyright { font-size: 12px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 600px); padding: 16px 22px; border-radius: 9px; background: var(--ink); color: white; font-size: 14px; box-shadow: 0 5px 20px #0002; z-index: 100; }
.toast.error { background: #8b3333; }

@media (max-width: 1000px) {
  .header { gap: 36px; }
  .featured-game { grid-template-columns: 1.4fr 1fr; }
  .featured-game .game-image { min-height: 310px; }
  .featured-game .game-info { padding: 28px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card { padding: 24px; gap: 16px; }
  .account-grid { grid-template-columns: 310px 1fr; gap: 24px; }
  .admin-layout { grid-template-columns: 180px 1fr; gap: 24px; }
  .header-actions .account-button span { max-width: 100px; }
  .inbox-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 760px) {
  .shell { padding: 0 22px; }
  .header { min-height: 116px; display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 14px; }
  .brand { font-size: 22px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 30px; font-size: 13px; min-height: 49px; margin-top: 6px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 3px; }
  .header-actions .button { min-height: 40px; font-size: 12px; padding: 10px 12px; gap: 7px; }
  .header-actions .button > .icon { width: 17px; height: 17px; }
  .header-actions .account-button span { max-width: 80px; }
  .hero { padding: 34px 0 32px; }
  .hero h1 { font-size: 34px; max-width: 420px; }
  .hero .lead { font-size: 14px; margin-top: 12px; max-width: 430px; }
  .section { padding-bottom: 24px; }
  .section-heading { margin-bottom: 16px; gap: 16px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading > .text-link { font-size: 12px; white-space: nowrap; }
  .featured-game { display: block; }
  .featured-game .game-image { aspect-ratio: 16/9; min-height: 0; height: auto; }
  .featured-game .game-info, .game-info { padding: 24px; gap: 22px; }
  .game-info h3 { font-size: 25px; margin: 8px 0 10px; }
  .game-info .button { width: 100%; }
  .game-info p:not(.eyebrow) { font-size: 13px; }
  .game-grid .game-info { min-height: 0; }
  .game-grid, .news-grid, .choice-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-links > a { padding: 22px 0; }
  .quick-links > a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .quick-links > a:first-child { padding-right: 0; }
  .news-section { padding-top: 32px; }
  .page-heading { padding: 34px 0 28px; align-items: flex-start; flex-direction: column; gap: 20px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading .lead { font-size: 14px; margin-top: 10px; }
  .choice-grid { gap: 12px; }
  .choice-card { padding: 24px 20px; min-height: 110px; }
  .choice-card h2 { font-size: 18px; }
  .choice-card p { font-size: 12px; }
  .wizard-wrap { margin: 28px auto; }
  .steps { gap: 22px; margin: 24px 0 28px; padding-bottom: 22px; }
  .steps li { gap: 7px; font-size: 12px; }
  .steps li > span { width: 24px; height: 24px; font-size: 10px; }
  .wizard-panel > h2 { font-size: 26px; }
  .panel { padding: 22px; }
  .wizard-panel { padding: 0; }
  .category-card { padding: 18px; min-height: 68px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-actions > .button { font-size: 13px; padding: 12px 15px; }
  .ticket-row { padding: 20px 6px; gap: 12px; flex-wrap: wrap; }
  .ticket-row h3 { font-size: 16px; }
  .row-end { gap: 12px; }
  .conversation-wrap { margin-top: 28px; }
  .conversation-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .conversation-heading h1 { font-size: 28px; }
  .message { padding: 20px; }
  .message-meta { font-size: 11px; gap: 7px; flex-wrap: wrap; }
  .message-meta time { font-size: 10px; }
  .reply-files { max-width: 62%; font-size: 11px; }
  .reply-panel .form-actions { align-items: flex-end; }
  .tracking-panel { padding: 20px; gap: 12px; }
  .tracking-panel h3 { font-size: 20px; }
  .tracking-panel p { font-size: 13px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-tile { min-height: 96px; padding: 24px 8px; gap: 16px; }
  .account-tile h3 { font-size: 18px; }
  .signin-panel { padding: 30px 24px; }
  .admin-layout { grid-template-columns: 1fr; gap: 24px; }
  .admin-nav { position: static; flex-direction: row; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .admin-nav a { padding: 12px; font-size: 12px; gap: 8px; }
  .admin-nav a .icon { width: 17px; height: 17px; }
  .admin-content .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .admin-content .section-heading .quiet { font-size: 12px; }
  .admin-item { padding: 16px; }
  .admin-item .button-small { font-size: 12px; padding: 9px; }
  .admin-content h2 { font-size: 23px; }
  .owner-note { font-size: 11px; }
  .article { margin-top: 30px; }
  .article h1, .document h1 { font-size: 34px; }
  .article-date { margin-top: 28px; }
  .prose { font-size: 15px; }
  .document { margin: 34px auto; }
  .document-header { min-height: 76px; }
  .document-header .brand { font-size: 18px; }
  .document-header nav { gap: 20px; font-size: 12px; }
  .document p { font-size: 14px; }
  .footer { margin-top: 40px; padding: 24px 0; flex-wrap: wrap; gap: 12px 24px; }
  .footer nav { gap: 20px; }
  .copyright { font-size: 11px; }
}

@media (max-width: 370px) {
  .shell { padding: 0 16px; }
  .header-actions .account-button span { max-width: 60px; }
  .header-actions .button { padding: 10px 9px; }
  .steps { gap: 18px; }
  .game-info .button { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.portal-finance-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.portal-finance-intro p{margin:0}
.portal-finance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--border,#e2e5e2);border:1px solid var(--border,#e2e5e2);border-radius:14px;overflow:hidden;margin-bottom:24px}
.portal-finance-stats article{display:flex;flex-direction:column;gap:9px;padding:24px;background:var(--surface,#fff)}
.portal-finance-stats article>span,.portal-finance-stats small{font-size:12px;color:var(--muted,#68716b)}
.portal-finance-stats strong{font-size:clamp(23px,2.5vw,32px);font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.portal-finance-details{margin-top:20px;border-top:1px solid var(--border,#e2e5e2);padding-top:16px;font-size:13px}
.portal-finance-details summary,.portal-finance-settings>summary{cursor:pointer;font-weight:600}
.portal-finance-details li{margin:8px 0;color:var(--muted,#68716b)}
.portal-finance-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.portal-finance-metrics div{display:flex;justify-content:space-between;gap:12px}
.portal-finance-metrics dt{color:var(--muted,#68716b)}.portal-finance-metrics dd{margin:0;font-variant-numeric:tabular-nums}
.portal-debt-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;margin:20px 0;list-style:none;gap:14px}
.portal-debt-timeline li{border-top:2px solid var(--border,#d5ded7);padding-top:12px;display:flex;flex-direction:column;gap:6px;font-size:12px}
.portal-debt-timeline li:last-child{border-top-color:#9b2424}.portal-debt-timeline strong{font-weight:500}.portal-debt-timeline span{color:var(--muted,#68716b)}
.portal-finance-settings{margin-top:18px}.portal-finance-settings>summary{font-size:17px;list-style:none}.portal-finance-settings>summary:after{content:'+';float:right;color:var(--muted,#68716b)}.portal-finance-settings[open]>summary:after{content:'−'}
.portal-finance-settings>.help{margin-top:12px}.portal-finance-settings .portal-fields{margin-top:18px}
.portal-tax-bracket-head,.portal-tax-bracket{display:grid;grid-template-columns:minmax(80px,1fr) minmax(65px,.6fr) 34px;gap:8px;align-items:center;margin-bottom:8px}
.portal-tax-bracket-head{color:var(--muted,#68716b);font-size:11px}.portal-tax-bracket label{position:relative;margin:0}.portal-tax-bracket label>span:last-child{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--muted,#68716b)}
.portal-tax-bracket input{min-width:0;width:100%;padding:10px}.portal-tax-bracket label input{padding-right:28px}.portal-tax-bracket button{padding:8px;min-width:0}.portal-tax-brackets>.help{font-size:11px}
@media(max-width:650px){.portal-finance-stats{grid-template-columns:1fr}.portal-finance-stats article{padding:20px}.portal-finance-metrics{grid-template-columns:1fr}.portal-debt-timeline{grid-template-columns:1fr}.portal-debt-timeline li{border-top:0;border-left:2px solid var(--border,#d5ded7);padding:0 0 10px 12px}.portal-debt-timeline li:last-child{border-left-color:#9b2424}.portal-finance-intro{align-items:flex-start}.portal-finance-intro p{font-size:12px}}
.profile-menu { position: relative; }
.profile-menu summary { list-style: none; cursor: pointer; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px #0000000c; z-index: 40; }
.profile-menu nav a,.profile-menu nav button { display: block; width: 100%; padding: 12px; color: inherit; text-align: left; font: inherit; font-size: 13px; border: 0; background: transparent; border-radius: 6px; text-decoration: none; cursor: pointer; }
.profile-menu nav a:hover,.profile-menu nav button:hover { background: #f5f5f5; }
.account-connection > div { min-width: 0; }
.account-connection .help { overflow-wrap: anywhere; }
.profile-email-flow { border-top: 1px solid var(--line); padding-top: 18px; }
.profile-email-flow h3 { display: flex; align-items: center; gap: 9px; font-size: 14px; margin: 0 0 14px; }
.email-step { border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; height: 24px; width: 24px; font-size: 11px; }
.profile-email-flow .button { font-size: 12px; padding: 10px; min-height: 38px; }
.profile-email-flow input { min-width: 0; }
.profile-email-flow .text-button { margin-top: 16px; padding: 0; background: transparent; border: 0; color: #737373; font: inherit; font-size: 11px; cursor: pointer; }
.profile-verified { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 11px; color: #39714e; }
.profile-verified .icon { width: 14px; height: 14px; }
.debug-tabs { display: flex; gap: 8px; margin: 0 0 24px; }
.debug-search { padding: 24px; margin-bottom: 24px; }
.debug-search form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.debug-search form label { margin: 0; flex: 1; min-width: 170px; }
.debug-search form label:nth-child(2) { flex: 2; }
.debug-search > .help { margin: 14px 0 0; }
.debug-games { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 24px; }
.debug-game { min-width: 0; padding: 26px; }
.debug-game h2 { font-size: 19px; }
.debug-game .section-heading { align-items: start; gap: 12px; }
.debug-game .section-heading .help { margin: 6px 0 0; }
.debug-stats { display: flex; flex-wrap: wrap; gap: 20px; padding: 6px 0 22px; }
.debug-stats div { display: flex; flex-direction: column; gap: 5px; min-width: 65px; }
.debug-stats span { font-size: 11px; color: #737373; }
.debug-stats strong { font-size: 15px; overflow-wrap: anywhere; }
.debug-grid { display: grid; gap: 6px; max-width: 450px; }
.debug-grid.cols-1 { grid-template-columns: 1fr; }.debug-grid.cols-2 { grid-template-columns: repeat(2,1fr); }.debug-grid.cols-3 { grid-template-columns: repeat(3,1fr); }.debug-grid.cols-4 { grid-template-columns: repeat(4,1fr); }.debug-grid.cols-5 { grid-template-columns: repeat(5,1fr); }.debug-grid.cols-6 { grid-template-columns: repeat(6,1fr); }.debug-grid.cols-7 { grid-template-columns: repeat(7,1fr); }.debug-grid.cols-8 { grid-template-columns: repeat(8,1fr); }.debug-grid.cols-9 { grid-template-columns: repeat(9,1fr); }.debug-grid.cols-10 { grid-template-columns: repeat(10,1fr); }
.debug-cell { aspect-ratio: 1; display: grid; place-items: center; position: relative; border: 1px solid #e5e5e5; border-radius: 8px; background: #f8f8f8; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 0; }
.debug-cell.is-mine { background: #fff3f3; color: #a43b3b; border-color: #e7bdbd; }
.debug-cell.is-safe { background: #f2f8f4; color: #3f6e50; border-color: #d5e5da; }
.debug-cell.is-draw { background: #eff4fb; color: #385f98; border-color: #d0def2; }
.debug-cell.is-picked { outline: 2px solid #566477; outline-offset: -3px; }
.debug-cell.is-revealed { background: #d7e9de; font-weight: 700; }
.debug-cell.is-revealed.is-mine { background: #f2d1d1; }
.debug-cell small { position: absolute; top: 2px; right: 6px; font-size: 12px; }
.debug-legend { font-size: 10px; margin: 12px 0 18px; }
.debug-hints { margin: 18px 0 0; border-top: 1px solid var(--line); }
.debug-hints div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.debug-hints dt { font-size: 11px; color: #737373; margin-bottom: 6px; }
.debug-hints dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.debug-players { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.debug-players span { padding: 7px 10px; font-size: 11px; border-radius: 6px; background: #f6f6f6; }
.debug-game-meta { margin: 18px 0 0; font-size: 10px; overflow-wrap: anywhere; }
.debug-upcoming { margin-bottom: 24px; }
.debug-upcoming h2 { font-size: 19px; }
.debug-numbers { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 18px; }
.debug-numbers span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d0def2; background: #eff4fb; border-radius: 7px; color: #385f98; font-size: 12px; }
.debug-email-panel { max-width: 760px; }
.debug-search { padding: 20px; }
.debug-games { gap: 20px; }
.debug-games:has(> .debug-game:only-child) { grid-template-columns: minmax(0,1fr); max-width: 760px; }
.debug-players { display: block; font-size: 12px; color: #737373; margin: -12px 0 22px; }
.debug-upcoming { padding: 22px; }
.debug-upcoming .section-heading { margin-bottom: 12px; gap: 16px; }
.debug-upcoming h2,.debug-draw-editor h2 { font-size: 17px; }
.debug-upcoming .help { margin: 6px 0 0; overflow-wrap: anywhere; }
.debug-upcoming .debug-numbers { margin: 0; }
.debug-advice { border: 1px solid #d6e5db; background: #f6faf7; border-radius: 10px; padding: 18px; margin-bottom: 24px; }
.debug-advice > strong { display: block; font-size: 25px; margin-top: 6px; }
.debug-advice .help { margin: 6px 0 12px; }
.debug-advice summary,.debug-game-meta summary { cursor: pointer; font-size: 11px; color: #737373; }
.debug-moves { margin: 14px 0 0; }
.debug-moves > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12px; border-top: 1px solid #d6e5db; }
.debug-moves dd { margin: 0; font-variant-numeric: tabular-nums; }
.debug-game-meta p { line-height: 1.8; }
.debug-recent { margin-top: 28px; }
.debug-recent > summary { cursor: pointer; padding: 18px 0; font-size: 14px; }
.debug-recent > summary span { color: #737373; margin-left: 6px; }
.debug-draw-editor { padding: 24px; margin-bottom: 24px; border-color: #b5c5d8; }
.debug-draw-editor form { max-width: 660px; }
.debug-draw-editor input[name=numbers] { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
@media(max-width:540px){.debug-upcoming .section-heading{flex-wrap:wrap}.debug-upcoming,.debug-draw-editor{padding:18px}.debug-numbers span{width:28px;height:30px;font-size:11px}.debug-numbers{gap:4px}.debug-draw-editor .button-row{flex-wrap:wrap}}
@media (max-width: 850px) { .debug-games { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .debug-search,.debug-game { padding: 18px; }.debug-search form label { min-width: 100%; }.debug-tabs .button { flex: 1; padding: 12px; font-size: 12px; }.debug-grid { gap: 4px; }.debug-grid.cols-10 .debug-cell { font-size: 10px; border-radius: 5px; }.debug-game .section-heading { flex-wrap: wrap; }.profile-menu nav { min-width: 160px; } }

/* A quiet workspace: one sidebar, one task, one save action. */
:root { --portal-accent: var(--ink); --portal-soft: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dashboard-entry { margin: 0 0 40px; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; gap: 18px; align-items: center; transition: border-color .18s, transform .18s; }
.dashboard-entry:hover { border-color: #aebbb5; transform: translateY(-2px); }
.dashboard-entry > .icon { width: 24px; height: 24px; }
.dashboard-entry > div { display: flex; flex-direction: column; gap: 7px; }
.dashboard-entry strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.dashboard-entry > div > span { font-size: 13px; color: var(--muted); }
.dashboard-entry > .button { margin-left: auto; }
.bot-portal { font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.bot-portal h1 { font-size: 40px; letter-spacing: -.035em; }
.bot-portal h2 { font-size: 20px; letter-spacing: -.025em; }
.bot-portal h3 { font-size: 17px; }
.bot-portal .button { font-size: 14px; min-height: 46px; }
.bot-portal input, .bot-portal select, .bot-portal textarea { font-size: 14px; min-height: 44px; border-radius: 7px; }
.bot-portal label { font-size: 13px; }
.bot-portal .button-dark { background: var(--ink); border-color: var(--ink); }
.bot-portal .button-dark:hover { background: #35363b; border-color: #35363b; }
.portal-loading { min-height: 350px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.portal-loader { width: 16px; height: 16px; border: 2px solid #e2e7e4; border-top-color: #53645b; border-radius: 100%; animation: portal-spin .7s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@keyframes portal-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.portal-workspaces { margin: 46px auto 70px; max-width: 1000px; animation: portal-enter .2s ease-out; }
.portal-page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.portal-page-head .eyebrow { font-size: 11px; margin-bottom: 9px; }
.portal-server-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.portal-server-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; gap: 16px; transition: border-color .16s, transform .16s; }
.portal-server-card:hover { border-color: #bfc2c8; transform: translateY(-2px); }
.portal-server-card > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.portal-server-card strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.portal-server-card > div > span { color: var(--muted); font-size: 12px; }
.portal-server-card > .icon { margin-left: auto; width: 17px; height: 17px; }
.portal-server-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; object-fit: cover; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.portal-caption { margin-top: 22px; font-size: 11px; color: var(--muted); line-height: 1.65; }
.portal-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); min-height: calc(100svh - 175px); min-width: 0; max-width: 100%; }
.portal-sidebar { border-right: 1px solid var(--line); padding: 30px 18px 32px 0; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; align-self: start; min-height: calc(100svh - 150px); min-width: 0; max-width: 100%; }
.portal-switcher { display: flex; align-items: center; gap: 10px; margin: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px; position: relative; }
.portal-switcher .portal-server-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.portal-switcher select { border: 0; background: transparent; width: 100%; min-height: 30px; padding: 0 15px 0 0; margin: 0; font-size: 12px; font-weight: 600; appearance: none; text-overflow: ellipsis; cursor: pointer; }
.portal-switcher > .icon { position: absolute; right: 8px; width: 13px; height: 13px; pointer-events: none; }
.portal-sidebar nav { display: flex; flex-direction: column; gap: 5px; min-width: 0; max-width: 100%; }
.portal-advanced-nav { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.portal-advanced-nav > summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.portal-advanced-nav > summary .icon { width: 14px; height: 14px; }
.portal-advanced-nav[open] > summary .icon { transform: rotate(180deg); }
.portal-section-title { margin: 32px 0 20px; }
.portal-page-intro { margin: 0 0 28px; }
.portal-page-intro .text-link { margin-top: 12px; }
.portal-subsettings { margin: 8px 0 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.portal-subsettings > summary { cursor: pointer; font-size: 13px; margin-bottom: 20px; }
.portal-list { padding: 0 24px; }
.portal-list-row { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.portal-list-row:last-child { border-bottom: 0; }
.portal-list-row > div:first-child { min-width: 0; }
.portal-list-row strong { font-size: 15px; overflow-wrap: anywhere; }
.portal-list-row p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.portal-panel-role { display: grid; grid-template-columns: minmax(100px,1fr) minmax(100px,1fr) 80px 40px; align-items: start; gap: 10px; border-top: 1px solid var(--line); padding: 20px 0; }
.portal-panel-role > button { margin-top: 26px; }
.portal-panel-role > label { margin-bottom: 0; }
.portal-command-overrides > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.portal-command-overrides > summary span { color: var(--muted); font-size: 12px; font-weight: 400; }
.portal-automation-card { margin: 0 0 24px; }
.portal-automation-card summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 15px; }
.portal-automation-card summary .portal-counter { font-size: 12px; }
.portal-automation-intro { font-size: 13px; color: var(--muted); margin: 20px 0; }
.portal-automation-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.portal-automation-row { padding: 20px 0; border-top: 1px solid var(--line); }
.portal-automation-row.form-grid,.portal-automation-forum > .form-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 40px; gap: 12px; }
.portal-automation-row.form-grid > button,.portal-automation-forum > .form-grid > button { margin-top: 25px; }
.portal-automation-row label { margin-bottom: 0; }
.portal-automation-forum > label { margin-top: 18px; }
.portal-checklist strong,.portal-quick-card strong { font-size: 14px; }
.portal-checklist > a > div > span,.portal-quick-card > span,.portal-empty p { font-size: 13px; }
@media(max-width:700px) {
 .portal-panel-role { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .portal-panel-role > button { align-self: end; justify-self: end; margin: 0; }
 .portal-list-row { align-items: flex-start; flex-direction: column; gap: 15px; }
 .portal-advanced-nav { width: 100%; }
 .site-dialog { padding: 26px; }
 .site-dialog-actions .button { flex: 1; }
}
.portal-workspace-group { margin: 0 0 36px; }
.portal-workspace-group .portal-card-head h2 { font-size: 18px; }
#portal-server-group-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.portal-network-members { margin: 22px 0; }
.portal-network-member { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 17px 0; }
.portal-network-member > div { flex: 1; min-width: 0; display: grid; gap: 6px; }
.portal-network-member strong { overflow-wrap: anywhere; }
.portal-network-member > div > span { font-size: 12px; color: var(--muted); }
.portal-sidebar a, .portal-sidebar-bottom button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); transition: background .15s, color .15s; }
.portal-sidebar a .icon, .portal-sidebar-bottom button .icon { width: 17px; height: 17px; opacity: .7; }
.portal-sidebar a:hover, .portal-sidebar-bottom button:hover { background: #f6f7f6; color: #242c27; }
.portal-sidebar a.active { background: var(--surface); color: var(--ink); font-weight: 600; }
.portal-sidebar a.active .icon { opacity: 1; }
.portal-sidebar-bottom { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 50px; }
.portal-sidebar-bottom button { background: none; border: 0; width: 100%; text-align: left; }
.portal-sidebar-bottom button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-content { min-width: 0; width: 100%; max-width: 1050px; padding: 38px 0 60px 32px; }
.portal-content #portal-section { animation: portal-enter .18s ease-out; }
.portal-channel-picker { position: relative; width: 100%; min-width: 0; }
.bot-portal .portal-channel-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; text-align: left; }
.portal-channel-trigger.has-selection { color: #24352b; }
.portal-channel-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-channel-chevron { flex: 0 0 auto; display: flex; color: #89938c; }
.portal-channel-chevron svg { width: 15px; height: 15px; }
.portal-channel-trigger:focus-visible { outline: 2px solid #52795f; outline-offset: 2px; }
.portal-channel-popover { position: absolute; top: calc(100% + 7px); left: 0; width: 100%; min-width: min(240px, 100%); z-index: 30; display: flex; flex-direction: column; padding: 7px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 9px 30px #00000014; }
.portal-channel-picker.opens-above .portal-channel-popover { top: auto; bottom: calc(100% + 7px); }
.bot-portal .portal-channel-search { flex-shrink: 0; width: 100%; min-height: 38px; margin: 0 0 5px; padding: 8px 10px; background: #f6f8f6; border: 1px solid transparent; font-size: 12px; }
.portal-channel-options { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.bot-portal .portal-channel-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 35px; border: 0; border-radius: 5px; padding: 8px 9px; margin: 0; background: white; color: #425348; font: inherit; font-size: 12px; text-align: left; }
.portal-channel-option > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-channel-option:hover,.portal-channel-option:focus-visible { background: #f2f5f2; outline: none; }
.portal-channel-option[aria-selected=true] { background: var(--surface); color: var(--ink); }
.portal-channel-check { width: 15px; height: 15px; flex-shrink: 0; }
.portal-channel-check svg { width: 15px; height: 15px; }
.portal-channel-empty { margin: 10px; font-size: 12px; color: #7e8881; }
.portal-switcher .portal-channel-trigger { border: 0; padding: 0; min-height: 30px; font-weight: 600; background: transparent; }
.portal-switcher > .icon { display: none; }
.portal-switcher .portal-channel-popover { min-width: 220px; }
.portal-direction .portal-channel-trigger { min-height: 30px; padding: 5px 8px; font-size: 10px; }
.portal-channel-trigger[aria-invalid=true] { border-color: #b35a48; }
.portal-review-channels { margin-top: 20px; }
#portal-appeals-form .portal-card-head > label { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 11px; }
#portal-appeals-form .portal-card-head .portal-toggle { margin: 0; }
.portal-unlink-confirm { margin-top: 20px; padding: 18px; border: 1px solid #e3d6d1; border-radius: 8px; background: #fcfaf8; }
.portal-unlink-confirm > strong { font-size: 13px; }
.portal-unlink-confirm p { margin: 9px 0 16px; color: #796962; font-size: 12px; line-height: 1.6; }
.portal-appeal-settings > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.portal-appeal-settings[open] > summary { margin-bottom: 22px; }
#portal-appeals-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#portal-appeals-form .form-grid > label:has(textarea) { grid-column: 1 / -1; }
#portal-appeals-form .portal-toggle { display: flex; margin-top: 12px; }
.portal-mobile-context { display: none; }
.portal-live { display: inline-flex; align-items: center; gap: 7px; color: #617067; font-size: 11px; white-space: nowrap; }
.portal-live > span { width: 6px; height: 6px; background: #668772; border-radius: 50%; }
.portal-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; justify-content: space-between; gap: 22px; }
.portal-summary > div > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 13px; }
.portal-summary strong { font-size: 23px; letter-spacing: -.035em; font-weight: 600; }
.portal-summary p { font-size: 12px; margin-top: 10px; color: var(--muted); max-width: 400px; }
.portal-summary .text-link { margin-top: 16px; font-size: 12px; }
.portal-summary-symbol { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--line); }
.portal-summary-symbol .icon { width: 25px; height: 25px; opacity: .7; }
.portal-stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr; padding: 30px 0; margin-bottom: 2px; }
.portal-stats > div { padding: 0 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.portal-stats > div:first-child { padding-left: 0; }
.portal-stats > div:last-child { border: 0; }
.portal-stats span { font-size: 11px; color: var(--muted); }
.portal-stats strong { font-weight: 500; font-size: 22px; letter-spacing: -.035em; overflow: hidden; text-overflow: ellipsis; }
.portal-stats > div:first-child strong { font-size: 17px; line-height: 27px; }
.portal-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; margin-bottom: 20px; }
.portal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.portal-card-head > .icon { width: 18px; height: 18px; opacity: .6; }
.portal-card-head .text-link { min-height: 24px; font-size: 11px; }
.portal-counter { color: var(--muted); font-size: 11px; background: var(--surface); border-radius: 5px; padding: 5px 8px; }
.portal-checklist { margin: 0 -10px -5px; }
.portal-checklist > a { display: flex; align-items: center; gap: 13px; padding: 15px 10px; border-radius: 7px; }
.portal-checklist > a:hover { background: var(--surface); }
.portal-checklist > a + a { border-top: 1px solid #f0f1f0; }
.portal-checklist > a > .icon { margin-left: auto; width: 15px; height: 15px; opacity: .6; }
.portal-check { width: 29px; height: 29px; flex-shrink: 0; border: 1px solid #e3e6e4; border-radius: 50%; display: grid; place-items: center; }
.portal-check .icon { width: 13px; height: 13px; opacity: .5; }
.portal-check.complete { background: #edf3ee; border-color: #e0e9e3; }
.portal-check.complete .icon { opacity: .8; }
.portal-checklist > a > div { display: flex; flex-direction: column; gap: 5px; }
.portal-checklist strong { font-size: 12px; font-weight: 500; }
.portal-checklist > a > div > span { color: var(--muted); font-size: 11px; }
.portal-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-quick-card { display: grid; grid-template-columns: 22px 1fr 14px; gap: 9px 12px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s; }
.portal-quick-card:hover { border-color: #aebcb3; }
.portal-quick-card > .icon { width: 18px; height: 18px; grid-row: 1/3; margin-top: 2px; }
.portal-quick-card strong { font-size: 13px; font-weight: 500; }
.portal-quick-card > span { grid-column: 2; font-size: 11px; color: var(--muted); line-height: 1.6; }
.portal-quick-card > .icon:last-child { grid-column: 3; grid-row: 1; width: 14px; height: 14px; }
.portal-empty { padding: 65px 24px; text-align: center; border: 1px dashed #e0e4e1; border-radius: var(--radius); }
.portal-empty > .icon { width: 25px; height: 25px; opacity: .4; margin-bottom: 18px; }
.portal-empty h2, .portal-empty h3 { margin-bottom: 10px; }
.portal-empty p { font-size: 12px; color: var(--muted); max-width: 400px; margin: 0 auto; }
.portal-empty .button { margin-top: 22px; }
.portal-empty.compact { padding: 30px 15px; border: 0; }
.portal-notice { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; font-size: 12px; color: var(--muted); border-radius: 8px; line-height: 1.7; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.portal-notice > .icon { width: 17px; height: 17px; margin-top: 2px; }
.portal-notice.error { background: #fff7f5; border-color: #f3ded8; color: #934f3d; }
.portal-inline-error { color: #934f3d; font-size: 12px; margin: 12px 0; }
.portal-settings-tools { display: flex; gap: 12px; margin-bottom: 30px; }
.portal-search { flex: 1; position: relative; display: flex; align-items: center; margin: 0; }
.portal-search > .icon { position: absolute; left: 13px; width: 17px; height: 17px; opacity: .5; }
.portal-search input { margin: 0; padding-left: 40px; padding-right: 36px; }
.portal-search kbd { font: inherit; font-size: 11px; color: #929990; border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; position: absolute; right: 13px; }
.portal-category-select { width: 165px; flex-shrink: 0; margin: 0; }
.portal-category-select select { margin: 0; }
.portal-setting-section { margin-bottom: 32px; }
.portal-setting-section > h2 { font-size: 13px; padding-bottom: 13px; margin-bottom: 0; color: #757c77; font-weight: 500; }
.portal-setting-section > summary { font-size: 13px; padding: 4px 0 14px; color: #6c7870; font-weight: 500; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.portal-setting-section > summary::-webkit-details-marker { display: none; }
.portal-setting-section > summary::after { content: '+'; color: #8d9890; font-size: 16px; font-weight: 400; }
.portal-setting-section[open] > summary::after { content: '−'; }
.portal-fields { border-top: 1px solid var(--line); }
.portal-field { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.9fr); align-items: center; gap: 24px; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .15s; }
.portal-field.changed { background: var(--surface); }
.portal-field-label > label { font-size: 12px; margin: 0; line-height: 1.5; }
.portal-field-label > p { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 6px; max-width: 340px; }
.portal-field-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.portal-field-control input, .portal-field-control select, .portal-field-control textarea { font-size: 12px; min-height: 39px; padding: 10px; margin: 0; }
.portal-field-control select[multiple] { min-height: 110px; }
.portal-field-toggle .portal-field-control { justify-content: flex-end; }
.portal-reset { border: 0; background: none; color: #868d88; font-size: 10px; padding: 8px 0 8px 8px; line-height: 1.5; }
.portal-reset:hover { color: #2c4435; text-decoration: underline; }
.portal-toggle { display: inline-flex; flex-shrink: 0; position: relative; width: 34px; height: 21px; margin: 0; }
.portal-toggle input[type=checkbox] { width: 34px; height: 21px; min-height: 0; position: absolute; opacity: 0; margin: 0; inset: 0; cursor: pointer; z-index: 1; }
.portal-toggle > span { width: 34px; height: 21px; background: #dfe4e0; border-radius: 20px; display: block; transition: background .15s; }
.portal-toggle > span::after { content: ''; width: 15px; height: 15px; position: absolute; top: 3px; left: 3px; background: white; border-radius: 50%; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.portal-toggle input:checked + span { background: #436752; }
.portal-toggle input:checked + span::after { transform: translateX(13px); }
.portal-toggle input:focus-visible + span { outline: 2px solid #3e6ee5; outline-offset: 4px; }
.portal-savebar { position: sticky; bottom: 18px; margin-top: 22px; padding: 12px 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 25px #253b3012; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 3; animation: portal-enter .15s ease-out; }
.portal-savebar > div:first-child { display: flex; gap: 9px; align-items: center; }
.portal-savebar strong { font-size: 11px; font-weight: 500; }
.portal-unsaved-dot { width: 6px; height: 6px; background: #668472; border-radius: 50%; }
.bot-portal .portal-savebar .button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.portal-inline-field { display: flex; align-items: flex-end; gap: 12px; }
.portal-inline-field label { flex: 1; max-width: 420px; margin-bottom: 0; }
.portal-inline-field .button { margin-bottom: 0; }
.portal-connected-label { margin-top: 18px; display: flex; align-items: center; gap: 9px; color: #41604b; font-size: 12px; }
.portal-connected-label > .icon { width: 16px; height: 16px; }
.portal-connected-label > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.portal-sync-options { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; gap: 18px; }
.portal-sync-options label { margin-bottom: 4px; }
.portal-card .help { font-size: 11px; }
.portal-card-intro { margin: -7px 0 12px; }
.portal-role-row { display: grid; grid-template-columns: minmax(90px,1fr) 18px minmax(130px,1.2fr) 34px; align-items: center; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.portal-role-row > div { display: flex; flex-direction: column; gap: 6px; }
.portal-role-row strong { font-size: 12px; font-weight: 500; }
.portal-role-row > div > span { font-size: 10px; color: var(--muted); }
.portal-role-row > label { margin: 0; }
.portal-role-row select { font-size: 12px; min-height: 39px; padding: 10px; margin: 0; }
.portal-map-arrow { font-size: 16px; color: #9aa69e; }
.portal-role-row .portal-direction { grid-column: 3; margin-top: -3px; }
.portal-role-row .portal-direction select { font-size: 10px; padding: 4px 0; min-height: 24px; border: 0; color: var(--muted); }
.portal-form-end { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.portal-form-end .help { margin-top: 0; }
.portal-key-form { margin-top: 23px; max-width: 550px; }
.portal-key-form label { margin-bottom: 15px; }
.portal-key-help { margin-top: 20px; }
.portal-key-help summary { font-size: 11px; color: var(--muted); cursor: pointer; padding: 5px 0; }
.portal-key-help p { max-width: 620px; }
.portal-command-hint { display: flex; gap: 12px; color: #6e7871; padding: 9px 2px; align-items: flex-start; }
.portal-command-hint > .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.portal-command-hint p { font-size: 11px; max-width: 560px; }
.portal-transfer-note { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin: 22px 0; }
.portal-transfer-note > span { display: inline-flex; align-items: center; gap: 7px; }
.portal-transfer-note .icon { width: 14px; height: 14px; }
.portal-import-file { margin: 22px 0 0; max-width: 550px; }
.portal-import-file input { background: #fafbfa; }
.portal-import-preview { padding: 20px 0 0; }
.portal-import-preview > div { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.portal-import-preview .icon { width: 17px; height: 17px; }
.portal-confirm { display: flex; align-items: center; gap: 10px; line-height: 1.6; margin: 20px 0; font-size: 12px !important; }
.portal-confirm input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: #436752; }
.portal-activity { border-top: 1px solid var(--line); }
.portal-activity article { display: flex; align-items: center; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.portal-activity-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); flex-shrink: 0; }
.portal-activity-icon .icon { width: 15px; height: 15px; opacity: .6; }
.portal-activity strong { font-size: 12px; font-weight: 500; }
.portal-activity p { font-size: 11px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.portal-activity time { font-size: 10px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.portal-field-wide { grid-template-columns: 1fr; gap: 16px; }
.portal-field-wide .portal-field-control { align-items: flex-start; }
.portal-perks { min-width: 0; width: 100%; }
.portal-perks-enable { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 12px !important; }
.portal-perks-enable input[type=checkbox] { width: 15px; height: 15px; min-height: 0; padding: 0; margin: 0; accent-color: #436752; }
.portal-perk-scroll { overflow-x: auto; padding-bottom: 4px; }
.portal-perks table { border-collapse: collapse; width: 100%; min-width: 430px; }
.portal-perks th { text-align: left; font-size: 10px; font-weight: 500; color: var(--muted); padding: 8px 8px 8px 0; white-space: nowrap; }
.portal-perks td { padding: 5px 8px 5px 0; }
.portal-perks td input { width: 100%; min-width: 62px; padding: 8px; min-height: 34px; font-size: 11px; }
.portal-perk-remove { display: grid; place-items: center; border: 0; padding: 7px; background: transparent; border-radius: 5px; color: var(--muted); }
.portal-perk-remove:hover { background: #f2eae7; }
.portal-perk-remove .icon { width: 13px; height: 13px; }
.portal-add-perk { border: 0; background: transparent; color: var(--ink); font-size: 11px; margin-top: 9px; padding: 5px 0; }
.portal-add-perk .icon { width: 13px; height: 13px; }
.bot-portal input:disabled, .bot-portal select:disabled { opacity: .55; background: var(--surface); cursor: not-allowed; }
.portal-economy-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.portal-economy-toolbar .quiet { font-size: 12px; }
.portal-connection-picker { display: flex; align-items: flex-end; gap: 16px; }
.portal-connection-picker > label { flex: 1; margin-bottom: 0; }
.portal-connection-picker .button-row { padding-bottom: 1px; flex-wrap: nowrap; }
.portal-connection-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; font-size: 11px; color: var(--muted); }
.portal-connection-summary code { font-size: 11px; }
.portal-currency-list article { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); }
.portal-currency-list article:last-child { padding-bottom: 0; }
.portal-currency-symbol { display: grid; place-items: center; background: var(--surface); width: 38px; height: 38px; border-radius: 10px; font-size: 15px; flex-shrink: 0; }
.portal-currency-list article > div:first-of-type { min-width: 0; }
.portal-currency-list strong { font-size: 13px; font-weight: 500; }
.portal-currency-list p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.portal-currency-list article > div > span { color: #858e87; font-size: 10px; line-height: 1.5; display: block; margin-top: 4px; }
.portal-currency-list .button-row { margin-left: auto; flex-wrap: nowrap; gap: 7px; }
.bot-portal .portal-currency-list .button { min-height: 34px; padding: 8px 10px; font-size: 10px; }
.portal-currency-list .button .icon { width: 13px; height: 13px; }
.portal-editor { background: var(--surface); border-color: var(--line); animation: portal-enter .16s ease-out; }
.portal-editor > .form-grid { gap: 0 18px; }
.portal-editor label { font-size: 12px; }
.portal-rate { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 14px; }
.portal-rate > span { color: #8b968d; text-align: center; }
.portal-rate label { margin-bottom: 20px; }
.portal-currency-switches { display: flex; flex-wrap: wrap; gap: 10px 25px; margin: 10px 0 22px; }
.portal-currency-switches .portal-confirm { margin: 0; font-size: 11px !important; }
.portal-fees { border-top: 1px solid #e3e9e5; border-bottom: 1px solid #e3e9e5; margin: 0 0 25px; padding: 18px 0; }
.portal-fees > summary { cursor: pointer; font-size: 12px; color: #4d6354; }
.portal-fees > .help { margin-top: 13px; }
.portal-fees h3 { font-size: 12px; margin: 20px 0 13px; font-weight: 500; }
.portal-fees .form-grid { gap: 18px; }
.portal-fees .form-grid label { margin-bottom: 5px; }
.portal-ticket-picker { display: flex; gap: 14px; align-items: flex-end; }
.portal-ticket-picker > label { flex: 1; margin: 0; }
.portal-ticket-picker > .button-row { padding-bottom: 1px; flex-wrap: nowrap; }
#portal-ticket-form label { font-size: 12px; }
.portal-ticket-settings { border-top: 1px solid var(--line); }
.portal-ticket-settings > summary { cursor: pointer; font-size: 12px; padding: 15px 0; }
.portal-ticket-settings .portal-field { padding-left: 0; padding-right: 0; }
.portal-ticket-settings .portal-fields { border-top: 0; }
.portal-ticket-flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 32px; }
.portal-ticket-step { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.portal-ticket-step .portal-card-head { align-items: flex-start; gap: 10px; }
.portal-ticket-step h3 { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; }
.portal-ticket-step h3 > span { flex-shrink: 0; border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font-size: 10px; color: var(--muted); }
.portal-ticket-step .help { font-size: 11px; line-height: 1.7; margin-top: 10px; }
.portal-ticket-step .text-link { flex-shrink: 0; font-size: 10px; }
.portal-ticket-step p, .portal-ticket-step strong, .portal-ticket-choices { overflow-wrap: anywhere; }
.portal-ticket-mock { margin-top: 13px; padding: 15px; border-left: 3px solid #c5cdc7; border-radius: 4px; background: var(--surface); font-size: 12px; }
.portal-ticket-mock p { white-space: pre-wrap; line-height: 1.7; margin-top: 5px; }
.portal-ticket-mock-button { display: inline-block; margin-top: 13px; padding: 8px 11px; background: #e5e9e6; border-radius: 5px; font-size: 11px; }
.portal-ticket-question { display: block; font-size: 12px; line-height: 1.6; font-weight: 500; margin: 12px 0 8px; }
.portal-ticket-topics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.portal-ticket-topic { max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--line); background: white; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 11px; }
.portal-ticket-topic[aria-pressed=true] { border-color: #2e3730; background: #f0f2f0; }
.portal-ticket-topic-name { font-size: 11px; color: var(--muted); }
.portal-ticket-choices { padding-left: 18px; margin: 8px 0 16px; font-size: 12px; line-height: 1.8; }
.portal-ticket-textarea { border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-height: 65px; font-size: 11px; color: var(--muted); }
.portal-ticket-textarea span { display: block; margin-top: 8px; font-size: 10px; }
.portal-ticket-file { display: flex; align-items: center; gap: 6px; padding: 11px 0; font-size: 11px; }
.portal-ticket-file .icon { width: 13px; height: 13px; }
@media (max-width: 1020px) { .portal-ticket-flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .portal-ticket-step { scroll-behavior: auto; } }

@media (min-width: 1200px) { .portal-content { padding-left: 50px; padding-right: 18px; } }
@media (max-width: 1020px) {
  .header { gap: 32px; }
  .main-nav { gap: 22px; }
  .portal-layout { grid-template-columns: 190px minmax(0,1fr); }
  .portal-sidebar { padding-right: 14px; }
  .portal-content { padding-left: 28px; }
  .portal-quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .portal-quick-card { padding: 20px; }
  .portal-field { grid-template-columns: minmax(0,1fr) minmax(150px,.9fr); gap: 18px; }
  .portal-card { padding: 21px; }
  .portal-role-row { gap: 9px; grid-template-columns: minmax(85px,1fr) 12px minmax(120px,1.2fr) 34px; }
}
@media (max-width: 760px) {
  .header-actions .account-button span, .header-actions .inbox-label { display: none; }
  .portal-layout { grid-template-columns: minmax(0,1fr); }
  .portal-sidebar { position: static; min-height: 0; border: 0; padding: 22px 0 0; gap: 18px; }
  .portal-switcher { max-width: 320px; }
  .portal-sidebar nav { flex-direction: row; overflow-x: auto; padding: 0 0 14px; border-bottom: 1px solid var(--line); gap: 6px; overscroll-behavior-x: contain; }
  .portal-sidebar nav a { white-space: nowrap; padding: 10px 12px; gap: 7px; font-size: 11px; }
  .portal-sidebar nav a .icon { width: 15px; height: 15px; }
  .portal-sidebar-bottom { display: none; }
  .portal-content { padding: 26px 0 45px; max-width: none; }
  .portal-content .portal-page-head .eyebrow { display: none; }
  .portal-page-head { margin-bottom: 26px; }
  .portal-summary { padding: 24px; }
  .portal-summary strong { font-size: 22px; }
  .portal-quick-grid { grid-template-columns: 1fr 1fr; }
  .portal-quick-card { padding: 20px 17px; }
  .portal-workspaces { margin-top: 34px; }
  .portal-server-card { padding: 20px; }
  .portal-field { grid-template-columns: minmax(0,1fr) minmax(160px,.9fr); }
  .dashboard-entry { padding: 22px; flex-wrap: wrap; gap: 15px; }
  .dashboard-entry > .button { margin-left: 39px; }
  .dashboard-entry > div { flex: 1; }
}
@media (max-width: 540px) {
  .signin-actions { flex-direction: column; align-items: stretch; }
  .bot-portal h1 { font-size: 29px; }
  .portal-page-head { gap: 14px; align-items: flex-start; }
  .portal-page-head > .button-row { gap: 7px; }
  .portal-page-head > .button-row .button { font-size: 11px; padding: 10px; min-height: 38px; }
  .portal-server-grid { grid-template-columns: 1fr; }
  .portal-server-card { padding: 23px 20px; }
  .portal-summary { padding: 22px; }
  .portal-summary strong { font-size: 20px; }
  .portal-summary-symbol { display: none; }
  .portal-stats { grid-template-columns: 1.5fr 1fr 1fr; padding: 26px 0; }
  .portal-stats > div { padding: 0 14px; gap: 10px; }
  .portal-stats span { font-size: 10px; }
  .portal-stats > div:first-child strong { font-size: 14px; line-height: 24px; }
  .portal-stats strong { font-size: 20px; }
  .portal-quick-grid { grid-template-columns: 1fr; }
  .portal-card { padding: 20px; margin-bottom: 16px; }
  .portal-card-head { margin-bottom: 16px; }
  .portal-card-head h2 { font-size: 17px; }
  .portal-live { font-size: 10px; margin-top: 11px; }
  .portal-settings-tools { flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
  .portal-search { min-width: 100%; }
  .portal-category-select { width: 100%; }
  .portal-search kbd { display: none; }
  .portal-field { grid-template-columns: 1fr; padding: 20px 3px; gap: 12px; }
  .portal-field-toggle { grid-template-columns: minmax(0,1fr) 72px; gap: 15px; }
  .portal-field-control { width: 100%; }
  .portal-field-toggle .portal-reset { display: none; }
  .portal-field-control input, .portal-field-control select, .portal-field-control textarea { min-height: 42px; }
  .portal-savebar { bottom: 10px; gap: 10px; padding: 12px; }
  .portal-savebar strong { font-size: 10px; }
  .portal-savebar .button-row { gap: 6px; }
  .portal-savebar .portal-unsaved-dot { display: none; }
  .bot-portal .portal-savebar .button { font-size: 10px; padding: 8px 10px; }
  .portal-inline-field { flex-wrap: wrap; }
  .portal-inline-field label { flex: auto; width: 100%; max-width: none; }
  .portal-inline-field .button { width: 100%; }
  .portal-connected-label { flex-wrap: wrap; font-size: 11px; }
  .portal-connected-label > span { width: 100%; margin-left: 25px; }
  .portal-sync-options { gap: 15px; }
  .portal-role-row { grid-template-columns: minmax(0,1fr) 34px; gap: 12px; padding: 18px 0; }
  .portal-role-row > div { grid-column: 1; grid-row: 1; }
  .portal-role-row > .portal-map-arrow { display: none; }
  .portal-role-row > label:not(.portal-toggle):not(.portal-direction) { grid-column: 1/-1; grid-row: 2; }
  .portal-role-row > .portal-toggle { grid-column: 2; grid-row: 1; }
  .portal-role-row .portal-direction { grid-column: 1/-1; grid-row: 3; margin-top: -8px; }
  .portal-role-row .portal-direction select { min-height: 30px; }
  .portal-form-end { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .portal-form-end .help { text-align: center; font-size: 10px; }
  .portal-activity article { gap: 12px; flex-wrap: wrap; }
  .portal-activity article > div { flex: 1; }
  .portal-activity time { width: 100%; margin-left: 44px; }
  .portal-economy-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .portal-connection-picker { flex-wrap: wrap; }
  .portal-connection-picker > label { flex: auto; width: 100%; }
  .portal-connection-summary { gap: 12px; }
  .portal-currency-list article { flex-wrap: wrap; gap: 12px; }
  .portal-currency-list article > div:first-of-type { flex: 1; }
  .portal-currency-list .button-row { width: 100%; margin-left: 50px; }
  .portal-currency-list .button-row .button:first-child { flex: 1; }
  .portal-rate { gap: 9px; grid-template-columns: minmax(0,1fr) 15px minmax(0,1fr); }
  .portal-rate input { min-width: 0; }
  .portal-currency-switches { gap: 15px; }
  .portal-editor .form-grid { gap: 0; }
  .dashboard-entry { margin-bottom: 28px; padding: 20px; }
  .dashboard-entry > div { gap: 7px; }
  .dashboard-entry strong { font-size: 15px; }
  .dashboard-entry > div > span { font-size: 11px; line-height: 1.5; }
  .dashboard-entry > .button { margin-left: 0; width: 100%; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bot-portal *, .dashboard-entry { animation: none !important; transform: none !important; }
  .portal-loader { border-top-color: #53645b; }
}
