body,
main {
    height: 100vh;
    margin: 0;
}

html,
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a {
    color: inherit;
}

.ods-shell {
    min-height: 100vh;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

#blazor-error-ui {
    display: none;
}

:root {
    --ods-bg: #f5f5f5;
    --ods-fg: #1a1a1a;
    --ods-muted: #666;
    --ods-outline: #888;
    --ods-ready-bg: #00bcd4;
    --ods-ready-fg: #111;
    --ods-gap: 9px;
}

.dark {
    --ods-bg: #121212;
    --ods-fg: #ececec;
    --ods-muted: #aaa;
    --ods-outline: #555;
    --ods-ready-bg: #00bcd4;
    --ods-ready-fg: #111;
}

.ods-page {
    box-sizing: border-box;
    padding: 1.5rem;
    min-height: 100vh;
    background: var(--ods-bg);
    color: var(--ods-fg);
}

.ods-muted {
    color: var(--ods-muted);
    padding: 2rem;
}

.ods-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    padding: 8px;
    background: #c62828;
    color: #fff;
    font-size: 1.25rem;
}

.ods-start-title {
    margin-top: 0;
}

.ods-start-intro {
    max-width: 920px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.ods-qr-wrap {
    margin: 1rem 0;
    background: #fff;
    padding: 12px;
    display: inline-block;
    border-radius: 8px;
}

.ods-qr {
    width: 260px;
    height: 260px;
    display: block;
}

.ods-token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 1rem;
}

.ods-token-box {
    border: 2px solid var(--ods-outline);
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.ods-btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid var(--ods-outline);
    background: var(--ods-bg);
    color: var(--ods-fg);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.ods-btn-primary {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}

.ods-display-root {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    padding-top: 28px;
    background: var(--ods-bg);
    color: var(--ods-fg);
}

.ods-board-wrap {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100vh - 28px);
    padding: 12px 16px 40px;
}

.rotate-90 {
    transform: rotate(90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.rotate-270 {
    transform: rotate(270deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.ods-board {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    height: calc(100vh - 80px);
}

.vertical .ods-board {
    flex-direction: row;
}

.ods-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ods-preparing {
    flex: 2;
}

.ods-ready {
    flex: 1;
}

.ods-heading {
    margin: 12px 0 10px 16px;
    font-weight: 300;
    font-size: 1.65rem;
}

.ods-rule {
    border: none;
    border-top: 2px solid var(--ods-fg);
    margin: 0 16px;
}

.ods-grid {
    display: grid;
    gap: var(--ods-gap);
    padding: 12px 8px;
    align-content: start;
    overflow: auto;
}

.ods-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ods-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ods-vsep {
    width: 2px;
    background: var(--ods-fg);
    align-self: stretch;
    margin: 28px 0;
    opacity: 0.85;
}

.ods-card {
    border-radius: 6px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ods-card-outline {
    border: 1px solid var(--ods-outline);
    background: var(--ods-bg);
}

.ods-card-ready {
    background: var(--ods-ready-bg);
}

.ods-card-ready-highlight {
    background: var(--ods-ready-bg);
}

.ods-ready-first {
    padding: 8px;
}

.ods-card-num {
    font-weight: 700;
    font-size: 2.2rem;
}

.ods-card-num.hero {
    font-size: 3.6rem;
}

.ods-card-num.large {
    font-size: 2.8rem;
}

.ods-card-num.xlarge {
    font-size: 3rem;
}

.ods-grid-ready {
    display: grid;
    gap: var(--ods-gap);
    padding: 8px;
}

.ods-grid-ready.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@keyframes ods-pulse-opacity {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.ods-pulse .ods-card-ready-highlight {
    animation: ods-pulse-opacity 1s ease-in-out 5;
}

.ods-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 0.7rem;
    color: var(--ods-muted);
}

.ods-settings-link {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 40;
    font-size: 0.85rem;
    opacity: 0.35;
    text-decoration: none;
}

.ods-settings-link:hover {
    opacity: 0.9;
}

.settings .ods-settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.settings h1 {
    margin: 0;
}

.ods-settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ods-outline);
}

.ods-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}

.ods-fieldset {
    border: 1px solid var(--ods-outline);
    border-radius: 8px;
    margin: 12px 0;
    padding: 12px;
}

.ods-fieldset label {
    display: block;
    margin: 6px 0;
}

.ods-hide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.ods-note {
    font-size: 0.9rem;
    color: var(--ods-muted);
}

.ods-msg {
    color: #1565c0;
}

.dark .ods-msg {
    color: #90caf9;
}

.ods-settings-actions {
    margin-top: 1rem;
}

.horizontal .ods-board {
    flex-direction: row;
}
