@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #101311;
  --surface: #151916;
  --text: #e8ede6;
  --muted: #8c978e;
  --border: #364038;
  --green: #b2f58a;
  --red: #ff8383;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.6; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, #a9bf9e04 3px, #a9bf9e04 4px); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1080px, calc(100% - 80px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 65px; border-bottom: 1px solid var(--border); }
.brand { font-weight: 600; font-size: 14px; }
.brand .prompt { margin-right: 10px; }
.prompt { color: var(--green); }
.muted { color: var(--muted); }
.session { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); }
.dot { width: 5px; height: 5px; background: var(--green); }
.identity { padding: 63px 0 5px; }
.eyebrow { margin: 0 0 27px; font-size: 11px; }
h1 { margin: 0; font-weight: 600; }
.ascii-title { color: var(--green); font-size: 15px; font-weight: 400; line-height: 1.2; margin: 0; font-family: 'Courier New', monospace; white-space: pre; text-shadow: 0 0 24px #b2f58a12; }
.mobile-title { display: none; }
.identity-bottom { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.identity-bottom p { color: #aab4ab; margin: 0; font-size: 12px; }
.terminal-tag { font-size: 10px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 10px; }
h2 { font-size: 11px; font-weight: 500; margin: 0; }
h2 .prompt { margin-right: 8px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service { --accent: #c5a7ee; display: block; position: relative; border: 1px solid var(--border); background: var(--surface); padding: 21px 23px 0; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; animation: arrive 450ms ease both; }
.service.qbit { --accent: #8ecfef; animation-delay: 65ms; }
.service.files { --accent: #ebce8b; animation-delay: 130ms; }
.service.jellyseerr { --accent: #9c83f7; animation-delay: 195ms; }
.service.portainer { --accent: #13bef9; animation-delay: 260ms; }
.service.nginx { --accent: #009639; animation-delay: 325ms; }
.service.adguard { --accent: #68bc71; animation-delay: 390ms; }
.service:hover { border-color: var(--accent); background: #1b211c; transform: translateY(-3px); }
.service[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
.service[aria-disabled='true']:hover { border-color: var(--border); background: var(--surface); transform: none; }
.service:focus-visible, button:focus-visible, .brand:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.external { font-size: 17px; line-height: 1; }
.service-art { display: flex; align-items: center; justify-content: center; height: 156px; margin: 9px 0 14px; }
.service-art img { display: block; width: min(100%, 100px); max-height: 100%; height: auto; object-fit: contain; }
.service-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-name h3 { margin: 0; font-size: 19px; font-weight: 500; }
.service-name > span { color: var(--accent); font-size: 20px; }
.service-description { color: var(--muted); font-size: 11px; margin: 8px 0 23px; }
.service-address { margin: 0 -23px; padding: 13px 23px; border-top: 1px solid var(--border); color: #aab4ab; font-size: 10px; overflow-wrap: anywhere; }
.network { margin-top: 37px; }
.vpn-panel { --status: var(--muted); display: flex; align-items: center; gap: 21px; min-height: 100px; padding: 22px 25px; border: 1px solid var(--status); background: #141815; transition: border-color 200ms ease; }
.vpn-panel[data-state='connected'] { --status: var(--green); }
.vpn-panel[data-state='disconnected'] { --status: var(--red); }
.vpn-indicator { flex-shrink: 0; color: var(--status); display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 400; }
.status-dot { display: inline-block; width: 9px; height: 9px; background: var(--status); }
.vpn-panel[data-state='checking'] .status-dot { animation: blink 1s steps(2, start) infinite; }
.vpn-copy { flex: 1; min-width: 0; }
.vpn-copy h3 { color: var(--status); font-size: 13px; font-weight: 600; margin: 0 0 5px; }
.vpn-copy p { color: var(--muted); font-size: 11px; margin: 0; }
#vpn-retry { flex-shrink: 0; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text); font-size: 25px; cursor: pointer; }
#vpn-retry:hover:not(:disabled) { color: var(--green); border-color: var(--green); }
#vpn-retry:disabled { opacity: .4; cursor: wait; }
.network-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 10px; color: var(--muted); }
#vpn-checked { font-size: 9px; }
footer { margin-top: 65px; padding: 22px 0 25px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 9px; }
footer .prompt { margin-right: 8px; }
.cursor { color: var(--green); animation: blink 1.2s steps(2, start) infinite; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript { color: var(--red); font-size: 12px; }
@keyframes blink { to { visibility: hidden; } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .identity { padding-top: 43px; } }
@media (max-width: 1000px) { .ascii-title { font-size: 12px; } .service { padding-right: 17px; padding-left: 17px; } .service-address { margin-right: -17px; margin-left: -17px; padding-right: 17px; padding-left: 17px; } }
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .topbar { height: 68px; }
  .session { font-size: 8px; }
  .brand { font-size: 12px; }
  .identity { padding: 40px 0 34px; }
  .ascii-title { font-size: 8px; }
  .service-grid { grid-template-columns: 1fr; gap: 15px; }
  .service { padding: 19px 22px 0 145px; min-height: 188px; }
  .service-art { position: absolute; left: 14px; top: 22px; width: 113px; height: 115px; margin: 0; }
  .service-art img { width: min(100%, 88px); max-height: 88px; }
  .service-name { margin-top: 18px; }
  .service-name h3 { font-size: 18px; }
  .service-description { margin-bottom: 18px; }
  .service-address { margin: 0 -22px 0 -145px; padding: 11px 22px; }
  .network { margin-top: 30px; }
  .vpn-panel { gap: 13px; padding: 19px 15px; }
  .vpn-copy h3 { font-size: 12px; }
  .vpn-indicator { gap: 5px; font-size: 22px; }
  .vpn-copy p { font-size: 10px; }
  footer { margin-top: 38px; }
}
@media (max-width: 520px) {
  .ascii-title { display: none; }
  .mobile-title { display: block; font-size: 36px; line-height: 1.15; color: var(--green); font-weight: 700; }
  .identity-bottom { margin-top: 17px; }
  .identity-bottom p { font-size: 10px; }
  .terminal-tag { font-size: 8px; }
  .eyebrow { font-size: 9px; margin-bottom: 20px; }
  .footer-end { display: none; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  .session { font-size: 7px; gap: 5px; }
  .mobile-title { font-size: 30px; }
  .service { padding-left: 120px; padding-right: 14px; }
  .service-art { left: 5px; width: 104px; }
  .service-name h3 { font-size: 16px; }
  .service-address { margin-left: -120px; margin-right: -14px; }
  .vpn-indicator { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }