:root {
    color-scheme: light;
    --ink: #152925;
    --muted: #4c625c;
    --line: #d8e5df;
    --paper: #f1f6f3;
    --accent: #06734e;
    --lime: #dbfa96;
    font: 100%/1.55 "Segoe UI", Tahoma, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #0a8c67; outline-offset: 4px; }
section[id], details[id] { scroll-margin-top: 6rem; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; margin: 1.65rem 0 .65rem; }
.topbar {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; padding: .85rem max(4vw, calc((100vw - 76rem) / 2));
    background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.product, .header-actions { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.product { color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 650; }
.product span { border-left: 1px solid var(--line); padding-left: 1rem; }
.product img { display: block; object-fit: contain; }
.amin-logo { padding: .55rem .8rem; background: #102c26; border-radius: .65rem; }
.amin-logo img { display: block; object-fit: contain; }
.dropdown { position: relative; min-width: 0; }
.dropdown summary, .settings summary { list-style: none; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
.dropdown summary { padding: .55rem .75rem; border-radius: .65rem; background: var(--paper); overflow-wrap: anywhere; }
.dropdown summary::after, .settings summary::after { content: "⌄"; margin-left: .65rem; }
.dropdown[open] summary::after, .settings[open] summary::after { content: "⌃"; }
.dropdown-panel {
    position: absolute; right: 0; top: calc(100% + .5rem); width: 13rem; background: #fff;
    border: 1px solid var(--line); border-radius: .85rem; padding: .45rem;
    box-shadow: 0 1rem 2.5rem #12362a26; animation: enter .2s ease-out both;
}
.dropdown-panel a, .dropdown-panel button {
    display: block; text-align: left; width: 100%; padding: .55rem .65rem;
    border: 0; text-decoration: none; border-radius: .4rem; color: var(--ink); background: #fff;
}
.dropdown-panel a:hover, .dropdown-panel button:hover { background: var(--paper); }
main { width: min(92%, 76rem); margin: clamp(1.25rem, 4vw, 3.25rem) auto; flex: 1; }
.entry { display: grid; align-content: center; grid-template-columns: 1.45fr 1fr; gap: 1.25rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.hero {
    position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center;
    min-height: 19rem; padding: clamp(1.65rem, 5vw, 4.25rem); border-radius: 1.4rem;
    color: #fff; background: radial-gradient(ellipse at 92% 40%, #19644e, #10382e 43%, #112821 80%);
    box-shadow: 0 .9rem 2rem #153a2618;
}
.hero-content { max-width: 37rem; animation: enter .5s ease-out both; }
.eyebrow { color: var(--lime); font: 650 .875rem/1.5 ui-monospace, Consolas, monospace; letter-spacing: .13em; }
.hero h1 { font-size: clamp(2.35rem, 5.8vw, 4.75rem); letter-spacing: -.065em; line-height: .99; margin: .6rem 0 1rem; text-wrap: balance; }
.hero p:not(.eyebrow) { max-width: 31rem; color: #ebf7ed; }
.hero-link { display: inline-block; color: #18372b; background: var(--lime); font-weight: 700; margin-top: 1.35rem; padding: .6rem .9rem; border-radius: .6rem; text-decoration: none; }
.signal {
    position: absolute; z-index: -1; pointer-events: none; top: 50%; right: 12%;
    width: 19rem; aspect-ratio: 1; translate: 50% -50%; rotate: -23deg; opacity: .68;
}
.signal i { position: absolute; inset: 0; border: 1px solid #d5ff9675; border-radius: 50%; }
.signal i:nth-child(2) { inset: 13%; }
.signal i:nth-child(3) { inset: 26%; }
.signal i:nth-child(4) { inset: 39%; }
.signal i:first-child::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--lime); animation: orbit 12s linear infinite; }
.signal b { position: absolute; inset: 47%; background: var(--lime); border-radius: 50%; box-shadow: 0 0 2rem var(--lime); }
.entry .signal { right: 2%; opacity: .38; }
.surface { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 1.15rem; box-shadow: 0 .5rem 1.5rem #153b2510; }
.auth { display: grid; align-content: center; gap: 1rem; padding: clamp(1.35rem, 4vw, 3rem); }
.auth-form, label { display: grid; gap: .45rem; }
.auth-form { gap: .85rem; }
label { font-size: .875rem; font-weight: 650; }
input, button { border: 1px solid #a5bcb2; border-radius: .55rem; padding: .55rem .75rem; min-height: 2.6rem; }
input { width: 100%; min-width: 0; background: white; color: var(--ink); }
button { background: #f6faf7; color: var(--ink); font-weight: 650; transition: background .18s; }
button:hover { background: #e4f3e9; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover { background: #055d40; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.metric { display: grid; gap: .35rem; padding: 1.15rem 1.4rem; }
.metric span, .muted, time { color: var(--muted); }
.metric strong { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1; }
.section { padding: clamp(1rem, 3vw, 1.7rem); }
.section-heading, .form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; }
.section-heading input { max-width: 19rem; }
.section .muted, .settings[open] form { margin-top: .9rem; }
.form-row { align-items: end; justify-content: flex-start; margin: .9rem 0; }
.form-row label { flex: 1 1 12rem; max-width: 21rem; }
.modem-grid { padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; list-style: none; }
.modem-grid:empty { margin: 0; }
.modem-card {
    display: grid; align-content: start; justify-items: start; gap: .4rem; height: 100%; padding: 1rem;
    background: #f7faf8; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
    border: 1px solid var(--line); border-radius: .8rem; transition: translate .2s, border-color .2s, box-shadow .2s;
}
.modem-card:hover, .modem-card[aria-current] { border-color: var(--accent); box-shadow: 0 .3rem .9rem #07563819; }
.modem-card:hover { translate: 0 -2px; }
.pill { padding: .18rem .55rem; border-radius: 2rem; background: #f0ece0; color: #624b23; font-size: .8rem; font-weight: 700; }
.pill.reported { background: #d8f2e1; color: #15533a; }
time { font-size: .875rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; text-align: left; }
td, th { padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
th { background: #ebf3ee; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td form { display: flex; gap: .45rem; align-items: center; }
td input { min-width: 9rem; }
td button { white-space: nowrap; }
.error { background: #ffeaea; color: #792022; border-radius: .65rem; padding: .75rem 1rem; }
button[value="revoke"] { margin-top: 1rem; background: #fff2f1; color: #8e2525; border-color: #e5b3ad; }
.site-footer {
    width: min(92%, 76rem); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap;
    align-items: center; gap: .75rem; padding: 1rem 0 1.4rem; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .875rem;
}
.site-footer span { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 48rem) {
    .entry { grid-template-columns: 1fr; }
    .hero { min-height: 15rem; }
    .signal { opacity: .35; }
    .topbar { position: relative; }
}
@media (max-width: 33rem) {
    .product span { display: none; }
    .metrics { grid-template-columns: 1fr; gap: .55rem; }
    .metric { grid-template-columns: 1fr auto; align-items: center; }
    .amin-logo img { width: 76px; height: 24px; }
    .header-actions { gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
