/* RadioPanel theme (admin, reseller and client panels) */
:root {
  --bg: #f1f2f6;
  --surface: #ffffff;
  --border: #dfe3ea;
  --text: #212836;
  --muted: #6c7689;
  --top: #2a2e35;
  --side: #f7f8fa;
  --side-group: #e7e9ee;
  --head: #0f2135;
  --teal: #17a2b8;
  --primary: #0d6efd;
  --accent: #fd7e14;
  --ok: #28a745;
  --ok-bg: #e2f5e7;
  --err: #dc3545;
  --err-bg: #fbe5e7;
  --warn: #c48a00;
  --warn-bg: #fff4d6;
  --info-bg: #d7ebfd;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(15, 33, 53, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h2 { font-size: 17px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
pre.mono { background: #f6f7f9; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; overflow-x: auto; margin: 0; }
.muted { color: var(--muted); }
pre.raw { margin: 0; padding: 0; border: 0; background: none; font: inherit; white-space: pre-wrap; }
.inline { display: inline; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 22px; padding: 0 22px;
  background: var(--top); color: #e8eaee;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { max-height: 44px; max-width: 200px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; flex: none; border: 3px solid var(--teal);
  background: radial-gradient(circle, var(--accent) 0 5px, transparent 6px);
}
.top-link { color: #d6d9df; font-size: 15px; }
.top-link:hover { color: #fff; text-decoration: none; }
.top-info { margin-left: auto; text-align: right; font-size: 13px; line-height: 1.5; color: #d6d9df; }
.burger { display: none; font-size: 22px; cursor: pointer; color: #fff; }

/* ---- sidebar ---- */
.layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 290px; flex: none; background: var(--side); border-right: 1px solid var(--border);
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.side-search { padding: 10px; border-bottom: 1px solid var(--border); background: #fff; }
.side-search input { margin: 0; }
.nav-group {
  background: var(--side-group); padding: 12px 14px; font-weight: 700; font-size: 15px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: #1c2533;
}
.nav-link { display: block; padding: 9px 18px; color: #222b38; font-size: 15px; }
.nav-link::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: #4a5263;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='m10 7 5 5-5 5' stroke='white' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.4 5.2L16.4 12l-5.8 5.8-1.8-1.8 4-4-4-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-link.active::before { background: var(--err); }
.nav-home::before { display: none; }

/* Orange note with an icon block on the left (SSL pages) */
.note-box { display: flex; background: #fffdf7; border: 1px solid #f2dc9c; border-radius: var(--radius); margin-bottom: 26px; overflow: hidden; }
.note-ic { background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 18px; position: relative; }
.note-ic::after { content: ""; position: absolute; right: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-left-color: var(--accent); border-right: 0; }
.note-ic .ic { width: 26px; height: 26px; }
.note-text { padding: 16px 20px 16px 26px; font-size: 16px; line-height: 1.7; }
.ssl-ok { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; align-items: center; justify-content: center; }
.ssl-ok .ic { width: 16px; height: 16px; stroke-width: 3; }

/* SVG icons */
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.17em; flex: none; }
.nav-group .ic { color: var(--teal); width: 18px; height: 18px; margin-right: 4px; }
.nav-link .ic { width: 16px; height: 16px; margin-right: 4px; }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-ok { --icon-cut: var(--ok); }
.btn-gray { --icon-cut: #6c757d; }
.btn-teal { --icon-cut: var(--teal); }
.btn-warn .ic { color: #222; }
.input-ic { display: flex; border: 1px solid #c9ced8; border-radius: var(--radius); overflow: hidden; background: #fff; margin-top: 6px; }
.input-ic > span { background: #e9ecef; padding: 0 14px; display: flex; align-items: center; color: #555; border-right: 1px solid #c9ced8; }
.input-ic > span .ic { width: 16px; height: 16px; }
.input-ic input, .input-ic select { border: 0; margin: 0; border-radius: 0; }
.ic-red { color: var(--err); } .ic-green { color: var(--ok); } .ic-teal { color: var(--teal); }
.nav-link:hover { background: #eceff3; text-decoration: none; }
.nav-link.active { background: #d4d8df; font-weight: 600; }
.nav-link.disabled { color: #9aa2b1; }
.nav-overlay { display: none; }

.main { flex: 1; min-width: 0; }
.crumbs { padding: 12px 24px; background: #e9ebef; border-bottom: 1px solid var(--border); font-weight: 600; }
.crumbs span { color: var(--muted); margin: 0 6px; }
.content { padding: 22px 24px 48px; max-width: 1500px; }
.page-title { font-size: 21px; font-weight: 500; margin: 0 0 18px; color: #3a4252; }

@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 64px; z-index: 25; transform: translateX(-100%); transition: transform .2s; }
  #nav-toggle:checked ~ .layout .sidebar { transform: none; }
  #nav-toggle:checked ~ .layout .nav-overlay { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(0,0,0,.35); z-index: 20; }
  .burger { display: block; }
  .top-info, .top-link { display: none; }
  .content { padding: 16px; }
}

/* ---- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
}
.card-dark { padding: 0; overflow: hidden; }
.card-dark > .card-title {
  background: var(--head); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 17px;
  border-bottom: 3px solid var(--teal); margin: 0;
}
.card-dark > .card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 500px) { .grid-2 { grid-template-columns: 1fr; } }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border-left: 4px solid var(--teal); }
.stat:nth-child(2) { border-left-color: var(--ok); }
.stat:nth-child(3) { border-left-color: var(--accent); }
.stat:nth-child(4) { border-left-color: var(--warn); }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 13px; }

dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; word-break: break-all; }

/* ---- gauges ---- */
.gauges { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-around; }
.gauge { text-align: center; width: 150px; }
.gauge-ring {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--teal) var(--deg), #d4d7dd 0);
}
.gauge-ring span { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #3a4252; }
.gauge-label { margin-top: 8px; font-size: 14px; color: #4a5263; }
.gauge-detail { font-size: 12px; color: var(--muted); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; vertical-align: middle; }
thead th { background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: #f8f9fb; }
tbody tr:hover { background: #eef6f8; }
td.actions { white-space: nowrap; }

/* Dark data tables (radio lists): teal header, dark rows */
.dark-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.dark-table table { background: #212529; color: #f1f3f5; }
.dark-table thead th { background: var(--teal); color: #fff; font-size: 17px; padding: 14px 12px; vertical-align: bottom; }
.dark-table tbody tr { border-bottom: 1px solid #343a40; }
.dark-table tbody tr:nth-child(even) { background: #1b1f23; }
.dark-table tbody tr:hover { background: #2b3035; }
.dark-table td { padding: 16px 12px; font-size: 16px; vertical-align: top; }
.dark-table a { color: #fff; }
.dark-table .muted { color: #9aa4b1; }
.dark-table .text-ok, .dark-table .sys { color: #2ecc71; }
.dark-table .text-err { color: #ff6b6b; }
.dark-table .sys { font-weight: 700; }
/* Start / Stop / Settings buttons of the radio list: same size, icon centred */
.ctl-stack { display: flex; flex-direction: column; gap: 4px; width: 72px; }
.ctl-stack form, .ctl-stack > a { margin: 0 !important; display: block; }
.ctl-stack .btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 32px; padding: 0; border-radius: 6px; font-size: 14px; line-height: 1; }
.ctl-stack .btn .ic { width: 19px; height: 19px; vertical-align: 0; }
.ctl-stack .btn-warn { background: #ffc107; color: #212529; }
.ctl-stack .btn-warn .ic { color: #212529; width: 20px; height: 20px; }
.ctl-stack .btn-ok:hover { background: #218838; }
.ctl-stack .btn-gray:hover { background: #5a6268; }
.ctl-stack .btn-warn:hover { background: #e0a800; }

/* Radio state in the list */
.st-on { color: #2ecc71; font-weight: 700; }
.st-off { color: #ff4d5e; font-weight: 700; }
.st-susp { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.st-susp .ic { width: 20px; height: 20px; }
.dark-table tr.row-link { cursor: pointer; }

/* Station pop-up (iframe in a <dialog>) */
.modal { width: min(1000px, 96vw); height: min(880px, 92vh); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden; }
.modal::backdrop { background: rgba(10, 14, 22, .6); }
.modal[open] { display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 21px; }
.modal-head b { font-weight: 500; }
.modal-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #555; }
.modal iframe { flex: 1; width: 100%; border: 0; }
body.modal-page { background: #fff; padding: 18px 22px 30px; }
body.modal-page .control-bar .btn { padding: 7px 12px; font-size: 14px; }
.info-box { border-left: 5px solid var(--teal); background: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.search-icon { display: flex; border: 1px solid #c9ced8; border-radius: var(--radius); overflow: hidden; background: #fff; }
.search-icon span { background: #e9ecef; padding: 9px 14px; font-size: 17px; }
.search-icon input { border: 0; margin: 0; border-radius: 0; }
td.actions form, td.actions a { margin: 2px 4px 2px 0; }
.text-ok { color: var(--ok); font-weight: 700; }
.text-err { color: var(--err); font-weight: 700; }

.bar { height: 7px; background: #dfe3e9; border-radius: 4px; overflow: hidden; min-width: 90px; margin-top: 4px; }
.bar > span { display: block; height: 100%; background: var(--ok); }
.bar-warn > span { background: var(--warn); }
.bar-err > span { background: var(--err); }

.chart { width: 100%; height: 240px; display: block; }
.chart .grid { stroke: #e3e6ec; stroke-width: 1; }
.chart .line { fill: none; stroke: var(--teal); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart .area { fill: rgba(23, 162, 184, .12); }
.chart text { font-size: 13px; fill: var(--muted); }

/* ---- tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs a { padding: 10px 18px; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; color: var(--teal); font-weight: 600; }
.tabs a:hover { text-decoration: none; background: #f2f4f7; }
.tabs a.active { border-color: var(--border); background: #fff; color: #3a4252; margin-bottom: -1px; }

/* ---- badges & alerts ---- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge-ok { background: var(--ok-bg); color: #1d7a34; }
.badge-off { background: #e9ebef; color: var(--muted); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-warn { background: var(--warn-bg); color: #8a6200; }
.badge-wait { background: var(--info-bg); color: #0b5ed7; }

.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: #19622b; border-color: #bfe5c9; }
.alert-err { background: var(--err-bg); color: #8f1f2b; border-color: #f2c0c6; }
.alert-info { background: var(--info-bg); color: #0b4a8c; border-color: #b8dafb; }
.alert-warn { background: var(--warn-bg); color: #6d4f00; border-color: #f2dc9c; border-left: 5px solid var(--accent); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---- forms ---- */
label { display: block; font-size: 14px; color: #3a4252; margin-bottom: 14px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=url], input[type=date], input[type=time], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
  font: inherit; color: var(--text); background: #fff; border: 1px solid #c9ced8; border-radius: var(--radius);
}
textarea { min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(23,162,184,.3); border-color: var(--teal); }
input[readonly] { background: #eceef2; color: #4a5263; }
input[type=file] { margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 17px; height: 17px; margin: 0; }
.form-box { border: 1px solid #b8bfcc; border-radius: var(--radius); padding: 20px; box-shadow: 0 3px 8px rgba(0,0,0,.06); background: #fff; margin-bottom: 20px; }
.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.search { display: flex; gap: 10px; }
.search input { margin: 0; }
.copy { display: flex; gap: 8px; margin-top: 6px; }
.copy input { margin: 0; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 58px; height: 30px; border-radius: 15px; background: #8d939d; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { left: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 500; cursor: pointer; background: #e4e7ec; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(.95); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--err); color: #fff; }
.btn-warn { background: #ffc107; color: #222; }
.btn-gray { background: #6c757d; color: #fff; }
.btn-light { background: #fff; border-color: #c9ced8; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 17px; }
.btn-block { width: 100%; }

.control-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #e4e6ea; border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.control-bar .state { margin-left: 8px; font-size: 17px; }

/* ---- packages ---- */
.pkg { padding: 0; }
.pkg h3 { margin: 0; padding: 18px 20px; font-size: 22px; font-weight: 400; text-transform: uppercase; background: #f6f7f9; border-bottom: 1px solid var(--border); }
.pkg .pkg-body { padding: 16px 20px 20px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 16px; }
.pkg li { padding: 3px 0; font-size: 15px; color: #4a5263; }
.pkg li b { color: var(--text); }

/* ---- player ---- */
.player { display: flex; gap: 14px; align-items: stretch; background: #e4e6ea; border-radius: var(--radius); padding: 10px; }
.player img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; flex: none; }
.player .player-box { flex: 1; border: 1px solid #b8bfcc; background: #eef0f3; border-radius: 4px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.player audio { width: 100%; }
.player .np { font-weight: 700; text-align: center; color: #3a4252; }

/* ---- login ---- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #2a2e35; }
.login-wrap { width: 100%; max-width: 620px; }
.login-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-logo { background: linear-gradient(135deg, #0b1b2d, #00213f); padding: 26px 20px 18px; text-align: center; color: #fff; }
.login-logo img { max-height: 90px; max-width: 80%; filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
.login-logo .brand-mark { display: inline-block; vertical-align: middle; margin-right: 10px; }
.login-name { font-size: 28px; font-weight: 800; vertical-align: middle; letter-spacing: .02em; }
.login-sub { margin-top: 8px; color: #9fb4cc; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.login-body { padding: 26px 28px 24px; }
.login-field { display: flex; height: 54px; border: 1px solid #dde1e7; margin-bottom: 22px; }
.login-field span { width: 62px; flex: none; background: #00213f; color: #fff; display: flex; align-items: center; justify-content: center; }
.login-field span .ic { width: 20px; height: 20px; }
.login-field input { border: 0; margin: 0; border-radius: 0; padding: 0 18px; font-size: 18px; height: 100%; }
.login-field input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(23,162,184,.35); }
.btn-login { width: 100%; height: 62px; margin-top: 8px; border: 0; background: #00213f; color: #fff; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.btn-login:hover { background: #003260; }
.login-page .panel-footer { color: #9aa3b0; border: 0; background: none; }

/* ---- footer ---- */
.panel-footer { text-align: center; padding: 22px 16px; color: #555e6c; font-size: 14px; background: #e9ebef; border-top: 1px solid var(--border); }

/* ---- logo block in the top bar: a darker panel so the logo stands out ---- */
.topbar { padding-left: 0; }
.topbar .brand { align-self: stretch; padding: 0 22px; background: #1b1e23; min-width: 290px; box-shadow: inset -1px 0 0 rgba(255,255,255,.06); }
.topbar .brand img { filter: drop-shadow(0 3px 10px rgba(0,0,0,.6)); }
@media (max-width: 960px) { .topbar { padding-left: 12px; } .topbar .brand { min-width: 0; background: none; padding: 0; } }

/* coloured menu icons */
.ic-blue { color: #1e90ff; } .ic-orange { color: #f39c12; }
.nav-group .ic.ic-blue { color: #1e90ff; } .nav-group .ic.ic-green { color: var(--ok); }
.nav-group .ic.ic-red { color: #e74c3c; } .nav-group .ic.ic-orange { color: #f39c12; }

/* dashboard tiles (first page) */
.tiles-title { font-size: 15px; font-weight: 700; color: #3a4252; padding-bottom: 9px; border-bottom: 1px solid var(--border); margin: 6px 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 28px; margin-bottom: 26px; }
.tile a { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--teal); }
.tile a:hover { text-decoration: none; color: #128193; }
.tile a .ic { width: 26px; height: 26px; color: #444c5e; flex: none; }
.tile p { margin: 4px 0 0; color: #4a5160; font-size: 13px; line-height: 1.4; }
.nav-link.has-ic::before { display: none; }

/* login messages above the card (red = wrong, green = logged in) */
.login-alert { display: flex; align-items: center; gap: 10px; padding: 18px 22px; margin-bottom: 26px; border-radius: 12px; color: #fff; font-size: 17px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: la-in .35s ease-out; }
.login-alert .ic { width: 22px; height: 22px; flex: none; stroke-width: 3; }
.login-alert-err { background: #f44336; }
.login-alert-ok { background: #28a745; }
@keyframes la-in { from { opacity: 0; transform: translateY(-10px); } }
.login-card.is-ok { box-shadow: 0 0 0 3px #28a745, 0 20px 60px rgba(0,0,0,.35); }
.login-done { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 0; font-size: 17px; }
.login-spin { width: 22px; height: 22px; border: 3px solid #cfe9d6; border-top-color: #28a745; border-radius: 50%; animation: ba-rot .8s linear infinite; }
@keyframes ba-rot { to { transform: rotate(360deg); } }

/* animated logo: radio waves, equalizer and ON AIR light */
.brand-anim { position: relative; overflow: hidden; }
.ba-logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; animation: ba-float 4s ease-in-out infinite; }
.ba-waves { position: absolute; z-index: 1; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.ba-waves i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(23,162,184,.55); opacity: 0; animation: ba-wave 3.6s ease-out infinite; }
.ba-waves i:nth-child(2) { animation-delay: 1.2s; }
.ba-waves i:nth-child(3) { animation-delay: 2.4s; }
.ba-eq { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: flex-end; gap: 3px; padding: 0 6px; opacity: .45; pointer-events: none; }
.ba-eq i { flex: 1; height: 20%; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #17a2b8, #5fd3e6); transform-origin: bottom; animation: ba-eq 1.1s ease-in-out infinite alternate; }
.ba-eq i:nth-child(3n) { animation-duration: .8s; animation-delay: -.3s; }
.ba-eq i:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -.7s; }
.ba-eq i:nth-child(4n) { animation-duration: .65s; animation-delay: -.2s; background: linear-gradient(to top, #f5821f, #ffc06b); }
.ba-eq i:nth-child(5n) { animation-duration: 1.5s; animation-delay: -1.1s; }
.ba-eq i:nth-child(7n) { animation-duration: .9s; animation-delay: -.5s; }
.ba-onair { position: absolute; z-index: 3; top: 10px; right: 12px; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid rgba(255,80,80,.6); border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #ff8a8a; background: rgba(0,0,0,.25); }
.ba-onair b { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: ba-blink 1.4s ease-in-out infinite; }
.login-logo.brand-anim { padding-bottom: 42px; }
.login-logo .login-sub { position: relative; z-index: 2; }
@keyframes ba-wave { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes ba-eq { 0% { transform: scaleY(.15); } 50% { transform: scaleY(.9); } 100% { transform: scaleY(.35); } }
@keyframes ba-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ba-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* the same animation, smaller, in the top bar of the panels */
.brand-in { display: flex; align-items: center; height: 100%; width: 100%; }
.brand-in .login-name { font-size: 20px; }
.brand-in .ba-eq { height: 18px; opacity: .35; gap: 2px; }
.brand-in .ba-waves { left: 70px; top: 50%; }
.brand-in .ba-waves i { left: -30px; top: -30px; width: 60px; height: 60px; border-width: 1.5px; }
.brand-in .ba-onair { top: 50%; right: 0; transform: translateY(-50%); font-size: 9px; padding: 2px 7px; }
.topbar .brand { position: relative; overflow: hidden; }
@media (max-width: 960px) { .brand-in .ba-eq, .brand-in .ba-onair, .brand-in .ba-waves { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand-anim *, .brand-anim { animation: none !important; } }

.form-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 10px 0 16px; }
.form-inline label { margin: 0; }
.form-inline input { margin-top: 4px; }

/* layer 7 traffic monitor */
.traffic-chart { width: 100%; height: 220px; display: block; }
.traffic-chart .grid line { stroke: #e3e7ee; }
.traffic-chart text { fill: #8a93a3; font-size: 11px; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #555; margin-top: 6px; }
.tm-legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--c); }
.tm-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #28a745; font-weight: 700; }
.tm-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #28a745; animation: ba-blink 1.4s infinite; }

[hidden] { display: none !important; }
.center { text-align: center; }
.small { font-size: 12px; }

/* client "Gestionează radio" pages, like the SonicPanel screenshots */
.sp-box { border: 1px solid #2b2f36; border-radius: 6px; box-shadow: 0 6px 12px rgba(0,0,0,.25); padding: 22px 20px 8px; }
.sp-box label { font-weight: 400; }
.sp-box input[readonly], .sp-box select[disabled] { background: #e9ecef; }
.sp-box input.strong { font-weight: 700; }
.sp-box input.link { color: #0c4a6e; }
.help { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1a73e8; color: #fff; font-size: 11px; font-weight: 800; cursor: help; vertical-align: 1px; }
.pl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #e9eaec; border: 1px solid #d6d8dc; border-radius: 6px; padding: 12px; margin-bottom: 18px; }
.pl-bar select { width: 500px; max-width: 100%; margin: 0; font-weight: 700; }
.pl-bar form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.pl-bar input { width: 250px; margin: 0; }
.panel-box { border: 1px solid #dfe2e6; border-radius: 6px; background: #fff; margin-bottom: 18px; }
.panel-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #f7f7f8; border-bottom: 1px solid #dfe2e6; font-size: 16px; }
.panel-box-head .ic { width: 16px; height: 16px; vertical-align: -2px; }
.panel-box-body { padding: 18px 16px; }
.panel-box .table-wrap table { margin: 0; }
.sch-title { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 400; border-top: 1px solid #dfe2e6; padding-top: 18px; margin-top: 10px; }
.sch-title small { font-size: 12px; }
.sch-table tr[draggable] { cursor: grab; }
.sch-table tr.dragging { opacity: .4; }
.sch-table .drag { color: #999; white-space: nowrap; }
.radio-line { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 400; }
.radio-line input { width: 18px; height: 18px; margin: 0; }
label.opt { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; margin: 10px 0 0; font-weight: 400; }
label.opt input { margin: 3px 0 0; width: 18px; height: 18px; }
label.opt span { grid-column: 2; color: #6c757d; }
@media (max-width: 700px) { .pl-bar select, .pl-bar input { width: 100%; } }

/* playlist page: tools, song list (accordion), upload drop zone */
.pl-tools { border: 1px solid #e5e7ea; border-left: 5px solid #5bc0de; border-radius: 4px; padding: 20px 26px 12px; margin-bottom: 22px; background: #fff; }
.pl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pl-buttons .btn, .pl-buttons form.inline .btn, .trk-actions .btn { font-size: 16px; padding: 10px 16px; }
.pl-buttons .ic, .trk-actions .ic { width: 18px; height: 18px; }
.pl-tools p { margin: 0 0 8px; color: #222; }
.pl-tools p .ic { width: 15px; height: 15px; vertical-align: -2px; }
.track-search { margin: 0 0 18px; }
.track-search input { height: 44px; font-size: 16px; }
.trk { border: 1px solid #dcdfe3; border-radius: 4px; margin-bottom: 6px; background: linear-gradient(#fff, #f6f6f6); }
.trk.dragging { opacity: .4; }
.trk.open { border-color: #f0b54a; }
.trk-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.trk-caret { color: #e5951a; font-size: 12px; transition: transform .15s; }
.trk.open .trk-caret { transform: rotate(90deg); }
.trk-name { flex: 1; min-width: 0; color: #1597b5; font-size: 18px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk.open .trk-name, .trk.open .trk-ic { color: #e5951a; }
.trk-ic { background: none; border: 0; padding: 2px; color: #1597b5; cursor: pointer; display: inline-flex; }
.trk-ic .ic { width: 19px; height: 19px; stroke-width: 2.6; }
.trk-ic-form { margin: 0; display: inline-flex; }
.trk-body { display: flex; gap: 8px; padding: 20px 20px 22px 210px; background: #eee; border-top: 1px solid #dcdfe3; }
.trk-cover { width: 250px; height: 250px; object-fit: cover; flex: none; background: #fff; }
.trk-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 18px; padding-left: 8px; }
.trk-info a { color: #08a2e8; font-weight: 700; }
.trk-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trk-actions .btn { font-weight: 700; }
.trk-edit { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid #dcdfe3; border-radius: 6px; font-size: 15px; }
@media (max-width: 1100px) { .trk-body { padding-left: 20px; } }
@media (max-width: 700px) { .trk-body { flex-direction: column; } .trk-cover { width: 100%; height: auto; aspect-ratio: 1; } .trk-name { font-size: 15px; } }
.note-arrow { display: flex; align-items: stretch; border: 1px solid #f3d38b; border-radius: 6px; background: linear-gradient(#fff, #f7f7f7); margin-bottom: 18px; overflow: hidden; }
.note-arrow > span { position: relative; flex: none; width: 56px; background: #fd9a00; color: #fff; display: grid; place-items: center; }
.note-arrow > span::after { content: ""; position: absolute; right: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left-color: #fd9a00; border-right: 0; }
.note-arrow > span .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.note-arrow > div { padding: 14px 20px; }
.dropzone { position: relative; min-height: 460px; border: 2px dashed #1a73e8; border-radius: 6px; background: #fff; padding: 70px 20px 30px; cursor: pointer; }
.dropzone.over { background: #f0f6ff; }
.dz-close { position: absolute; top: 12px; right: 12px; font-size: 16px; }
.dz-hint { text-align: center; color: #999; font: 26px Georgia, 'Times New Roman', serif; }
.dz-cloud { width: 72px; height: 72px; color: #999; display: block; margin: 0 auto 18px; }
.dz-list { list-style: none; max-width: 1300px; margin: 24px auto 0; padding: 0; cursor: default; }
.dz-list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; font: 20px Georgia, 'Times New Roman', serif; color: #222; }
.dz-list li:nth-child(odd) { background: #f4f4f4; }
.dz-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-msg { font: 13px system-ui, sans-serif; color: #dc3545; }
.dz-ring { width: 32px; height: 32px; flex: none; }



/* client home page (like SonicPanel): navy card heads, player, round gauges */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #dfe2e6; }
.home-grid > .card { margin: 0; border-radius: 0; box-shadow: none; border: 0; border-right: 1px solid #dfe2e6; border-bottom: 1px solid #dfe2e6; }
.home-grid > .card-dark > .card-title { background: #0f2135; border-bottom: 4px solid #17a2b8; box-shadow: inset 0 -1px 0 #5fd3e6; font-size: 19px; padding: 16px 24px; display: flex; align-items: center; gap: 8px; }
.home-grid > .card-dark > .card-title .ic { width: 20px; height: 20px; }
.card-title-link { color: #9aa3b0; font-weight: 700; }
.card-title-link:hover { color: #cfd6df; text-decoration: none; }
.card-sub { padding: 16px 24px; font-size: 18px; color: #3a4252; background: #f7f7f8; border-bottom: 1px solid #e5e7ea; }
.home-grid .card-body { padding: 24px; }
.home-grid .tabs a { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; }
.home-grid .tabs a .ic { width: 17px; height: 17px; }
.home-grid .sp-box label a .ic { width: 15px; height: 15px; color: #1a73e8; vertical-align: -2px; }
.hp-player { display: flex; margin-top: 18px; height: 126px; }
.hp-player img { width: 128px; height: 126px; object-fit: cover; flex: none; background: #fff; }
.hp-box { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid #5bc0de; background: #e9eaec; }
.hp-ctl { flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.hp-btn { width: 46px; height: 46px; border-radius: 10px; border: 2px solid #8cc8f0; background: linear-gradient(#f7f7f7, #d9d9d9); color: #666; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 3px rgba(140,200,240,.35); padding: 0; }
.hp-btn.sm { width: 34px; height: 34px; border-radius: 8px; }
.hp-btn .ic { width: 20px; height: 20px; }
.hp-btn.sm .ic { width: 14px; height: 14px; }
.hp-btn.on { color: #17a2b8; border-color: #17a2b8; }
.hp-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-bar { height: 18px; background: #d6d6d6; }
.hp-bar span { display: block; height: 100%; width: 0; background: #17a2b8; transition: width .5s; }
.hp-time { font-style: italic; font-size: 13px; color: #444; }
.hp-vol { display: flex; align-items: center; gap: 4px; color: #777; }
.hp-vol input { width: 80px; accent-color: #1a9ad6; margin: 0; }
.hp-np { background: #d4d4d4; text-align: center; font-weight: 700; padding: 4px 10px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
.ring { position: relative; text-align: center; padding-top: 16px; }
.ring svg { width: 104px; height: 104px; }
.ring-bg { fill: none; stroke: #c9c9c9; stroke-width: 9; }
.ring-fg { fill: none; stroke: #1a9ad6; stroke-width: 9; stroke-linecap: butt; transition: stroke-dashoffset .6s; }
.ring-ic { position: absolute; left: 50%; top: 16px; width: 104px; height: 104px; margin-left: -52px; display: grid; place-items: center; color: #1a9ad6; }
.ring-ic .ic { width: 26px; height: 26px; }
.ring-pct { position: absolute; top: 0; left: 50%; margin-left: 20px; color: #999; font-size: 15px; border-bottom: 1px solid #ccc; padding: 0 4px 2px 18px; }
.ring-label { font-size: 11px; color: #444; margin-top: 4px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rings { grid-template-columns: repeat(2, 1fr); } .hp-ctl { padding: 0 10px; gap: 8px; } .hp-vol input { width: 50px; } .hp-player img { width: 90px; } }
/* client home: exact sizes measured on the SonicPanel screenshot */
.home-grid > .card-dark > .card-title { font-size: 18px; padding: 15px 24px; min-height: 58px; box-sizing: border-box; }
.home-grid > .card-dark > .card-title .ic { width: 18px; height: 18px; }
.home-grid .card-body { padding: 24px 26px; }
.home-grid .tabs { margin-bottom: 26px; }
.home-grid .tabs a { font-size: 17px; padding: 12px 18px; }
.home-grid .tabs a .ic { width: 16px; height: 16px; }
.home-grid .sp-box { padding: 18px 20px 4px; }
.home-grid .sp-box .form-grid { gap: 0 12px; grid-template-columns: 1fr 1fr; }
.home-grid .sp-box label { font-size: 15px; margin-bottom: 14px; }
.home-grid .sp-box input { height: 38px; font-size: 15px; margin-top: 4px; }
.home-grid .control-bar { padding: 12px; margin-bottom: 20px; }
.home-grid .control-bar .btn-lg { padding: 9px 14px; font-size: 17px; }
.home-grid .control-bar .state { font-size: 17px; }
.home-grid .card-sub { font-size: 17px; padding: 14px 24px; }
.home-grid .rings { gap: 18px 8px; }
.home-grid .ring svg, .home-grid .ring-ic { width: 100px; height: 100px; }
.home-grid .ring-ic { margin-left: -50px; }
.home-grid .ring-ic .ic { width: 24px; height: 24px; }
.home-grid .ring-pct { font-size: 14px; }
.home-grid .ring-label { font-size: 10px; }
@media (max-width: 1400px) {
  .home-grid .tabs a { font-size: 15px; padding: 10px 12px; }
  .home-grid .ring svg, .home-grid .ring-ic { width: 84px; height: 84px; }
  .home-grid .ring-ic { margin-left: -42px; }
}

/* "Schimbă limba" pop-up */
.lang-modal { width: 1000px; max-width: calc(100vw - 32px); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.lang-modal::backdrop { background: rgba(0,0,0,.45); }
.lang-modal .lm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7ea; }
.lang-modal .lm-head h3 { margin: 0; font-size: 22px; font-weight: 500; }
.lang-modal .lm-x { background: none; border: 0; font-size: 28px; line-height: 1; color: #555; cursor: pointer; }
.lang-modal .lm-body { padding: 20px 20px 50px; border-bottom: 1px solid #e5e7ea; margin-bottom: 40px; }
.lang-modal .alert .ic { width: 16px; height: 16px; vertical-align: -2px; }
.lang-modal .lm-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; font-size: 17px; }
.lang-modal .lm-row select { width: auto; min-width: 140px; margin: 0; height: 46px; font-size: 17px; }
.lang-modal .lm-row .btn { font-size: 17px; padding: 10px 16px; }
/* login logo "studio": clean dark band so the logo reads well; spotlight, reflection, neon edges, thin spectrum */
.login-logo.brand-anim { background: linear-gradient(180deg, #0b1222 0%, #070b16 100%); min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 20px 38px; }
.st-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.st-photo { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(6px) brightness(.22) saturate(.8); animation: st-drift 30s ease-in-out infinite alternate; }
.st-spot { position: absolute; left: 50%; top: 46%; width: 520px; height: 220px; margin: -110px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(120,190,255,.22) 0%, rgba(60,110,200,.10) 40%, transparent 70%); animation: st-breathe 6s ease-in-out infinite; }
.st-edge { position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.st-edge.top { top: 0; } .st-edge.bottom { bottom: 0; }
.st-edge::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, #22d3ee, #a855f7, transparent); animation: st-run 4.5s linear infinite; }
.st-edge.bottom::after { animation-direction: reverse; animation-delay: -2.2s; }
.st-spectrum { position: absolute; left: 12%; right: 12%; bottom: 8px; height: 14px; display: flex; align-items: flex-end; gap: 3px; opacity: .55; }
.st-spectrum i { flex: 1; height: 100%; border-radius: 1px; background: linear-gradient(to top, #22d3ee, #a855f7); transform-origin: bottom; transform: scaleY(.2);
  animation: st-bar 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -71ms); }
.st-spectrum i:nth-child(odd) { animation-duration: .85s; }
.st-spectrum i:nth-child(3n) { animation-duration: 1.5s; }
.st-shine { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.st-shine::before { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); animation: st-shine 6.5s ease-in-out infinite; }
.login-logo.brand-anim .ba-logo, .login-logo.brand-anim .login-sub { position: relative; z-index: 3; }
.login-logo.brand-anim .ba-logo { animation: none; }
.login-logo.brand-anim .ba-logo img { max-height: 96px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.login-logo.brand-anim .login-sub { margin-top: 12px; color: #c9d6e8; font-weight: 700; letter-spacing: .16em; text-shadow: none; }
@keyframes st-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes st-run { to { left: 100%; } }
@keyframes st-bar { 0% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
@keyframes st-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes st-drift { to { transform: scale(1.08) translate(-2%, -1%); } }

/* ---- top bar logo: the same "studio" animation as on the login page, smaller ---- */
.brand-in.brand-anim { position: static; justify-content: center; }
.brand-in .st-stage { background: linear-gradient(180deg, #0b1222 0%, #070b16 100%); }
.brand-in .st-spot { width: 300px; height: 110px; margin: -55px 0 0 -150px; top: 50%; }
.brand-in .st-spectrum { left: 8%; right: 8%; bottom: 3px; height: 7px; gap: 2px; opacity: .5; }
.brand-in.brand-anim .ba-logo { position: relative; z-index: 3; display: flex; align-items: center; }
.brand-in.brand-anim .ba-logo img { max-height: 44px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.brand-in.brand-anim .login-name { position: relative; z-index: 3; }
@media (max-width: 960px) { .brand-in .st-stage, .brand-in .st-shine { display: none; } .brand-in.brand-anim { justify-content: flex-start; } }

/* ---- footer links ---- */
.panel-footer a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px dotted currentColor; }
.panel-footer a:hover { color: #17a2b8; }

/* ---- theme button (moon = switch to dark, sun = switch to light) ---- */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; color: #d6d9df; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); margin-left: auto; transition: background .15s, color .15s; }
.theme-toggle:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.theme-toggle .ic { width: 19px; height: 19px; }
.theme-toggle + .top-info { margin-left: 16px; }
.theme-toggle .tt-sun, [data-theme=dark] .theme-toggle .tt-moon { display: none; }
[data-theme=dark] .theme-toggle .tt-sun { display: block; color: #ffd166; }
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 50; }
@media (max-width: 960px) { .theme-toggle { width: 34px; height: 34px; } }

/* ---- browser zoom / small screens: everything fits the window, no sideways scrolling ---- */
html, body { max-width: 100%; overflow-x: clip; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.dark-table, .table-wrap { overflow-x: auto; max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
img, video, iframe { max-width: 100%; }
.content, .card, .form-box, .panel-box, .sp-box { min-width: 0; }
.topbar { min-width: 0; }
.top-info { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-info > div { overflow: hidden; text-overflow: ellipsis; }
.top-link { white-space: nowrap; }
@media (max-width: 1200px) { .topbar .brand { min-width: 230px; } .sidebar { width: 250px; } .top-info { font-size: 12px; } }
@media (max-width: 960px) { .topbar .brand { min-width: 0; } .sidebar { width: 280px; max-width: 85vw; } }
@media (max-width: 600px) { .home-grid .sp-box .form-grid { grid-template-columns: 1fr; } .search { flex-wrap: wrap; } .control-bar .btn-lg { padding: 9px 12px; font-size: 15px; } }

/* ==================================================================== dark theme */
[data-theme=dark] {
  color-scheme: dark;
  --bg: #12151a;
  --surface: #1b1f26;
  --surface-2: #222731;
  --surface-3: #2a303b;
  --border: #2f3541;
  --text: #e2e6ed;
  --muted: #98a2b3;
  --top: #0d0f13;
  --side: #161a20;
  --side-group: #1e232b;
  --head: #0b1626;
  --primary: #4d94ff;
  --ok-bg: #12301c;
  --err-bg: #3a1519;
  --warn-bg: #3a2e0c;
  --info-bg: #102a44;
  --shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
[data-theme=dark] body { background: var(--bg); color: var(--text); }
[data-theme=dark] a { color: #5fb0ff; }
[data-theme=dark] .topbar .brand { background: #0a0c10; }
[data-theme=dark] pre.mono, [data-theme=dark] pre { background: var(--surface-2); border-color: var(--border); color: var(--text); }
/* sidebar */
[data-theme=dark] .side-search { background: var(--side); }
[data-theme=dark] .nav-group { color: #e8ebf0; }
[data-theme=dark] .nav-link { color: #cdd3dc; }
[data-theme=dark] .nav-link::before { background: #7d8798; }
[data-theme=dark] .nav-link:hover { background: #20252e; }
[data-theme=dark] .nav-link.active { background: #2a313c; color: #fff; }
[data-theme=dark] .nav-link.disabled { color: #5d6675; }
/* page */
[data-theme=dark] .crumbs { background: #181c22; }
[data-theme=dark] .page-title, [data-theme=dark] .tiles-title { color: #e8ebf0; }
[data-theme=dark] .panel-footer { background: #0f1216; color: #8b95a5; }
[data-theme=dark] .tile a .ic { color: #aab3c2; }
[data-theme=dark] .tile p { color: #98a2b3; }
[data-theme=dark] .note-box { background: #231d0e; border-color: #5a4614; }
[data-theme=dark] .info-box { background: var(--surface); }
/* gauges, bars, charts */
[data-theme=dark] .gauge-ring { background: conic-gradient(var(--teal) var(--deg), #333a46 0); }
[data-theme=dark] .gauge-ring span { background: var(--surface); color: var(--text); }
[data-theme=dark] .gauge-label { color: #b6bfcc; }
[data-theme=dark] .bar { background: #333a46; }
[data-theme=dark] .chart .grid, [data-theme=dark] .traffic-chart .grid line { stroke: #2f3541; }
[data-theme=dark] .tm-legend { color: #aab3c2; }
/* tables */
[data-theme=dark] tbody tr:nth-child(even) { background: #1f242c; }
[data-theme=dark] tbody tr:hover { background: #232b35; }
[data-theme=dark] .dark-table table { background: #171a1f; }
[data-theme=dark] .dark-table tbody tr:nth-child(even) { background: #13161a; }
[data-theme=dark] .dark-table tbody tr:hover { background: #222831; }
[data-theme=dark] .dark-table tbody tr { border-bottom-color: #2a2f37; }
/* modals */
[data-theme=dark] .modal, [data-theme=dark] .lang-modal { background: var(--surface); color: var(--text); }
[data-theme=dark] .modal-close, [data-theme=dark] .lang-modal .lm-x { color: #c3cad6; }
[data-theme=dark] .lang-modal .lm-head, [data-theme=dark] .lang-modal .lm-body { border-color: var(--border); }
[data-theme=dark] body.modal-page { background: var(--surface); }
/* tabs, badges, alerts */
[data-theme=dark] .tabs a:hover { background: var(--surface-2); }
[data-theme=dark] .tabs a.active { background: var(--surface); color: #fff; }
[data-theme=dark] .badge-ok { color: #6fdc8c; }
[data-theme=dark] .badge-off { background: #2a303b; }
[data-theme=dark] .badge-err { color: #ff8a95; }
[data-theme=dark] .badge-warn { color: #ffd166; }
[data-theme=dark] .badge-wait { color: #7fb8ff; }
[data-theme=dark] .alert-ok { color: #8fe3a5; border-color: #1f5a31; }
[data-theme=dark] .alert-err { color: #ff9ca5; border-color: #6b242c; }
[data-theme=dark] .alert-info { color: #9ccaff; border-color: #1e4a75; }
[data-theme=dark] .alert-warn { color: #ffd88a; border-color: #6a5418; }
[data-theme=dark] .alert a { color: inherit; text-decoration: underline; }
/* forms */
[data-theme=dark] label { color: #c3cad6; }
[data-theme=dark] input[type=text], [data-theme=dark] input[type=password], [data-theme=dark] input[type=email], [data-theme=dark] input[type=number],
[data-theme=dark] input[type=search], [data-theme=dark] input[type=url], [data-theme=dark] input[type=date], [data-theme=dark] input[type=time],
[data-theme=dark] input:not([type]), [data-theme=dark] select, [data-theme=dark] textarea { background: #12151a; border-color: #3a4150; color: var(--text); }
[data-theme=dark] input[readonly], [data-theme=dark] .sp-box input[readonly], [data-theme=dark] .sp-box select[disabled] { background: #1f242c; color: #b6bfcc; }
[data-theme=dark] .form-box { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
[data-theme=dark] .input-ic, [data-theme=dark] .search-icon { background: #12151a; border-color: #3a4150; }
[data-theme=dark] .input-ic > span, [data-theme=dark] .search-icon span { background: #232831; color: #b6bfcc; border-color: #3a4150; }
[data-theme=dark] .btn { background: #2a303b; color: var(--text); }
[data-theme=dark] .btn-primary { background: #2f6fe0; color: #fff; }
[data-theme=dark] .btn-teal { background: var(--teal); color: #fff; }
[data-theme=dark] .btn-ok { background: var(--ok); color: #fff; }
[data-theme=dark] .btn-danger { background: var(--err); color: #fff; }
[data-theme=dark] .btn-warn { background: #ffc107; color: #222; }
[data-theme=dark] .btn-gray { background: #5a6270; color: #fff; }
[data-theme=dark] .btn-light { background: #232831; border-color: #3a4150; color: var(--text); }
[data-theme=dark] .control-bar, [data-theme=dark] .player, [data-theme=dark] .pl-bar { background: #1f242c; border-color: var(--border); }
[data-theme=dark] .player .player-box { background: #171b21; border-color: var(--border); }
[data-theme=dark] .player .np { color: var(--text); }
/* packages */
[data-theme=dark] .pkg h3 { background: var(--surface-2); }
[data-theme=dark] .pkg li { color: #b6bfcc; }
/* client pages */
[data-theme=dark] .sp-box { border-color: #3a4150; }
[data-theme=dark] .sp-box input.link { color: #7fc4ff; }
[data-theme=dark] .panel-box { background: var(--surface); border-color: var(--border); }
[data-theme=dark] .panel-box-head { background: var(--surface-2); border-color: var(--border); }
[data-theme=dark] .sch-title { border-color: var(--border); }
[data-theme=dark] label.opt span { color: var(--muted); }
[data-theme=dark] .pl-tools { background: var(--surface); border-color: var(--border); border-left-color: #5bc0de; }
[data-theme=dark] .pl-tools p { color: var(--text); }
[data-theme=dark] .trk { background: linear-gradient(#20252d, #1b1f26); border-color: var(--border); }
[data-theme=dark] .trk-name, [data-theme=dark] .trk-ic { color: #3fbbe0; }
[data-theme=dark] .trk-body { background: #161a20; border-color: var(--border); }
[data-theme=dark] .trk-cover { background: #12151a; }
[data-theme=dark] .trk-edit { background: var(--surface); border-color: var(--border); }
[data-theme=dark] .note-arrow { background: linear-gradient(#211c10, #1b1810); border-color: #5a4614; }
[data-theme=dark] .dropzone { background: var(--surface); border-color: #4d94ff; }
[data-theme=dark] .dropzone.over { background: #142236; }
[data-theme=dark] .dz-list li { color: var(--text); }
[data-theme=dark] .dz-list li:nth-child(odd) { background: #20252d; }
/* client home */
[data-theme=dark] .home-grid, [data-theme=dark] .home-grid > .card { border-color: var(--border); }
[data-theme=dark] .card-sub { background: var(--surface-2); color: var(--text); border-color: var(--border); }
[data-theme=dark] .hp-box { background: #1f242c; border-color: #2c7f99; }
[data-theme=dark] .hp-player img { background: #12151a; }
[data-theme=dark] .hp-btn { background: linear-gradient(#323946, #252b35); color: #c3cad6; border-color: #3f7fae; box-shadow: 0 0 0 3px rgba(63,127,174,.25); }
[data-theme=dark] .hp-btn.on { color: #3fbbe0; border-color: #3fbbe0; }
[data-theme=dark] .hp-bar { background: #333a46; }
[data-theme=dark] .hp-time, [data-theme=dark] .hp-vol { color: #aab3c2; }
[data-theme=dark] .hp-np { background: #2a303b; color: #e2e6ed; }
[data-theme=dark] .ring-bg { stroke: #333a46; }
[data-theme=dark] .ring-pct { color: #aab3c2; border-color: #3a4150; }
[data-theme=dark] .ring-label { color: #c3cad6; }
/* login */
[data-theme=dark] .login-page { background: #0b0d11; }
[data-theme=dark] .login-card { background: #1b1f26; }
[data-theme=dark] .login-field { border-color: #3a4150; }
[data-theme=dark] .login-field input { background: #12151a; color: var(--text); }
[data-theme=dark] .login-done a { color: #5fb0ff; }
/* inline-styled boxes in a few pages */
[data-theme=dark] [style*="background:#f8f9fb"], [data-theme=dark] [style*="background:#f6f7f9"], [data-theme=dark] :not(iframe)[style*="background:#fff"] { background: var(--surface-2) !important; }
[data-theme=dark] [style*="background:#add8e6"] { background: #1e3a48 !important; }
[data-theme=dark] .login-page .panel-footer { background: none; }

/* traffic monitor: the two charts side by side, values on mouse hover */
.tm-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 6px; }
.tm-charts > div { min-width: 0; }
.tm-charts .traffic-chart { height: auto; }
.tm-chart { position: relative; }
.tm-chart svg { cursor: crosshair; }
.tm-vline { stroke: #8a93a3; stroke-width: 1; stroke-dasharray: 4 3; }
.tm-hover circle { stroke: #fff; stroke-width: 2; }
.tm-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 190px; padding: 9px 12px; border-radius: 6px; background: rgba(20, 24, 31, .94); color: #e8ebf0; font-size: 13px; line-height: 1.6; box-shadow: 0 6px 20px rgba(0,0,0,.3); white-space: nowrap; }
.tm-tip > b { display: block; margin-bottom: 2px; color: #fff; }
.tm-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
[data-theme=dark] .tm-tip { background: rgba(42, 48, 59, .97); border: 1px solid #3a4150; }
[data-theme=dark] .tm-hover circle { stroke: #1b1f26; }
@media (max-width: 1100px) { .tm-charts { grid-template-columns: 1fr; } }

/* listener charts: smooth line, gradient area, tooltip on hover (svg_chart) */
.chart.lc { height: auto; overflow: visible; }
.chart.lc .grid { stroke: #e6e9ef; stroke-width: 1; }
.chart.lc .grid.dash { stroke-dasharray: 4 5; }
.chart.lc .line { fill: none; stroke: #17a2b8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: none; }
.chart.lc text { font-size: 17px; fill: #8a93a3; }
.chart.lc .lc-last { fill: #17a2b8; stroke: #fff; stroke-width: 3; }
.chart.lc .tm-hover circle { stroke: #fff; stroke-width: 3; }
.chart.lc { cursor: crosshair; }
[data-theme=dark] .chart.lc .grid { stroke: #2f3541; }
[data-theme=dark] .chart.lc .lc-last, [data-theme=dark] .chart.lc .tm-hover circle { stroke: #1b1f26; }

/* client "Ghid de utilizare" */
.gd-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 18px; border-radius: 10px; color: #fff; background: linear-gradient(120deg, #0f2135, #14607a); }
.gd-hero h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; }
.gd-hero p { margin: 0; color: #d3e3ec; max-width: 820px; }
.gd-hero-ic { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.gd-hero-ic .ic { width: 28px; height: 28px; }
.gd-start { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--ok); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 18px; }
.gd-start h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.gd-start ol { margin: 0; padding-left: 22px; line-height: 1.9; }
.gd-tools { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 8px 0 12px; margin-bottom: 8px; }
.gd-tools input { margin: 0 0 10px; height: 44px; font-size: 16px; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.gd-chips a:hover { border-color: var(--teal); text-decoration: none; }
.gd-group { margin-bottom: 26px; scroll-margin-top: 190px; }
.gd-group-title { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px 16px; font-size: 18px; background: var(--side-group); border: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.gd-group-title .ic { width: 21px; height: 21px; }
.gd-item { background: var(--surface); border: 1px solid var(--border); border-top: 0; }
.gd-item:last-child { border-radius: 0 0 8px 8px; }
.gd-item summary { display: grid; grid-template-columns: 22px minmax(190px, 330px) 1fr; align-items: baseline; gap: 4px 10px; padding: 13px 16px; cursor: pointer; list-style: none; }
.gd-item summary::-webkit-details-marker { display: none; }
.gd-item summary::before { content: "›"; color: var(--teal); font-size: 22px; font-weight: 700; line-height: 1; transition: transform .15s; justify-self: center; }
.gd-item[open] summary::before { transform: rotate(90deg); }
.gd-item summary:hover { background: var(--side); }
.gd-title { font-weight: 700; color: var(--teal); }
.gd-what { color: var(--muted); font-size: 14px; }
.gd-body { padding: 4px 22px 18px 48px; border-top: 1px dashed var(--border); }
.gd-body h3 { margin: 12px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gd-body ol { margin: 0 0 14px; padding-left: 20px; line-height: 1.75; }
@media (max-width: 760px) { .gd-item summary { grid-template-columns: 22px 1fr; } .gd-what { grid-column: 2; } .gd-body { padding-left: 22px; } .gd-tools { position: static; } .gd-hero { padding: 16px; } .gd-hero-ic { display: none; } }

/* client "Spune microfon": record button */
.vc-box { text-align: center; max-width: 720px; padding: 30px 24px; }
.vc-box .form-grid, .vc-box .form-actions { text-align: left; }
.vc-box audio { width: 100%; }
.vc-rec { width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--teal); display: inline-grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: background .15s; }
.vc-rec .ic { width: 42px; height: 42px; }
.vc-rec.on { background: var(--err); animation: vc-pulse 1.3s ease-in-out infinite; }
.vc-time { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 14px 0 4px; }
@keyframes vc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,.5); } 50% { box-shadow: 0 0 0 18px rgba(220,53,69,0); } }

/* top bar: the colours of the logo animation continue along the whole bar, with the neon line running end to end */
.topbar { background: linear-gradient(180deg, #0b1222 0%, #070b16 100%); }
.topbar .brand { background: none; box-shadow: none; }
.brand-in .st-stage { background: none; }
.brand-in .st-edge { display: none; }
.topbar:has(.brand-anim)::before, .topbar:has(.brand-anim)::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; pointer-events: none; background-color: rgba(255,255,255,.06); background-image: linear-gradient(90deg, transparent, #22d3ee, #a855f7, transparent); background-repeat: no-repeat; background-size: 30% 100%; animation: tb-run 7s linear infinite; }
.topbar::before { top: 0; }
.topbar::after { bottom: 0; animation-direction: reverse !important; animation-delay: -3.5s !important; }
@keyframes tb-run { from { background-position: -43% 0; } to { background-position: 143% 0; } }
@media (prefers-reduced-motion: reduce) { .topbar::before, .topbar::after { animation: none !important; } }
.topbar a.top-link, [data-theme=dark] .topbar a.top-link { color: #d6d9df; }
.topbar a.top-link:hover, [data-theme=dark] .topbar a.top-link:hover { color: #fff; }
[data-theme=dark] .topbar .brand { background: none; }

/* "Monitorizare porturi panel" pop-up */
.ports-modal { max-width: min(860px, calc(100vw - 32px)); }
.ports-modal .lm-body { padding: 18px 20px 22px; border-bottom: 0; margin-bottom: 0; }
.ports-modal table td { vertical-align: middle; }
.pm-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pm-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pm-on { color: #1fa14a; } .pm-off { color: #dc3545; } .pm-na { color: var(--muted); }
.pm-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }

/* licence list: the action buttons wrap inside the cell */
.lic-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 200px; }
.lic-actions form { margin: 0; }
.ports-modal { max-width: min(1120px, calc(100vw - 32px)); width: 1120px; }
.ports-modal .tm-charts { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .ports-modal .tm-charts { grid-template-columns: 1fr; } }
.ports-modal .pr-mode { width: auto; margin: 0; padding: 3px 6px; font-size: 13px; }

/* page numbers under a long list (table_pager) */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 12px; }
.pager a { min-width: 32px; padding: 4px 8px; text-align: center; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 13px; }
.pager a:hover { border-color: var(--teal); text-decoration: none; }
.pager a.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.pager a.off { opacity: .4; pointer-events: none; }
.pager span { color: var(--muted); padding: 0 3px; }
.pager .pager-info { margin-left: auto; font-size: 13px; }

/* countries the attacks come from */
.at-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.at-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.at-head h3 { margin: 0; }
.at-head select { width: auto; margin: 0; padding: 3px 6px; font-size: 13px; }
.at-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.at-row .at-name { flex: 0 0 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.at-row .at-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.at-row .at-bar i { display: block; height: 100%; background: var(--err); }
.at-row b { min-width: 70px; text-align: right; }

/* licence list: client account bar, date that can be changed in place */
.lic-client { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lic-table input.lic-date { width: 138px; margin: 0; padding: 4px 6px; font-size: 13px; color: #f1f3f5; background: #2b3035; border: 1px solid #495057; color-scheme: dark; }
.dark-table a.lic-count { color: #5fd3e6; font-size: 13px; }
.lic-date-save { display: block; margin-top: 4px; }
.lic-date-save[hidden] { display: none; }

/* "Șabloane email": visual editor */
.et-intro { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.tabs a .ic { margin-right: 2px; }
.et-subject { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.et-subject input { width: 360px; max-width: 100%; margin: 0; padding: 5px 8px; }
.et-editor { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.et-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; background: var(--side-group); border-bottom: 1px solid var(--border); }
.et-bar select { width: auto; margin: 0; padding: 5px 6px; font-size: 13px; }
.et-bar button, .et-color { display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid #c9ced8; background: #fff; color: #333; cursor: pointer; font-size: 15px; }
.et-one { border-radius: 4px; }
.et-bar button:hover, .et-color:hover { background: #eef0f3; }
.et-bar button.on { background: var(--teal); color: #fff; }
.et-group { display: inline-flex; }
.et-group > :first-child { border-radius: 4px 0 0 4px; }
.et-group > :last-child { border-radius: 0 4px 4px 0; }
.et-group > * + * { border-left: 0; }
.et-a { background: #ff0; padding: 0 3px; color: #111; }
.et-color { position: relative; margin: 0; min-width: 24px; padding: 0; }
.et-color input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.et-caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.et-off { opacity: .4; pointer-events: none; }
.et-area { min-height: 460px; max-height: 620px; overflow: auto; resize: vertical; padding: 12px 14px; font: 15px/1.65 Helvetica, Arial, sans-serif; background: #fff; color: #111; outline: none; }
.et-area a { color: #337ab7; }
.et-area img { max-width: 100%; }
textarea.et-code { display: block; width: 100%; min-height: 460px; margin: 0; border: 0; border-radius: 0; font: 13px/1.5 ui-monospace, Consolas, monospace; }
textarea.et-code[hidden] { display: none; }
.et-vars { margin: 12px 0; line-height: 2; }
.et-var code { padding: 1px 5px; border: 1px solid var(--border); border-radius: 3px; }
[data-theme=dark] .et-bar button, [data-theme=dark] .et-color { background: #232831; border-color: #3a4150; color: #e2e6ed; }
[data-theme=dark] .et-bar button:hover, [data-theme=dark] .et-color:hover { background: #2a303b; }
