:root {
    --t99-red: #E30613;
    --t99-red-dark: #B00410;
    --t99-red-soft: #FDE9EA;
    --t99-red-faint: #FFF4F4;
    --t99-ink: #111214;
    --t99-ink-2: #1C1D21;
    --t99-text: #3A3D42;
    --t99-muted: #86898C;
    --t99-bg: #FFFFFF;
    --t99-bg-alt: #F5F5F7;
    --t99-border: #E6E6EA;
    --t99-border-2: #D8D8DE;
    --t99-green: #1F9D55;
    --t99-radius: 14px;
    --t99-radius-sm: 10px;
    --t99-pill: 999px;
    --t99-font-head: 'Archivo', 'Inter', -apple-system, sans-serif;
    --t99-font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --t99-shadow: 0 1px 3px rgba(17,18,20,0.06), 0 4px 16px rgba(17,18,20,0.06);
    --t99-shadow-lg: 0 8px 30px rgba(17,18,20,0.14);
}

.t99-app,
.t99-app * {
    box-sizing: border-box;
}

.t99-app {
    position: relative;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    display: flex;
    overflow: hidden;
    background: var(--t99-bg);
    font-family: var(--t99-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--t99-text);
    -webkit-font-smoothing: antialiased;
}

.t99-app .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
}

.t99-app button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

.t99-app h2,
.t99-app h3,
.t99-app p {
    margin: 0;
}

.t99-sidebar {
    width: 248px;
    flex-shrink: 0;
    background: var(--t99-ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.t99-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px 26px;
}

.t99-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--t99-pill);
    background: var(--t99-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.t99-brand-mark .material-symbols-outlined {
    font-size: 24px;
    color: #fff;
}

.t99-brand-name {
    display: block;
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}

.t99-brand-sub {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}

.t99-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.t99-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    font-family: var(--t99-font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s ease, background 0.15s ease;
}

.t99-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.t99-nav-link.t99-nav-on {
    color: #fff;
    background: rgba(227,6,19,0.14);
    border-left-color: var(--t99-red);
}

.t99-sidebar-foot {
    padding: 0 22px;
}

.t99-sidebar-note {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.4);
}

.t99-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    transition: margin-right 0.2s ease;
}

@media (min-width: 1024px) {
    .t99-app.t99-panel-open .t99-body {
        margin-right: 390px;
    }
}

.t99-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--t99-ink);
    color: #fff;
    padding: 10px 16px;
    flex-shrink: 0;
}

.t99-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.t99-topbar-brand .material-symbols-outlined {
    color: var(--t99-red);
}

.t99-topbar-nav {
    display: flex;
    gap: 4px;
}

.t99-topbar-nav .t99-nav-link {
    padding: 8px 10px;
    border-left: none;
    border-radius: var(--t99-radius-sm);
}

.t99-topbar-nav .t99-nav-link.t99-nav-on {
    background: rgba(227,6,19,0.25);
}

.t99-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.t99-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t99-spin {
    width: 34px;
    height: 34px;
    border: 3px solid var(--t99-border);
    border-top-color: var(--t99-red);
    border-radius: 50%;
    animation: t99spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes t99spin {
    to { transform: rotate(360deg); }
}

.t99-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 28px 14px;
    border-bottom: 1px solid var(--t99-border);
    flex-shrink: 0;
    background: var(--t99-bg);
}

.t99-head-title h2 {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--t99-ink);
    line-height: 1.15;
}

.t99-head-title p {
    color: var(--t99-muted);
    font-size: 14px;
}

.t99-holiday-tag {
    color: var(--t99-red);
    font-weight: 600;
}

.t99-headtools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.t99-roomfilter {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 38px;
    border: 1px solid var(--t99-border-2);
    border-radius: var(--t99-pill);
    padding: 0 38px 0 16px;
    font-family: var(--t99-font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t99-ink);
    background-color: var(--t99-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23111214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px;
    max-width: 230px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.t99-roomfilter:hover {
    border-color: var(--t99-ink);
}

.t99-roomfilter:focus {
    outline: none;
    border-color: var(--t99-red);
    box-shadow: 0 0 0 3px rgba(227,6,19,0.12);
}

.t99-datenav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.t99-datelabel {
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--t99-ink);
    white-space: nowrap;
    user-select: none;
}

.t99-iconbtn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--t99-pill);
    border: 1px solid var(--t99-border-2);
    color: var(--t99-muted);
    background: var(--t99-bg);
    transition: all 0.15s ease;
}

.t99-iconbtn:hover:not(:disabled) {
    border-color: var(--t99-ink);
    color: var(--t99-ink);
}

.t99-iconbtn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.t99-iconbtn-sm {
    width: 30px;
    height: 30px;
    border: none;
}

.t99-iconbtn-sm .material-symbols-outlined {
    font-size: 18px;
}

.t99-iconbtn-sm:hover {
    color: var(--t99-red);
}

.t99-todaybtn {
    padding: 8px 18px;
    border-radius: var(--t99-pill);
    border: 1px solid var(--t99-border-2);
    font-weight: 700;
    font-size: 14px;
    background: var(--t99-bg);
    color: var(--t99-ink);
    transition: all 0.15s ease;
}

.t99-todaybtn:hover {
    border-color: var(--t99-ink);
}

.t99-iconbtn-on {
    background: var(--t99-ink);
    border-color: var(--t99-ink);
    color: #fff;
}

.t99-calpop {
    position: fixed;
    z-index: 99991;
    width: 292px;
    background: var(--t99-bg);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-radius);
    box-shadow: var(--t99-shadow-lg);
    padding: 14px;
    animation: t99slide 0.18s ease;
    font-family: var(--t99-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--t99-text);
    box-sizing: border-box;
}

.t99-calpop * {
    box-sizing: border-box;
}

.t99-calpop button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    margin: 0;
}

.t99-calpop .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 19px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
}

.t99-calpop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.t99-calpop-title {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--t99-ink);
}

.t99-calpop-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    justify-items: center;
}

.t99-calpop-dow {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--t99-muted);
    padding: 4px 0 6px;
}

.t99-calpop-day {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--t99-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--t99-ink);
    transition: background 0.12s ease, color 0.12s ease;
}

.t99-calpop-day:hover:not(:disabled) {
    background: var(--t99-red-soft);
    color: var(--t99-red-dark);
}

.t99-calpop-day:disabled {
    color: var(--t99-border-2);
    cursor: not-allowed;
}

.t99-calpop-today {
    box-shadow: inset 0 0 0 1.5px var(--t99-red);
}

.t99-calpop-on {
    background: var(--t99-red);
    color: #fff;
}

.t99-calpop-on:hover:not(:disabled) {
    background: var(--t99-red-dark);
    color: #fff;
}

.t99-daystrip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    overflow-x: auto;
    border-bottom: 1px solid var(--t99-border);
    flex-shrink: 0;
    background: var(--t99-bg);
    scrollbar-width: thin;
}

.t99-weeknav {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.t99-weeknav .material-symbols-outlined {
    font-size: 19px;
}

.t99-daychip-off {
    opacity: 0.35;
    cursor: not-allowed;
}

.t99-daychip-off:hover {
    border-color: var(--t99-border-2);
    color: var(--t99-muted);
}

.t99-daychip {
    padding: 7px 14px;
    border-radius: var(--t99-pill);
    border: 1px solid var(--t99-border-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--t99-muted);
    white-space: nowrap;
    background: var(--t99-bg);
    transition: all 0.15s ease;
}

.t99-daychip:hover {
    border-color: var(--t99-red);
    color: var(--t99-red);
}

.t99-daychip-on {
    background: var(--t99-red);
    border-color: var(--t99-red);
    color: #fff;
}

.t99-daychip-on:hover {
    color: #fff;
}

.t99-gridwrap {
    flex: 1;
    overflow: auto;
    background: var(--t99-bg);
}

.t99-gridmin {
    min-width: 860px;
}

.t99-gridhead {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--t99-bg);
    border-bottom: 2px solid var(--t99-border);
}

.t99-corner {
    width: 64px;
    flex-shrink: 0;
    border-right: 1px solid var(--t99-border);
}

.t99-headcols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(var(--t99-cols), minmax(0, 1fr));
}

.t99-roomhead {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid var(--t99-border);
}

.t99-roomhead:last-child {
    border-right: none;
}

.t99-roomname {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--t99-font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--t99-ink);
    min-width: 0;
}

.t99-roomname-txt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    min-width: 0;
}

.t99-roomname .material-symbols-outlined {
    font-size: 18px;
    color: var(--t99-red);
    flex-shrink: 0;
}

.t99-roommeta {
    font-size: 11.5px;
    color: var(--t99-muted);
    margin-top: 2px;
}

.t99-gridbody {
    display: flex;
}

.t99-axis {
    width: 64px;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid var(--t99-border);
    background: var(--t99-bg);
}

.t99-hour {
    position: absolute;
    right: 8px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--t99-muted);
    font-variant-numeric: tabular-nums;
}

.t99-axis .t99-hour:first-child {
    transform: none;
}

.t99-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(var(--t99-cols), minmax(0, 1fr));
    user-select: none;
}

.t99-col {
    position: relative;
    border-right: 1px solid var(--t99-border);
    touch-action: pan-x pan-y;
    cursor: crosshair;
    background-image:
        repeating-linear-gradient(to bottom, var(--t99-border) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(to bottom, var(--t99-bg-alt) 0 1px, transparent 1px var(--t99-slot, 30px));
}

.t99-col:last-child {
    border-right: none;
}

.t99-col-off {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--t99-bg-alt);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

.t99-col-closed {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
    pointer-events: auto;
    cursor: not-allowed;
    z-index: 5;
}

.t99-col-closed span {
    font-size: 12px;
    font-weight: 600;
    color: var(--t99-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.t99-block {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 8px;
    padding: 5px 8px;
    overflow: hidden;
    z-index: 6;
    cursor: not-allowed;
}

.t99-block-label {
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.t99-block-time {
    font-size: 11px;
    opacity: 0.75;
    line-height: 1.3;
}

.t99-b-other {
    background: #ECEDEF;
    border-left: 3px solid #C3C6CB;
}

.t99-b-own {
    background: var(--t99-red-soft);
    border-left: 3px solid var(--t99-red);
    color: var(--t99-red-dark);
}

.t99-b-cart {
    background: var(--t99-red-faint);
    border: 2px dashed var(--t99-red);
    color: var(--t99-red-dark);
}

.t99-b-blocked {
    background: repeating-linear-gradient(45deg, #EDEDEF 0 8px, #E2E2E6 8px 16px);
    border-left: 3px solid #B4B7BC;
    color: var(--t99-muted);
}

.t99-selblock {
    position: absolute;
    left: 3px;
    right: 3px;
    z-index: 12;
    border-radius: 8px;
    background: rgba(227, 6, 19, 0.12);
    border: 2px solid var(--t99-red);
    box-shadow: var(--t99-shadow);
}

.t99-sel-inner {
    padding: 8px 10px;
    overflow: hidden;
    pointer-events: none;
}

.t99-sel-inner [data-sel-time] {
    font-weight: 700;
    font-size: 13px;
    color: var(--t99-red-dark);
    line-height: 1.3;
}

.t99-sel-inner [data-sel-meta] {
    font-size: 12px;
    color: var(--t99-red-dark);
    opacity: 0.8;
    line-height: 1.3;
}

.t99-handle {
    position: absolute;
    left: 0;
    right: 0;
    height: 16px;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ns-resize;
    z-index: 13;
}

.t99-handle-top { top: -8px; }
.t99-handle-bot { bottom: -8px; }

.t99-handle span {
    width: 38px;
    height: 6px;
    border-radius: var(--t99-pill);
    background: var(--t99-red);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.t99-nowline {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed rgba(227, 6, 19, 0.45);
    z-index: 8;
    pointer-events: none;
}

.t99-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 28px;
    border-top: 1px solid var(--t99-border);
    background: var(--t99-bg-alt);
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--t99-text);
}

.t99-leg {
    display: flex;
    align-items: center;
    gap: 7px;
}

.t99-legc {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    display: inline-block;
}

.t99-legc-free { background: var(--t99-bg); border: 1px solid var(--t99-border-2); }
.t99-legc-other { background: #ECEDEF; border-left: 3px solid #C3C6CB; }
.t99-legc-own { background: var(--t99-red-soft); border-left: 3px solid var(--t99-red); }
.t99-legc-blocked { background: repeating-linear-gradient(45deg, #EDEDEF 0 4px, #E2E2E6 4px 8px); }

.t99-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 390px;
    background: var(--t99-bg);
    border-left: 1px solid var(--t99-border);
    box-shadow: var(--t99-shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 40;
    animation: t99slide 0.22s ease;
}

.t99-panel[hidden] {
    display: none;
}

@keyframes t99slide {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.t99-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--t99-border);
    flex-shrink: 0;
}

.t99-panel-head h3 {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--t99-ink);
}

.t99-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.t99-sumcard {
    background: var(--t99-bg-alt);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.t99-sum-room {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--t99-font-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--t99-ink);
}

.t99-sum-room .material-symbols-outlined {
    font-size: 20px;
    color: var(--t99-red);
}

.t99-sum-date {
    color: var(--t99-muted);
    font-size: 13.5px;
}

.t99-sum-time {
    font-weight: 600;
    color: var(--t99-ink);
}

.t99-sum-time span {
    color: var(--t99-muted);
    font-weight: 400;
}

.t99-sum-price {
    font-size: 13px;
    color: var(--t99-muted);
}

.t99-errors {
    background: #FDECEA;
    border: 1px solid #F5C6C2;
    border-radius: var(--t99-radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t99-errors p {
    font-size: 13px;
    color: var(--t99-red-dark);
}

.t99-timerow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.t99-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t99-field > label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--t99-text);
}

.t99-select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--t99-border-2);
    border-radius: var(--t99-radius-sm);
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--t99-ink);
    background: var(--t99-bg);
}

.t99-select:focus {
    outline: none;
    border-color: var(--t99-red);
    box-shadow: 0 0 0 3px rgba(227,6,19,0.12);
}

.t99-dowrow {
    display: flex;
    gap: 6px;
}

.t99-dowchip {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: var(--t99-pill);
    border: 1px solid var(--t99-border-2);
    font-size: 12px;
    font-weight: 600;
    color: var(--t99-muted);
    transition: all 0.15s ease;
}

.t99-dowchip:hover {
    border-color: var(--t99-red);
    color: var(--t99-red);
}

.t99-dowchip-on {
    background: var(--t99-red);
    border-color: var(--t99-red);
    color: #fff;
}

.t99-dowchip-on:hover {
    color: #fff;
}

.t99-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.t99-radio input[type="radio"] {
    accent-color: var(--t99-red);
    width: 17px;
    height: 17px;
    margin: 0;
}

.t99-radio span {
    display: none;
}

.t99-numinput {
    width: 64px;
    height: 38px;
    border: 1px solid var(--t99-border-2);
    border-radius: var(--t99-radius-sm);
    padding: 0 8px;
    font-family: inherit;
    font-size: 14px;
}

.t99-dateinput {
    height: 38px;
    border: 1px solid var(--t99-border-2);
    border-radius: var(--t99-radius-sm);
    padding: 0 8px;
    font-family: inherit;
    font-size: 13px;
    color: var(--t99-text);
}

.t99-occlist {
    max-height: 176px;
    overflow-y: auto;
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.t99-occ {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--t99-ink);
}

.t99-occ-bad {
    color: var(--t99-red);
}

.t99-occ-bad span:first-child {
    text-decoration: line-through;
}

.t99-hint {
    font-size: 12px;
    color: var(--t99-muted);
    line-height: 1.5;
}

.t99-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    border-top: 1px solid var(--t99-border);
    flex-shrink: 0;
}

.t99-panel-top {
    border-top: none;
    border-bottom: 1px solid var(--t99-border);
    background: var(--t99-bg-alt);
    padding: 12px 22px;
}

.t99-total {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--t99-ink);
}

.t99-total-sub {
    font-size: 12px;
    color: var(--t99-muted);
}

.t99-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--t99-pill);
    background: var(--t99-red);
    color: #fff;
    font-family: var(--t99-font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.t99-btn:hover:not(:disabled) {
    background: var(--t99-red-dark);
    color: #fff;
    transform: translateY(-1px);
}

.t99-btn:disabled {
    background: var(--t99-border-2);
    color: var(--t99-muted);
    cursor: not-allowed;
}

.t99-btn .material-symbols-outlined {
    font-size: 18px;
}

.t99-btn-block {
    width: 100%;
}

.t99-btn-ghost {
    padding: 9px 18px;
    border-radius: var(--t99-pill);
    border: 1.5px solid var(--t99-ink);
    background: transparent;
    color: var(--t99-ink);
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.15s ease;
}

.t99-btn-ghost:hover {
    background: var(--t99-ink);
    color: #fff;
}

.t99-cart-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: var(--t99-pill);
    background: var(--t99-ink);
    color: #fff;
    font-family: var(--t99-font-body);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: var(--t99-shadow-lg);
    transition: background 0.15s ease, transform 0.15s ease;
}

.t99-cart-btn:hover {
    background: var(--t99-ink-2);
    transform: translateY(-1px);
}

.t99-cart-btn[hidden] {
    display: none;
}

.t99-cart-panel {
    position: fixed;
    bottom: 84px;
    right: 22px;
    z-index: 99990;
    width: 370px;
    max-width: calc(100vw - 32px);
    max-height: min(70vh, calc(100vh - 120px));
    background: var(--t99-bg);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-radius);
    box-shadow: var(--t99-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--t99-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--t99-text);
    box-sizing: border-box;
}

.t99-cart-panel *,
.t99-cart-btn * {
    box-sizing: border-box;
}

.t99-cart-panel .material-symbols-outlined,
.t99-cart-btn .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    display: inline-block;
}

.t99-cart-panel h3,
.t99-cart-panel p {
    margin: 0;
}

.t99-cart-panel button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

.t99-cart-panel[hidden] {
    display: none;
}

.t99-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--t99-border);
    flex-shrink: 0;
}

.t99-cart-head h3 {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 18px;
    color: var(--t99-ink);
}

.t99-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t99-cart-empty {
    text-align: center;
    color: var(--t99-muted);
    padding: 22px 0;
}

.t99-cart-empty span {
    font-size: 12.5px;
}

.t99-cart-item {
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.t99-cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.t99-cart-item-top p {
    font-weight: 700;
    font-size: 14px;
    color: var(--t99-ink);
}

.t99-cart-item-meta {
    font-size: 12.5px;
    color: var(--t99-muted);
}

.t99-cart-item-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t99-cart-price {
    font-weight: 700;
    color: var(--t99-red);
    font-size: 14px;
}

.t99-cart-hold {
    font-size: 12px;
    color: var(--t99-muted);
}

.t99-cart-hold b {
    color: var(--t99-red);
    font-variant-numeric: tabular-nums;
}

.t99-cart-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--t99-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t99-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--t99-ink);
}

.t99-cart-total span:last-child {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 20px;
}

.t99-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--t99-pill);
    font-size: 11px;
    font-weight: 600;
    background: var(--t99-bg-alt);
    color: var(--t99-muted);
    vertical-align: middle;
}

.t99-chip-ok {
    background: #E5F5EC;
    color: var(--t99-green);
}

.t99-chip-pending {
    background: var(--t99-red-faint);
    color: var(--t99-red-dark);
}

.t99-mine {
    flex: 1;
    overflow-y: auto;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 860px;
}

.t99-mine-centered {
    max-width: none;
    align-items: center;
    justify-content: center;
}

.t99-mine-sec {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t99-mine-sec h3 {
    font-family: var(--t99-font-head);
    font-weight: 900;
    font-size: 19px;
    letter-spacing: -0.01em;
    color: var(--t99-ink);
}

.t99-mine-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-radius);
    padding: 14px 18px;
    background: var(--t99-bg);
    box-shadow: var(--t99-shadow);
}

.t99-mine-main {
    flex: 1;
    min-width: 200px;
}

.t99-mine-room {
    font-weight: 700;
    font-size: 15px;
    color: var(--t99-ink);
}

.t99-mine-meta {
    font-size: 13px;
    color: var(--t99-muted);
}

.t99-mine-price {
    font-weight: 700;
    color: var(--t99-ink);
}

.t99-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    text-align: center;
    color: var(--t99-muted);
}

.t99-empty .material-symbols-outlined {
    font-size: 44px;
    color: var(--t99-border-2);
}

.t99-toasts {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
}

.t99-toast {
    padding: 12px 20px;
    border-radius: var(--t99-radius-sm);
    background: var(--t99-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--t99-shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    max-width: 90vw;
}

.t99-toast-in {
    opacity: 1;
    transform: translateY(0);
}

.t99-toast-warn {
    background: var(--t99-red);
}

.t99-gridwrap::-webkit-scrollbar,
.t99-daystrip::-webkit-scrollbar,
.t99-panel-body::-webkit-scrollbar,
.t99-cart-body::-webkit-scrollbar,
.t99-occlist::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.t99-gridwrap::-webkit-scrollbar-thumb,
.t99-daystrip::-webkit-scrollbar-thumb,
.t99-panel-body::-webkit-scrollbar-thumb,
.t99-cart-body::-webkit-scrollbar-thumb,
.t99-occlist::-webkit-scrollbar-thumb {
    background: var(--t99-border-2);
    border-radius: 4px;
}

@media (max-width: 1023px) {
    .t99-sidebar {
        display: none;
    }

    .t99-topbar {
        display: flex;
    }

    .t99-head {
        padding: 14px 16px 12px;
    }

    .t99-head-title h2 {
        font-size: 22px;
    }

    .t99-daystrip {
        padding: 10px 16px;
        justify-content: safe center;
    }

    .t99-legend {
        padding: 10px 16px;
        gap: 12px;
        font-size: 12px;
    }

    .t99-mine {
        padding: 16px;
    }

    .t99-panel {
        max-width: 100%;
    }

    .t99-cart-panel {
        right: 16px;
        bottom: 76px;
    }

    .t99-cart-btn {
        right: 16px;
        bottom: 18px;
    }

}

.t99-app .t99-iconbtn,
.t99-calpop .t99-iconbtn {
    background: var(--t99-bg) !important;
    color: var(--t99-muted) !important;
    border: 1px solid var(--t99-border-2) !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.t99-app .t99-iconbtn:hover:not(:disabled),
.t99-calpop .t99-iconbtn:hover:not(:disabled) {
    background: var(--t99-bg) !important;
    color: var(--t99-ink) !important;
    border-color: var(--t99-ink) !important;
}

.t99-app .t99-iconbtn:disabled,
.t99-calpop .t99-iconbtn:disabled {
    opacity: 0.35 !important;
}

.t99-app .t99-iconbtn-on,
.t99-app .t99-iconbtn-on:hover {
    background: var(--t99-ink) !important;
    color: #fff !important;
    border-color: var(--t99-ink) !important;
}

.t99-app .t99-iconbtn-sm {
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
}

.t99-app .t99-weeknav,
.t99-calpop .t99-weeknav {
    width: 32px !important;
    height: 32px !important;
}

.t99-app .t99-daychip {
    background: var(--t99-bg) !important;
    color: var(--t99-muted) !important;
    border: 1px solid var(--t99-border-2) !important;
    padding: 7px 14px !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.t99-app .t99-daychip:hover:not(:disabled) {
    background: var(--t99-bg) !important;
    border-color: var(--t99-red) !important;
    color: var(--t99-red) !important;
}

.t99-app .t99-daychip-today {
    box-shadow: inset 0 0 0 1.5px var(--t99-red) !important;
    color: var(--t99-red) !important;
}

.t99-app .t99-daychip-on,
.t99-app .t99-daychip-on:hover {
    background: var(--t99-red) !important;
    border-color: var(--t99-red) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.t99-app .t99-daychip-off,
.t99-app .t99-daychip-off:hover {
    opacity: 0.35 !important;
    background: var(--t99-bg) !important;
    color: var(--t99-muted) !important;
    border-color: var(--t99-border-2) !important;
}

.t99-calpop .t99-calpop-day {
    background: transparent !important;
    border: none !important;
    color: var(--t99-ink) !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.t99-calpop .t99-calpop-day:hover:not(:disabled) {
    background: var(--t99-red-soft) !important;
    color: var(--t99-red-dark) !important;
}

.t99-calpop .t99-calpop-day:disabled {
    background: transparent !important;
    color: var(--t99-border-2) !important;
}

.t99-calpop .t99-calpop-today {
    box-shadow: inset 0 0 0 1.5px var(--t99-red) !important;
}

.t99-calpop .t99-calpop-on,
.t99-calpop .t99-calpop-on:hover {
    background: var(--t99-red) !important;
    color: #fff !important;
}

.t99-app .t99-dowchip {
    background: var(--t99-bg) !important;
    border: 1px solid var(--t99-border-2) !important;
    color: var(--t99-muted) !important;
    padding: 0 6px !important;
    margin: 0 !important;
    min-width: 36px !important;
    min-height: 0 !important;
    height: 36px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.t99-app .t99-dowchip:hover {
    background: var(--t99-bg) !important;
    border-color: var(--t99-red) !important;
    color: var(--t99-red) !important;
}

.t99-app .t99-dowchip-on,
.t99-app .t99-dowchip-on:hover {
    background: var(--t99-red) !important;
    border-color: var(--t99-red) !important;
    color: #fff !important;
}

.t99-btn {
    background: var(--t99-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 13px 26px !important;
    font-family: var(--t99-font-body) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.t99-btn:hover:not(:disabled) {
    background: var(--t99-red-dark) !important;
    color: #fff !important;
}

.t99-btn:disabled {
    background: var(--t99-border-2) !important;
    color: var(--t99-muted) !important;
}

.t99-btn-ghost {
    background: transparent !important;
    color: var(--t99-ink) !important;
    border: 1.5px solid var(--t99-ink) !important;
    border-radius: 999px !important;
    padding: 9px 18px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.t99-btn-ghost:hover {
    background: var(--t99-ink) !important;
    color: #fff !important;
}

.t99-cart-btn {
    background: var(--t99-ink) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 13px 22px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.t99-cart-btn:hover {
    background: var(--t99-ink-2) !important;
    color: #fff !important;
}

.t99-app .t99-nav-link {
    background: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(255,255,255,0.6) !important;
}

.t99-app .t99-nav-link:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
}

.t99-app .t99-nav-link.t99-nav-on {
    background: rgba(227,6,19,0.14) !important;
    border-left-color: var(--t99-red) !important;
    color: #fff !important;
}

.t99-app .t99-topbar-nav .t99-nav-link {
    border-left: none !important;
    border-radius: 10px !important;
}

.t99-app .t99-topbar-nav .t99-nav-link.t99-nav-on {
    background: rgba(227,6,19,0.25) !important;
}

.t99-app .t99-roomfilter,
.t99-app .t99-select,
.t99-app .t99-numinput,
.t99-app .t99-dateinput {
    background-color: var(--t99-bg) !important;
    color: var(--t99-ink) !important;
    border: 1px solid var(--t99-border-2) !important;
    box-shadow: none !important;
}

.t99-app .t99-roomfilter {
    border-radius: 999px !important;
}

.t99-app .t99-roomfilter:focus,
.t99-app .t99-select:focus {
    border-color: var(--t99-red) !important;
    box-shadow: 0 0 0 3px rgba(227,6,19,0.12) !important;
}

.t99-daychip .t99-dc-dow,
.t99-daychip .t99-dc-num {
    display: none;
}

@media (max-width: 640px) {
    .t99-app .t99-daystrip {
        gap: 4px;
        padding: 8px 8px;
        justify-content: space-between;
        overflow: hidden;
    }

    .t99-app .t99-weeknav {
        width: 26px;
        height: 26px;
    }

    .t99-app .t99-weeknav .material-symbols-outlined {
        font-size: 17px;
    }

    .t99-app .t99-daychip {
        flex: 1 1 0;
        min-width: 0 !important;
        padding: 5px 0 4px !important;
        border-radius: 10px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.15;
    }

    .t99-app .t99-daychip .t99-dc-full {
        display: none;
    }

    .t99-app .t99-daychip .t99-dc-dow {
        display: block;
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        opacity: 0.85;
    }

    .t99-app .t99-daychip .t99-dc-num {
        display: block;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (pointer: coarse) {
    .t99-handle {
        height: 30px;
    }

    .t99-handle-top { top: -15px; }
    .t99-handle-bot { bottom: -15px; }

    .t99-handle span {
        width: 46px;
        height: 7px;
    }
}

.t99-app .t99-nav-login {
    margin-top: 6px;
    color: #fff !important;
}

.t99-app .t99-nav-login .material-symbols-outlined {
    color: var(--t99-red);
}

.t99-app .t99-nav-login:hover {
    background: rgba(227,6,19,0.14) !important;
}

.t99-app .t99-topbar-nav .t99-nav-login {
    margin-top: 0;
}
