:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #637083;
    --line: #d8e0eb;
    --line-soft: #e8edf5;
    --panel-soft: #fbfcfe;
    --accent: #1f65d6;
    --accent-strong: #1555bd;
    --danger: #b42318;
    --success: #147a43;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.app-shell {
    width: min(1200px, calc(100% - 56px));
    margin: 0 auto;
    padding: 32px 0;
}

.app-topbar {
    margin-bottom: 22px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.app-topbar__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

.app-header {
    margin-bottom: 24px;
}

.app-header__content {
    min-width: 0;
    max-width: 720px;
    display: grid;
    gap: 10px;
    align-content: start;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 28px;
    line-height: 1.2;
}

.app-description {
    display: grid;
    gap: 4px;
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.app-description span {
    display: block;
}

.status-badge[hidden] {
    display: none !important;
}

h2 {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.25;
}

h3 {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.3;
}

.panel {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    align-items: flex-end;
}

.tab-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.tab-button:hover,
.tab-button.is-active {
    background: var(--panel);
    color: var(--accent);
}

.tab-button:focus {
    outline: 0;
}

.tab-button:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(31, 101, 214, 0.24);
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-title-row h2 {
    margin-bottom: 0;
}

.settings-heading {
    margin-bottom: 20px;
}

.settings-heading h2 {
    margin-bottom: 6px;
}

.guide-intro {
    margin-bottom: 20px;
}

.guide-intro h2 {
    margin-bottom: 6px;
}

.guide-intro--compact {
    margin: 6px 0 14px;
}

.guide-intro--compact h3 {
    margin-bottom: 6px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}

.guide-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel-soft);
}

.guide-card h3,
.guide-step__content h3 {
    margin-bottom: 10px;
}

.guide-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.guide-list li + li {
    margin-top: 8px;
}

.guide-field-list {
    padding-left: 0;
    list-style: none;
}

.guide-field-list li {
    display: grid;
    gap: 4px;
}

.guide-field-code,
.guide-field-description {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.guide-steps {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.guide-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel-soft);
}

.guide-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(31, 101, 214, 0.1);
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.guide-step__content p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.guide-step__content p:last-child,
.guide-card p:last-child {
    margin-bottom: 0;
}

.guide-note {
    padding: 14px 16px;
    border: 1px solid rgba(31, 101, 214, 0.16);
    border-radius: 8px;
    background: rgba(31, 101, 214, 0.05);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.main-dashboard {
    display: block;
}

.connection-status {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.connection-status:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.connection-status:last-child {
    padding-bottom: 0;
}

.connection-status__indicator {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: #9aa6b2;
    box-shadow: 0 0 0 4px rgba(154, 166, 178, 0.14);
}

.connection-status.is-success .connection-status__indicator {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(20, 122, 67, 0.14);
}

.connection-status.is-error .connection-status__indicator {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}

.connection-status__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.connection-status__content strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.connection-status__content span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.connection-status.is-success .connection-status__content span {
    color: var(--success);
}

.connection-status.is-error .connection-status__content span {
    color: var(--danger);
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.status-strip .connection-status {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    min-height: 70px;
    padding: 12px 16px;
    border-top: 0;
    border: 0;
    border-left: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
}

.status-strip .connection-status:first-of-type,
.status-strip .connection-status:last-child {
    padding-top: 12px;
    padding-bottom: 12px;
}

.status-strip .connection-status:first-of-type {
    border-left: 0;
}

.status-strip .connection-status__indicator {
    margin-top: 3px;
}

.status-strip .connection-status__content {
    display: block;
}

.status-strip .connection-status__content strong {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.status-strip .connection-status__content span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
}

.muted {
    color: var(--muted);
    line-height: 1.4;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.form-grid label small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.form-stack {
    display: grid;
    gap: 7px;
}

.form-stack > label {
    color: var(--muted);
    font-size: 14px;
}

.inline-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.field-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.field-status.is-success {
    color: var(--success);
}

.field-status.is-error {
    color: var(--danger);
}

.user-search-results {
    display: grid;
    gap: 6px;
    max-height: 236px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.user-search-results[hidden] {
    display: none;
}

.user-search-result {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #f8fafc;
    color: var(--text);
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.user-search-result:hover,
.user-search-result:focus {
    border-color: var(--accent);
    background: #eef3fb;
    color: var(--accent);
    outline: none;
}

.user-search-empty,
.user-search-more {
    padding: 7px 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.settings-panel {
    position: relative;
    overflow: hidden;
}

.settings-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(31, 101, 214, 0.09), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(20, 122, 67, 0.08), transparent 24%);
}

.settings-panel > * {
    position: relative;
    z-index: 1;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.settings-form {
    display: grid;
    gap: 14px;
}

.settings-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.05);
}

.settings-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.settings-card__header h3 {
    margin-bottom: 5px;
}

.settings-card__header .muted {
    margin-bottom: 0;
    font-size: 13px;
}

.settings-card__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(31, 101, 214, 0.18);
    border-radius: 999px;
    background: #eef3fb;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.settings-fields {
    display: grid;
    gap: 14px;
}

.settings-fields--credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-form label,
.settings-form .form-stack > label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.settings-form label small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.settings-card .form-stack + .form-stack {
    margin-top: 14px;
}

.mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.mode-switch legend {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
}

.mode-switch__option {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.mode-switch__option:hover,
.mode-switch__option:focus-within {
    border-color: rgba(31, 101, 214, 0.42);
    background: #f7faff;
    box-shadow: 0 8px 22px rgba(31, 101, 214, 0.08);
}

.mode-switch__option input {
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.mode-switch__option strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.mode-switch__option small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.mode-switch__option:has(input:checked) {
    border-color: rgba(31, 101, 214, 0.62);
    background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
    box-shadow: 0 10px 26px rgba(31, 101, 214, 0.12);
}

.settings-reference-field {
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #ffffff;
    transition: border-color 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.settings-reference-field.is-disabled-context {
    border-color: #d0d5dd;
    background: #f4f6f8;
}

.settings-reference-field.is-disabled-context label,
.settings-reference-field.is-disabled-context small,
.settings-reference-field.is-disabled-context .field-status {
    color: #667085;
}

.settings-reference-field.is-disabled-context select,
.settings-reference-field.is-disabled-context button {
    border-color: #d0d5dd;
    background: #eaecf0;
    color: #98a2b3;
}

.settings-current-panel {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #dce6f5;
    border-radius: 9px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.settings-current-panel__title {
    margin-bottom: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.settings-facts {
    display: grid;
    grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
    gap: 9px 14px;
    margin: 0;
}

.settings-facts dt {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.settings-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.settings-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef3fb;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.settings-status-pill.is-success {
    background: #e8f7ef;
    color: var(--success);
}

.settings-status-pill.is-error {
    background: #fdecea;
    color: var(--danger);
}

.settings-status-pill.is-pending {
    background: #fff5e8;
    color: #9a5b00;
}

.settings-status-pill.is-empty {
    background: #f2f4f7;
    color: var(--muted);
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.settings-actions .status-line {
    margin: 0;
    min-width: min(100%, 320px);
}

.settings-field-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.settings-field-list li {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, max-content);
    gap: 10px;
    align-items: baseline;
}

.settings-field-name {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.settings-code-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 6px;
    background: #eef3fb;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: anywhere;
}

.settings-code-pill.is-empty {
    background: #f2f4f7;
    color: var(--muted);
}

.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid select,
.settings-form input:not([type="checkbox"]):not([type="radio"]),
.settings-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.form-grid select:focus,
.settings-form input:not([type="checkbox"]):not([type="radio"]):focus,
.settings-form select:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(31, 101, 214, 0.16);
}

button {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

button:hover {
    background: var(--accent-strong);
}

.secondary-button {
    min-height: 36px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
}

.secondary-button:hover {
    background: #eef3fb;
}

.deal-category-refresh-button,
.user-refresh-button {
    min-height: 42px;
    padding: 10px 14px;
    white-space: nowrap;
    font-size: 14px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.status-line {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.status-line.is-success {
    color: var(--success);
}

.status-line.is-error {
    color: var(--danger);
}

.history-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.history-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.history-refresh-status {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.history-refresh-status.is-success {
    color: var(--success);
}

.history-refresh-status.is-error {
    color: var(--danger);
}

.history-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th,
.history-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.history-table th {
    color: var(--muted);
    font-weight: 700;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
    width: 150px;
    white-space: nowrap;
}

.history-table td:nth-child(3) {
    vertical-align: middle;
}

.history-table th:last-child,
.history-table td:last-child {
    width: 190px;
    white-space: nowrap;
}

.history-row-action {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
}

.history-row-action-empty {
    color: var(--muted);
}

.diagnostics-caption {
    margin-bottom: 0;
}

.diagnostics-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.diagnostics-card,
.diagnostics-log-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.diagnostics-card--wide {
    grid-column: 1 / -1;
}

.diagnostics-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.diagnostics-card__header h3 {
    margin-bottom: 0;
}

.diagnostics-summary {
    font-size: 13px;
}

.diagnostics-facts {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.diagnostics-facts--compact {
    grid-template-columns: 220px minmax(0, 1fr);
}

.diagnostics-facts dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.diagnostics-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.diagnostics-log-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.diagnostics-table td,
.diagnostics-table th {
    font-size: 13px;
}

.diagnostics-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.diagnostics-log-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.diagnostics-log-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3fb;
    color: var(--muted);
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}

.status-badge.is-success {
    background: #e8f7ef;
    color: var(--success);
}

.status-badge.is-error {
    background: #fdecea;
    color: var(--danger);
}

.status-badge.is-warning {
    background: #fff5e8;
    color: #9a5b00;
}

.status-badge.is-pending {
    background: #fff5e8;
    color: #9a5b00;
}

.feedback-panel {
    padding: 24px;
}

.feedback-heading {
    margin-bottom: 20px;
}

.feedback-heading h2 {
    margin-bottom: 0;
}

.feedback-contact-block {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 0;
}

.feedback-logo-link {
    display: inline-flex;
    align-items: center;
    width: 164px;
    max-width: 100%;
}

.feedback-logo {
    display: block;
    width: 164px;
    max-width: 100%;
    height: auto;
}

.feedback-contact-content {
    min-width: 0;
}

.feedback-section h3 {
    margin-bottom: 10px;
}

.feedback-section--legal {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.feedback-links {
    display: grid;
    gap: 0;
}

.feedback-link {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
}

.feedback-link + .feedback-link {
    border-top: 1px solid var(--line-soft);
}

.feedback-link span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.feedback-link strong {
    min-width: 0;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.feedback-link:hover strong {
    color: var(--accent-strong);
    text-decoration: underline;
}

.public-section + .public-section {
    margin-top: 24px;
}

.public-developer-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.public-developer-card__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.public-developer-card__logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.public-developer-card__logo {
    display: block;
    width: 136px;
    max-width: 100%;
    height: auto;
}

.public-developer-card__site {
    min-width: 0;
    color: var(--accent);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.public-developer-card__site:hover,
.public-developer-card__contact:hover strong {
    color: var(--accent-strong);
    text-decoration: underline;
}

.public-developer-card__contacts {
    display: grid;
    gap: 0;
    min-width: 0;
}

.public-developer-card__contact {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
}

.public-developer-card__contact + .public-developer-card__contact {
    border-top: 1px solid var(--line-soft);
}

.public-developer-card__contact span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.public-developer-card__contact strong {
    min-width: 0;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.public-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.public-list li + li {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .app-shell {
        width: min(100% - 28px, 960px);
    }

    .app-topbar__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .status-strip {
        grid-template-columns: 1fr;
    }

    .status-strip .connection-status {
        border-left: 0;
        border-top: 1px solid var(--line-soft);
    }

    .status-strip .connection-status:first-of-type {
        border-top: 0;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {
    .app-shell {
        width: min(100% - 20px, 760px);
        padding: 20px 0;
    }

    .panel {
        padding: 18px;
    }

    h1 {
        font-size: 24px;
    }

    .tabs {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .inline-field-row {
        grid-template-columns: 1fr;
    }

    .settings-fields--credentials,
    .mode-switch {
        grid-template-columns: 1fr;
    }

    .mode-switch__option {
        min-height: auto;
    }

    .settings-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .settings-actions button {
        width: 100%;
    }

    .settings-facts {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .settings-field-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .diagnostics-summary-grid {
        grid-template-columns: 1fr;
    }

    .public-developer-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .public-developer-card__brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .public-developer-card__contact {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .diagnostics-facts,
    .diagnostics-facts--compact {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .feedback-contact-block {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }

    .feedback-logo-link,
    .feedback-logo {
        width: 156px;
    }

    .feedback-link {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .panel-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
