:root {
    color-scheme: light;
    --bg: #07111f;
    --panel: rgba(8, 18, 34, 0.78);
    --panel-strong: rgba(9, 24, 44, 0.92);
    --panel-border: rgba(148, 163, 184, 0.18);
    --panel-soft: rgba(10, 22, 39, 0.72);
    --text: #e5eefb;
    --muted: #9fb1c9;
    --accent: #67e8f9;
    --accent-strong: #38bdf8;
    --accent-soft: rgba(103, 232, 249, 0.12);
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans TC", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.16), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-copy {
    padding: 12px 0;
}

.hero h1,
.panel h2 {
    margin: 0 0 14px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    max-width: 11ch;
}

.eyebrow {
    margin: 0 0 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--accent);
}

.lead,
.panel-title p,
.empty,
small,
.hero-points,
.form-footnote,
.highlight-card span,
.info-card p,
.timeline p,
.inline-alert span {
    color: var(--muted);
}

.panel,
.highlight-card,
.inline-alert {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(4, 10, 20, 0.28);
}

.panel {
    padding: 24px;
}

.form-panel {
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.96), rgba(8, 18, 34, 0.92));
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 18px;
}

.highlight-card {
    padding: 18px;
    background: linear-gradient(180deg, rgba(9, 27, 48, 0.86), rgba(9, 20, 35, 0.68));
}

.highlight-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.hero-points {
    margin: 0;
    padding-left: 22px;
}

.hero-points li + li {
    margin-top: 8px;
}

.content-stack {
    display: grid;
    gap: 24px;
}

.card-grid,
.timeline {
    display: grid;
    gap: 24px;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-title {
    margin-bottom: 20px;
}

.panel-title.compact {
    margin-bottom: 16px;
}

.info-card,
.timeline article {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 17, 31, 0.46);
}

.info-card h3,
.timeline h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}

label {
    display: block;
    margin-bottom: 16px;
}

label span {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

.field-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.field-tip {
    position: relative;
    display: inline-flex;
}

.field-tip summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.14);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.field-tip summary::-webkit-details-marker {
    display: none;
}

.field-tip-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    width: min(360px, calc(100vw - 80px));
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(103, 232, 249, 0.22);
    background: rgba(7, 17, 31, 0.96);
    box-shadow: 0 18px 40px rgba(4, 10, 20, 0.38);
}

.field-tip-card strong,
.advanced-note strong {
    display: block;
    margin-bottom: 8px;
}

.field-tip-card p,
.field-tip-card ul,
.advanced-note p {
    margin: 0;
    color: var(--muted);
}

.field-tip-card ul {
    margin-top: 10px;
    padding-left: 20px;
}

.field-tip-card li + li {
    margin-top: 8px;
}

input,
select,
textarea,
button {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.82);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.65);
}

select {
    appearance: none;
}

button {
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #082032;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.24);
}

button:disabled,
input:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.form-footnote {
    margin: 14px 0 0;
    font-size: 0.92rem;
}

.cta-row {
    display: flex;
    margin-top: 12px;
}

.compact-grid {
    gap: 16px;
    margin-bottom: 18px;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.support-links a {
    color: var(--muted);
    text-decoration: none;
}

.support-links a:hover {
    color: var(--accent);
}

.optional-panel {
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(7, 17, 31, 0.42);
    padding: 14px 16px;
}

.optional-panel summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.optional-panel[open] summary {
    margin-bottom: 14px;
}

small {
    display: block;
    margin-top: 6px;
}

.inline-alert {
    padding: 16px 20px;
    margin-bottom: 18px;
}

.inline-alert.success {
    border-color: rgba(52, 211, 153, 0.35);
}

.inline-alert.error {
    border-color: rgba(248, 113, 113, 0.35);
}

.inline-alert.warning {
    border-color: rgba(251, 191, 36, 0.35);
}

.field-error {
    color: #fecaca;
}

.ajax-status[hidden] {
    display: none;
}

body.ajax-busy {
    cursor: progress;
}

body.ajax-busy .shell-manage {
    opacity: 0.88;
}

.inline-action-form.is-submitting,
form.is-submitting {
    opacity: 0.72;
}

.is-submitting button,
.is-submitting input,
.is-submitting select,
.is-submitting textarea {
    pointer-events: none;
}

.split-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.delivery-panel,
.onboarding-panel,
.getting-started-panel,
.manage-status-card,
.quick-start-card,
.launch-card,
.delivery-card,
.auth-panel,
.quick-handoff-panel,
.control-panel {
    background: linear-gradient(180deg, rgba(9, 24, 44, 0.9), rgba(7, 17, 31, 0.86));
}

.delivery-grid,
.launch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.delivery-card,
.launch-card,
.quick-start-card,
.manage-status-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    padding: 20px;
}

.delivery-card h3,
.launch-card h3,
.manage-status-card p,
.quick-start-card ol {
    margin-top: 0;
}

.delivery-card strong,
.delivery-card a {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    word-break: break-word;
}

.quick-start-card {
    margin-top: 18px;
}

.quick-start-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.quick-start-list li + li {
    margin-top: 10px;
}

.launch-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.launch-card p,
.delivery-card p,
.manage-status-card small,
.quick-start-card,
.logout-form {
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status.queued {
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
}

.status.provisioning {
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
}

.status.prepared {
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
}

.status.ready {
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.26);
}

.status.running {
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.26);
}

.status.restarting {
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
}

.status.exited,
.status.unknown {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.24);
}

.status.created,
.status.paused {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.26);
}

.status.failed {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.24);
}

.shell-manage {
    width: min(1200px, calc(100% - 32px));
}

.manage-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.manage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
}

.manage-layout.single-column {
    grid-template-columns: 1fr;
}

.entry-progress-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 20px;
    margin-bottom: 18px;
    border-color: rgba(251, 191, 36, 0.32);
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.24), rgba(9, 24, 44, 0.92));
}

.entry-progress-copy h2 {
    margin-bottom: 10px;
}

.entry-progress-copy p {
    margin: 0 0 10px;
    color: var(--muted);
}

.entry-progress-actions {
    display: grid;
    gap: 10px;
    align-content: center;
    justify-items: stretch;
}

.entry-progress-actions .button-link,
.entry-progress-actions .status {
    width: 100%;
}

.onboarding-panel form {
    display: grid;
    gap: 4px;
}

.advanced-panel {
    margin-top: 8px;
}

.advanced-grid {
    margin-top: 14px;
}

.advanced-note {
    margin-top: 14px;
    margin-bottom: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 17, 31, 0.48);
}

.manage-status-card {
    min-width: min(100%, 320px);
}

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

.ghost-button {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.ghost-button:hover {
    box-shadow: none;
    background: rgba(148, 163, 184, 0.08);
}

.logout-form {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.logout-form .ghost-button {
    width: auto;
    min-width: 160px;
}

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

.ops-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.emphasis-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
    color: var(--text);
}

.warning-emphasis {
    border-color: rgba(251, 191, 36, 0.28);
}

.danger-emphasis {
    border-color: rgba(248, 113, 113, 0.28);
}

.stats-grid .info-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
    color: var(--text);
}

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

.filter-actions {
    display: flex;
    gap: 12px;
}

.inline-action-form {
    display: grid;
    gap: 8px;
}

.inline-action-form button {
    width: auto;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
    background: rgba(7, 17, 31, 0.4);
}

.customer-table th,
.customer-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.customer-table th {
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(8, 20, 38, 0.9);
}

.customer-table td code,
.muted-pill {
    font-size: 0.9rem;
}

.customer-table td .status {
    margin-bottom: 6px;
}

.muted-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
}

.entry-panel {
    max-width: 880px;
    margin: 32px auto 0;
}

.customer-table td small {
    max-width: 280px;
    word-break: break-word;
}

.customer-actions {
    display: grid;
    gap: 10px;
    min-width: 170px;
}

.customer-actions-primary,
.customer-actions-danger {
    display: grid;
    gap: 10px;
}

.customer-actions-danger {
    padding-top: 10px;
    border-top: 1px dashed rgba(248, 113, 113, 0.2);
}

.customer-actions-danger small {
    margin-top: 0;
}

.confirm-dialog {
    width: min(560px, calc(100vw - 32px));
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 22px;
    padding: 0;
    background: rgba(8, 18, 34, 0.98);
    color: var(--text);
    box-shadow: 0 28px 80px rgba(4, 10, 20, 0.45);
}

.confirm-dialog::backdrop {
    background: rgba(7, 17, 31, 0.72);
}

.confirm-dialog-card {
    padding: 24px;
}

.confirm-dialog-card h2,
.confirm-dialog-card p,
.confirm-dialog-list {
    margin: 0;
}

.confirm-dialog-copy {
    display: grid;
    gap: 12px;
}

.confirm-dialog-list {
    padding-left: 22px;
    color: var(--muted);
}

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

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.confirm-dialog-actions .ghost-button,
.confirm-dialog-actions button {
    width: auto;
    min-width: 140px;
}

.customer-actions-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.callout-note {
    margin-bottom: 18px;
}

.form-section-label {
    margin: 6px 0 12px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.openclaw-entry-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 20px;
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
}

.openclaw-entry-spotlight.is-ready {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.2), rgba(8, 20, 38, 0.92));
    border-color: rgba(103, 232, 249, 0.24);
}

.openclaw-entry-spotlight.is-pending {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.28), rgba(8, 20, 38, 0.92));
    border-color: rgba(251, 191, 36, 0.28);
}

.openclaw-entry-copy h2 {
    margin-bottom: 10px;
}

.openclaw-entry-copy p {
    margin: 0 0 14px;
    color: var(--muted);
}

.openclaw-entry-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--text);
}

.openclaw-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(103, 232, 249, 0.14);
    color: var(--accent);
}

.openclaw-entry-spotlight.is-pending .openclaw-entry-icon {
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
}

.openclaw-entry-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.openclaw-entry-actions {
    display: grid;
    gap: 10px;
    align-content: center;
}

.openclaw-primary-link {
    min-width: 240px;
    justify-content: center;
    font-size: 1rem;
}

.pending-entry-link {
    min-width: 240px;
    justify-content: center;
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.08);
    cursor: default;
}

.pending-entry-link:hover {
    transform: none;
    box-shadow: none;
    background: rgba(251, 191, 36, 0.08);
}

.openclaw-entry-actions small {
    margin-top: 0;
    color: var(--muted);
    word-break: break-word;
}

.entry-primary-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #082032;
    border: none;
}

.customer-actions a,
.customer-actions .muted-pill {
    width: fit-content;
}

.admin-console-layout {
    display: grid;
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
    gap: 24px;
}

.admin-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.admin-sidebar-header h2,
.admin-console-toolbar h2,
.customer-record-heading h3 {
    margin: 0 0 8px;
}

.admin-sidebar-header p,
.admin-console-toolbar p,
.customer-record-email,
.customer-meta-item p {
    margin: 0;
    color: var(--muted);
}

.admin-sidebar-nav {
    display: grid;
    gap: 10px;
}

.admin-nav-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(7, 17, 31, 0.5);
    color: var(--text);
    text-align: left;
    box-shadow: none;
}

.admin-nav-button:hover,
.admin-nav-button.is-active {
    background: rgba(103, 232, 249, 0.12);
    border-color: rgba(103, 232, 249, 0.28);
    transform: none;
    box-shadow: none;
}

.admin-nav-copy {
    display: grid;
    gap: 4px;
}

.admin-nav-copy strong {
    font-size: 0.98rem;
}

.admin-nav-copy small {
    margin-top: 0;
}

.admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
    font-weight: 700;
}

.admin-nav-badge.warning {
    background: rgba(251, 191, 36, 0.16);
    color: #fde68a;
}

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

.sidebar-summary-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 17, 31, 0.46);
}

.sidebar-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.sidebar-summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
}

.sidebar-logout-form {
    margin-top: 8px;
}

.sidebar-logout-form .ghost-button {
    width: 100%;
}

.admin-console-main,
.admin-panel-stack {
    display: grid;
    gap: 24px;
}

.admin-console-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-console-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-console-shortcuts .ghost-button {
    width: auto;
    min-width: 180px;
}

.admin-panel-view[hidden] {
    display: none;
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-action-card {
    width: 100%;
    text-align: left;
    color: inherit;
    box-shadow: none;
}

.admin-action-card:hover {
    transform: translateY(-1px);
}

.admin-health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-list-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 18px;
    align-items: start;
}

.compact-tool-form {
    align-self: stretch;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 17, 31, 0.4);
}

.compact-tool-form button,
.tool-action-card button {
    width: 100%;
}

.customer-record-grid {
    display: grid;
    gap: 18px;
}

.customer-record-card {
    display: grid;
    gap: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 24, 44, 0.9), rgba(7, 17, 31, 0.86));
}

.customer-record-card.is-orphan {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: inset 4px 0 0 rgba(251, 191, 36, 0.6), 0 20px 60px rgba(4, 10, 20, 0.28);
}

.customer-record-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.customer-record-badges,
.customer-record-links,
.customer-record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-record-heading {
    display: grid;
    gap: 8px;
}

.customer-record-email {
    font-size: 0.96rem;
}

.customer-record-links {
    justify-content: flex-end;
}

.customer-record-links .button-link,
.customer-record-actions .button-link,
.customer-record-actions .ghost-button,
.customer-record-actions button {
    min-width: 170px;
}

.customer-record-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.customer-meta-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 17, 31, 0.42);
}

.customer-meta-item span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--accent);
}

.customer-meta-item strong,
.customer-meta-item code,
.customer-meta-item a {
    display: inline-block;
    word-break: break-word;
}

.customer-meta-message {
    grid-column: span 3;
}

.customer-record-actions {
    align-items: center;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.16);
}

.customer-record-actions .inline-action-form {
    width: auto;
}

.customer-record-actions small {
    flex: 1 1 280px;
    margin-top: 0;
}

.tools-sync-panel .card-grid {
    align-items: stretch;
}

.tool-action-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 17, 31, 0.4);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
}

.warning-button {
    border-color: rgba(251, 191, 36, 0.28);
    color: #fde68a;
}

.warning-button:hover {
    background: rgba(251, 191, 36, 0.08);
}

.danger-button {
    border-color: rgba(248, 113, 113, 0.28);
    color: #fca5a5;
}

.danger-button:hover {
    background: rgba(248, 113, 113, 0.08);
}

.empty {
    margin: 0;
}

code {
    font-family: "JetBrains Mono", "Fira Code", monospace;
}

a {
    color: var(--accent);
}

@media (max-width: 900px) {
    .hero,
    .hero-highlights,
    .card-grid,
    .timeline,
    .stats-grid,
    .delivery-grid,
    .launch-grid,
    .manage-layout,
    .two-columns,
    .split-fields {
        grid-template-columns: 1fr;
    }

    .manage-hero,
    .launch-card-header {
        flex-direction: column;
    }

    .entry-progress-banner,
    .openclaw-entry-spotlight {
        grid-template-columns: 1fr;
    }

    .admin-console-layout,
    .customer-list-toolbar-grid,
    .admin-kpi-grid,
    .admin-health-grid,
    .customer-record-meta {
        grid-template-columns: 1fr;
    }

    .customer-meta-message {
        grid-column: span 1;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-console-toolbar,
    .customer-record-header {
        flex-direction: column;
    }

    .admin-console-shortcuts,
    .customer-record-links {
        width: 100%;
        justify-content: stretch;
    }

    .admin-console-shortcuts .ghost-button,
    .customer-record-links .button-link,
    .customer-record-links .ghost-button {
        width: 100%;
    }

    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 20px;
    }

    .hero h1 {
        max-width: none;
    }
}
