/* Router web admin — styled after the classic ASUSWRT layout (dark slate, left menu, yellow hints) */
.rt, .rt-login, .qis { font: 12px/1.45 Arial, Helvetica, sans-serif; color: #fff; }
.rt { position: relative; background: #263238; min-height: 600px; display: flex; flex-direction: column; }
.rt a { color: #FFCC00; cursor: pointer; text-decoration: none; }
.rt a:hover { text-decoration: underline; }
.rt-brand { font-family: "Arial Black", Arial, sans-serif; font-style: italic; font-weight: 900; letter-spacing: 3px; font-size: 26px; color: #fff; }
.rt-top { display: flex; align-items: stretch; background: linear-gradient(#1d272b, #0d1315); border-bottom: 1px solid #000; min-height: 72px; flex-wrap: wrap; }
.rt-logo { width: 190px; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; }
.rt-modelname { color: #9fb3bb; font-size: 11px; letter-spacing: 1px; }
.rt-banner { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
.rt-binfo { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #fff; }
.rt-binfo a { color: #FFCC00; margin-right: 6px; }
.rt-bbtns { display: flex; gap: 6px; align-items: center; }
.rt-tbtn { background: linear-gradient(#3b4c52, #1c2528); border: 1px solid #000; color: #fff; border-radius: 4px; padding: 4px 12px; font: bold 12px Arial; cursor: pointer; }
.rt-tbtn:hover { background: linear-gradient(#4f656c, #253136); }
.rt-lang { background: #1c2528; color: #fff; border: 1px solid #000; height: 24px; }
.rt-stat { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; }
.rt-stat.ok { color: #6be38f; } .rt-stat.bad { color: #ff6b6b; } .rt-stat.warn { color: #FFCC00; }
.rt-ic { width: 20px; height: 20px; flex: none; }
.rt-body { flex: 1; display: flex; min-height: 0; }
.rt-menu { width: 190px; flex: none; background: #2c383c; border-right: 1px solid #111; }
.rt-mh { background: #1b2427; color: #93a6ad; font-weight: bold; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px; border-bottom: 1px solid #111; }
.rt-mi { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #1d2629; cursor: pointer; color: #e6eef0; border-left: 4px solid transparent; }
.rt-mi:hover { background: #3b494e; }
.rt-mi.on { background: linear-gradient(90deg, #4f6b78, #3a525c); border-left-color: #69C1F7; color: #fff; font-weight: bold; }
.rt-main { flex: 1; min-width: 0; padding: 10px 14px 16px; background: #34444a; }
.rt-tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.rt-tab { background: #23302f; background: linear-gradient(#3a4a50, #263236); border: 1px solid #1a2326; border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 14px; cursor: pointer; color: #cfdadd; }
.rt-tab:hover { color: #fff; }
.rt-tab.on { background: #4D595D; color: #fff; font-weight: bold; }
.rt-panel { background: #4D595D; border: 1px solid #1a2326; border-radius: 0 6px 6px 6px; padding: 14px 16px; min-height: 420px; }
.rt-ptitle { font-size: 16px; font-weight: bold; color: #fff; }
.rt-sep { height: 1px; background: #8ca0a6; margin: 6px 0 8px; box-shadow: 0 1px 0 #2b3538; }
.rt-desc { color: #fff; margin: 0 0 10px; }
.rt-sub { color: #FFCC00; font-weight: bold; margin: 10px 0 4px; }
.rt-hint { color: #FFCC00; font-size: 11px; margin-top: 3px; }
.rt-warnline { color: #ffb3b3; }
.rt .bad { color: #ff8a8a; } .rt .ok { color: #8dffb0; } .rt .warn { color: #FFCC00; }
.rt .small { font-size: 11px; color: #c8d3d6; }
.rt .mono { font-family: Consolas, monospace; }

table.ft { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
table.ft thead td { background: linear-gradient(#5d7077, #46575d); color: #fff; font-weight: bold; padding: 6px 10px; border: 1px solid #222; }
table.ft th { width: 38%; background: #4D595D; color: #fff; text-align: left; font-weight: normal; padding: 7px 10px; border: 1px solid #222; vertical-align: top; }
table.ft td { background: #475A5F; border: 1px solid #222; padding: 6px 10px; }
.rt-in { background: #576D73; border: 1px solid #929EA1; color: #fff; height: 25px; padding: 0 6px; font: 13px Arial, sans-serif; width: 230px; max-width: 100%; }
.rt-in:focus { outline: 1px solid #69C1F7; }
.rt-in.w60 { width: 64px; } .rt-in.w80 { width: 86px; } .rt-in.w120 { width: 130px; } .rt-in.w160 { width: 170px; } .rt-in.w200 { width: 210px; }
.rt-sel { background: #576D73; border: 1px solid #929EA1; color: #fff; height: 25px; font: 12px Arial; max-width: 100%; }
.rt-radio { margin-right: 14px; white-space: nowrap; }
.rt-btn { background: linear-gradient(#233438, #0F1517); border: 1px solid #222; color: #fff; border-radius: 8px; padding: 6px 24px; font: bold 13px Arial; cursor: pointer; }
.rt-btn:hover { background: linear-gradient(#2f5560, #13262b); }
.rt-btn.sm { padding: 3px 12px; font-size: 12px; }
.rt-btn.xs { padding: 1px 7px; font-size: 11px; border-radius: 5px; }
.rt-btn.ghost { background: transparent; border-color: #8ca0a6; }
.rt-btn.danger { background: linear-gradient(#a33a3a, #5e1717); }
.rt-btn[disabled] { opacity: .35; cursor: default; }
.rt-apply { text-align: center; margin: 16px 0 4px; }
.rt-addrow { margin: 8px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rt-bandsel { margin: 4px 0 6px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.rt-inline { margin-top: 6px; }
.rt-sw { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; vertical-align: middle; }
.rt-sw input { display: none; }
.rt-sw-track { width: 46px; height: 22px; border-radius: 11px; background: #6c7678; position: relative; transition: background .15s; border: 1px solid #222; }
.rt-sw-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.rt-sw input:checked + .rt-sw-track { background: #279FD9; }
.rt-sw input:checked + .rt-sw-track .rt-sw-knob { left: 26px; }
.rt-sw-lbl { font-weight: bold; font-size: 11px; width: 26px; }
.rt-meter { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; vertical-align: middle; }
.rt-meter i { width: 18px; height: 6px; background: #3a4649; border-radius: 1px; }
.rt-meter b { margin-left: 6px; font-weight: normal; font-size: 11px; }
.rt-meter.s0 i:nth-child(-n+1) { background: #ff5b5b; }
.rt-meter.s1 i:nth-child(-n+1) { background: #ff8a3d; }
.rt-meter.s2 i:nth-child(-n+2) { background: #FFCC00; }
.rt-meter.s3 i:nth-child(-n+3) { background: #7be36b; }
.rt-meter.s4 i:nth-child(-n+4) { background: #3ddc84; }
table.rt-list { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.rt-list th { background: linear-gradient(#5d7077, #46575d); color: #fff; padding: 6px 8px; border: 1px solid #222; text-align: left; font-weight: bold; }
table.rt-list td { background: #475A5F; border: 1px solid #222; padding: 5px 8px; }
table.rt-list tr.sel td, table.rt-list tr.hl td { background: #556b72; }
table.rt-list th.cat, table.rt-list td.cat { text-align: center; font-size: 11px; }
.rt .tag { background: #279FD9; color: #fff; border-radius: 3px; padding: 0 5px; font-size: 10px; }
.rt-log { width: 100%; height: 320px; background: #2b3538; color: #e6eef0; border: 1px solid #222; font: 12px/1.4 Consolas, monospace; padding: 8px; resize: vertical; margin-top: 6px; }
.dot-row { margin-bottom: 4px; }
.fw-notes { margin: 6px 0; padding-left: 18px; }
.cfgpre { margin: 0; }
.rt-foot { background: #1b2427; color: #a7b4b9; padding: 8px 14px; font-size: 11px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-top: 1px solid #000; }
.rt-foot a { color: #a7b4b9; }
.rt-copy { margin-left: auto; color: #6f8086; }

/* applying overlay */
.rt-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; z-index: 5; }
.rt-applybox { background: #1b2427; border: 1px solid #000; border-radius: 10px; padding: 22px 30px; text-align: center; min-width: 280px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
.rt-spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #3b4b51; border-top-color: #69C1F7; animation: rtspin .8s linear infinite; }
@keyframes rtspin { to { transform: rotate(360deg); } }
.rt-applybar { width: 220px; height: 6px; background: #3b4b51; border-radius: 3px; overflow: hidden; }
.rt-applybar i { display: block; height: 100%; width: 40%; background: #69C1F7; animation: rtbar 1.2s ease-in-out infinite; }
@keyframes rtbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* login */
.rt-login { min-height: 600px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 20%, #2e4350, #0c1215 70%); padding: 20px; }
.rt-login-box { width: min(380px, 100%); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.rt-login-logo .rt-brand { font-size: 40px; }
.rt-login-model { color: #9fb3bb; letter-spacing: 2px; margin-top: -8px; }
.rt-login-title { font-size: 18px; margin: 14px 0 6px; }
.rt-login-in { height: 42px; background: #1e2a30; border: 1px solid #4b5d63; color: #fff; padding: 0 12px; font: 15px Arial, sans-serif; border-radius: 3px; }
.rt-login-in:focus { outline: 2px solid #279FD9; }
.rt-login-err { color: #ff8a8a; min-height: 18px; font-size: 13px; }
.rt-login-btn { height: 42px; background: #279FD9; border: 0; border-radius: 3px; color: #fff; font: bold 15px Arial; cursor: pointer; }
.rt-login-btn:hover { background: #3bb0ea; }
.rt-login-btn[disabled] { opacity: .5; }
.rt-login-help { color: #9fb3bb; font-size: 12px; }

/* quick internet setup */
.qis { min-height: 600px; background: linear-gradient(#1b2428, #0d1215); }
.qis-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #2d3a3f; flex-wrap: wrap; }
.qis-t { font-size: 16px; color: #c9d6da; flex: 1; }
.qis-dots { display: flex; gap: 6px; }
.qis-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b4b51; }
.qis-dots i.on { background: #279FD9; }
.qis-body { max-width: 560px; margin: 0 auto; padding: 26px 20px 40px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.qis-body h2 { font-size: 22px; font-weight: normal; margin: 0 0 4px; }
.qis-body h2 .ok { color: #6be38f; }
.qis-body h2.bad { color: #ff8a8a; }
.qis-body p { color: #c9d6da; margin: 4px 0; }
.qis-body label { color: #9fb3bb; margin-top: 6px; font-size: 13px; }
.qis-in { height: 40px; background: #1e2a30; border: 1px solid #4b5d63; color: #fff; padding: 0 12px; font: 15px Arial, sans-serif; border-radius: 3px; }
.qis-in:focus { outline: 2px solid #279FD9; }
.qis-chk { display: flex; gap: 8px; align-items: center; color: #fff !important; }
.qis-err { color: #ff8a8a; min-height: 18px; font-size: 13px; }
.qis-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.qis-btn { height: 40px; min-width: 120px; background: #279FD9; border: 0; border-radius: 3px; color: #fff; font: bold 14px Arial; cursor: pointer; padding: 0 18px; }
.qis-btn:hover { background: #3bb0ea; }
.qis-btn.ghost { background: transparent; border: 1px solid #4b5d63; }
.qis-cards { display: flex; gap: 12px; margin-top: 14px; }
.qis-card { flex: 1; border: 1px solid #3b4b51; border-radius: 6px; padding: 22px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: #1a2327; }
.qis-card:hover { border-color: #279FD9; background: #1f2d33; }
.qis-card span { color: #9fb3bb; font-size: 12px; }
.qis-big { font-size: 42px; }
.qis-scan { text-align: center; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qis-sum { border-collapse: collapse; width: 100%; }
.qis-sum td { border-bottom: 1px solid #2d3a3f; padding: 8px; }
.qis-sum td:first-child { color: #9fb3bb; width: 45%; }
.qis-note { background: #1f2d33; border-left: 3px solid #FFCC00; padding: 8px 10px; }
.qis-foot { margin-top: 16px; }
.qis-foot a { color: #69C1F7; cursor: pointer; }
.qis .rt-meter { margin: 2px 0 0; }

/* network map */
.nm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; }
.nm-diagram { background: radial-gradient(circle at 50% 30%, #5b6d73, #3a4a50); border: 1px solid #222; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; align-items: center; }
.nm-node { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 6px 12px; border-radius: 8px; }
.nm-node.sel { background: rgba(105,193,247,.15); outline: 1px solid #69C1F7; }
.nm-icon { width: 66px; height: 66px; border-radius: 50%; border: 3px solid #8ca0a6; display: grid; place-items: center; background: #2c383c; }
.nm-icon .rt-ic { width: 36px; height: 36px; }
.nm-icon.ok { border-color: #6be38f; color: #6be38f; } .nm-icon.bad { border-color: #ff6b6b; color: #ff6b6b; } .nm-icon.warn { border-color: #FFCC00; color: #FFCC00; }
.nm-lbl { margin-top: 4px; color: #fff; }
.nm-status { font-weight: bold; }
.nm-status.ok { color: #8dffb0; } .nm-status.bad { color: #ff8a8a; } .nm-status.warn { color: #FFCC00; }
.nm-line { width: 3px; height: 28px; background: #8dffb0; }
.nm-line.bad { background: repeating-linear-gradient(#ff6b6b 0 4px, transparent 4px 8px); }
.nm-warn { margin-top: 12px; color: #FFCC00; text-align: center; }
.nm-sidehead { font-weight: bold; font-size: 14px; margin-bottom: 4px; color: #FFCC00; }

/* guest network */
.gn-band { margin: 10px 0 14px; }
.gn-bandname { font-weight: bold; font-size: 14px; margin-bottom: 6px; }
.gn-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gn-slot { background: #3d4c51; border: 1px solid #222; border-radius: 6px; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; gap: 6px; }
.gn-slot.on { justify-content: flex-start; align-items: stretch; background: #42565c; }
.gn-slot table { width: 100%; font-size: 11px; border-collapse: collapse; }
.gn-slot td { padding: 2px 3px; border-bottom: 1px solid #36464b; word-break: break-all; }
.gn-slot td:first-child { color: #c8d3d6; }

/* aiprotection & parental */
.ai-scan { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.ai-score { font-weight: bold; color: #FFCC00; }
.ts-wrap { margin-top: 10px; background: #3d4c51; border: 1px solid #222; border-radius: 6px; padding: 10px; overflow-x: auto; }
.ts-title { margin-bottom: 8px; }
.ts-key i { display: inline-block; width: 12px; height: 12px; background: #2b3a3f; margin: 0 4px 0 10px; vertical-align: middle; border: 1px solid #222; }
.ts-key i.a { background: #279FD9; }
.ts-grid { display: grid; grid-template-columns: 38px repeat(24, minmax(14px, 1fr)); gap: 2px; min-width: 460px; user-select: none; }
.ts-h { font-size: 9px; text-align: center; color: #c8d3d6; }
.ts-d { font-size: 11px; color: #c8d3d6; align-self: center; }
.ts-c { height: 18px; background: #2b3a3f; border: 1px solid #222; cursor: pointer; }
.ts-c.a { background: #279FD9; }
.ts-c:hover { outline: 1px solid #fff; }
.ts-quick { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* qos */
.qos-presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.qos-preset { width: 112px; text-align: center; padding: 10px 6px; border: 1px solid #222; border-radius: 8px; background: #3d4c51; cursor: pointer; font-size: 11px; }
.qos-preset div { font-size: 26px; }
.qos-preset.on { border-color: #69C1F7; background: #4a6873; box-shadow: 0 0 0 1px #69C1F7; }
.qos-list { margin: 4px 0; padding-left: 22px; }
.qos-list li { padding: 4px 0; border-bottom: 1px solid #3b4b51; }
.qos-list li > span:first-child { display: inline-block; min-width: 200px; }
.vf-dev { display: inline-block; margin: 2px 12px 2px 0; white-space: nowrap; }

@media (max-width: 760px) {
  .rt-body { flex-direction: column; }
  .rt-menu { width: 100%; display: flex; overflow-x: auto; border-right: 0; }
  .rt-mh { display: none; }
  .rt-mi { flex: none; border-left: 0; border-bottom: 3px solid transparent; }
  .rt-mi.on { border-bottom-color: #69C1F7; }
  .rt-mi span { white-space: nowrap; }
  .rt-logo { width: auto; }
  .nm, .gn-slots { grid-template-columns: 1fr; }
  table.ft th { width: 42%; }
  .rt-in { width: 100%; }
  .rt-main { padding: 8px; }
  .rt-panel { padding: 10px; overflow-x: auto; }
}
