.connection {
    font-size: .75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px
}.connection:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green)
}.connection.offline:before {
    background: var(--amber)
}.mode-tag {
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 6px 9px;
    border-radius: 5px;
    font-size: .65rem;
    letter-spacing: .1em;
    white-space: nowrap
}.camera-frame {
    position: relative;
    background: #171b1e;
    border: 1px solid #3a4147;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1.22;
    max-height: 470px
}.camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}.camera-idle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(ellipse at center, #242a2d 0, #171b1e 70%)
}.camera-idle h2 {
    font-size: 1.15rem;
    margin-top: 27px
}.camera-idle p {
    color: var(--muted);
    font-size: .83rem
}.camera-label {
    position: absolute;
    bottom: 17px;
    left: 18px;
    letter-spacing: .12em;
    font-size: .6rem;
    color: #b5bdc2;
    background: #101113c7;
    padding: 5px 8px;
    border-radius: 4px
}.viewfinder {
    position: absolute;
    width: 67%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #d9f57890;
    border-radius: 14px;
    display: none
}.camera-frame.running .viewfinder {
    display: block
}.camera-frame.running .camera-idle {
    display: none
}.camera-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px
}.camera-controls #start-scan {
    flex: 1
}.scan-symbol {
    position: relative;
    width: 58px;
    height: 58px
}.scan-symbol i {
    position: absolute;
    width: 19px;
    height: 19px;
    border: 2px solid var(--accent)
}.scan-symbol i:nth-child(1) {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0
}.scan-symbol i:nth-child(2) {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0
}.scan-symbol i:nth-child(3) {
    bottom: 0;
    left: 0;
    border-top: 0;
    border-right: 0
}.scan-symbol i:nth-child(4) {
    bottom: 0;
    right: 0;
    border-top: 0;
    border-left: 0
}.scan-symbol span {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--accent)
}.scan-intro {
    padding: 18px 0
}.scan-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.12;
    font-weight: 550;
    letter-spacing: - .04em;
    margin: 22px 0
}.scan-intro ol {
    padding-left: 22px;
    color: #c9cdd1;
    line-height: 2.2;
    font-size: .9rem
}.scan-intro li::marker {
    color: var(--accent)
}.result {
    border: 1px solid var(--green);
    border-top: 5px solid var(--green);
    border-radius: var(--radius);
    padding: 22px;
    background: #15231c;
    scroll-margin-top: 12px
}.result h2 {
    color: var(--green);
    letter-spacing: .03em;
    font-weight: 800;
    font-size: 1.65rem
}.result.used, .result.invalid, .result.inactive {
    border-color: var(--red);
    background: #291b1c
}.result.used h2, .result.invalid h2, .result.inactive h2 {
    color: var(--red)
}.result.partial {
    border-color: var(--amber);
    background: #292317
}.result.partial h2 {
    color: var(--amber)
}.result.recorded {
    background: #20311f;
    border-color: var(--accent)
}.result.recorded h2 {
    color: var(--accent)
}.ticket-id {
    font-size: 1.1rem;
    font-weight: 650;
    overflow-wrap: anywhere
}.result .facts {
    border-block: 1px solid #ffffff25;
    padding: 16px 0;
    gap: 20px
}.result .actions {
    margin-top: 20px
}.result .actions button {
    flex: 1;
    font-size: .87rem
}.admit-actions {
    display: flex;
    gap: 12px
}.admit-actions button {
    flex: 1;
    font-size: 1.15rem;
    min-height: 60px
}.history-line {
    font-size: .84rem;
    color: var(--muted)
}.notice {
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 7px;
    padding: 14px 16px;
    background: #20241b;
    font-size: .9rem;
    overflow-wrap: anywhere
}.notice.error {
    border-color: var(--red);
    background: #2a1d1d
}.notice.warning {
    border-color: var(--amber);
    background: #292316
}.notice button {
    margin: 8px 0 0
}.preview {
    border-color: var(--accent)
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px
}
caption {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 12px 0
}
th, td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 15px 8px;
    font-size: .88rem
}
th {
    font-weight: 550
}
thead {
    color: var(--muted)
}
td:last-child, th:last-child {
    text-align: right
}.history-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px
}.history-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px
}.history-item strong {
    display: block;
    font-size: .95rem;
    overflow-wrap: anywhere
}.history-item .muted {
    display: block;
    font-size: .78rem;
    margin-top: 5px
}.history-count {
    text-align: right;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0
}.history-count small {
    display: block;
    font-size: .55rem;
    letter-spacing: .1em;
    color: var(--muted)
}.check-list {
    padding: 0;
    list-style: none;
    margin-top: 20px
}.check-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .84rem
}.check-list strong {
    font-size: .65rem;
    letter-spacing: .03em;
    padding-top: 3px;
    min-width: 40px;
    color: var(--amber)
}.check-list .check-pass strong {
    color: var(--green)
}.check-label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 0;
    line-height: 1.6
}.panel form {
    display: grid;
    gap: 9px;
    margin: 18px 0 24px
}.panel form label {
    margin: 0
}.panel form button {
    margin-top: 4px
}.secondary {
    margin-top: 10px
}
dialog {
    max-width: 480px;
    width: calc(100%- 32px);
    padding: 25px;
    border: 1px solid #5e646a;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text)
}
dialog::backdrop {
    background: #000b
}
dialog .actions {
    margin-top: 24px
}
dialog p {
    white-space: pre-line
}
summary {
    cursor: pointer;
    min-height: 44px;
    font-weight: 600
}
noscript {
    display: block;
    padding: 30px;
    color: var(--red)
}
