/* Story Request template */
.uvsr-page {
    padding-bottom: 4rem;
}

.uvsr-hero {
    background: linear-gradient(135deg, #0f172a 0%, #0097b2 55%, #00c9a7 100%);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.uvsr-hero .container {
    max-width: 800px;
}

.uvsr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.uvsr-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.uvsr-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.uvsr-actions {
    padding: 2.5rem 0 1rem;
}

.uvsr-h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
}

.uvsr-sub {
    color: #64748b;
    margin: 0 0 1.5rem;
    max-width: 720px;
    line-height: 1.55;
}

.uvsr-btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.uvsr-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.uvsr-action-card:hover {
    border-color: #0097b2;
    box-shadow: 0 10px 28px rgba(0, 151, 178, 0.15);
    transform: translateY(-2px);
}

.uvsr-action-card--primary {
    border-color: #0097b2;
    background: linear-gradient(145deg, #f0fdfa 0%, #fff 100%);
}

.uvsr-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0097b2, #00c9a7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.uvsr-action-card:not(.uvsr-action-card--primary) .uvsr-action-icon {
    background: #e2e8f0;
    color: #475569;
}

.uvsr-action-label {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
}

/* Board */
.uvsr-board {
    padding: 1rem 0 3rem;
}

.uvsr-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.uvsr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.uvsr-table th,
.uvsr-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.uvsr-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

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

.uvsr-row-alert td:first-child {
    box-shadow: inset 3px 0 0 #ef4444;
}

.uvsr-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.uvsr-pill--danger {
    background: #fef2f2;
    color: #b91c1c;
}

a.uvsr-edit-link {
    font-weight: 600;
    color: #0097b2;
    text-decoration: none;
}

a.uvsr-edit-link:hover {
    text-decoration: underline;
}

/* Modal */
.uvsr-modal[hidden] {
    display: none !important;
}

.uvsr-modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 1rem;
}

.uvsr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}

.uvsr-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.uvsr-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
}

.uvsr-modal__close:hover {
    background: #e2e8f0;
}

.uvsr-modal__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.uvsr-modal__desc {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.uvsr-form .uvsr-field {
    margin-bottom: 1rem;
}

.uvsr-form label,
.uvsr-form .uvsr-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.uvsr-form .req {
    color: #dc2626;
}

.uvsr-form input[type="text"],
.uvsr-form input[type="number"],
.uvsr-form input[type="date"],
.uvsr-form select,
.uvsr-form textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

.uvsr-form textarea {
    resize: vertical;
    min-height: 72px;
}

.uvsr-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 540px) {
    .uvsr-field-grid {
        grid-template-columns: 1fr;
    }
}

.uvsr-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.uvsr-radios label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    margin: 0;
}

.uvsr-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.uvsr-field--check .uvsr-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.uvsr-form-msg {
    min-height: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.uvsr-form-msg.is-ok {
    color: #059669;
}

.uvsr-form-msg.is-err {
    color: #dc2626;
}

.uvsr-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.uvsr-btn-ghost {
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.uvsr-btn-submit {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0097b2, #00c9a7);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.uvsr-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.uvsr-image-piece-fields {
    margin: 1rem 0 0.25rem;
    padding: 1rem 0 0;
    border-top: 1px solid #e2e8f0;
}

.uvsr-image-piece-fields[hidden] {
    display: none !important;
}

.uvsr-web-update-fields {
    margin: 1rem 0 0.25rem;
    padding: 1rem 0 0;
    border-top: 1px solid #e2e8f0;
}

.uvsr-web-update-fields[hidden] {
    display: none !important;
}

.uvsr-select-wide {
    width: 100%;
    max-width: 100%;
}

.uvsr-hint--warn {
    color: #b45309;
    font-weight: 600;
}

.uvsr-piece-intro {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .uvsr-table thead {
        display: none;
    }

    .uvsr-table tr {
        display: block;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 0;
    }

    .uvsr-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border: none;
        padding: 0.35rem 1rem;
        font-size: 0.82rem;
    }

    .uvsr-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        flex-shrink: 0;
    }
}
