.railway-status-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.checklist-project-heading {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.checklist-project-number {
    overflow: hidden;
    color: #5f6368;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title-row .checklist-project-heading .title-medium {
    width: 100%;
    flex: none;
}

.railway-project-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #a8c7fa;
    border-radius: 999px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box;
}

.railway-mode-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 12px;
    width: min(100%, 1160px);
    padding: 10px 14px;
    border: 1px solid #a8c7fa;
    border-radius: 12px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 13px;
    font-weight: 800;
    box-sizing: border-box;
}

.railway-facility-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 10px;
    font-weight: 800;
}

.railway-facility-age-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    margin-left: 6px;
    padding: 2px 7px;
    border: 1px solid #c6cbd4;
    border-radius: 6px;
    background: #fff;
    color: #3c4043;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.railway-facility-age-toggle input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0b57d0;
    cursor: pointer;
}

.railway-age-selected {
    background-color: #d9d9d9 !important;
}

.railway-age-unselected {
    background-color: #fff !important;
}

#railway-assessment-host {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: block;
    background: #edf1f7;
}

body.railway-assessment-open {
    overflow: hidden !important;
}

@media (max-width: 599px) {
    .railway-project-badge {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* The rules below are also injected into the assessment shadow root. */
:host {
    --railway-blue: #0b57d0;
    --railway-blue-dark: #174ea6;
    --railway-ink: #172033;
    --railway-muted: #5f6b7a;
    --railway-line: #d8dee8;
    --railway-panel: #ffffff;
    display: block;
    height: 100%;
    color: var(--railway-ink);
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
}

:host * {
    box-sizing: border-box;
}

:host button,
:host input,
:host select,
:host textarea {
    font: inherit;
}

:host button {
    cursor: pointer;
}

.railway-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 0;
    background: #edf1f7;
}

.railway-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 18px;
    border-bottom: 1px solid #cfd7e3;
    background: #fff;
    box-shadow: 0 2px 10px rgba(29, 52, 78, .08);
}

.railway-back,
.railway-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d4dbe6;
    border-radius: 12px;
    background: #fff;
    color: #26384d;
    font-size: 21px;
}

.railway-back:hover,
.railway-icon-button:hover {
    background: #f2f6fb;
}

.railway-heading {
    min-width: 0;
    flex: 1;
}

.railway-heading h1 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.railway-heading p {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--railway-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.railway-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.railway-save-state {
    min-width: 66px;
    color: #526273;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.railway-primary,
.railway-secondary,
.railway-danger,
.railway-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.railway-primary {
    border: 1px solid var(--railway-blue);
    background: var(--railway-blue);
    color: #fff;
}

.railway-primary:hover {
    background: #0842a0;
}

.railway-secondary {
    border: 1px solid #a8c7fa;
    background: #e8f0fe;
    color: #174ea6;
}

.railway-danger {
    border: 1px solid #f2b8b5;
    background: #fce8e6;
    color: #b3261e;
}

.railway-ghost {
    border: 1px solid #d4dbe6;
    background: #fff;
    color: #405064;
}

.railway-workspace {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 0;
}

.railway-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
    border-right: 1px solid #cfd7e3;
    background: #f8fafc;
}

.railway-progress {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    background: #fff;
}

.railway-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #405064;
    font-size: 12px;
    font-weight: 800;
}

.railway-progress-track {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #e7ebf1;
}

.railway-progress-value {
    height: 100%;
    border-radius: inherit;
    background: var(--railway-blue);
    transition: width .2s ease;
}

.railway-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.railway-filter input,
.railway-filter select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    background: #fff;
    color: #26384d;
    font-size: 12px;
    outline: none;
}

.railway-filter input:focus,
.railway-filter select:focus {
    border-color: var(--railway-blue);
    box-shadow: 0 0 0 2px rgba(11, 87, 208, .12);
}

.railway-item-list {
    overflow-y: auto;
    min-height: 0;
    padding-right: 3px;
}

.railway-item-button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 5px;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #3b4b5e;
    text-align: left;
}

.railway-item-button:hover {
    background: #eef3fa;
}

.railway-item-button.active {
    border-color: #a8c7fa;
    background: #e8f0fe;
    color: #174ea6;
}

.railway-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #e5eaf1;
    font-size: 10px;
    font-weight: 900;
}

.railway-item-button.active .railway-item-number {
    background: var(--railway-blue);
    color: #fff;
}

.railway-item-label {
    overflow: hidden;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.railway-item-complete {
    color: #188038;
    font-size: 13px;
}

.railway-main {
    overflow-y: auto;
    min-width: 0;
    padding: 20px;
}

.railway-form {
    width: min(100%, 980px);
    margin: 0 auto;
}

.railway-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.railway-form-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.railway-form-heading p {
    margin: 4px 0 0;
    color: var(--railway-muted);
    font-size: 12px;
}

.railway-category-chip {
    flex: none;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 11px;
    font-weight: 900;
}

.railway-category-chips {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.railway-detail-category-chip {
    background: #e6f4ea;
    color: #137333;
}

.railway-table-card,
.railway-panel-card {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #d5dce7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(41, 62, 89, .06);
}

.railway-source-scroll {
    overflow-x: auto;
    padding: 4px 2px 10px;
}

.railway-source-scroll > table {
    margin: 0 auto;
}

.railway-source-scroll input,
.railway-source-scroll textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #97a8bd;
    border-radius: 4px;
    background: #fffef3;
    color: #15263b;
    outline: none;
}

.railway-source-scroll input {
    min-height: 30px;
    padding: 4px 6px;
    text-align: center;
}

.railway-source-scroll textarea {
    min-height: 74px;
    padding: 7px;
    line-height: 1.55;
    resize: vertical;
}

.railway-source-scroll input:focus,
.railway-source-scroll textarea:focus {
    border-color: var(--railway-blue);
    box-shadow: 0 0 0 2px rgba(11, 87, 208, .14);
}

.railway-score-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.railway-score-wrap input {
    max-width: 110px;
}

.railway-score-wrap span {
    color: #405064;
    font-weight: 800;
}

.railway-summary-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.railway-summary-regenerate {
    padding: 5px 8px;
    border: 1px solid #a8c7fa;
    border-radius: 6px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 10px;
    font-weight: 800;
}

.railway-photo-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-height: 115px;
    padding: 6px;
}

.railway-photo-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    border: 1px dashed #9eb0c5;
    border-radius: 8px;
    background: #f8fafc;
}

.railway-photo-slot-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #405064;
    font-size: 10px;
    font-weight: 900;
}

.railway-photo-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #a8c7fa;
    border-radius: 6px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.railway-photo-add input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

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

.railway-photo-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    background: #e5eaf1;
}

.railway-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.railway-photo-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 13px;
}

.railway-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.railway-panel-title h3 {
    margin: 0;
    font-size: 15px;
}

.railway-panel-title p {
    margin: 3px 0 0;
    color: var(--railway-muted);
    font-size: 11px;
}

.railway-measurement-card {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e7ee;
}

.railway-measurement-card:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.railway-formula-note {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-left: 3px solid #f9ab00;
    background: #fff8e1;
    color: #6f4b00;
    font-size: 11px;
    line-height: 1.55;
}

.railway-derived-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    background: #e6f4ea;
    color: #137333;
    font-weight: 900;
}

.railway-calc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.railway-calc-table th,
.railway-calc-table td {
    padding: 7px;
    border: 1px solid #d6dde7;
    font-size: 11px;
    text-align: center;
}

.railway-calc-table th {
    background: #f2f5f9;
    color: #405064;
    font-weight: 900;
}

.railway-calc-table input,
.railway-calc-table select {
    width: 100%;
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid #bdc8d5;
    border-radius: 6px;
    background: #fff;
}

.railway-calc-result {
    color: #137333;
    font-weight: 900;
}

.railway-calc-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.railway-empty {
    padding: 30px 12px;
    color: #6a7786;
    text-align: center;
    font-size: 13px;
}

.railway-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 5;
    max-width: 360px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #172033;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    font-size: 12px;
    font-weight: 700;
}

.railway-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #405064;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .railway-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .railway-sidebar {
        max-height: 178px;
        border-right: 0;
        border-bottom: 1px solid #cfd7e3;
    }

    .railway-progress {
        display: none;
    }

    .railway-filter {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(112px, 150px));
    }

    .railway-item-list {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .railway-item-button {
        flex: 0 0 190px;
        margin: 0;
    }

    .railway-main {
        padding: 12px;
    }
}

@media (max-width: 620px) {
    .railway-header {
        min-height: 62px;
        padding: 8px 10px;
    }

    .railway-heading h1 {
        font-size: 16px;
    }

    .railway-heading p,
    .railway-save-state {
        display: none;
    }

    .railway-header-actions .railway-secondary span,
    .railway-header-actions .railway-primary span {
        display: none;
    }

    .railway-header-actions .railway-secondary,
    .railway-header-actions .railway-primary {
        width: 42px;
        padding: 7px;
    }

    .railway-sidebar {
        max-height: 158px;
        padding: 9px;
    }

    .railway-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .railway-filter .railway-search {
        grid-column: 1 / -1;
    }

    .railway-table-card,
    .railway-panel-card {
        padding: 10px;
        border-radius: 10px;
    }

    .railway-photo-slots {
        grid-template-columns: 1fr;
    }

    .railway-calc-table {
        min-width: 680px;
    }

    .railway-calc-scroll {
        overflow-x: auto;
    }
}

@media print {
    .railway-header,
    .railway-sidebar,
    .railway-form-heading,
    .railway-panel-card {
        display: none !important;
    }

    .railway-shell,
    .railway-workspace {
        display: block;
        height: auto;
    }

    .railway-main {
        overflow: visible;
        padding: 0;
    }
}

/* Attached HTML reference: A4 two-page inspection document layout. */
.railway-shell {
    background: #eceff3;
}

.railway-header {
    min-height: 64px;
    padding: 10px 20px;
    border-bottom: 0;
    background: #182235;
    color: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .25);
}

.railway-back,
.railway-header .railway-secondary,
.railway-header .railway-primary {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 6px;
    color: #fff;
}

.railway-back {
    width: 40px;
    height: 40px;
    background: transparent;
}

.railway-back:hover {
    background: rgba(255, 255, 255, .1);
}

.railway-header .railway-secondary {
    background: #047857;
}

.railway-header .railway-secondary:hover {
    background: #065f46;
}

.railway-header .railway-primary {
    background: #2563eb;
}

.railway-header .railway-primary:hover {
    background: #1d4ed8;
}

.railway-heading h1 {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.railway-heading p {
    margin-top: 2px;
    color: #cbd5e1;
    font-size: 11px;
}

.railway-heading small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.railway-save-state {
    color: #cbd5e1;
}

.railway-workspace {
    grid-template-columns: 270px minmax(0, 1fr);
}

.railway-sidebar {
    background: #f8fafc;
}

.railway-main {
    overflow: auto;
    padding: 18px;
    background: #eceff3;
}

.railway-form {
    width: max-content;
    min-width: 100%;
    margin: 0;
}

.railway-form-heading {
    width: 210mm;
    margin: 0 auto 10px;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 5px rgba(15, 23, 42, .08);
}

.railway-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 18px;
    padding: 18mm 22mm 17mm;
    background: #fff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .16);
}

.railway-document-width {
    margin: 0 auto;
}

.railway-chapter,
.railway-subchapter {
    color: #111;
    font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
    font-weight: 700;
}

.railway-chapter {
    margin: 0 0 8mm 3mm;
    font-size: 11pt;
}

.railway-subchapter {
    margin: 0 0 11mm 6mm;
    font-size: 10.5pt;
}

.railway-source-scroll {
    overflow: visible;
    padding: 0;
}

.railway-source-scroll > table {
    margin: 0 auto;
    color: #111;
    background: #fff;
}

.railway-source-scroll input,
.railway-source-scroll textarea {
    border: 1px solid #94a3b8;
    border-radius: 2px;
    background: #fff;
    color: #111;
}

.railway-source-scroll input:focus,
.railway-source-scroll textarea:focus {
    border-color: #2563eb;
    outline: 2px solid #93c5fd;
    box-shadow: none;
}

.railway-source-scroll textarea.railway-summary {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: .5mm;
    line-height: 1.15;
    overflow-y: hidden;
    resize: none;
    white-space: pre-wrap;
}

.railway-score-wrap {
    flex-wrap: nowrap;
    gap: 2mm;
}

.railway-score-wrap input.railway-score {
    width: 18mm;
    min-height: 0;
    height: 6mm;
    padding: .5mm 1mm;
    font-size: 9pt;
    font-weight: 700;
}

.railway-score-mode {
    display: inline-flex;
    align-items: center;
    gap: 1mm;
    color: #111;
    font-size: 8pt;
    font-weight: 700;
    white-space: nowrap;
}

.railway-score-mode input[type="radio"] {
    width: 3.5mm;
    height: 3.5mm;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.railway-inspection-photo-cell {
    overflow: hidden;
}

.railway-inspection-photo-cell > .railway-single-photo-slot {
    height: 100%;
    min-height: 0;
}

.railway-single-photo-slot {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px dashed #8b95a7;
    background: #f8fafc;
    cursor: pointer;
}

.railway-single-photo-slot.small {
    min-height: 24.5mm;
}

.railway-single-photo-slot.dragover {
    outline: 2px solid #2563eb;
    background: #eff6ff;
}

.railway-single-photo-slot.has-photo {
    border-style: solid;
    background: #fff;
}

.railway-single-photo-slot img {
    display: none;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.railway-single-photo-slot.has-photo img {
    display: block;
}

.railway-single-photo-slot.has-photo .railway-upload-guide {
    display: none;
}

.railway-upload-guide {
    padding: 4mm 2mm;
    color: #64748b;
    font-size: 8.5pt;
    line-height: 1.5;
    text-align: center;
}

.railway-upload-guide strong {
    display: block;
    color: #334155;
}

.railway-single-photo-slot .railway-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.railway-single-photo-slot .railway-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .76);
    color: #fff;
    font-weight: 700;
    line-height: 24px;
}

.railway-single-photo-slot.has-photo .railway-photo-remove {
    display: block;
}

.railway-detail-photo-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #111;
    background: #fff;
}

.railway-detail-photo-table th,
.railway-detail-photo-table td {
    border: .7px solid #222;
    vertical-align: middle;
}

.railway-detail-photo-cell {
    height: 27.5mm;
    padding: 1.5mm;
}

.railway-caption-row th,
.railway-caption-row td {
    height: 7.5mm;
    padding: .7mm;
    font-size: 8.5pt;
    text-align: center;
}

.railway-caption-input {
    width: 100%;
    padding: 1mm;
    border: 1px solid #94a3b8;
    border-radius: 2px;
    background: #fff;
    color: #111;
    text-align: center;
}

.railway-caption-input:focus {
    border-color: #2563eb;
    outline: 2px solid #93c5fd;
}

.railway-measurements {
    margin-top: 7mm;
}

.railway-measurement-card {
    margin-top: 7mm;
    padding: 0;
    border-top: 0;
}

.railway-measurement-card:first-child {
    margin-top: 0;
}

.railway-measurement-card[data-mode="motorCurrentPhoto"] {
    margin-top: 3mm;
}

.railway-measurement-card .railway-source-scroll input {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: .5mm 1mm;
    line-height: 1.15;
}

.railway-measurement-photo-cell {
    overflow: hidden;
    padding: 0 !important;
}

.railway-measurement-photo-cell > .railway-single-photo-slot {
    height: 100%;
    min-height: 24.5mm;
}

.railway-derived-value {
    min-height: 28px;
    padding: 1.8mm;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 8.5pt;
    line-height: 1.35;
}

.railway-formula-note {
    margin-top: 5mm;
    padding: 3mm 4mm;
    border: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 8.3pt;
}

.railway-formula-note strong {
    color: #1e293b;
}

.railway-calculator-panel {
    margin-top: 7mm;
    padding-top: 5mm;
    border-top: 1px solid #cbd5e1;
}

.railway-calculator-panel .railway-panel-title {
    margin-bottom: 3mm;
}

@media (max-width: 860px) {
    .railway-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .railway-main {
        padding: 0;
    }

    .railway-form-heading {
        margin: 8px 0;
    }

    .railway-page {
        margin: 0 0 18px;
        box-shadow: none;
    }
}

@media print {
    .railway-header,
    .railway-sidebar,
    .railway-form-heading,
    .railway-summary-tools,
    .railway-calc-actions,
    .railway-formula-note {
        display: none !important;
    }

    .railway-page {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }

    .railway-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .railway-single-photo-slot {
        border: 0;
        background: #fff;
    }

    .railway-single-photo-slot:not(.has-photo) .railway-upload-guide {
        color: transparent;
    }
}
