:root {
    --bg: #f7f3ea;
    --bg-soft: #fbf8f1;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --border: #e8e1d5;
    --border-strong: #ddd3c2;
    --text: #162433;
    --text-soft: #46586b;
    --text-muted: #6b7280;
    --blue: #5fa8f5;
    --blue-hover: #4a95e6;
    --blue-soft: #e8f2fe;
    --gold: #e2b93b;
    --gold-soft: #fbf2cc;
    --navy: #17324a;
    --success: #2d8c5a;
    --success-soft: #ddf3e5;
    --danger: #d44d3f;
    --danger-soft: #fce8e6;
    --shadow-xs: 0 8px 18px rgba(23, 50, 74, 0.05);
    --shadow-sm: 0 18px 36px rgba(23, 50, 74, 0.07);
    --shadow-md: 0 28px 60px rgba(23, 50, 74, 0.1);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --font-base: "Inter", "Aptos", "Trebuchet MS", sans-serif;
    --font-heading: "Inter", "Aptos Display", "Aptos", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-base);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(95, 168, 245, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(226, 185, 59, 0.14), transparent 24%),
        linear-gradient(180deg, #fbf8f1 0%, #f7f3ea 60%, #f4efe5 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
strong {
    font-family: var(--font-heading);
}

p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.app-body,
.auth-body {
    min-height: 100vh;
}

.layout-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 324px minmax(0, 1fr);
}

.sidebar {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 248, 241, 0.98));
    border-right: 1px solid rgba(232, 225, 213, 0.9);
}

.page-card,
.auth-card {
    background: rgba(255, 253, 248, 0.95);
    border: 1px solid rgba(232, 225, 213, 0.94);
    box-shadow: var(--shadow-sm);
}

.brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0 24px;
    margin-bottom: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.brand-lockup-image {
    width: min(240px, 100%);
    max-width: none;
    height: auto;
    margin-inline: auto;
}

.brand-lockup,
.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark-frame {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(95, 168, 245, 0.2), transparent 45%),
        linear-gradient(145deg, rgba(23, 50, 74, 0.96), rgba(41, 82, 116, 0.92));
    box-shadow: 0 18px 30px rgba(23, 50, 74, 0.16);
}

.brand-mark {
    width: 34px;
    height: 34px;
}

.brand-copy,
.auth-brand-copy,
.nav-copy,
.user-chip-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong,
.auth-brand-copy h1,
.topbar-title,
.page-header h1,
.hero-main h1,
.proposal-number {
    color: var(--navy);
    letter-spacing: -0.04em;
}

.brand-copy strong {
    font-size: 1.36rem;
}

.brand-subtitle,
.nav-copy small,
.user-chip-label,
.stat-label,
.detail-label,
.section-kicker,
.page-kicker,
.topbar-eyebrow,
.nav-group-label,
.brand-pill,
.auth-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.brand-subtitle,
.nav-group-label,
.detail-label,
.stat-label,
.user-chip-label {
    color: var(--text-muted);
}

.brand-note,
.topbar-note {
    color: var(--text-muted);
}

.brand-pill,
.auth-badge {
    padding: 0.46rem 0.82rem;
    border-radius: 999px;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(232, 242, 254, 0.95), rgba(251, 242, 204, 0.95));
}

.sidebar-nav,
.message-stack,
.shortcut-list,
.stack-form,
.action-stack,
.editor-main,
.editor-side,
.detail-main,
.detail-side,
.quote-item-stack {
    display: grid;
    gap: 14px;
}

.sidebar-nav {
    margin-top: 26px;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(232, 225, 213, 0.96);
    box-shadow: var(--shadow-xs);
}

.sidebar-link.is-active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 254, 0.96));
}

.nav-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--navy);
    background: rgba(23, 50, 74, 0.06);
}

.sidebar-link.is-active .nav-icon {
    background: linear-gradient(145deg, rgba(95, 168, 245, 0.18), rgba(226, 185, 59, 0.2));
}

.nav-copy strong,
.user-chip strong {
    color: var(--navy);
}

.nav-copy small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 26px;
}

.sidebar-foot-card,
.hero-note,
.summary-hero,
.proposal-total-highlight {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.sidebar-foot-card {
    border: 1px solid rgba(232, 225, 213, 0.94);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-xs);
}

.sidebar-foot-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.layout-main {
    min-width: 0;
}

.topbar {
    padding: 22px 34px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.topbar-copy {
    display: grid;
    gap: 8px;
}

.topbar-eyebrow,
.page-kicker,
.section-kicker {
    color: var(--blue-hover);
}

.topbar-title {
    font-size: 1.24rem;
    font-weight: 700;
}

.topbar-actions,
.page-actions,
.filter-actions,
.form-actions,
.hero-actions,
.proposal-meta-row,
.pagination-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(232, 225, 213, 0.96);
    box-shadow: var(--shadow-xs);
}

.user-chip-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(95, 168, 245, 0.2), rgba(226, 185, 59, 0.22));
    color: var(--navy);
    font-weight: 700;
}

.page-main {
    padding: 22px 34px 42px;
    display: grid;
    gap: 24px;
}

.page-header,
.proposal-hero {
    display: grid;
    gap: 18px;
    padding: 28px 30px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 225, 213, 0.94);
    box-shadow: var(--shadow-sm);
    background:
        radial-gradient(circle at top right, rgba(226, 185, 59, 0.15), transparent 24%),
        radial-gradient(circle at left center, rgba(95, 168, 245, 0.14), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 241, 0.98));
}

.page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.02;
}

.page-header p,
.hero-main p,
.section-head p,
.auth-card-header p {
    color: var(--text-soft);
}

.page-card {
    padding: 30px;
    border-radius: var(--radius-xl);
    display: grid;
    gap: 22px;
}

.auth-card {
    display: grid;
    gap: 22px;
    border-radius: var(--radius-xl);
}

.accent-card,
.page-card-accent {
    background:
        radial-gradient(circle at top right, rgba(226, 185, 59, 0.15), transparent 30%),
        radial-gradient(circle at left center, rgba(95, 168, 245, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 241, 0.98));
}

.hero-grid,
.content-grid,
.detail-grid,
.editor-layout,
.auth-shell,
.proposal-hero,
.stats-grid,
.form-grid,
.filter-grid,
.detail-grid-two,
.quote-item-grid {
    display: grid;
    gap: 18px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.26fr) minmax(280px, 0.72fr);
    align-items: stretch;
}

.hero-main,
.hero-side,
.proposal-hero-main,
.proposal-hero-side,
.proposal-actions-card,
.proposal-financial-card {
    display: grid;
    gap: 14px;
}

.hero-main h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 0.98;
}

.hero-note,
.proposal-total-highlight {
    color: #f8fbff;
    background: linear-gradient(160deg, rgba(23, 50, 74, 0.96), rgba(40, 84, 119, 0.94));
    box-shadow: var(--shadow-md);
}

.hero-note .stat-label,
.proposal-total-highlight span {
    color: rgba(248, 251, 255, 0.72);
}

.hero-note strong,
.proposal-total-highlight strong {
    font-size: 2.3rem;
    line-height: 1;
}

.hero-note p,
.proposal-total-highlight p {
    color: rgba(248, 251, 255, 0.84);
}

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

.stat-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(232, 225, 213, 0.94);
    box-shadow: var(--shadow-xs);
    display: grid;
    gap: 10px;
}

.stat-card strong {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1;
}

.content-grid,
.detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.88fr);
}

.editor-layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.72fr);
    align-items: start;
}

.summary-card {
    position: sticky;
    top: 22px;
}

.summary-hero {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 254, 0.78));
    border: 1px solid rgba(232, 225, 213, 0.92);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.section-head h2,
.auth-card h2,
.auth-surface h2 {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.shortcut-item,
.empty-state,
.confirm-box,
.detail-box,
.summary-note,
.action-note {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 225, 213, 0.92);
}

.shortcut-item {
    display: grid;
    gap: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 254, 0.7));
}

.shortcut-item strong,
.table-link,
.text-link {
    color: var(--navy);
}

.text-link,
.table-link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(95, 168, 245, 0.35);
    text-underline-offset: 4px;
}

.alert,
.btn,
.badge {
    font-weight: 700;
}

.alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.alert::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.35;
}

.alert.info {
    color: #296cbb;
    background: var(--blue-soft);
    border-color: rgba(95, 168, 245, 0.24);
}

.alert.success {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(45, 140, 90, 0.18);
}

.alert.warning {
    color: #8a6a00;
    background: var(--gold-soft);
    border-color: rgba(226, 185, 59, 0.22);
}

.alert.error,
.alert.danger {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(212, 77, 63, 0.18);
}

.compact-alert {
    padding: 11px 12px;
    font-size: 0.92rem;
}

.filter-grid {
    align-items: end;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-grid-single {
    grid-template-columns: minmax(0, 1fr) auto;
}

.quote-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

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

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

.field-group {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--navy);
}

.field-required {
    color: var(--danger);
}

.field-help,
.field-error,
.table-muted {
    font-size: 0.89rem;
}

.field-help,
.table-muted,
.pagination-meta {
    color: var(--text-muted);
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.98rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(251, 248, 241, 0.98);
    font: inherit;
    color: var(--text);
    transition: 0.18s ease;
}

.form-textarea {
    min-height: 118px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(95, 168, 245, 0.68);
    box-shadow: 0 0 0 4px rgba(95, 168, 245, 0.14);
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.checkbox-row,
.checkbox-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-card {
    width: fit-content;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(232, 225, 213, 0.94);
}

.btn {
    min-height: 48px;
    padding: 0.88rem 1.15rem;
    border-radius: 18px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-hover));
    box-shadow: 0 18px 30px rgba(95, 168, 245, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-hover), #3f82cf);
}

.btn-secondary {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(232, 225, 213, 0.96);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(95, 168, 245, 0.18);
}

.btn-outline {
    color: var(--navy);
    background: transparent;
    border-color: rgba(23, 50, 74, 0.14);
}

.btn-outline:hover {
    background: rgba(23, 50, 74, 0.05);
}

.btn-ghost {
    color: var(--text-soft);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.72);
}

.btn-accent {
    color: #5d4700;
    background: linear-gradient(135deg, var(--gold), #f0c957);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d5aa28, #e8bc38);
}

.btn-success {
    color: var(--success);
    background: rgba(221, 243, 229, 0.96);
    border-color: rgba(45, 140, 90, 0.18);
}

.btn-success:hover {
    background: #effbf4;
}

.btn-danger {
    color: var(--danger);
    background: rgba(252, 232, 230, 0.96);
    border-color: rgba(212, 77, 63, 0.2);
}

.btn-danger:hover {
    background: #fff5f3;
}

.btn-small {
    min-height: 40px;
    padding: 0.66rem 0.88rem;
    border-radius: 14px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid rgba(232, 225, 213, 0.94);
    background: rgba(255, 255, 255, 0.92);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(232, 225, 213, 0.72);
}

.data-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(255, 255, 255, 0.96));
}

.data-table tbody tr:nth-child(even) {
    background: rgba(251, 248, 241, 0.54);
}

.data-table tbody tr:hover {
    background: rgba(232, 242, 254, 0.46);
}

.actions-column {
    white-space: nowrap;
}

.tfoot-label {
    text-align: right;
    font-weight: 700;
}

.tfoot-total {
    font-size: 1.04rem;
    color: var(--navy);
}

.badge {
    min-height: 30px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
}

.badge-neutral {
    color: #2d6bb3;
    background: var(--blue-soft);
    border-color: rgba(95, 168, 245, 0.18);
}

.badge-warning {
    color: #896600;
    background: var(--gold-soft);
    border-color: rgba(226, 185, 59, 0.2);
}

.badge-success {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(45, 140, 90, 0.18);
}

.badge-danger {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(212, 77, 63, 0.16);
}

.badge-muted {
    color: var(--text-muted);
    background: rgba(237, 242, 246, 0.92);
    border-color: rgba(107, 114, 128, 0.14);
}

.quote-item-row,
.confirm-box,
.detail-box,
.summary-note,
.action-note,
.empty-state {
    background: rgba(251, 248, 241, 0.94);
}

.quote-item-row {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 225, 213, 0.92);
    box-shadow: var(--shadow-xs);
}

.quote-item-footer,
.summary-line,
.proposal-total-line,
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.summary-line,
.proposal-total-line {
    padding: 14px 0;
    border-bottom: 1px solid rgba(232, 225, 213, 0.92);
}

.summary-line.total,
.proposal-total-line.total {
    padding-top: 18px;
    font-size: 1.12rem;
}

.field-span-2 {
    grid-column: span 2;
}

.item-total-box {
    display: grid;
    gap: 4px;
    justify-items: end;
}

.item-total-box strong {
    font-size: 1.18rem;
    color: var(--navy);
}

.proposal-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.74fr);
}

.proposal-hero-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.proposal-number {
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 0.96;
}

.proposal-client {
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-shell {
    width: min(1200px, 100%);
    grid-template-columns: 1.12fr 0.88fr;
    align-items: stretch;
}

.auth-showcase,
.auth-card {
    padding: 36px;
    border-radius: var(--radius-xl);
}

.auth-showcase {
    background:
        radial-gradient(circle at top right, rgba(226, 185, 59, 0.18), transparent 24%),
        radial-gradient(circle at left center, rgba(95, 168, 245, 0.16), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 241, 0.98));
    border: 1px solid rgba(232, 225, 213, 0.94);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 24px;
}

.auth-brand-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.95;
}

.auth-logo-image {
    width: min(360px, 100%);
    height: auto;
}

.auth-lead {
    font-size: 1.02rem;
}

.auth-surface {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(232, 225, 213, 0.92);
    box-shadow: var(--shadow-xs);
    display: grid;
    gap: 10px;
}

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

.mini-stat {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(232, 225, 213, 0.92);
    box-shadow: var(--shadow-xs);
    display: grid;
    gap: 8px;
}

.mini-stat strong {
    font-size: 1.5rem;
    color: var(--navy);
}

.field-control {
    display: block;
}

.table-muted {
    display: block;
}

.narrow-card {
    max-width: 760px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1240px) {
    .layout-shell {
        grid-template-columns: 290px minmax(0, 1fr);
    }

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

    .auth-shell,
    .editor-layout,
    .content-grid,
    .detail-grid,
    .proposal-hero,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 960px) {
    .layout-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(232, 225, 213, 0.9);
    }

    .topbar,
    .page-main {
        padding-left: 22px;
        padding-right: 22px;
    }

    .auth-metrics,
    .detail-grid-two,
    .two-columns,
    .filter-grid,
    .quote-filter-grid,
    .quote-item-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .page-card,
    .auth-card,
    .auth-showcase,
    .brand-panel,
    .page-header,
    .proposal-hero {
        padding: 22px;
    }

    .topbar,
    .page-header,
    .quote-item-footer,
    .pagination-bar,
    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header {
        grid-template-columns: 1fr;
    }

    .page-actions,
    .hero-actions,
    .filter-actions,
    .form-actions,
    .pagination-actions {
        width: 100%;
    }

    .btn,
    .btn-small {
        width: 100%;
    }

    .user-chip {
        width: 100%;
        justify-content: space-between;
    }
}
