/* Shared shell styles for every ABox.Client head (web + MAUI). Served as the static
   web asset _content/ABox.Client.Ui/css/app.css. Theme variables (--bg, --text,
   --accent, --surface, shadows…) come from ABox.Morph's morph.bundle.css, which each
   head links FIRST. Trimmed from the Morph demo's app.css to just the app shell. */

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.boot {
    padding: 2rem;
    color: var(--text-muted);
}

.shell {
    max-width: 1080px;
    margin: 32px auto;
    padding: 24px;
}

/* Page vertical rhythm lives at the layout level — the stage owns the spacing between
   top-level blocks, so no base component carries an external margin. */
.morph-stage {
    --flow-gap: 28px;
}

.morph-stage > * + * {
    margin-top: var(--flow-gap);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
}

.topbar-end {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    font-size: 15px;
    line-height: 1;
    padding: 8px 12px;
}

.nav {
    font-size: 14px;
    display: flex;
    gap: 6px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
}

.nav a.active {
    color: var(--accent);
    background: var(--surface);
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}

.page-head {
    border-radius: 20px;
    padding: 18px 24px;
}

.page-title {
    font-size: 26px;
    margin: 0 0 4px;
}

.page-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.muted {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.back-link:hover {
    color: var(--accent);
}

/* Small layout utilities shared by feature widgets (a labelled row, a wrapping pill row). */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Inbox composer — an inset field that matches the neumorphic surface (same recipe as
   .nav a.active). Sits in a .row beside the Add button and grows to fill the width. */
.inbox-input {
    flex: 1;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}

.inbox-input::placeholder {
    color: var(--text-muted);
}

.inbox-input:disabled {
    opacity: 0.6;
}

#blazor-error-ui {
    display: none;
}
