:root {
    --strux-bg: #f3f6fb;
    --strux-panel: #ffffff;
    --strux-ink: #111827;
    --strux-muted: #64748b;
    --strux-line: #d7dfeb;
    --strux-blue: #2563eb;
    --strux-blue-soft: #e8f0ff;
    --strux-navy: #0b1220;
    --strux-slate: #1e293b;
    --strux-green: #0f8f6f;
    --strux-amber: #b7791f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--strux-bg);
    color: var(--strux-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-body {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34%), #eef2f7;
}

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

.auth-story {
    background: linear-gradient(135deg, #000613, #000613 62%, #1e293b);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 48px 48px;
}

.auth-brand {
    align-items: center;
    color: #fff;
    display: flex;
    max-width: 820px;
    width: min(100%, 72vw);
}

.auth-brand img {
    display: block;
    height: auto;
    width: 100%;
}

.auth-copy {
    max-width: 680px;
}

.auth-copy h1 {
    font-size: 48px;
    line-height: 1.05;
    margin: 10px 0 18px;
}

.auth-copy p:last-child {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.65;
}

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

.auth-proof-grid span {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    color: #dbeafe;
    font-weight: 800;
    padding: 14px;
}

.auth-panel {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 34px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    max-width: 420px;
    padding: 30px;
    width: 100%;
}

.auth-card-header h2,
.auth-card-header p {
    margin: 0;
}

.auth-card-header h2 {
    font-size: 28px;
    margin: 6px 0 8px;
}

.auth-card-header p {
    color: var(--strux-muted);
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.auth-submit {
    margin-top: 4px;
    width: 100%;
}

.check-row {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.auth-links {
    border-top: 1px solid var(--strux-line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
    padding-top: 18px;
}

.auth-alert,
.demo-hint {
    border-radius: 8px;
    margin-top: 18px;
    padding: 12px 14px;
}

.auth-alert.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert.success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #087443;
}

.demo-hint {
    background: #f0f5ff;
    border: 1px solid #bfd0ff;
    color: #1e3a8a;
    display: grid;
    gap: 4px;
    font-size: 13px;
}

a {
    color: var(--strux-blue);
    text-decoration: none;
}

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

.strux-sidebar {
    background: linear-gradient(180deg, #0b1220 0%, #111827 58%, #172033 100%);
    color: #fff;
    padding: 18px 14px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 18px;
    padding: 8px 0;
}

.brand img {
    display: block;
    height: auto;
    width: 100%;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #0b1220;
    color: #fff;
    font-weight: 800;
    overflow: hidden;
}

.brand-mark img {
    display: block;
    height: 36px;
    width: 36px;
}

.nav-item {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #cbd5e1;
    margin-bottom: 4px;
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 650;
}

.nav-item:hover,
.nav-child:hover {
    background: #1f2937;
    color: #fff;
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.18);
    box-shadow: inset 3px 0 0 var(--strux-blue);
    color: #fff;
}

.nav-group {
    margin-bottom: 6px;
}

.nav-group-label {
    align-items: center;
    border-radius: 8px;
    color: #cbd5e1;
    display: flex;
    font-weight: 750;
    gap: 12px;
    padding: 11px 12px 8px;
}

.nav-group.active .nav-group-label {
    color: #fff;
}

.nav-children {
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 3px;
    margin: 0 0 6px 24px;
    padding-left: 10px;
}

.nav-child {
    border-radius: 7px;
    color: #9aa8bd;
    font-size: 13px;
    font-weight: 650;
    padding: 8px 10px;
}

.nav-child.active {
    background: rgba(37, 99, 235, 0.2);
    color: #fff;
}

.sidebar-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    color: #dbeafe;
    margin-top: 28px;
    padding: 14px;
}

.sidebar-card span {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-card strong {
    display: block;
    margin: 5px 0;
}

.sidebar-card p {
    color: #9aa8bd;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

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

.strux-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 34px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--strux-line);
}

.strux-topbar h1 {
    margin: 2px 0 0;
    font-size: 28px;
}

.page-subtitle {
    color: var(--strux-muted);
    line-height: 1.45;
    margin: 6px 0 0;
    max-width: 780px;
}

.eyebrow {
    color: var(--strux-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.topbar-user,
.actions,
.form-actions,
.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    background: #eef2f7;
    border: 1px solid var(--strux-line);
    border-radius: 999px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.panel-header {
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-header h2,
.panel-header p {
    margin: 0;
}

.panel-header p {
    color: var(--strux-muted);
    margin-top: 5px;
}

.strux-content {
    padding: 28px 34px;
}

.panel,
.metric-card,
.proposal {
    background: var(--strux-panel);
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.panel {
    padding: 22px;
    margin-bottom: 22px;
}

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

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

.metric-card {
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
    height: 5px;
    border-radius: 999px;
    background: var(--strux-blue);
}

.accent-green::after {
    background: var(--strux-green);
}

.accent-amber::after {
    background: var(--strux-amber);
}

.accent-slate::after {
    background: #475569;
}

.metric-card span,
.muted {
    color: var(--strux-muted);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}

.btn {
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: var(--strux-ink);
    cursor: pointer;
    font-weight: 750;
    line-height: 1;
    min-height: 36px;
}

.btn-primary {
    background: var(--strux-blue);
    border-color: var(--strux-blue);
    color: #fff;
}

.btn-outline {
    background: transparent;
}

.btn-table {
    font-size: 12px;
    min-height: 30px;
    padding: 7px 10px;
}

.btn-attached {
    border-radius: 0 8px 8px 0;
    border-color: var(--strux-blue);
    background: var(--strux-blue);
    color: #fff;
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

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

.data-table th {
    background: #f8fafc;
    color: var(--strux-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.data-table tr:hover td {
    background: #fbfdff;
}

.compact th,
.compact td {
    padding: 9px 10px;
}

.data-table input,
.data-table select {
    min-height: 34px;
    padding: 6px 8px;
}

.inline-form,
.table-actions,
.toggle-grid,
.logo-preview {
    align-items: center;
    display: flex;
    gap: 10px;
}

.inline-form {
    flex-wrap: nowrap;
}

.table-actions,
.toggle-grid {
    flex-wrap: wrap;
}

.inline-form input {
    min-width: 160px;
}

.logo-preview {
    background: #f8fafc;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    padding: 12px;
}

.logo-preview img {
    background: #fff;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    object-fit: contain;
}

.logo-preview strong,
.logo-preview p {
    margin: 0;
}

.library-settings-form {
    display: block;
}

.library-form-stack {
    display: grid;
    gap: 20px;
    grid-column: auto;
}

.library-card {
    background: var(--strux-panel);
    border: 1px solid var(--strux-line);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

form > .library-card + .library-card {
    margin-top: 20px;
}

.library-card + .form-actions {
    margin-top: 16px;
}

.library-card-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--strux-line);
    display: flex;
    gap: 10px;
    padding: 14px 16px;
}

.library-card-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.library-card-header h2 {
    color: var(--strux-ink);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
    margin: 0;
}

.library-card-header p {
    color: var(--strux-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.library-card-icon {
    align-items: center;
    color: var(--strux-ink);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.library-card-icon svg,
.library-save-button svg {
    display: block;
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}

.library-card-body {
    background: #fff;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
}

.library-card-body-full {
    display: block;
}

.library-rate-form {
    display: grid;
    gap: 8px;
}

.library-rate-label {
    color: var(--strux-muted);
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 4px;
}

.library-rate-label small {
    color: var(--strux-muted);
    font-size: 12px;
    font-weight: 700;
}

.library-rate-label span {
    color: var(--strux-ink);
}

.library-rate-control {
    display: flex;
    width: 100%;
}

.library-rate-control input {
    border-radius: 8px 0 0 8px;
    min-width: 0;
}

.library-save-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--strux-line);
    border-radius: 0 8px 8px 0;
    color: var(--strux-ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    margin-left: -1px;
    min-height: 36px;
    padding: 0;
    width: 40px;
}

.library-save-button:hover,
.library-save-button:focus {
    background: #f8fafc;
    outline: none;
}

.compact-form-grid {
    border-top: 1px solid var(--strux-line);
    margin-top: 14px;
    padding-top: 14px;
}

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

label {
    display: grid;
    gap: 6px;
    color: var(--strux-muted);
    font-size: 12px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--strux-ink);
    font: inherit;
    font-size: 14px;
}

.attached-control {
    display: flex;
    width: 100%;
}

.attached-control select {
    border-radius: 8px 0 0 8px;
    min-width: 0;
}

.toggle-switch {
    align-items: center;
    background: #fff;
    border: 1px solid #ccd6e3;
    border-radius: 4px;
    color: #1f2937;
    display: inline-flex;
    flex-direction: row;
    font-weight: 800;
    gap: 7px;
    min-height: 36px;
    padding: 6px 9px;
}

.toggle-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.toggle-switch span {
    background: #d7dee8;
    border-radius: 999px;
    display: inline-block;
    height: 20px;
    position: relative;
    width: 38px;
}

.toggle-switch span::after {
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
    content: "";
    height: 16px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform .15s ease;
    width: 16px;
}

.toggle-switch input:checked + span {
    background: var(--strux-blue);
}

.toggle-switch input:checked + span::after {
    transform: translateX(18px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop {
    align-items: center;
    background: rgba(2, 7, 19, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}

.modal-panel {
    background: #fff;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(2, 7, 19, .32);
    max-height: calc(100vh - 48px);
    max-width: 720px;
    overflow: auto;
    padding: 22px;
    width: min(720px, 100%);
}

.modal-header {
    align-items: start;
    border-bottom: 1px solid var(--strux-line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.modal-header h2 {
    margin: 2px 0 0;
}

.modal-close {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    color: var(--strux-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    width: 36px;
}

textarea {
    min-height: 96px;
}

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

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    background: #e8f7f2;
    color: var(--strux-green);
    padding: 4px 9px;
    font-weight: 800;
    text-transform: capitalize;
}

.status-draft {
    background: #eef2f7;
    color: #475569;
}

.status-sent {
    background: var(--strux-blue-soft);
    color: #1d4ed8;
}

.status-approved {
    background: #e8f7f2;
    color: var(--strux-green);
}

.status-rejected {
    background: #fef2f2;
    color: #b42318;
}

.toast-banner {
    margin: 18px 34px 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfdf3;
    color: #087443;
    border: 1px solid #abefc6;
}

.toast-banner-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b42318;
}

.proposal {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px;
}

.proposal-header,
.proposal-grid,
.signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.proposal-header {
    align-items: center;
    border-bottom: 2px solid var(--strux-navy);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.proposal-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.proposal-brand div {
    display: grid;
}

.proposal-brand small,
.proposal-meta span,
.proposal-block span {
    color: var(--strux-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.proposal-meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.proposal-block {
    background: #f8fafc;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    padding: 18px;
}

.proposal-project-block {
    grid-column: 1 / -1;
}

.proposal-section {
    margin: 26px 0;
}

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

.proposal-category-card {
    background: #fff;
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.proposal-category-card span {
    color: var(--strux-ink);
    font-weight: 900;
}

.proposal-category-card small {
    color: var(--strux-muted);
    font-size: 12px;
}

.proposal-category-card strong {
    color: var(--strux-blue);
    font-size: 20px;
}

.proposal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    padding: 22px;
    background: linear-gradient(135deg, #f0f5ff, #e8f0ff);
    border-radius: 8px;
}

.proposal-total strong {
    font-size: 28px;
}

.signature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 42px;
}

.signature-grid span {
    border-top: 1px solid var(--strux-ink);
    padding-top: 10px;
}

.proposal-acceptance {
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    margin-top: 34px;
    padding: 22px;
}

.proposal-acceptance p {
    color: var(--strux-muted);
    margin: 0;
}

.hero-panel,
.page-action-row {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #eef5ff);
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px;
}

.hero-panel h2,
.page-action-row h2 {
    font-size: 26px;
    line-height: 1.2;
    margin: 2px 0 8px;
}

.hero-panel p,
.page-action-row p {
    color: var(--strux-muted);
    margin: 0;
}

.workflow-grid {
    align-items: stretch;
    display: flex;
    gap: 0;
    overflow: visible;
}

.workflow-grid a {
    align-items: center;
    --workflow-bg: #f8fafc;
    --workflow-border: #8b9aad;
    background: var(--workflow-bg);
    border-bottom: 1px solid var(--workflow-border);
    border-top: 1px solid var(--workflow-border);
    color: var(--strux-ink);
    display: inline-flex;
    flex: 1 1 0;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 28px 10px 22px;
    position: relative;
    text-align: center;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    z-index: 1;
}

.workflow-grid a:first-child {
    border-left: 1px solid var(--workflow-border);
    border-radius: 8px 0 0 8px;
    z-index: 4;
}

.workflow-grid a:nth-child(2) {
    margin-left: -18px;
    padding-left: 40px;
    z-index: 3;
}

.workflow-grid a:nth-child(3) {
    margin-left: -18px;
    padding-left: 40px;
    z-index: 2;
}

.workflow-grid a:nth-child(4) {
    margin-left: -18px;
    padding-left: 40px;
    z-index: 1;
}

.workflow-grid a:last-child {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid var(--workflow-border);
    padding-right: 22px;
}

.workflow-grid a::before,
.workflow-grid a::after {
    border-bottom: 21px solid transparent;
    border-left: 18px solid var(--workflow-border);
    border-top: 21px solid transparent;
    content: "";
    height: 0;
    position: absolute;
    right: -18px;
    top: -1px;
    width: 0;
}

.workflow-grid a::after {
    border-left-color: var(--workflow-bg);
    right: -16px;
    top: 0;
    z-index: 2;
}

.workflow-grid a:last-child::before,
.workflow-grid a:last-child::after {
    display: none;
}

.workflow-grid a:hover,
.workflow-grid a:focus {
    --workflow-bg: #eef5ff;
    background: var(--workflow-bg);
    color: var(--strux-blue);
    z-index: 10;
}

.workflow-grid a:hover::after,
.workflow-grid a:focus::after {
    border-left-color: var(--workflow-bg);
}

.empty-state {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #b6c3d4;
    border-radius: 8px;
    display: grid;
    justify-items: center;
    padding: 42px 22px;
    text-align: center;
}

.empty-state p {
    color: var(--strux-muted);
    max-width: 560px;
}

.compact-empty {
    padding: 24px;
}

.empty-icon {
    background: var(--strux-blue);
    border-radius: 8px;
    color: #fff;
    display: inline-grid;
    font-weight: 900;
    height: 44px;
    place-items: center;
    width: 44px;
}

.form-section-title h2,
.form-section-title p {
    margin: 0;
}

.form-section-title p {
    color: var(--strux-muted);
    margin-top: 5px;
}

.form-fieldset {
    border: 1px solid var(--strux-line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 14px;
}

.form-fieldset legend {
    color: var(--strux-ink);
    font-size: 18px;
    font-weight: 900;
    padding: 0 8px;
}

.form-fieldset.library-fieldset {
    background: var(--strux-panel);
    border-color: #000;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
}

.proposal-table th,
.proposal-table td {
    padding: 14px;
}

.proposal-two-col {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.proposal-scope-list {
    color: var(--strux-muted);
    line-height: 1.8;
}

.proposal-scope-list li {
    margin-bottom: 8px;
}

.proposal-scope-list strong,
.proposal-scope-list span {
    display: block;
}

.proposal-scope-list strong {
    color: var(--strux-ink);
}

.summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-strip span,
.summary-strip a {
    background: #f8fafc;
    border: 1px solid var(--strux-line);
    border-radius: 999px;
    color: #334155;
    font-weight: 800;
    padding: 8px 12px;
}

.danger {
    border-color: #fecaca;
    color: #b42318;
}

.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error-message {
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
}

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

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-story {
        gap: 30px;
        padding: 24px 24px 30px;
    }

    .auth-brand {
        max-width: 520px;
        width: 100%;
    }

    .auth-copy h1 {
        font-size: 34px;
    }

    .auth-proof-grid {
        grid-template-columns: 1fr;
    }

    .strux-sidebar {
        position: static;
    }

    .metric-grid,
    .metric-grid-four,
    .form-grid,
    .form-fieldset,
    .library-fieldset,
    .workflow-grid,
    .proposal-header,
    .proposal-grid,
    .proposal-two-col,
    .signature-grid,
    .proposal-category-grid {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        display: grid;
        gap: 10px;
    }

    .workflow-grid a {
        border: 1px solid var(--strux-line);
        border-radius: 8px;
        justify-content: flex-start;
        margin-left: 0;
        padding: 14px 16px;
        text-align: left;
    }

    .workflow-grid a::before,
    .workflow-grid a::after {
        display: none;
    }

    .attached-control {
        display: grid;
    }

    .attached-control select,
    .btn-attached {
        border-radius: 8px;
    }

    .strux-sidebar {
        height: auto;
        position: static;
    }

    .hero-panel,
    .page-action-row,
    .strux-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .library-rate-form {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .library-rate-control {
        display: flex;
    }

    .library-card-body {
        grid-template-columns: 1fr;
    }

    .library-rate-control input {
        border-radius: 8px 0 0 8px;
    }

    .library-save-button {
        border-radius: 0 8px 8px 0;
        margin-left: -1px;
    }

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

@media print {
    body {
        background: #fff;
        color: #0f172a;
    }

    .strux-sidebar,
    .strux-topbar,
    .toast-banner,
    .print-hide {
        display: none;
    }

    .strux-shell {
        display: block;
    }

    .strux-content {
        padding: 0;
    }

    .proposal {
        border: 0;
        box-shadow: none;
        max-width: none;
        padding: 0;
    }

    .proposal-block,
    .proposal-category-card,
    .proposal-acceptance {
        break-inside: avoid;
        box-shadow: none;
    }

    .proposal-header {
        margin-bottom: 18px;
    }

    .proposal-section,
    .proposal-total,
    .proposal-two-col,
    .proposal-acceptance {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .proposal-total {
        background: #eef4ff;
        border: 1px solid #c7d7fe;
    }
}
