:root {
    font-family: 'DM Sans', sans-serif;
    color: #172a26;
    background: #f3f6f3;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --green: #15745c;
    --green-dark: #0e5946;
    --line: #e2e9e4;
    --muted: #71817a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.topbar {
    min-height: 76px; padding: 0 5vw; display: flex; align-items: center; gap: 42px;
    background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 126px; height: auto; padding: 4px 7px; border-radius: 6px; background: #fff; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: var(--green); }
.brand small, .account small { display: block; color: var(--muted); font: 600 9px 'DM Sans', sans-serif; letter-spacing: 1.2px; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; color: #52635c; font-size: 13px; font-weight: 600; }
.nav-links a:hover, .text-link:hover { color: var(--green); }
.account { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 600; }
.logout { background: none; border: 0; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 700; }
.main-content { max-width: 1120px; width: calc(100% - 48px); margin: 44px auto 80px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 800 29px Manrope, sans-serif; letter-spacing: -1px; }
h2 { margin-bottom: 20px; font: 700 16px Manrope, sans-serif; }
.eyebrow { margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.muted, .hint { color: var(--muted); font-size: 13px; }
.panel { margin-bottom: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px #163c2610; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 7px; padding: 0 16px; cursor: pointer; font-size: 12px; font-weight: 700; }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--green); background: #eaf4ef; }
.danger { color: #fff; background: #b94a48; }
.text-link { color: var(--green); font-size: 12px; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 12px 14px; color: #71817a; background: #f8faf8; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
td { padding: 15px 14px; border-bottom: 1px solid #edf1ed; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 6px 9px; border-radius: 20px; color: #21634f; background: #e8f4ed; font-size: 10px; font-weight: 700; white-space: nowrap; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.stack { display: flex; flex-direction: column; gap: 17px; }
label { display: flex; flex-direction: column; gap: 7px; color: #43544c; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dce5de; border-radius: 6px; outline: none; color: #20342c; background: #fff; font-size: 12px; }
input:focus, select:focus, textarea:focus { border-color: #56a48a; box-shadow: 0 0 0 3px #15745c18; }
textarea { resize: vertical; }
.item-row { display: grid; grid-template-columns: 1fr 180px auto; align-items: end; gap: 14px; margin-bottom: 14px; }
.item-row .remove-item { color: #a63f3d; background: #fff2f1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.summary-grid div { display: grid; gap: 8px; }
.summary-grid strong { font-size: 13px; }
.note { margin: 18px 0 0; padding: 12px; border-radius: 7px; background: #f6f8f6; font-size: 12px; line-height: 1.6; }
.review-form { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.actions { display: flex; gap: 10px; }
.shipment { padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; }
.shipment:first-of-type { border-top: 0; }
.shipment p { margin: 8px 0; }
.shipment-heading { display: flex; justify-content: space-between; gap: 15px; }
.shipment-item { display: inline-block; margin: 5px 8px 0 0; padding: 6px 8px; border-radius: 5px; background: #f2f6f3; }
.flash { margin: 0 0 18px; padding: 13px 15px; border-radius: 7px; font-size: 12px; }
.flash.success { color: #1d684d; background: #e4f3e9; }
.flash.error { color: #963f3b; background: #ffeded; }
.login-layout { min-height: 100vh; padding: 24px; background: #f5f7f5; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); width: min(100%, 1160px); min-height: min(760px, calc(100vh - 48px)); margin: auto; overflow: hidden; border: 1px solid #e5ebe6; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #173a2914; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; overflow: hidden; padding: 42px 48px; color: #fff; background: radial-gradient(ellipse at 75% 75%, #26876b 0, transparent 47%), linear-gradient(145deg, #123f35, #0d5e49 65%, #16765b); }
.login-brand { z-index: 1; display: inline-flex; align-items: center; align-self: flex-start; padding: 7px 10px; border-radius: 8px; background: #fff; }
.login-brand img { display: block; width: 148px; height: auto; }
.story-copy { z-index: 1; max-width: 470px; margin: auto 0; padding: 55px 0; }
.story-label { display: inline-flex; align-items: center; gap: 9px; color: #c6e4d5; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.story-label span { width: 7px; height: 7px; border-radius: 50%; background: #91e2b4; box-shadow: 0 0 0 5px #91e2b426; }
.story-copy h1 { margin: 23px 0 18px; font: 700 clamp(31px, 4vw, 48px)/1.16 Manrope, sans-serif; letter-spacing: -2px; }
.story-copy h1 em { color: #b2e0c3; font-style: normal; }
.story-copy p { max-width: 390px; margin-bottom: 0; color: #d3e6dc; font-size: 14px; line-height: 1.8; }
.story-footer { z-index: 1; display: flex; align-items: center; gap: 13px; color: #d2e7dc; font-size: 11px; line-height: 1.7; }
.story-footer strong { color: #fff; font-weight: 600; }
.story-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid #d5f1df5c; border-radius: 11px; color: #c6efd4; background: #ffffff12; font-size: 16px; }
.story-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid #ffffff13; border-radius: 50%; pointer-events: none; }
.orbit-one { right: -142px; bottom: -155px; }
.orbit-two { right: -94px; bottom: -107px; width: 214px; height: 214px; }
.login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 55px 48px 25px; }
.login-card { width: min(100%, 380px); }
.login-symbol { display: grid; width: 47px; height: 47px; margin-bottom: 30px; place-items: center; border: 1px solid #dcece2; border-radius: 14px; color: var(--green); background: #eff7f1; }
.login-symbol svg { width: 23px; height: 23px; }
.login-card .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: 1.5px; }
.login-card h2 { margin: 0 0 8px; color: #183229; font: 800 25px Manrope, sans-serif; letter-spacing: -.8px; }
.login-description { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.login-card .stack { gap: 18px; }
.login-card label { gap: 8px; color: #354b40; font-size: 11px; }
.login-card input { min-height: 46px; padding: 11px 13px; border-color: #e0e8e2; border-radius: 7px; font-size: 12px; }
.login-card input::placeholder { color: #a4b0a9; }
.login-submit { width: 100%; min-height: 46px; justify-content: space-between; margin-top: 4px; padding: 0 15px; border-radius: 7px; font-size: 12px; }
.login-submit span { font-size: 18px; font-weight: 400; }
.login-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: #85948c; font-size: 10px; }
.login-secure span { color: #59a77e; font-size: 8px; }
.login-copyright { margin-top: auto; padding-top: 45px; color: #98a39c; font-size: 9px; text-align: center; }
.login-copyright span { padding: 0 5px; color: #c0c9c2; }
.hint { margin: 14px 0 0; font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
    .topbar { flex-wrap: wrap; gap: 13px 20px; padding: 15px 20px; }
    .nav-links { order: 3; width: 100%; gap: 18px; font-size: 12px; }
    .account { margin-left: auto; }
    .main-content { width: calc(100% - 28px); margin-top: 26px; }
    .panel { padding: 18px; }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .item-row, .form-grid { grid-template-columns: 1fr; }
    .form-grid .wide { grid-column: auto; }
    .page-heading { align-items: flex-start; gap: 15px; }
    h1 { font-size: 23px; }
    .login-layout { display: block; padding: 12px; }
    .login-shell { grid-template-columns: 1fr; min-height: calc(100vh - 24px); border-radius: 14px; }
    .login-story { min-height: 265px; padding: 23px 24px; }
    .story-copy { padding: 28px 0 20px; }
    .story-copy h1 { margin: 15px 0 9px; font-size: 29px; letter-spacing: -1px; }
    .story-copy p { max-width: 360px; font-size: 12px; }
    .story-footer { display: none; }
    .login-side { padding: 38px 24px 18px; }
    .login-card { width: min(100%, 420px); }
    .login-symbol { margin-bottom: 22px; }
    .login-copyright { padding-top: 35px; }
}
@media (max-width: 420px) {
    .login-story { min-height: 235px; }
    .story-copy h1 { font-size: 26px; }
    .login-card h2 { font-size: 22px; }
}
