:root { color-scheme: light; font: 16px/1.55 "Segoe UI", system-ui, sans-serif; color: #172f3d; background: #eff4f5; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(44rem, calc(100% - 2.5rem)); margin: clamp(2rem, 9vw, 6rem) auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.15rem, 6vw, 3.15rem); line-height: 1.08; letter-spacing: -.045em; margin-block: .65rem .85rem; }
h2 { font-size: 1.25rem; }
header p, footer { color: #48606e; }
.product { display: flex; align-items: center; gap: .55rem; color: #126b55; font-weight: 700; }
.product span { width: .7rem; height: .7rem; border: .2rem solid #16826a; border-radius: .25rem; transform: rotate(15deg); }
section { padding: clamp(1.1rem, 4vw, 1.9rem); margin-top: 2rem; background: #fff; border: 1px solid #d4e0e5; border-radius: 1rem; }
ol { padding-left: 1.45rem; margin-block: .8rem 1.25rem; }
li { padding-left: .3rem; margin-bottom: .55rem; }
li::marker { color: #18705c; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.bookmark, button { font: 650 1rem/1.3 system-ui, sans-serif; border: 1px solid #c8d9de; border-radius: .5rem; padding: .65rem .85rem; text-decoration: none; }
.bookmark { background: #0a614e; color: #fff; border-color: #0a614e; cursor: grab; }
.bookmark[aria-disabled] { opacity: .6; }
button { background: #fff; color: #183947; cursor: pointer; }
button:hover:not(:disabled) { background: #edf5f2; }
:focus-visible { outline: 3px solid #36a78c; outline-offset: 3px; }
#setup-status:not(:empty) { color: #294d58; margin-top: .65rem; }
footer { font-size: .9rem; margin-top: 1.05rem; }

section p { margin-top: .45rem; }
section .actions { margin-top: .85rem; }
kbd { font: .85rem "Segoe UI", system-ui, sans-serif; padding: .08rem .25rem; border: 1px solid #c8d9de; border-radius: .2rem; white-space: nowrap; }
.open-kliq { display: inline-block; margin-top: .7rem; color: #09604b; font-weight: 650; }

.alerts-page { max-width: 38rem; }
.primary { background: #0a614e; color: #fff; border-color: #0a614e; }
.primary:hover:not(:disabled) { background: #084e40; }
.alerts-page .actions { margin-top: 1rem; }
.queue-overview, .alert-feed { list-style: none; margin: 0; padding: 0; }
.queue-overview { display: grid; gap: .35rem; margin-bottom: 1.25rem; }
.queue-overview li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem .6rem; margin: 0; border-radius: .4rem; background: #ecf5f2; }
.queue-overview strong { color: #126b55; font-variant-numeric: tabular-nums; }
.alert-feed li { display: grid; gap: .15rem; margin: 0; padding: .6rem 0; border-bottom: 1px solid #d4e0e5; }
.alert-feed time, .alert-feed span { color: #48606e; font-size: .85rem; }

.floating-alerts { min-height: 100vh; padding: 12px; color: #e9f6f4; background: #0d222a; font-size: .875rem; }
.floating-alerts header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.floating-alerts h1 { margin: 0; font-size: 1.12rem; line-height: 1.15; letter-spacing: -.025em; }
#float-status { border-radius: 999px; padding: .15rem .5rem; font-size: .72rem; font-weight: 650; background: #20424a; color: #b7e5de; }
#float-status[data-attention="true"] { background: #65452a; color: #ffe1ae; }
#float-idle { margin: 0; padding: .85rem .7rem; border: 1px solid #305058; border-radius: .65rem; color: #c5d8db; }
#float-open { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; margin: 0; padding: .65rem .72rem; border-color: #3d806e; border-radius: .65rem; text-align: left; color: #f3fffa; background: #194439; }
#float-open:hover { background: #24574a; }
#float-open strong { display: block; font-size: .96rem; }
#float-open small { display: block; margin-top: .2rem; color: #b7e6d7; font-size: .73rem; }
#float-count { min-width: 2rem; padding: .18rem .35rem; border-radius: .38rem; text-align: center; background: #96e7c9; color: #0d3329; font-variant-numeric: tabular-nums; }
#float-queue-fallback { display: inline-block; margin-top: .4rem; color: #b7e6d7; }
.floating-alerts [hidden] { display: none !important; }

#manual-copy { display: block; margin-top: .5rem; }
#manual-copy[hidden] { display: none; }
#bookmark-url { display: block; width: 100%; margin-top: .25rem; font: .8rem monospace; }

.alerts-page { width: min(52rem, calc(100% - 2rem)); max-width: 52rem; }
.alerts-page > header .product { margin-bottom: .9rem; }
.alerts-page h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.alerts-page .alerts-card { border-radius: 1.2rem; box-shadow: 0 16px 40px #1738410c; }
.alerts-page .queue-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.alerts-page .queue-overview li { align-items: start; flex-direction: column-reverse; min-height: 6rem; padding: .7rem; border: 1px solid #d8e9e4; border-radius: .7rem; }
.alerts-page .queue-overview li[data-waiting="true"] { background: #ddf4eb; border-color: #a4dac8; }
.alerts-page .queue-overview li strong { font-size: 1.6rem; line-height: 1; }
.alerts-page .queue-overview li small { display: block; font-size: .75rem; color: #42615a; }
.alerts-page .alert-feed li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.alerts-page .alert-feed li span, .alerts-page .alert-feed .open-alert { grid-column: 1; }
.alerts-page .alert-feed li time { grid-column: 2; grid-row: 1; }
.alerts-page .alert-feed .open-alert { justify-self: start; margin-top: .2rem; font-size: .85rem; padding: .35rem .6rem; }
@media (max-width: 540px) {
  .alerts-page .queue-overview { grid-template-columns: 1fr; }
  .alerts-page .queue-overview li { min-height: auto; flex-direction: row; align-items: center; }
}
.floating-alerts { padding: 11px 15px; background: #0d2528; }
.floating-alerts header { margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid #28484a; }
.floating-alerts h1 { font-size: 1.12rem; font-weight: 750; letter-spacing: -.035em; }
#float-status { font-size: .69rem; background: #173e3e; }
#float-idle { background: #132f32; border-color: #2d4f50; font-weight: 600; }
#float-open { border-color: #529d82; background: #164e40; }
#float-open:hover { background: #236653; }
#float-check { margin-top: .42rem; font-size: .69rem; color: #9cbbb7; font-variant-numeric: tabular-nums; }
