.center-shell { --center-sidebar-width: 200px; --center-header-height: 67px; display: grid; grid-template-columns: var(--center-sidebar-width) minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 26px 20px 72px; }
.center-sidebar { position: fixed; z-index: 10; top: var(--center-header-height); bottom: 0; left: max(20px, calc((100% - 1180px) / 2 + 20px)); display: flex; width: var(--center-sidebar-width); padding: 12px 10px; border: 1px solid var(--line-faint); border-block: 0; background: var(--surface-2); }
.center-nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow: visible; }
.center-nav button { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-3); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.center-nav button:hover { color: var(--text-1); background: var(--surface-3, rgba(255, 255, 255, .04)); }
.center-nav button.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.center-nav-icon { width: 17px; height: 17px; flex: none; }
#nav-logout { margin-top: auto; color: var(--status-dead); }
#nav-logout:hover { color: var(--status-dead); background: var(--status-dead-bg); }
#nav-logout.active { color: var(--status-dead); background: var(--status-dead-bg); font-weight: 600; }
.center-main { grid-column: 2; min-width: 0; }
.ticket-controls { align-items: center; }
.ticket-filter { display: flex; align-items: center; gap: 10px; color: var(--text-4); font-size: 13px; }
.ticket-filter select { width: 168px; max-width: 100%; min-height: 32px; padding: 6px 10px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font: inherit; cursor: pointer; }
.ticket-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ticket-controls .ticket-actions { margin-left: auto; }
[data-section="tickets"] .ticket-list-card { padding: 0; overflow: hidden; }
#tickets-title { scroll-margin-top: 84px; }
.ticket-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 220px; padding: 32px 20px; text-align: center; }
.ticket-state-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.ticket-state-icon svg { width: 24px; height: 24px; }
#ticket-list-state { margin: 0; line-height: 1.7; }
.ticket-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 16px; width: 100%; min-height: 84px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--text-1); font: inherit; cursor: pointer; }
.ticket-list-item:last-child { border-bottom: 0; }
.ticket-list-item:hover { background: var(--accent-soft); }
.ticket-list-summary { display: grid; gap: 6px; min-width: 0; }
.ticket-list-subject { font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.ticket-list-time { font-size: 12px; line-height: 1.6; }
.ticket-list-arrow { width: 16px; height: 16px; color: var(--text-4); }
.ticket-status { flex: none; font-size: 12px; line-height: 22px; white-space: nowrap; }
.ticket-status[data-status="open"] { color: var(--status-missing); background: var(--status-missing-bg); }
.ticket-status[data-status="waiting_user"] { color: var(--status-active); background: var(--status-active-bg); }
.ticket-status[data-status="closed"] { color: var(--status-inactive); background: var(--status-inactive-bg); }
.ticket-panel-title { margin: 0 0 18px; font-size: 16px; font-weight: 600; line-height: 1.6; }
.ticket-form { display: grid; gap: 18px; margin: 0; }
.ticket-form label { display: grid; gap: 8px; color: var(--text-3); font-size: 13px; }
.ticket-form input, .ticket-form textarea { width: 100%; min-width: 0; min-height: 44px; padding: 12px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--surface-2); color: var(--text-1); font: inherit; font-size: 16px; box-sizing: border-box; }
.ticket-form textarea { resize: vertical; line-height: 1.6; }
.ticket-form input:focus, .ticket-form textarea:focus, .ticket-filter select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent-soft-3); outline-offset: 1px; }
.ticket-form input:disabled, .ticket-form textarea:disabled { opacity: .6; cursor: not-allowed; }
.ticket-detail-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.ticket-detail-heading { flex: 1; min-width: 0; }
#ticket-subject { margin: 0 0 6px; font-size: 18px; line-height: 1.6; }
#ticket-meta { margin: 0; font-size: 12px; line-height: 1.7; }
.ticket-message { margin: 0 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); }
.ticket-message:last-child { margin-bottom: 0; }
.ticket-message-admin { border-left: 3px solid var(--accent); }
.ticket-message p { margin: 0 0 10px; font-size: 12px; }
.ticket-message-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; color: var(--text-2); }
#ticket-subject, #ticket-meta { overflow-wrap: anywhere; }
#ticket-error { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; color: var(--status-dead); background: var(--status-dead-bg); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#ticket-error:empty { display: none; }
#ticket-closed-hint { margin: 0 0 16px; line-height: 1.7; }
[data-section="tickets"] .btn { gap: 6px; white-space: normal; touch-action: manipulation; }
[data-section="tickets"] .btn svg { width: 16px; height: 16px; flex: none; }
[data-section="tickets"] .btn:focus-visible, .ticket-list-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
[data-section="tickets"] .pager { flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; }
[data-section="tickets"] [hidden] { display: none !important; }
@media (max-width: 760px) {
  [data-section="tickets"] .btn { min-height: 44px; }
  .ticket-controls .ticket-actions { margin-left: 0; }
  .ticket-filter { width: 100%; justify-content: space-between; }
  .ticket-filter select { flex: 1; width: auto; min-width: 0; min-height: 44px; padding: 8px 12px; font-size: 16px; }
  .ticket-controls .ticket-actions { flex: 1; }
  .ticket-controls .btn, .ticket-form .btn { flex: 1; }
  .ticket-list-item { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px 12px; padding: 14px; }
  .ticket-list-item .ticket-status { grid-column: 1; justify-self: start; }
  .ticket-list-arrow { grid-column: 2; grid-row: 1 / 3; }
  .ticket-detail-head { flex-wrap: wrap; }
  .ticket-detail-heading { flex-basis: 100%; }
  .ticket-message { padding: 12px; }
  .ticket-message-body { font-size: 16px; }
}

.center-head { margin: 0 0 18px; }
.center-head h1 { margin: 0 0 6px; font-size: 26px; }
.center-head p { margin: 0; }
.center-section { display: none; }
.center-section.active { display: block; }
.center-nav button:disabled { opacity: .45; cursor: not-allowed; }
.agreement-document { padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.agreement-document h1 { margin: 0 0 8px; font-size: 26px; }
.agreement-notice { margin: 18px 0; padding: 12px 16px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); line-height: 1.7; }
.agreement-content { font-family: inherit; font-size: 16px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; margin: 24px 0; color: var(--text-2); }
.agreement-confirmation { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); box-shadow: 0 4px 16px var(--tint-3); }
.agreement-confirmation label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); flex: 1; min-width: 200px; cursor: pointer; }
.agreement-confirmation input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.agreement-error { color: var(--status-dead); line-height: 1.7; }
.agreement-document [hidden] { display: none; }
.agreement-confirmation .btn, #agreement-support, #agreement-retry { min-height: 44px; white-space: normal; touch-action: manipulation; }
@media (max-width: 767px) {
  .agreement-document { padding: 20px 12px; }
  .agreement-document h1 { font-size: 24px; overflow-wrap: anywhere; }
  .agreement-confirmation { position: static; flex-direction: column; align-items: stretch; padding: 12px; gap: 12px; margin-bottom: env(safe-area-inset-bottom, 0px); }
  .agreement-confirmation label { flex: auto; min-width: 0; min-height: 44px; width: 100%; font-size: 16px; align-items: flex-start; }
  .agreement-confirmation input { margin-top: 4px; }
  .agreement-confirmation .btn { width: 100%; min-width: 0; font-size: 16px; }
}
.stat-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.stat-grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat-grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-card .label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-4); }
.stat-card .label svg { width: 14px; height: 14px; }
.stat-card .value { font-size: 26px; font-weight: 700; margin-top: 6px; word-break: break-all; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 18px 0; }
.preset-group { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.preset { border: 0; background: none; color: var(--text-4); font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.preset.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.card.kv-card { padding: 8px 14px; margin-bottom: 14px; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; overflow-x: auto; padding-bottom: 2px; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; flex: 1 0 26px; }
.chart-bar { width: 76%; max-width: 24px; min-height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), rgba(102, 168, 255, .35)); }
.chart-date { font-size: 10px; color: var(--text-4); white-space: nowrap; }
.chart-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-4); font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { color: var(--text-4); font-weight: 600; }
#ledger-table { table-layout: fixed; min-width: 620px; }
#ledger-table th:nth-child(1), #ledger-table td:nth-child(1) { width: 165px; white-space: nowrap; }
#ledger-table th:nth-child(2), #ledger-table td:nth-child(2) { width: 100px; }
#ledger-table th:nth-child(3), #ledger-table td:nth-child(3) { width: 150px; white-space: nowrap; }
#ledger-table td:nth-child(4) { word-break: break-word; }
#messages-table { table-layout: fixed; min-width: 620px; }
#orders-table { min-width: 760px; }
.payment-choice-summary { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); }
.payment-choice-summary strong { color: var(--text-1); font-size: 26px; line-height: 1.3; }
.payment-choice-summary span { color: var(--accent); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.payment-choice-hint, .payment-choice-order { margin: 14px 0; color: var(--text-4); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.payment-choice-order { margin-bottom: 0; }
.payment-methods { display: grid; gap: 10px; }
.payment-method { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text-1); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; touch-action: manipulation; }
.payment-method:hover { border-color: var(--accent); background: var(--accent-soft); }
.payment-method:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.payment-method-icon { display: flex; flex: none; width: 32px; height: 32px; }
.payment-method-icon svg, .payment-method-icon img { width: 100%; height: 100%; object-fit: contain; }
.payment-method-arrow { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--text-4); }
#keys-table { min-width: 560px; }
.calls-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 8px; }
.calls-heading h2 { margin: 0; font-size: 15px; }
#call-table { table-layout: fixed; width: 100%; min-width: 0; font-size: 12px; }
#call-table th, #call-table td { padding: 5px 6px; vertical-align: top; overflow-wrap: anywhere; }
#call-table th:nth-child(1) { width: 25%; }
#call-table th:nth-child(2) { width: 13%; }
#call-table th:nth-child(3) { width: 26%; white-space: nowrap; }
#call-table th:nth-child(4) { width: 12%; }
#call-table th:nth-child(5) { width: 24%; }
.call-main, .call-sub { display: block; line-height: 1.45; }
.call-sub { margin-top: 1px; color: var(--text-4); font-size: 11px; }
.call-tokens { word-spacing: 1px; }
.call-flow { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; font-size: 10px; line-height: 1.5; }
.call-flow-stream { color: var(--accent); background: var(--accent-soft); }
.call-flow-nonstream { color: #9a3412; background: #ffedd5; }
.calls-list { container-type: inline-size; }
@container (max-width: 600px) {
  #call-table, #call-table tbody { display: block; }
  #call-table thead { display: none; }
  #call-table .call-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #call-table .call-row td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  #call-table .call-row td:first-child { grid-column: 1 / -1; }
  #call-table .call-row td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10px; color: var(--text-4); }
}
#calls-pager[hidden] { display: none; }
#messages-table th:nth-child(2), #messages-table td:nth-child(2) { width: 90px; white-space: nowrap; }
#messages-table th:nth-child(3), #messages-table td:nth-child(3) { width: 165px; white-space: nowrap; }
.msg-title { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--text-1); font: inherit; text-align: left; cursor: pointer; }
.msg-title:hover { color: var(--accent); text-decoration: underline; }
.msg-title.unread { font-weight: 600; }
.msg-title.unread::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--status-dead); vertical-align: 2px; }
.msg-title.read { color: var(--text-4); }
.msg-tag { display: inline-block; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; color: #fff; font-size: 12px; line-height: 20px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.amt-credit { color: var(--status-active); font-weight: 600; }
.amt-debit { color: var(--status-dead); font-weight: 600; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: var(--accent-soft); color: var(--accent); }
.tag.green { background: var(--status-active-bg); color: var(--status-active); }
.tag.red { background: var(--status-dead-bg); color: var(--status-dead); }
#create-key-btn { padding: 8px 16px; font-size: 13px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 6px; }
.form-row label { display: flex; flex-direction: column; font-size: 12px; color: var(--text-4); gap: 4px; }
.form-row input { padding: 7px 10px; border: 1px solid var(--border-input); border-radius: 8px; font: inherit; min-width: 170px; color: var(--text-1); background: var(--surface-2); }
#redeem-code-input { width: 220px; max-width: 100%; font-family: monospace; letter-spacing: .06em; }
.muted { color: var(--text-4); font-size: 13px; }
code.block { display: block; background: var(--surface-0); color: var(--text-2); padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 12px; white-space: pre; }
.kv-row { display: flex; align-items: center; gap: 10px; padding: 2px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.kv-row:last-child { border-bottom: 0; }
.kv-label { width: auto; flex: none; color: var(--text-4); font-size: 12px; }
.kv-value { flex: 0 1 auto; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-2); font-family: monospace; font-size: 12px; }
.section-title { margin: 24px 0 10px; font-size: 15px; }
.info-list { display: flex; flex-direction: column; margin: 0; }
.info-item { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-label { color: var(--text-4); font-size: 12px; }
.info-value { font-size: 13px; word-break: break-all; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, 270px); gap: 12px; margin-bottom: 12px; }
.pkg-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 121px; }
.pkg-card .pkg-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 17px; color: var(--text); }
.pkg-card .pkg-amount { font-weight: 600; }
.pkg-card .pkg-arrow { color: var(--text-4); font-weight: 400; }
.pkg-card .pkg-points { color: #15803d; font-size: 17px; font-weight: 600; }
.pkg-card .pkg-points strong { font-weight: 700; margin-right: 3px; }
.pkg-card .pkg-label { color: var(--text-4); font-size: 12px; }
.pkg-card .pkg-line-original { font-size: 14px; }
.pkg-card .pkg-line-original .pkg-amount { font-weight: 400; color: var(--text-3); }
.pkg-card .pkg-points-original { color: var(--text-4); font-size: 14px; text-decoration: line-through; }
.pkg-card .btn { margin-top: auto; }
.pkg-card .btn[data-payment-ready="false"] { white-space: normal; overflow-wrap: anywhere; height: auto; min-height: 32px; line-height: 1.5; }
.pkg-promotion { align-self: flex-start; border-radius: 4px; padding: 2px 7px; color: #b45309; background: #fef3c7; font-size: 12px; }
html:not([data-portal-theme="light"]) .pkg-card .pkg-points { color: #4ade80; }
.pay-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.pay-tab { padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; }
.pay-tab:hover { color: var(--text); border-color: var(--text-4); }
.pay-tab.active { color: var(--accent); border-color: var(--accent-soft-3); background: var(--accent-soft); }
.cell-nowrap { white-space: nowrap; }
.cell-mono { font-family: monospace; }
.cell-truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .center-shell { --center-sidebar-width: 52px; width: 100%; grid-template-columns: var(--center-sidebar-width) minmax(0, 1fr); gap: 0; padding: 0 0 72px; }
  .center-sidebar { left: 0; padding: 10px 0; border: 0; border-right: 1px solid var(--line-faint); border-radius: 0; }
  .center-nav { gap: 2px; }
  .center-nav button { position: relative; width: 100%; min-height: 44px; flex-shrink: 0; justify-content: center; padding: 12px 0; border-radius: 0; }
  .center-nav button > span:not(.nav-badge) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .center-nav .nav-badge { position: absolute; top: 2px; right: 8px; font-size: 11px; }
  .center-main { padding: 16px 12px 0; }
  .kv-label { width: 100%; }
  .pkg-grid { grid-template-columns: 1fr; }
}
#keys-table button, [data-copy-target] { position: relative; }
#keys-table .key-cell { display: flex; align-items: center; gap: 4px; min-width: 0; }
#keys-table .key-cell-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-ok { flex: none; color: var(--status-active); font-weight: 700; }
.copy-tip { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 6px; background: var(--text-1); color: var(--surface-1); font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 8; }
.copy-tip.visible { opacity: 1; }
.copy-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--text-1); }
.nav-badge { color: var(--status-dead); font-size: 13px; font-weight: 700; }
.message-content { white-space: pre-wrap; line-height: 1.8; color: var(--text-2); font-size: 14px; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; max-width: 920px; }
.community-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); min-width: 0; }
.community-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); align-self: start; }
.community-icon svg { width: 22px; height: 22px; }
.community-details { min-width: 0; }
.community-type { margin: 0 0 4px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--text-1); overflow-wrap: anywhere; }
.community-value { display: block; font-family: inherit; font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--text-3); overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; }
.community-actions { position: relative; align-self: center; }
.community-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text-3); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; touch-action: manipulation; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.community-copy svg { width: 16px; height: 16px; flex: none; }
.community-copy:hover { color: var(--accent); border-color: var(--accent-soft-3); background: var(--accent-soft); }
.community-copy:active { background: var(--accent-soft-2); }
.community-copy:focus-visible, #community-retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.community-copy:disabled { cursor: wait; opacity: .55; }
.community-copy-feedback { position: absolute; top: calc(100% + 7px); right: 0; z-index: 2; width: max-content; max-width: 180px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); color: var(--status-active); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 4px 12px var(--tint-3); pointer-events: none; }
.community-copy-feedback:empty { display: none; }
.community-copy-feedback[data-type="error"] { color: var(--status-dead); }
.community-card.has-image { align-content: start; grid-template-rows: minmax(54px, auto) auto; }
.community-card.image-only .community-type { margin-bottom: 0; }
.community-media { grid-column: 1 / -1; min-width: 0; text-align: center; padding-top: 4px; }
.community-image-button { display: inline-flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 240px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text-3); font: inherit; cursor: zoom-in; overflow: hidden; touch-action: manipulation; }
.community-image-frame { display: grid; place-items: center; padding: 12px; background: #fff; }
.community-image { display: block; width: 100%; height: 212px; object-fit: contain; }
.community-image-caption { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; font-size: 13px; }
.community-image-caption svg { width: 16px; height: 16px; }
.community-image-button:hover { color: var(--accent); }
.community-image-error { margin: 0; color: var(--status-dead); font-size: 13px; line-height: 1.6; }
.community-media [hidden] { display: none; }
.community-image-button:focus-visible, .community-preview-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.community-preview { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--text-1); overflow: auto; }
.community-preview::backdrop { background: rgba(0, 0, 0, .6); }
.community-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.community-preview-title { margin: 0; min-width: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.community-preview-close { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; touch-action: manipulation; }
.community-preview-close svg { width: 16px; height: 16px; }
.community-preview-frame { padding: 20px; background: #fff; }
.community-preview-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain; }
.community-preview-error { margin: 0; padding: 20px; color: var(--status-dead); font-size: 14px; }
.community-preview [hidden] { display: none; }
.community-state { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 920px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.community-state[hidden] { display: none; }
.community-state [hidden] { display: none; }
.community-state p { margin: 0; }
#community-retry { min-height: 44px; }
@media (max-width: 980px) { .community-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .community-state { max-width: 520px; } }
@media (max-width: 480px) { .community-card { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 16px; gap: 10px; } .community-icon { width: 36px; height: 36px; border-radius: 9px; } .community-copy { min-width: 68px; padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .community-copy { transition: none; } }
.center-nav button[data-section="agreement"] { margin-top: auto; font-size: 12px; color: var(--text-muted, #71809c); }
.center-nav #nav-logout { margin-top: 0; }
.center-nav button:disabled { opacity: .45; cursor: not-allowed; }
.center-section[aria-busy="true"] .value { color: var(--text-muted, #71809c); }
.page-data-error { color: #d43838; padding: 12px 0; }

.app-embedded .center-shell { --center-header-height: 0px; }
@media (max-height: 600px) {
  .center-sidebar { padding-top: 4px; padding-bottom: 4px; }
  .center-nav { gap: 0; }
  .center-nav button { flex: 1 1 0; min-height: 0; padding-top: 0; padding-bottom: 0; line-height: 1.1; }
}
