:root {
    --ink: #172c40;
    --green: #127c6d;
    --line: #e2e8ec;
    --muted: #80909a
}

body {
    background: #f4f7f8;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif
}

.topbar {
    height: 78px;
    padding: 0 4%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 48px
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1px
}

.brand-icon {
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    width: 35px;
    height: 38px;
    border-radius: 10px 10px 10px 2px;
    font-size: 23px;
    margin-right: 12px
}

.brand-light {
    font-weight: 350;
    color: #829298
}

.top-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #98a4ad
}

.local-pill {
    margin-left: auto;
    font-size: 12px;
    color: #566d69;
    background: #f0f7f4;
    padding: 7px 12px;
    border-radius: 20px
}

.local-pill span,
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #299884;
    border-radius: 100%;
    margin-right: 8px
}

.workspace {
    max-width: 1600px;
    padding: 38px 4% 20px;
    margin: auto
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px
}

.eyebrow {
    color: var(--green);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px
}

h1 {
    font-size: 36px;
    font-weight: 650;
    letter-spacing: -1.3px
}

h1 span {
    color: #168879
}

.page-heading p {
    font-size: 13px;
    color: #758690;
    margin: 8px 0 0
}

.heading-actions {
    display: flex;
    gap: 10px
}

.btn {
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    padding: 11px 16px
}

.btn-dark {
    background: var(--ink)
}

.btn-outline-secondary {
    border-color: #d5dfe4;
    color: #536875;
    background: white
}

.btn-success {
    background: var(--green);
    border-color: var(--green)
}

.builder {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.35fr);
    gap: 28px;
    align-items: start
}

.editor {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.editor-heading {
    padding: 24px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.editor-heading h2 {
    font-size: 17px;
    margin: 0 0 7px;
    font-weight: 650
}

.editor-heading p {
    font-size: 11px;
    color: #8b98a1;
    margin: 0
}

.step-mark {
    font-size: 10px;
    letter-spacing: 1px;
    color: #9aa8b0
}

.section-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 0 20px 18px;
    border-bottom: 1px solid var(--line)
}

.section-tab {
    border: 0;
    background: #f4f6f7;
    color: #71818c;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px
}

.section-tab.active {
    background: #e7f3ef;
    color: var(--green);
    font-weight: 700
}

.form-section {
    padding: 24px;
    min-height: 420px
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 23px
}

.section-title span {
    font-size: 10px;
    font-weight: 700;
    color: #14816f;
    background: #edf6f2;
    padding: 5px 7px;
    border-radius: 4px
}

.section-title h3 {
    font-size: 14px;
    font-weight: 650;
    margin: 0
}

.form-label {
    font-size: 11px;
    color: #607580;
    margin-bottom: 7px
}

.form-control,
.form-select {
    border-color: #dde5e9;
    border-radius: 6px;
    font-size: 12px;
    padding: 11px 10px;
    color: #243b4a;
    background: #fff
}

.form-control:focus,
.form-select:focus {
    border-color: #379c8d;
    box-shadow: 0 0 0 3px #168b7e15
}

textarea.form-control {
    font-size: 11px;
    line-height: 1.7
}

.field-note {
    font-size: 11px;
    color: #86969f;
    line-height: 1.8;
    margin: 23px 0 0;
    padding: 14px;
    background: #f6f9f9;
    border-radius: 6px
}

.editor-generate {
    padding: 0 24px 20px
}

.editor-footer {
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #84968e
}

.text-button {
    border: 0;
    background: transparent;
    color: #658078;
    font-size: 11px;
    padding: 4px
}

.text-button:hover {
    color: #104f44;
    text-decoration: underline
}

.preview-panel {
    background: #e9eef0;
    border: 1px solid #dde5e8;
    border-radius: 12px;
    overflow: hidden
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-size: 12px
}

.preview-toolbar strong {
    font-weight: 600
}

.preview-meta {
    color: #8999a3;
    font-size: 10px;
    margin-left: 18px
}

.paper-wrap {
    padding: 0 22px 22px
}

iframe {
    width: 100%;
    height: 660px;
    border: 0;
    background: white;
    box-shadow: 0 3px 16px #243b4a10;
    display: block
}

.download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-top: 1px solid var(--line);
    padding: 19px 24px
}

.muted-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #93a0a8;
    display: block
}

.download-bar strong {
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.8px;
    display: block
}

.download-bar small {
    font-size: 10px;
    color: #8d9da5
}

.download-bar .btn {
    padding: 14px 20px
}

.btn span {
    margin-left: 12px
}

.workspace-footer {
    display: flex;
    gap: 20px;
    padding-top: 25px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #8a9aa3
}

.workspace-footer span {
    letter-spacing: 0
}

.workspace-footer span:last-child {
    margin-left: auto
}

.passenger-card {
    background: #f8fafb;
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px
}

.passenger-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 650
}

.remove-passenger {
    color: #b25656
}

.alert {
    font-size: 12px;
    margin: 0 22px 16px
}

.btn:disabled {
    opacity: .55
}

button:focus-visible {
    outline: 3px solid #72bcae;
    outline-offset: 2px
}

@media(min-width:1400px) {
    iframe {
        height: 760px
    }
}

@media(max-width:1000px) {
    .builder {
        grid-template-columns: 1fr
    }

    .editor {
        max-width: none
    }

    .form-section {
        min-height: 0
    }

    iframe {
        height: 800px
    }

    .workspace {
        padding: 24px
    }

    .topbar {
        padding: 0 24px
    }

    .top-label {
        display: none
    }
}

@media(max-width:575px) {
    .workspace {
        padding: 22px 12px
    }

    .topbar {
        padding: 0 16px;
        height: 66px
    }

    .brand {
        font-size: 22px
    }

    .local-pill {
        font-size: 10px
    }

    .page-heading {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column
    }

    h1 {
        font-size: 31px
    }

    .heading-actions {
        width: 100%
    }

    .heading-actions .btn {
        flex: 1
    }

    .editor-heading,
    .form-section {
        padding: 20px
    }

    .paper-wrap {
        padding: 0 8px 12px
    }

    .preview-meta {
        display: none
    }

    .download-bar {
        padding: 17px 14px
    }

    .download-bar .btn {
        padding: 13px
    }

    .workspace-footer span:last-child {
        display: none
    }

    iframe {
        height: 660px
    }
}