.trf-wrapper * { box-sizing: border-box; }
    .trf-wrapper {
        max-width: 860px; margin: 0 auto; padding: 28px;
        font-family: inherit; color: inherit;
    }
    .trf-card {
        border: 1px solid rgba(128,128,128,.22); border-radius: 14px;
        padding: 26px; background: rgba(255,255,255,.02);
    }
    .trf-title { font-size: 1.55rem; font-weight: 700; margin: 0 0 6px; }
    .trf-subtitle { font-size: .94rem; opacity: .75; margin: 0 0 22px; }
    .trf-row { display: flex; flex-wrap: wrap; gap: 16px; }
    .trf-col { flex: 1 1 220px; min-width: 0; }
    .trf-col-full { flex: 1 1 100%; }
    .trf-field { margin-bottom: 16px; }
    .trf-label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
    .trf-req { color: #dc2626; }
    .trf-input, .trf-select, .trf-textarea {
        width: 100%; padding: 10px 12px; font: inherit; color: inherit;
        border: 1px solid rgba(128,128,128,.35); border-radius: 8px;
        background: transparent; transition: border-color .15s;
    }
    .trf-input:focus, .trf-select:focus, .trf-textarea:focus {
        outline: none; border-color: #3b82f6;
    }
    .trf-select option { color: initial; }
    .trf-input-error { border-color: #dc2626 !important; }
    .trf-error { display: none; font-size: .78rem; color: #dc2626; margin-top: 4px; }
    .trf-hint { font-size: .8rem; opacity: .7; margin-top: 6px; }

    .trf-picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
    .trf-note {
        font-size: .8rem; opacity: .75; margin: 4px 0 12px; line-height: 1.5;
    }
    .trf-tables { display: flex; flex-wrap: wrap; gap: 10px; }
    .trf-table {
        position: relative; border: 1px solid rgba(128,128,128,.35);
        border-radius: 10px; padding: 10px 14px; min-width: 96px;
        text-align: center; cursor: pointer; transition: all .15s;
    }
    .trf-table .trf-t-no { display: block; font-weight: 700; font-size: 1rem; }
    .trf-table .trf-t-seats { display: block; font-size: .74rem; opacity: .7; }
    .trf-table .trf-t-area { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .66rem; font-weight: 600; opacity: .75; background: rgba(0,0,0,.06); vertical-align: middle; }
    .trf-table .trf-t-tag {
        display: block; font-size: .68rem; margin-top: 3px;
        text-transform: uppercase; letter-spacing: .03em; font-weight: 600;
    }
    .trf-table input { position: absolute; opacity: 0; pointer-events: none; }
    .trf-table.is-selected { border-color: #3b82f6; background: rgba(59,130,246,.1); }
    .trf-table.is-selected .trf-t-tag { color: #2563eb; }
    .trf-table.is-recommended { border-color: #22c55e; }
    .trf-table.is-recommended .trf-t-tag { color: #16a34a; }
    .trf-table.is-disabled { opacity: .42; cursor: not-allowed; }
    .trf-table.is-disabled .trf-t-no,
    .trf-table.is-disabled .trf-t-seats { text-decoration: line-through; }
    .trf-table.is-disabled .trf-t-tag { color: #6b7280; }

    .trf-status { font-size: .86rem; margin: 10px 0; min-height: 1.2em; }
    .trf-status.is-error { color: #b45309; }
    .trf-status.is-ok { color: #16a34a; }

    .trf-seat-tally {
        font-size: .82rem; font-weight: 600; margin-top: 10px;
    }
    .trf-seat-tally.is-short { color: #b45309; }
    .trf-seat-tally.is-ok { color: #16a34a; }

    .trf-tables.is-refreshing { opacity: .5; pointer-events: none; }
    .trf-refreshing {
        display: none; align-items: center; gap: 6px;
        font-size: .78rem; opacity: .75; margin-bottom: 8px;
    }
    .trf-refreshing.is-on { display: inline-flex; }
    .trf-refreshing::before {
        content: ''; width: 11px; height: 11px; border-radius: 50%;
        border: 2px solid currentColor; border-top-color: transparent;
        animation: trf-spin .7s linear infinite;
    }
    .trf-empty-hint { font-size: .82rem; opacity: .7; }

    .trf-hp {
        position: absolute !important; left: -9999px !important;
        width: 1px !important; height: 1px !important; overflow: hidden !important;
    }

    .trf-submit {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        padding: 12px 30px; font: inherit; font-weight: 600; cursor: pointer;
        border: none; border-radius: 8px; background: #3b82f6; color: #fff;
        transition: opacity .15s;
    }
    .trf-submit:hover { opacity: .9; }
    .trf-submit:disabled { opacity: .6; cursor: not-allowed; }
    .trf-spin {
        width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4);
        border-top-color: #fff; border-radius: 50%; display: none;
        animation: trf-spin .7s linear infinite;
    }
    @keyframes trf-spin { to { transform: rotate(360deg); } }

    .trf-message { display: none; padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }
    .trf-message.is-success { display: block; background: rgba(34,197,94,.12); color: #15803d; }
    .trf-message.is-error { display: block; background: rgba(220,38,38,.1); color: #b91c1c; }

    @media (max-width: 640px) {
        .trf-wrapper { padding: 16px; }
        .trf-card { padding: 18px; }
    }

    /* ── Calendar + time slots (2026-09-16) ─────────────────────────── */
    .trf-when { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 8px; }
    .trf-cal { flex: 1 1 300px; min-width: 0; max-width: 420px; }
    .trf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .trf-cal-title { font-weight: 700; font-size: .98rem; }
    .trf-cal-nav {
        border: 1px solid rgba(128,128,128,.35); background: transparent; color: inherit;
        border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; line-height: 1;
    }
    .trf-cal-nav:disabled { opacity: .35; cursor: not-allowed; }
    .trf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .trf-cal-dow { text-align: center; font-size: .7rem; font-weight: 700; opacity: .6; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
    .trf-cal-day {
        aspect-ratio: 1 / 1; border: 1px solid rgba(128,128,128,.25); border-radius: 8px;
        background: transparent; color: inherit; font: inherit; font-size: .9rem; cursor: pointer;
        display: flex; align-items: center; justify-content: center; position: relative; padding: 0;
    }
    .trf-cal-day:hover:not(:disabled) { border-color: #3b82f6; }
    .trf-cal-day:disabled { opacity: .35; cursor: not-allowed; }
    .trf-cal-day.is-closed { text-decoration: line-through; opacity: .45; }
    .trf-cal-day.is-today { border-color: #3b82f6; font-weight: 700; }
    .trf-cal-day.is-selected { background: #3b82f6; color: #fff; border-color: #3b82f6; font-weight: 700; }
    .trf-cal-empty { visibility: hidden; }
    .trf-cal-loading { font-size: .78rem; opacity: .7; margin-top: 6px; min-height: 1.1em; }

    .trf-side { flex: 1 1 260px; min-width: 0; }
    .trf-party { display: inline-flex; align-items: center; border: 1px solid rgba(128,128,128,.35); border-radius: 8px; overflow: hidden; }
    .trf-party button { border: none; background: transparent; color: inherit; width: 40px; height: 40px; font-size: 1.15rem; cursor: pointer; }
    .trf-party button:disabled { opacity: .35; cursor: not-allowed; }
    .trf-party input { width: 56px; text-align: center; border: none; background: transparent; color: inherit; font: inherit; font-weight: 700; }
    .trf-party input:focus { outline: none; }
    .trf-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
    .trf-slot {
        border: 1px solid rgba(128,128,128,.35); background: transparent; color: inherit; font: inherit;
        font-size: .86rem; padding: 8px 12px; border-radius: 999px; cursor: pointer;
    }
    .trf-slot:hover:not(:disabled) { border-color: #3b82f6; }
    .trf-slot:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
    .trf-slot.is-selected { background: #3b82f6; color: #fff; border-color: #3b82f6; font-weight: 600; }
    .trf-slots-hint { font-size: .8rem; opacity: .7; margin-top: 6px; }
    .trf-chosen { font-size: .9rem; font-weight: 600; margin-top: 12px; min-height: 1.2em; }
    .trf-until { font-size: .82rem; opacity: .8; margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .trf-until select { width: auto; padding: 6px 10px; }
    @media (max-width: 640px) {
        .trf-when { gap: 14px; }
        .trf-cal { max-width: none; }
    }