:root {
  color-scheme: light;
  --ink: #25272a;
  --muted: #777b80;
  --line: #e4e5e6;
  --paper: #f6f6f6;
  --white: #fff;
  --forest: #292b2e;
  --forest-light: #414448;
  --lime: #f18b21;
  --orange: #f18b21;
  --red: #b85b4d;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.dashboard { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.sidebar { position: fixed; z-index: 2; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 248px; padding: 29px 19px 18px; background: var(--forest); color: #f7f7f7; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 9px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 150px; max-height: 46px; object-fit: contain; object-position: left center; }
.brand-name { max-width: 175px; font: 700 12px/1.35 Manrope, sans-serif; letter-spacing: 0; }
.brand-name small { display: block; margin-top: 5px; color: #b3b5b7; font: 600 8px 'DM Sans', sans-serif; letter-spacing: 1.2px; }
.nav-label { margin: 42px 10px 13px; color: #a3a5a7; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 43px; align-items: center; gap: 13px; padding: 0 12px; border-radius: 7px; color: #d1d2d3; font-size: 13px; text-decoration: none; transition: background .18s, color .18s; }
.nav-link > span { width: 17px; color: #b3b5b7; font-size: 17px; text-align: center; }
.nav-link:hover, .nav-link.active { background: #414448; color: white; }
.nav-link.active { box-shadow: inset 2px 0 var(--lime); }
.nav-link.active > span { color: var(--lime); }
.sidebar-bottom { margin-top: auto; }
.network-card { display: flex; gap: 11px; align-items: center; margin-bottom: 18px; padding: 13px 10px; border: 1px solid #55575a; border-radius: 8px; background: #343639; }
.network-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; background: #484a4d; color: var(--lime); font-size: 21px; }
.network-card strong, .sidebar-foot strong { display: block; font-size: 11px; font-weight: 600; }
.network-card small, .sidebar-foot small { display: block; margin-top: 4px; color: #b8babc; font-size: 10px; }
.network-card small i, .today i, .live-label i, .stat-note i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 15px 6px 0; border-top: 1px solid #4a4c4f; color: inherit; text-decoration: none; }
.sidebar-foot:hover strong { color: var(--lime); }
.sidebar-logout { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 8px 8px 46px; border: 0; border-radius: 5px; background: transparent; color: #c5c6c8; font-size: 10px; text-align: left; }
.sidebar-logout:hover { background: #414448; color: white; }
.sidebar-logout > span { color: var(--lime); font-size: 14px; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #f18b21; color: #292b2e; font: 700 12px Manrope, sans-serif; }
.sidebar-foot .more { margin-left: auto; color: #c5c6c8; letter-spacing: 2px; }
.workspace { max-width: 1580px; min-height: 100vh; margin-left: 248px; padding: 0 54px; }
.topline { display: flex; min-height: 57px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.topline b { padding: 0 8px; color: #bfc0c2; font-weight: 400; }
.today { color: #64676b; }
.today i { width: 7px; height: 7px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 29px 0 23px; }
.eyebrow { margin: 0 0 8px; color: #7d8084; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin: 0; font: 700 29px/1.2 Manrope, sans-serif; letter-spacing: 0; }
.intro { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-light); }
.button-primary > span { color: var(--lime); font-size: 17px; font-weight: 400; }
.button-quiet { border-color: #dedfe0; background: white; color: #515357; }
.button-danger { border-color: #efd8d2; background: #fff8f5; color: var(--red); }
.hero { position: relative; display: flex; min-height: 224px; align-items: center; overflow: hidden; padding: 31px 37px; border-radius: 9px; background: var(--forest); color: white; animation: rise-in .45s ease both; }
.hero-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, #222326ed 0%, #292a2bd9 43%, #292a2b55 100%); content: ''; }
.hero::before { z-index: 1; position: absolute; top: -130px; right: 12%; width: 450px; height: 450px; border: 1px solid #ffffff38; border-radius: 50%; content: ''; }
.hero-copy { position: relative; z-index: 1; }
.live-label { color: #ececed; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }
.live-label i { width: 7px; height: 7px; margin-right: 7px; }
.hero h2 { margin: 13px 0 7px; font: 600 29px/1.13 Manrope, sans-serif; letter-spacing: 0; }
.hero p { margin: 0; color: #d5d6d7; font-size: 12px; }
.hero-art { z-index: 1; position: absolute; inset: 0 10% 0 auto; width: 300px; display: grid; place-items: center; color: var(--lime); }
.orbit { position: absolute; width: 168px; height: 168px; border: 1px solid #f18b2140; border-radius: 50%; }
.orbit-two { width: 118px; height: 118px; border-color: #f18b2170; }
.lamp { position: relative; display: grid; width: 75px; height: 75px; place-items: center; border-radius: 50%; background: #f18b2117; font-size: 54px; animation: glow 3s ease-in-out infinite; }
.art-caption { position: absolute; right: 5px; bottom: 34px; color: #c1c2c4; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.7; }
.hero-index { position: absolute; z-index: 1; right: 24px; bottom: 18px; display: flex; gap: 8px; align-items: center; color: #d0d1d1; font-size: 9px; }
.hero-index span:first-child { color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.stat { min-height: 118px; padding: 15px 18px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); animation: rise-in .45s ease both; }
.stat:nth-child(2) { animation-delay: .06s; }
.stat:nth-child(3) { animation-delay: .12s; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: #73767a; font-size: 11px; font-weight: 600; }
.stat-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; background: #f1f1f1; color: #5c5e60; font-size: 15px; }
.stat-on .stat-icon { background: #fff0e1; color: #d57211; }
.stat-offline .stat-icon { background: #f7ece5; color: #bc7953; }
.stat-value { margin-top: 7px; font: 700 27px/1 Manrope, sans-serif; letter-spacing: 0; }
.stat-note { margin-top: 5px; color: #85888c; font-size: 10px; }
.stat-note i { width: 5px; height: 5px; background: var(--lime); }
.points-area { padding-top: 34px; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar .eyebrow { margin-bottom: 5px; }
.toolbar h2 { margin: 0; font: 700 18px Manrope, sans-serif; letter-spacing: 0; }
.search-box { display: flex; width: min(295px, 45%); height: 37px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #e0e2e3; border-radius: 6px; background: white; color: #8a8d90; }
.search-box > span { font-size: 20px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #999c9f; }
.search-box kbd { padding: 1px 5px; border: 1px solid #e7e8e2; border-radius: 3px; color: #a1a69f; font: 10px 'DM Sans', sans-serif; }
.sections-list { min-height: 100px; }
.section { margin: 22px 0 28px; }
.section > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #45474a; font: 700 12px Manrope, sans-serif; letter-spacing: 0; }
.section > h3::before { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 5px; background: #f1f1f1; color: #d57211; content: '⌂'; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 11px; }
.card { min-width: 0; padding: 14px 15px 13px; border: 1px solid var(--line); border-radius: 7px; background: white; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); border-color: #d5d6d7; box-shadow: 0 8px 18px #202a2209; }
.row { display: flex; justify-content: space-between; align-items: center; }
.card .row:first-child > b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 6px; background: #fff0e1; color: #d57211; font-size: 15px; }
.card .row:first-child > button { width: 29px; height: 29px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #777b80; font-size: 15px; }
.card .row:first-child > button:hover { background: #f1f2ed; color: var(--ink); }
.card h3 { overflow: hidden; margin: 11px 0 3px; font: 700 13px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.card p { overflow: hidden; margin: 0 0 13px; color: #8a9189; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card .row:last-child { padding-top: 10px; border-top: 1px solid #e9e9e9; }
.card .row:last-child > b { color: #85888c; font-size: 9px; letter-spacing: .5px; }
.card.on .row:last-child > b { color: #d57211; }
.switch { position: relative; width: 37px; height: 21px; padding: 0; border: 0; border-radius: 20px; background: #d4d5d6; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0002; transition: transform .2s; }
.on .switch { background: #f18b21; }
.on .switch i { transform: translateX(16px); }
.page-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 34px; padding: 14px 0 20px; border-top: 1px solid var(--line); color: #929599; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.page-footer b { padding: 0 4px; color: var(--orange); }
.point-dialog { width: min(500px, calc(100vw - 28px)); max-height: min(92vh, 760px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #17191c40; }
.point-dialog::backdrop { background: #15171970; backdrop-filter: blur(3px); }
.point-dialog form { display: grid; gap: 14px; padding: 25px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1px; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-heading h2 { margin: 0; font: 700 20px Manrope, sans-serif; }
.dialog-close { width: 30px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: #6f7275; font-size: 23px; line-height: 1; }
.point-dialog label { display: grid; gap: 6px; color: #4e5052; font-size: 11px; font-weight: 700; }
.point-dialog input, .point-dialog select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #dedfe0; border-radius: 5px; outline: 0; background: white; color: var(--ink); font-size: 12px; }
.point-dialog input:focus, .point-dialog select:focus { border-color: #f18b21; box-shadow: 0 0 0 3px #f18b2118; }
.field-action { display: grid; gap: 6px; }
.field-action > label { color: #4e5052; font-size: 11px; font-weight: 700; }
.field-action-row { display: flex; gap: 8px; }
.field-action-row select { flex: 1; min-width: 0; }
.field-action-row .button { flex: 0 0 auto; min-height: 39px; padding: 0 11px; font-size: 10px; }
.section-dialog { width: min(400px, calc(100vw - 28px)); }
.section-feedback { min-height: 16px; margin: 0; color: var(--red); font-size: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding-top: 15px; border-top: 1px solid var(--line); }
.dialog-actions > span { flex: 1; }
#del { display: none; }
:focus-visible { outline: 2px solid #f18b21; outline-offset: 3px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 50% { box-shadow: 0 0 30px #f18b2133; } }

@media (max-width: 1050px) {
  .workspace { padding: 0 30px; }
  .hero-art { right: 5%; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 12px 16px; }
  .brand { width: fit-content; }
  .brand-logo { width: 126px; max-height: 38px; }
  .brand-name { font-size: 10px; }
  .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; gap: 4px; margin-top: 12px; }
  .nav-link { min-height: 34px; gap: 7px; padding: 0 9px; font-size: 10px; }
  .nav-link > span { width: auto; font-size: 14px; }
  .workspace { margin-left: 0; padding: 0 19px; }
  .topline { min-height: 43px; }
  .page-heading { align-items: start; padding: 23px 0 17px; }
  .page-heading h1 { font-size: 23px; }
  .intro { max-width: 340px; font-size: 11px; line-height: 1.5; }
  .page-heading > .button { min-height: 35px; gap: 5px; padding: 0 10px; white-space: nowrap; font-size: 10px; }
  .hero { min-height: 192px; padding: 24px; }
  .hero h2 { font-size: 25px; }
  .hero p { max-width: 230px; font-size: 10px; line-height: 1.5; }
  .hero-art { right: -60px; width: 220px; opacity: .62; }
  .art-caption, .hero-index { display: none; }
  .stats { gap: 8px; }
  .stat { min-height: 105px; padding: 12px 11px; }
  .stat-top { gap: 4px; font-size: 9px; }
  .stat-icon { width: 22px; height: 22px; flex: 0 0 22px; }
  .stat-value { font-size: 23px; }
  .stat-note { font-size: 9px; }
  .points-area { padding-top: 28px; }
  .toolbar { align-items: start; flex-direction: column; gap: 12px; }
  .search-box { width: 100%; }
}
@media (max-width: 420px) {
  .topline { font-size: 10px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading { gap: 8px; }
  .page-heading > .button { min-height: 33px; }
  .hero { min-height: 180px; padding: 20px; }
  .hero-art { right: -110px; opacity: .42; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 88px; }
  .stat-value { margin-top: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .field-action-row { align-items: stretch; }
  .field-action-row .button { padding: 0 8px; }
  .point-dialog form { padding: 19px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions > span { display: none; }
  .dialog-actions .button { flex: 1 1 auto; padding: 0 9px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
