* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Courier New', monospace;
    background: #f5f5f5;
    color: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

header {
    margin-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #F44336;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 13px;
    color: #666666;
}

/* Layout */
.evaluator-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.input-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-panel {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Input Sections */
.input-section {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8f0fe;
}

.field-group {
    margin-bottom: 16px;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 13px;
    color: #555555;
    font-weight: 500;
    margin-bottom: 8px;
}

.hint {
    font-size: 11px;
    color: #999999;
    font-weight: 400;
}

.hint-text {
    font-size: 11px;
    color: #888888;
    margin-top: 8px;
    line-height: 1.5;
}

/* Radio / Checkbox Options */
.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.4;
}

.radio-option input[type="radio"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    accent-color: #0066cc;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.4;
}

.checkbox-option input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #0066cc;
}

/* Size Input */
.size-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.size-input {
    width: 100px;
    background: #ffffff;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.2s;
}

.size-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.unit-row {
    gap: 16px;
}

/* Characteristics Grid */
.characteristics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Results Panel */
.results-placeholder {
    background: #ffffff;
    border: 1px dashed #c0c0c0;
    border-radius: 6px;
    padding: 32px 20px;
    text-align: center;
    color: #999999;
    font-size: 13px;
}

.result-card {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* Pattern Badge */
.pattern-badge {
    padding: 16px 20px;
    border-bottom: 1px solid;
}

.pattern-label-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
    display: block;
    margin-bottom: 4px;
}

.pattern-name {
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.pattern-risk {
    font-size: 12px;
    opacity: 0.75;
}

/* FNA Box */
.fna-box {
    padding: 14px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid #e8e8e8;
}

.fna-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.fna-content {
    flex: 1;
}

.fna-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.fna-text {
    font-size: 12px;
    line-height: 1.5;
    color: #333333;
}

.fna-box.rec-yes { background: #f0fdf4; }
.fna-box.rec-yes .fna-title { color: #16a34a; }

.fna-box.rec-consider { background: #fffbeb; }
.fna-box.rec-consider .fna-title { color: #b45309; }

.fna-box.rec-no { background: #f8fafc; }
.fna-box.rec-no .fna-title { color: #64748b; }

.fna-box.rec-size-needed { background: #f8fafc; }
.fna-box.rec-size-needed .fna-title { color: #64748b; }

/* Flags */
.flags-section {
    padding: 0 20px;
}

.flag-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    line-height: 1.5;
}

.flag-item:last-child {
    border-bottom: none;
}

.flag-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.flag-text {
    color: #444444;
}

/* Sections within result card */
.result-section {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.result-section:last-child {
    border-bottom: none;
}

.result-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888888;
    margin-bottom: 8px;
}

.result-section p {
    font-size: 12px;
    color: #444444;
    line-height: 1.55;
}

/* Bethesda Table */
.bethesda-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 6px;
}

.bethesda-table th {
    text-align: left;
    padding: 5px 8px;
    background: #f5f5f5;
    color: #555555;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.bethesda-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #444444;
    vertical-align: top;
    line-height: 1.4;
}

.bethesda-table tr:last-child td {
    border-bottom: none;
}

.bethesda-table tr:hover td {
    background: #fafafa;
}

.bethesda-roman {
    font-weight: 500;
    white-space: nowrap;
}

.bethesda-peds {
    color: #dc2626;
}

/* Disclaimer */
.disclaimer {
    margin-top: 28px;
    padding: 12px 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    color: #888888;
    line-height: 1.5;
}

/* Back Link */
.back-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .evaluator-layout {
        flex-direction: column;
    }

    .results-panel {
        width: 100%;
        position: static;
    }

    .characteristics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    h1 {
        font-size: 22px;
    }

    .radio-row {
        flex-direction: column;
        gap: 6px;
    }
}
