.oripa-lobby, .oripa-room {
 --oripa-paper: #fcfbf5;
 --oripa-ink: #142b2d;
 --oripa-muted: #526766;
 --oripa-line: #d9e4de;
 --oripa-primary: #146a65;
 --oripa-soft: #e1f4ed;
 color: var(--oripa-ink);
}
.oripa-lobby { max-width: 1120px; margin: auto; }
.oripa-room { max-width: 890px; margin: auto; }
.oripa-room-view .workspace > .heading-row { display: none; }
.oripa-lobby-view .workspace > .heading-row { max-width: 1120px; margin-left: auto; margin-right: auto; }
.oripa-toolbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 10px;
 margin-bottom: 14px;
 padding: 10px 13px;
 border: 1px solid var(--oripa-line);
 border-radius: 13px;
 background: var(--oripa-paper);
}
#oripa-room-count { font-weight: 700; font-size: .9rem; }
.oripa-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.oripa-filters label { display: flex; align-items: center; gap: 6px; color: var(--oripa-muted); font-size: .8rem; font-weight: 650; }
.oripa-filters select {
 height: 42px;
 padding: 6px 9px;
 border: 1px solid var(--oripa-line);
 border-radius: 8px;
 background: white;
 color: var(--oripa-ink);
 color-scheme: light;
 font: inherit;
}
.oripa-lobby-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.oripa-card {
 min-width: 0;
 overflow: hidden;
 border: 1px solid var(--oripa-line);
 border-radius: 17px;
 background: var(--oripa-paper);
 box-shadow: 0 11px 25px #081c251a;
}
.oripa-card-cover, .oripa-room-cover {
 --cover-dark: #0a2d36;
 --cover-light: #1c706a;
 --cover-glow: #82edb0;
 position: relative;
 isolation: isolate;
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
 align-items: end;
 gap: 8px;
 min-height: 180px;
 padding: 14px 17px;
 overflow: hidden;
 background: radial-gradient(ellipse at 82% 15%, var(--cover-light), transparent 61%), linear-gradient(140deg, #07151d, var(--cover-dark));
 color: #f5fffc;
}
.oripa-accent-violet { --cover-dark: #231e48; --cover-light: #50438d; --cover-glow: #c4b8ff; }
.oripa-accent-amber { --cover-dark: #3b271a; --cover-light: #965d32; --cover-glow: #ffd690; }
.oripa-card-cover::before, .oripa-room-cover::before {
 content: '';
 position: absolute;
 z-index: -1;
 inset: -25% -20% -40% 35%;
 background: repeating-linear-gradient(128deg, transparent 0 22px, #c5f5ec19 23px 24px, transparent 25px 47px);
 transform: rotate(-9deg);
 pointer-events: none;
}
.oripa-card-heading { min-width: 0; z-index: 1; align-self: center; }
.oripa-card-heading h1, .oripa-card-heading h2 { margin: 7px 0 0; line-height: 1.14; letter-spacing: -.035em; overflow-wrap: anywhere; }
.oripa-card-heading h2 { font-size: clamp(1.22rem, 2.1vw, 1.6rem); }
.oripa-card-heading h1 { font-size: clamp(1.65rem, 4vw, 2.6rem); }
.oripa-card-heading p { margin: 7px 0 0; color: #e1eeed; overflow-wrap: anywhere; white-space: pre-wrap; }
.oripa-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: #f7fff1; color: #153d38; font-size: .71rem; font-weight: 800; }
.oripa-status .dot { width: 6px; height: 6px; background: #2b966d; }
.oripa-upcoming { background: #fff0c3; color: #604417; }
.oripa-upcoming .dot { background: #a96b0d; }
.oripa-closed, .oripa-sold-out { background: #e8edf0; color: #48555a; }
.oripa-closed .dot, .oripa-sold-out .dot { background: #77858a; }
.oripa-cover-art, .oripa-cover-photo { display: grid; place-items: center; align-self: stretch; min-width: 0; min-height: 150px; }
.oripa-cover-photo img { display: block; width: 100%; height: 150px; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 7px 9px #0005); }
.oripa-packet {
 display: grid;
 place-items: center;
 align-content: center;
 gap: 4px;
 width: 91px;
 height: 132px;
 border: 1px solid var(--cover-glow);
 border-radius: 10px;
 background: linear-gradient(145deg, var(--cover-light), var(--cover-dark) 66%);
 box-shadow: inset 0 0 0 5px #e0fff41c, 0 8px 16px #0006, 8px 1px 0 -1px #f5fffa24;
 color: var(--cover-glow);
 transform: rotate(9deg);
}
.oripa-packet .icon { width: 26px; height: 26px; }
.oripa-packet strong { font-size: .87rem; letter-spacing: .13em; }
.oripa-packet small { font-size: .61rem; letter-spacing: .22em; }
.oripa-card-body { padding: 14px; }
.oripa-card-description { margin: 0 0 10px; color: var(--oripa-muted); font-size: .85rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.oripa-stock-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; color: var(--oripa-muted); font-size: .78rem; }
.oripa-stock-label strong { color: var(--oripa-ink); }
.oripa-stock progress { display: block; width: 100%; height: 8px; margin-top: 7px; border: 0; border-radius: 10px; appearance: none; accent-color: var(--oripa-primary); }
.oripa-stock progress::-webkit-progress-bar { background: #e1e8df; border-radius: 10px; }
.oripa-stock progress::-webkit-progress-value { background: linear-gradient(90deg, #197368, #5cb687); border-radius: 10px; }
.oripa-stock progress::-moz-progress-bar { background: #197368; border-radius: 10px; }
.oripa-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.oripa-price { font-size: 1.26rem; line-height: 1.25; white-space: nowrap; }
.oripa-unit, .oripa-schedule { color: var(--oripa-muted); font-size: .75rem; }
.oripa-card-heading .oripa-unit { color: #e1eeed; }
.oripa-action, .oripa-back {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-height: 43px;
 padding: 8px 12px;
 border: 1px solid transparent;
 border-radius: 8px;
 font: inherit;
 font-size: .82rem;
 font-weight: 750;
 cursor: pointer;
}
.oripa-action { background: var(--oripa-primary); color: white; }
.oripa-action:hover:not(:disabled) { background: #0d504c; }
.oripa-action:disabled { background: #dce7e2; color: #465c55; opacity: 1; cursor: default; }
.oripa-action .icon, .oripa-back .icon { width: 14px; height: 14px; }
.oripa-back { margin-bottom: 10px; border-color: var(--oripa-line); background: var(--oripa-paper); color: var(--oripa-primary); }
.oripa-back .icon { transform: rotate(180deg); }
.oripa-empty { grid-column: 1 / -1; padding: 28px 14px; text-align: center; border: 1px dashed var(--oripa-line); border-radius: 13px; background: var(--oripa-paper); }
.oripa-empty .icon { width: 24px; height: 24px; color: var(--oripa-primary); }
.oripa-empty h2 { margin: 8px 0 3px; font-size: 1.2rem; }
.oripa-empty p { margin: 0; color: var(--oripa-muted); }
.oripa-room-cover { min-height: 214px; padding: 20px; border-radius: 16px 16px 0 0; }
.oripa-room-cover .oripa-cover-photo img { height: 180px; }
.oripa-room-body { padding: 16px; border: 1px solid var(--oripa-line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--oripa-paper); }
.oripa-info-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.oripa-info-row details { padding: 0 10px; border: 1px solid var(--oripa-line); border-radius: 9px; background: white; }
.oripa-info-row summary { min-height: 43px; padding: 11px 0; color: var(--oripa-primary); cursor: pointer; font-weight: 750; font-size: .86rem; }
.oripa-info-row summary .icon { width: 15px; height: 15px; vertical-align: -.15em; }
.oripa-info-row p, .oripa-info-row ul { color: var(--oripa-muted); font-size: .84rem; margin: 0 0 9px; overflow-wrap: anywhere; white-space: pre-wrap; }
.oripa-info-row ul { padding-left: 18px; }
.oripa-room-progress { margin: 15px 0; }
.oripa-room-note { margin: 8px 0; color: var(--oripa-muted); font-size: .78rem; }
.oripa-picker-title, .oripa-picker-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.oripa-picker-title h2 { margin: 0; font-size: 1.12rem; }
.oripa-available-only { color: var(--oripa-muted); font-size: .78rem; }
.oripa-picker-tools { margin: 8px 0 11px; }
.oripa-view-switch { display: flex; gap: 4px; }
.oripa-view-switch button { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 5px 9px; border: 1px solid var(--oripa-line); border-radius: 7px; background: white; color: var(--oripa-muted); font: inherit; font-size: .8rem; cursor: pointer; }
.oripa-view-switch button[aria-pressed="true"] { border-color: #8fbdad; background: var(--oripa-soft); color: var(--oripa-primary); font-weight: 750; }
.oripa-view-switch .icon { width: 13px; height: 13px; }
.oripa-available-only { display: flex; align-items: center; gap: 6px; min-height: 42px; cursor: pointer; }
.oripa-available-only input { accent-color: var(--oripa-primary); }
.oripa-number-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.oripa-number { display: grid; place-items: center; min-height: 43px; padding: 3px; border: 1px solid #c7d7d1; border-radius: 8px; background: white; color: var(--oripa-ink); font: inherit; font-weight: 750; cursor: pointer; }
.oripa-number[aria-pressed="true"] { background: var(--oripa-primary); border-color: var(--oripa-primary); color: white; }
.oripa-number:disabled { opacity: 1; background: #ecefeb; color: #6a7570; cursor: default; }
.oripa-number-taken { text-decoration: line-through; }
.oripa-pack-view .oripa-number { min-height: 58px; border: 2px solid #a4c6b5; background: linear-gradient(150deg, #edf7ef, #fafcf7); box-shadow: inset 0 0 0 3px #cfe5d75e; }
.oripa-pack-view .oripa-number[aria-pressed="true"] { background: var(--oripa-primary); border-color: var(--oripa-primary); }
.oripa-pack-view .oripa-number:disabled { background: #e9ece8; border-color: #d2dad4; }
.oripa-no-numbers { grid-column: 1 / -1; color: var(--oripa-muted); }
.oripa-order-bar { position: sticky; z-index: 2; bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding: 10px; border: 1px solid var(--oripa-line); border-radius: 10px; background: #fffffff7; box-shadow: 0 5px 18px #163c3026; }
.oripa-order-bar strong, .oripa-order-bar span { display: block; }
.oripa-order-bar strong { font-size: .86rem; }
.oripa-order-bar span { color: var(--oripa-muted); font-size: .74rem; }
@media (max-width: 640px) {
 .oripa-lobby-grid { grid-template-columns: minmax(0, 1fr); }
 .oripa-card-cover, .oripa-room-cover { padding: 12px; }
 .oripa-room-cover { min-height: 186px; }
 .oripa-room-cover .oripa-cover-photo img { height: 145px; }
 .oripa-room-body { padding: 10px; }
 .oripa-number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
 .oripa-filters select { max-width: 130px; }
 .oripa-card-footer .oripa-action { padding: 7px 8px; }
 .oripa-order-bar .oripa-action { width: 100%; }
}

.oripa-cover-photo {
 position: relative;
 padding: 0;
 border: 1px solid transparent;
 border-radius: 10px;
 background: transparent;
 color: white;
 cursor: zoom-in;
}
.oripa-cover-photo:hover, .oripa-cover-photo:focus-visible { border-color: var(--cover-glow); }
.oripa-photo-hint {
 position: absolute;
 bottom: 6px;
 right: 6px;
 display: inline-flex;
 align-items: center;
 gap: 5px;
 padding: 5px 8px;
 border-radius: 7px;
 background: #06141de8;
 color: #fff;
 font-size: .72rem;
 font-weight: 750;
}
.oripa-photo-hint .icon { width: 13px; height: 13px; }
.oripa-room-cover:has(.oripa-cover-photo) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oripa-room-cover .oripa-cover-photo img { height: clamp(235px, 28vw, 325px); }
.oripa-photo-modal { width: min(960px, calc(100vw - 24px)); }
.oripa-photo-stage { height: min(68dvh, 710px); overflow: auto; background: #101619; overscroll-behavior: contain; }
.oripa-photo-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.oripa-photo-stage.is-zoomed img { height: auto; max-width: none; max-height: none; margin: 0 auto; }
@media (max-width: 640px) {
 .oripa-room-cover:has(.oripa-cover-photo) { grid-template-columns: minmax(0, 1fr); }
 .oripa-room-cover .oripa-cover-photo img { height: clamp(215px, 66vw, 315px); }
 .oripa-photo-stage { height: min(65dvh, 640px); }
}
