@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #202a29;
    --muted: #6b7976;
    --paper: #f4f6f1;
    --panel: #ffffff;
    --line: #dce4de;
    --green: #1a6b55;
    --green-dark: #124b3c;
    --lime: #d8ef86;
    --coral: #e56b51;
    --shadow: 0 18px 50px rgba(27, 55, 43, .08);
}

html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', sans-serif; }
body { min-width: 320px; }
.workspace-shell { max-width: 1320px; margin: 0 auto; padding: 54px 6vw 80px; }
.masthead { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--green); font: 500 12px 'DM Mono', monospace; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 14px; font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: .98; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 1.45rem; letter-spacing: 0; }
h3 { margin-bottom: 18px; font-size: 14px; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0; }
.lede { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.status-chip { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.6); color: var(--green-dark); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #78ad3e; box-shadow: 0 0 0 4px #e0efc8; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.form-panel, .login-panel, .info-panel { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.form-panel { padding: clamp(24px, 4vw, 50px); }
.side-column { display: grid; gap: 24px; }
.login-panel, .info-panel { padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.panel-heading.compact { padding-bottom: 22px; margin-bottom: 22px; }
.required-note { color: var(--muted); font-size: 12px; }
.lock-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 10px; }
.form-section { padding: 31px 0 7px; border-bottom: 1px solid var(--line); }
.field-grid { display: grid; gap: 18px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
label.wide { grid-column: 1 / -1; }
input { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; outline: none; background: #fbfcf9; color: var(--ink); font: 500 14px 'Manrope', sans-serif; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,85,.12); }
.login-panel label { margin-bottom: 16px; }
.primary-action, .secondary-action { border: 0; border-radius: 3px; cursor: pointer; font: 700 13px 'Manrope', sans-serif; transition: transform .18s ease, background .18s ease; }
.primary-action { display: flex; justify-content: space-between; width: 100%; margin-top: 30px; padding: 17px 20px; background: var(--green); color: #fff; }
.secondary-action { width: 100%; padding: 14px; background: var(--lime); color: var(--green-dark); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
button:disabled { cursor: wait; opacity: .62; transform: none; }
.info-panel { background: var(--green-dark); color: #eff7ea; }
.info-panel .section-kicker { color: var(--lime); }
.info-panel h2 { margin-bottom: 14px; color: #fff; }
.info-panel p:not(.section-kicker) { color: #bfd6c9; font-size: 13px; line-height: 1.7; }
.route-line { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: var(--lime); font: 500 11px 'DM Mono', monospace; text-transform: uppercase; }
.route-line b { color: #9bb7a7; font-size: 18px; font-weight: 400; }
.alert { margin-top: 20px; padding: 12px 14px; border-left: 3px solid; font-size: 13px; line-height: 1.5; }
.alert.error { border-color: var(--coral); background: #fff1ed; color: #9d392d; }
.alert.success { border-color: #78ad3e; background: #f0f8df; color: #43651c; }
.validation-summary { margin: 20px 0 0; color: #9d392d; font-size: 13px; }
.response-box { margin-top: 22px; padding: 16px; background: #152b26; color: #d8ef86; }
.response-title { margin-bottom: 10px; font: 500 11px 'DM Mono', monospace; text-transform: uppercase; }
pre { max-height: 280px; margin: 0; overflow: auto; white-space: pre-wrap; color: #e5f2dd; font: 12px/1.6 'DM Mono', monospace; }
@media (max-width: 880px) { .masthead { align-items: flex-start; flex-direction: column; } .content-grid { grid-template-columns: 1fr; } .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .workspace-shell { padding: 32px 18px 56px; } .two-up, .side-column { grid-template-columns: 1fr; } .form-panel { padding: 22px 18px; } .login-panel, .info-panel { padding: 22px; } h1 { font-size: 2.55rem; } }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; box-sizing: border-box; background: radial-gradient(circle at 12% 15%, #e6f0c7 0, transparent 32%), var(--paper); }
.login-card { width: min(430px, 100%); padding: 44px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.brand-logo { display: block; width: 210px; height: auto; margin: 0 auto 28px; object-fit: contain; mix-blend-mode: multiply; }
.login-card .brand-logo { width: 240px; margin-left: 0; }
.login-card h1 { margin-bottom: 18px; font-size: 2.7rem; line-height: .98; }
.login-card h1 span { color: var(--green); }
.auth-intro { margin-bottom: 30px; color: var(--muted); line-height: 1.6; }
.login-card label { margin-bottom: 18px; }
.help-copy { margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.help-copy a { color: var(--green); font-weight: 700; }
.required-mark { color: var(--coral); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.primary-action:focus-visible, .secondary-action:focus-visible, .link-button:focus-visible, .remove-button:focus-visible, .confirmation-link:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(229, 107, 81, .72); outline-offset: 3px; }
.loading-card { padding: 24px 30px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); box-shadow: var(--shadow); }
.order-shell { max-width: 1180px; margin: 0 auto; padding: 34px 5vw 70px; }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 28px; }
.order-logo { width: 190px; margin: 0 0 24px; }
.order-header h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.3rem); }
.required-copy { color: var(--muted); font-size: 12px; }
.required-copy b { color: var(--coral); }
.user-actions { display: flex; gap: 16px; align-items: center; color: var(--muted); font: 500 12px 'DM Mono', monospace; }
.link-button, .remove-button { border: 0; background: none; color: var(--green); cursor: pointer; font: inherit; text-decoration: underline; }
.order-card, .orders-card { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.order-card { padding: clamp(22px, 4vw, 42px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.form-grid label { min-width: 0; }
.form-grid input, .form-grid select { width: 100%; box-sizing: border-box; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fbfcf9; color: var(--ink); font: 500 14px 'Manrope', sans-serif; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(26,107,85,.12); }
.add-action { max-width: 240px; margin-left: auto; }
.orders-card { margin-top: 24px; padding: clamp(20px, 3vw, 32px); }
.table-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.table-heading > span { color: var(--muted); font-size: 12px; }
.empty-state { margin: 0; padding: 26px; background: var(--paper); color: var(--muted); font-size: 13px; text-align: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 840px; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 10px; background: var(--green-dark); color: #fff; font: 500 10px 'DM Mono', monospace; text-align: left; text-transform: uppercase; }
td { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.remove-button { color: #c94b3c; font-size: 11px; }
.row-remove { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #c94b3c; font-size: 15px; line-height: 1; cursor: pointer; }
.row-remove:hover:not(:disabled) { border-color: #e4b8b0; background: #fbeeec; }
.row-remove:disabled { opacity: .4; cursor: not-allowed; }
.table-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.table-actions .primary-action, .table-actions .secondary-action { flex: 1 1 0; width: 0; min-width: 0; }
.table-actions .primary-action, .table-actions .secondary-action { box-sizing: border-box; height: 48px; min-height: 48px; margin-top: 0; padding: 14px 18px; align-items: center; justify-content: center; }
.table-actions .secondary-action { border: 1px solid var(--line); background: transparent; color: var(--green-dark); }
.table-actions .danger-action { border-color: #e4b8b0; color: #c94b3c; }
.confirmation-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; background: #fff; }
.confirmation-card { width: min(720px, 100%); padding: 42px 24px 52px; border-top: 1px solid var(--line); text-align: center; }
.confirmation-logo { width: 170px; margin: 0 auto 34px; }
.confirmation-card h1 { max-width: none; margin-bottom: 18px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.confirmation-message { margin-bottom: 12px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; }
.confirmation-actions { margin-bottom: 26px; font-size: 15px; }
.confirmation-link { padding: 0; border: 0; background: transparent; color: #551a8b; cursor: pointer; font: inherit; text-decoration: underline; }
.confirmation-logout { display: inline-block; font-size: 13px; }
@media (max-width: 680px) { .login-card { padding: 30px 22px; } .order-header { flex-direction: column; } .user-actions { width: 100%; justify-content: space-between; } .form-grid { grid-template-columns: 1fr; } .add-action { max-width: none; } .table-actions { flex-direction: column-reverse; } .table-actions .primary-action, .table-actions .secondary-action { width: 100%; } }