/* Local additions on top of the recorded Expression styles (expression.css).
   Only one card colour rule was recorded; the other six follow the same pattern. */
.c-dQcVWU-cWkrky-color-teal, .rt-color-teal { background: var(--colors-card-color-1); border-color: var(--colors-card-color-1); }
.c-dQcVWU-cWkrky-color-green, .rt-color-green { background: var(--colors-card-color-2); border-color: var(--colors-card-color-2); }
.c-dQcVWU-cWkrky-color-yellow, .rt-color-yellow { background: var(--colors-card-color-3); border-color: var(--colors-card-color-3); }
.c-dQcVWU-cWkrky-color-orange, .rt-color-orange { background: var(--colors-card-color-4); border-color: var(--colors-card-color-4); }
.c-dQcVWU-cWkrky-color-red, .rt-color-red { background: var(--colors-card-color-5); border-color: var(--colors-card-color-5); }
.c-dQcVWU-cWkrky-color-violet, .rt-color-violet { background: var(--colors-card-color-6); border-color: var(--colors-card-color-6); }
.c-dQcVWU-cWkrky-color-blue, .rt-color-blue { background: var(--colors-card-color-7); border-color: var(--colors-card-color-7); }

html, body { max-width: 100%; overflow-x: hidden; }

/* drag and drop */
.card.rt-dragging { opacity: 0.35; }
.rt-drag-active .drop-zone { pointer-events: auto; }
.rt-drop-target { outline: 2px dashed var(--colors-primary-color, #0D6EFD); outline-offset: -4px; }
.card.hovered > .card-content { transform: translateX(0.5rem); }

/* timer pause icon (only the play icon was recorded) */
.rt-pause { display: inline-block; width: 0.75rem; height: 0.9rem; border-left: 0.25rem solid currentColor; border-right: 0.25rem solid currentColor; box-sizing: border-box; }
.timer input[type="text"] { width: 3.5rem; font: inherit; text-align: center; border: 1px solid var(--colors-input-border); background: var(--colors-input-background); border-radius: 3px; padding: 0.2rem; }
.room-name input[type="text"] { min-width: 14rem; }

/* toast */
.rt-toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 4000; max-width: min(90vw, 28rem); padding: 0.75rem 1.25rem; border-radius: 4px; background: var(--colors-background-dark); color: #fff; font-family: var(--fonts-body); font-size: 0.875rem; line-height: 1.35; box-shadow: 0 2px 10px var(--shadows-box-shadow-color); }
.rt-toast[hidden] { display: none; }

/* small local dialogs, built with the recorded modal frame */
.modal.rt-dialog { width: min(92vw, 30rem); padding: 2rem; box-sizing: border-box; font-family: var(--fonts-body); }
.modal.rt-dialog .modal-body p { margin: 0 0 1rem; line-height: 1.4; }
.modal.rt-dialog .modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.modal.rt-dialog .modal-footer button, .modal.rt-dialog .modal-footer a { margin: 0; }
.rt-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.875rem; color: var(--colors-label-color); margin-bottom: 1rem; }
.rt-input { font: inherit; font-size: 1rem; color: var(--colors-input-color); background: var(--colors-input-background); border: 1px solid transparent; border-bottom-color: var(--colors-input-border); border-radius: 3px 3px 0 0; padding: 0.55rem 0.65rem; width: 100%; box-sizing: border-box; }
.rt-input:focus { outline: none; border-bottom-color: var(--colors-input-focus-border); }
.rt-input.rt-invalid { border-bottom-color: var(--colors-input-error-border); }
.rt-note { font-size: 0.875rem; color: var(--colors-label-color); }
.rt-danger { background-color: var(--colors-alert-color) !important; border-color: var(--colors-alert-color) !important; }
.rt-btn-link { text-decoration: none; display: inline-flex; align-items: center; }
.rt-from-expression { margin-top: 0.75rem; }
.rt-palette { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0; }
.rt-palette .card-color input { position: absolute; opacity: 0; }
.rt-palette .card-color span { display: block; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: rgba(0, 0, 0, 0.16) 0 0 4px inset; }
.rt-palette .card-color input:checked + span { border-color: var(--colors-text-color); }
.rt-palette .card-color input:focus-visible + span { outline: 2px solid var(--colors-primary-color); }
.rt-reorder-list { list-style: none; margin: 0; padding: 0; }
.rt-reorder { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--colors-divider-color); }
.rt-reorder span { flex: 1; }

/* emoji picker items sit in a normal dropdown */
#dropdown-portal .dropdown-item .c-fmVEXX { white-space: nowrap; }

/* action points */
.rt-ap { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0; border-bottom: 1px solid var(--colors-divider-color); font-size: 0.875rem; }
.rt-ap-check { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; line-height: 1.35; word-break: break-word; }
.rt-ap-check input { margin-top: 0.15rem; accent-color: var(--colors-primary-color); }
.rt-ap.done .rt-ap-check span { text-decoration: line-through; color: var(--colors-label-color); }
.rt-ap-meta { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; padding-left: 1.5rem; }
.rt-ap-meta select, .rt-ap-meta input[type="date"] { font: inherit; font-size: 0.8rem; border: 1px solid var(--colors-input-divider); background: var(--colors-background); border-radius: 3px; padding: 0.15rem 0.3rem; max-width: 10rem; }
.rt-ap-meta .c-esuXKx { width: 1.6rem; height: 1.6rem; }
.rt-ap-meta svg { width: 0.8rem; height: 0.8rem; }

/* participants */
.rt-offline { opacity: 0.55; }
.rt-ready { margin-left: 0.5rem; font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: 1rem; background: var(--colors-background-tertiary); color: var(--colors-label-color); }
.rt-ready.on { background: var(--colors-card-color-2); color: var(--colors-text-color); }
.rt-ready-toggle { margin-left: 0.5rem; font-size: 0.8rem; }

/* single column view */
.rt-single-nav { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 0.4rem; font-family: var(--fonts-body); font-size: 0.875rem; }

/* locked board: no private sections or editing */
.room.rt-locked .card { cursor: default; }

/* a board link that this browser doesn't have */
.rt-missing { flex: 1; max-width: 36rem; margin: 4rem auto; padding: 0 1.5rem; font-family: var(--fonts-body); text-align: center; line-height: 1.5; }
.rt-missing h2 { font-family: var(--fonts-display); font-size: 1.75rem; margin-bottom: 1rem; }
.rt-missing a { color: var(--colors-primary-color); }

.navbar div.logo img { height: 1.4rem; width: auto; display: block; }
@media screen and (min-width: 1024px) { .navbar div.logo img { height: 1.7rem; } }

button, input, textarea, select { font-family: inherit; }

/* Column hints are plain text, not display type, so the private section stays within reach on a tablet. */
.room .boards-container .board .board-cards .public .board-description .button.link,
.room .boards-container .board .board-cards .public .board-description textarea {
  font-family: 'Inter Variable', Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: rgb(95, 113, 133);
}
.room .boards-container .board .board-cards .public .board-description .button.link:hover { color: rgb(10, 27, 46); }

/* Fit the visible screen: iPad Safari counts the space under its toolbar in 100vh, which pushed the footer off the page. */
html, body, #app { height: 100vh; height: 100dvh; min-height: 0; }
#app > div > footer, #app .room footer { padding-bottom: max(0.5rem, env(safe-area-inset-bottom)); }

/* Smaller type overall, smaller again on tablets and phones. */
html { font-size: clamp(11px, calc(6px + 0.6vw), 16px); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font-family: inherit; }
#app .room-header .room-name .button.link, #app .room-header .room-name input[type="text"] { font-size: 1.375rem !important; }
[data-cy="sort-cards-toggle"], [data-cy="sort-menu"], .menu-item, .dropdown-item { font-family: 'Inter Variable', Inter, Arial, sans-serif !important; }

/* Private section: starts short, grows with its cards up to a cap, then scrolls inside itself. */
.room .boards-container .board .board-cards .private { height: auto; min-height: 170px !important; max-height: 46%; }
.room .boards-container .board .board-cards .private.minimized { height: 3.5rem; min-height: 3.5rem !important; max-height: none; }
.room .boards-container .board .board-cards .private.maximized { height: 70%; max-height: none; }
/* The card area takes what is left under the header (it used to be taller than the section, which clipped the last row). */
.room .boards-container .board .board-cards .private .cards-section { height: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; scroll-padding: 0.5rem; padding-bottom: 0.75rem;
  background:
    linear-gradient(#fff 30%, rgba(255,255,255,0)) 0 0 / 100% 1.25rem no-repeat local,
    linear-gradient(rgba(255,255,255,0), #fff 70%) 0 100% / 100% 1.25rem no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.14), rgba(0,0,0,0)) 0 0 / 100% 0.5rem no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.14), rgba(0,0,0,0)) 0 100% / 100% 0.5rem no-repeat scroll; }
.room .boards-container .board .board-cards .private .card { width: 9rem; }
.room .boards-container .board .board-cards .private .card .card-content { min-height: 5.5rem; }
.room .boards-container .board .board-cards .private .card.new-card { height: 6.5rem; min-height: 0; }
.room .boards-container .board .board-cards .private .card.new-card .card-content { min-height: 0; height: 100%; }

/* Fit to the window: every column shares the width, nothing scrolls sideways, type scales with the window. */
.room .columns { overflow-x: hidden; scroll-snap-type: none; min-height: 0; }
.room .columns .board:not(.new) { flex: 1 1 0; min-width: 0 !important; width: auto; padding: 0 !important; overflow: hidden; }
.room .columns .board.new { flex: 0 0 6rem; width: 6rem; min-width: 0; }
.room .columns .board.new h3 { width: 80%; font-size: 1.1rem; }
.room .boards-container .board .board-header { padding: 0.75em 1em; }
.room .boards-container .board .board-header .button.link, .room .boards-container .board .board-header input { font-size: 1.15rem; }
.room .boards-container .board .board-cards .private .card.new-card { width: 80%; max-width: 12rem; height: auto; aspect-ratio: 5 / 3; }
.room .boards-container .board .board-cards .public .cards-section { padding: 0.5rem; }
/* Phones: three or more columns cannot be read side by side, so swipe between them. */
@media (max-width: 640px) {
  .room .columns { overflow-x: auto; scroll-snap-type: x mandatory; }
  .room .columns .board:not(.new) { flex: 0 0 88%; }
}

/* Footer: identical to every other OSC page (see .osc-footer in site.css). Fluid (vw-based) sizes, not the app's scaling root, so it matches the other pages at every window size. */
#app > div > footer.osc-footer, #app .room footer.osc-footer, #app .reset-password-page footer.osc-footer { background: #0A1B2E; color: #9FB0C3; border-top: 0; width: 100%; padding: clamp(20px, 2.2vw, 28px) 0; padding-bottom: max(clamp(20px, 2.2vw, 28px), env(safe-area-inset-bottom)); font: 400 clamp(12px, 11px + .2vw, 14px)/1.6 'OSC Inter', Inter, -apple-system, system-ui, sans-serif; letter-spacing: normal; text-align: left; flex: 0 0 auto; box-sizing: border-box; }
footer.osc-footer .wrap { box-sizing: border-box; width: auto; max-width: none; margin: 0; padding: 0 clamp(20px, 6vw, 120px); }
footer.osc-footer p { margin: 0; font: inherit; color: inherit; }
#app footer.osc-footer a { color: inherit; text-decoration: none; margin: 0; padding: 0; display: inline; }
#app footer.osc-footer a:hover, #app footer.osc-footer a:focus { color: #fff; text-decoration: underline; }

/* Hide private: one click removes every private section, so the published cards get the whole column (for screen sharing). */
.menu-item .image.privacyOn { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.menu-item .image.privacyOff { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.9 10.9 0 0 1 12 19c-7 0-11-7-11-7a19.8 19.8 0 0 1 5.06-5.94M9.9 4.24A10.9 10.9 0 0 1 12 5c7 0 11 7 11 7a19.8 19.8 0 0 1-3.17 4.19M14.12 14.12A3 3 0 1 1 9.88 9.88'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.9 10.9 0 0 1 12 19c-7 0-11-7-11-7a19.8 19.8 0 0 1 5.06-5.94M9.9 4.24A10.9 10.9 0 0 1 12 5c7 0 11 7 11 7a19.8 19.8 0 0 1-3.17 4.19M14.12 14.12A3 3 0 1 1 9.88 9.88'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E"); }
