:root {
  color-scheme: light;
  --bg: #edf3f1;
  --panel: #ffffff;
  --ink: #16332d;
  --muted: #6d807c;
  --line: #d8e4e0;
  --green: #087f5b;
  --green-bright: #16a978;
  --green-soft: #e1f2ec;
  --nav: #092d27;
  --red: #bd3d48;
  --red-soft: #fbeaec;
  --amber: #b76d0d;
  --amber-soft: #fff3df;
  --blue: #2865a8;
  --shadow: 0 8px 26px rgba(35, 70, 63, .08);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 2%, rgba(49, 216, 155, .08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  background: var(--nav);
  color: #eaf8f4;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 7px 30px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #31d89b, #79e6c1);
  color: #06231d;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(49, 216, 155, .16);
}

.brand strong { display: block; font-size: 1.06rem; }
.brand small { display: block; margin-top: 2px; color: #9fc5bb; }

.nav-label {
  margin: 2px 14px 9px;
  color: #6f9c91;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.main-nav { display: grid; gap: 7px; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #bcd4ce;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}
.main-nav a:hover { transform: translateX(2px); }
.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #8ccfba;
  background: rgba(255, 255, 255, .06);
  font-size: .78rem;
  font-weight: 900;
}
.main-nav a.active .nav-icon { color: #06231d; background: #31d89b; }

.sidebar-foot { margin-top: auto; padding: 18px 7px 0; }
.provider-credit { display: block; margin-top: 14px; color: #9fc5bb; font-size: .72rem; text-align: center; text-decoration: none; }
.provider-credit:hover, .login-provider-credit:hover { color: #31d89b; text-decoration: underline; }
.signed-user { margin-bottom: 12px; color: #9fc5bb; font-size: .79rem; }
.signed-user strong { display: block; color: #eaf8f4; font-size: .9rem; overflow-wrap: anywhere; }
.logout-form { margin: 0; }
.logout-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #386159;
  border-radius: 10px;
  background: transparent;
  color: #bcd4ce;
  cursor: pointer;
  font-weight: 700;
}
.logout-button:hover { color: #fff; border-color: #5b877d; }

.content {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -.025em; }
.page-subtitle { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 19px; height: 3px; border-radius: 99px; background: var(--green-bright); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 16px; font-size: 1.08rem; letter-spacing: -.01em; }
.card h3 { margin: 0 0 8px; font-size: 1rem; }
.card-accent { border-left: 4px solid var(--green-bright); }
.card-danger { border-left: 4px solid var(--red); }
.card.active-release { border: 2px solid var(--green-bright); background: #f6fcfa; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.metric {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e7efec;
  border-radius: 13px;
  background: #f6f9f8;
}
.metric-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.metric-value { display: block; font-size: 1.2rem; font-weight: 850; overflow-wrap: anywhere; }
.metric-note { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.4; }

.status-dot::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}
.ONLINE, .COMPLETED, .APPLIED, .ACTIVE, .VALID, .success { color: var(--green); font-weight: 800; }
.OFFLINE, .FAILED, .REJECTED, .ERROR, .INVALID, .danger { color: var(--red); font-weight: 800; }
.UNKNOWN, .PENDING, .QUEUED, .PUBLISHED, .ACCEPTED, .warning { color: var(--amber); font-weight: 800; }
.neutral { color: var(--muted); font-weight: 800; }

.pill, .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 99px;
  background: #e4efeb;
  font-size: .75rem;
  font-weight: 800;
}

.muted, .help, .helptext { color: var(--muted); }
.help, .helptext { font-size: .87rem; line-height: 1.5; }
.device-id, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.device-id { font-size: .87rem; }

.message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #cfe6de;
  border-radius: 11px;
  background: var(--green-soft);
  color: #17654f;
  line-height: 1.45;
}
.message.error, .error-box { border-color: #f0cdd2; background: var(--red-soft); color: #8d2630; }
.message.warning { border-color: #eed7b2; background: var(--amber-soft); color: #84510e; }

label { display: block; margin: 12px 0 7px; font-size: .88rem; font-weight: 750; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9d8d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(22, 169, 120, .13);
}

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}
.button:hover { background: #066c4d; transform: translateY(-1px); }
.button.secondary { background: #e1ece9; color: var(--ink); }
.button.secondary:hover { background: #d4e3de; }
.button.danger-button { background: var(--red); color: #fff; }
.button.danger-button:hover { background: #a92f3a; }
.button.small { min-height: 36px; padding: 8px 11px; font-size: .82rem; }
.button.block { width: 100%; }

.actions { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; }
.actions form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 0; }
.actions input { width: 118px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: end; gap: 10px; }
.user-management-grid { grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); }
.user-management-grid .wide { grid-column: auto; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0 0 14px; }
.current-user-label { display: block; margin-top: 3px; color: var(--green); font-weight: 750; }
.user-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.user-actions form { margin: 0; }
.bulk-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.table-checkbox { width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.compact-device-list { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); margin-top: 14px; }
.selection-device { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfa; cursor: pointer; }
.selection-device span { min-width: 0; }
.selection-device strong, .selection-device small { display: block; }
.selection-device small { margin-top: 3px; }
.manual-role-card { position: relative; overflow: hidden; }
.manual-role-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green-bright); }
.manual-role-card.role-remote::before { background: var(--blue); }
.manual-role-card.role-candles::before { background: var(--amber); }
.role-heading { display: flex; align-items: flex-start; gap: 13px; }
.role-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 900; }
.role-heading h2 { margin: 0 0 3px; }
.role-heading .metric-label { margin-bottom: 3px; }
.empty-inline { display: flex; flex-direction: column; gap: 5px; padding: 16px; border-radius: 11px; background: #f3f7f6; color: var(--muted); }
.empty-inline strong { color: var(--ink); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 230px) auto;
  align-items: end;
  gap: 10px;
  margin: 15px 0 12px;
}
.table-tools label { margin: 0; }
.table-result {
  min-width: 82px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #edf5f2;
  color: #42625b;
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 11px 12px; border-bottom: 1px solid #e8efec; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th {
  background: #f3f7f6;
  color: #57706a;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:hover { background: #fafcfb; }

.device-list { display: grid; gap: 12px; }
.device-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
}
.device-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.device-meta { display: flex; gap: 12px 20px; flex-wrap: wrap; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.device-meta b { color: var(--ink); font-weight: 750; }
.bell-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.bell-controls form {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #f3f7f6;
}
.bell-controls label { min-width: 76px; margin: 0; }
.bell-controls input, .bell-controls select { min-width: 74px; }
.error-text { color: var(--danger); font-weight: 700; }

.installation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.installation-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.installation-card:hover { transform: translateY(-2px); border-color: #9dcabc; box-shadow: 0 14px 30px rgba(35, 70, 63, .11); }
.installation-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.installation-card h2 { margin: 0; font-size: 1.05rem; }
.installation-devices { display: grid; gap: 8px; margin-top: 16px; }
.installation-device { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid #e9efed; font-size: .83rem; }

.selector-layout {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  align-items: center;
  gap: 22px;
}
.welcome-panel { padding: 8px 10px; }
.welcome-panel h2 { margin: 0; max-width: 580px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.welcome-panel p { max-width: 560px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.welcome-points { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.welcome-points span { padding: 7px 10px; border-radius: 99px; background: rgba(255,255,255,.7); color: #45645c; font-size: .78rem; font-weight: 750; }

.home-metrics { margin-bottom: 20px; }
.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-action-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.home-action-card:hover {
  transform: translateY(-2px);
  border-color: #9dcabc;
  box-shadow: 0 14px 30px rgba(35, 70, 63, .11);
}
.home-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 900;
}
.home-action-card strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.home-action-card small { display: block; color: var(--muted); line-height: 1.45; }
.home-action-arrow { color: var(--green); font-size: 1.35rem; font-weight: 900; }

.release { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid #e8efec; }
.release:last-child { border-bottom: 0; }
.release p { margin: 3px 0; }
.release-info { min-width: 0; flex: 1 1 auto; }
.release-action-panel { width: 274px; flex: 0 0 274px; padding: 10px; border: 1px solid #d4e5df; border-radius: 12px; background: #f7fbf9; }
.release-action-label { display: block; margin: 1px 2px 8px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.release-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.release-actions form { margin: 0; }
.release-actions .button { width: 100%; min-height: 41px; gap: 8px; padding-inline: 12px; font-size: .81rem; white-space: nowrap; }
.release-action-panel .button.download-button { border: 1px solid #9fc9bc; background: #edf7f3; color: var(--green); }
.release-action-panel .button.download-button:hover { background: #dfeee8; color: #066c4d; }
.release-action-panel .button.activate-button { background: var(--green); }
.firmware-library-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 16px 0 12px; }
.firmware-role-tabs { display: flex; gap: 7px; padding: 5px; border-radius: 13px; background: #e8f1ee; }
.firmware-role-tab { min-height: 46px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: #55716a; cursor: pointer; text-align: left; }
.firmware-role-tab strong { display: block; font-size: .84rem; }
.firmware-role-tab span { display: block; margin-top: 2px; color: var(--muted); font-size: .68rem; font-weight: 750; white-space: nowrap; }
.firmware-role-tab.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(35,70,63,.1); }
.firmware-role-tab.active span { color: #4f776c; }
.firmware-search { width: min(360px, 100%); margin: 0; }
.firmware-table-wrap td { vertical-align: middle; }
.firmware-table-wrap th:last-child { width: 220px; }
.firmware-table-actions { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 205px; padding: 5px; }
.firmware-table-actions form { margin: 0; }
.firmware-table-actions .button { width: 100%; min-height: 38px; gap: 7px; padding: 8px 12px; white-space: nowrap; }
.firmware-table-actions .download-button { border: 1px solid #9fc9bc; background: #edf7f3; color: var(--green); }
.firmware-table-actions .download-button:hover { background: #dfeee8; color: #066c4d; }
.firmware-table-actions .activate-button { background: #176b55; box-shadow: 0 3px 9px rgba(8,127,91,.14); }
.firmware-table-actions .activate-button:hover { background: #105a47; }
.firmware-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.firmware-pagination > div { display: flex; gap: 7px; }
.firmware-pagination button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.flash-package-section { border-color: #b9d8cf; background: linear-gradient(145deg, #fff, #f5fbf8); }
.flash-package-warning { margin: 16px 0; padding: 12px 14px; border: 1px solid #e6c987; border-radius: 11px; background: #fff8e8; color: #76551c; font-size: .82rem; line-height: 1.5; }
.flash-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flash-package-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.flash-package-card > div { min-width: 0; }
.flash-package-card strong, .flash-package-card small { display: block; }
.flash-package-card small { margin-top: 3px; color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-package-card .button { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.button.disabled { opacity: .5; pointer-events: none; }


.empty-state { padding: 48px 20px; text-align: center; }
.empty-state .empty-mark { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; background: var(--green-soft); color: var(--green); font-weight: 900; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 10%, #24554a 0, transparent 35%),
    linear-gradient(145deg, #061512, #0d2823);
  color: #edf6f4;
}
.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid #284841;
  border-radius: 26px;
  background: rgba(16, 45, 40, .93);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
}
.login-card .brand-mark { width: 56px; height: 56px; }
.login-card h1 { margin: 20px 0 6px; font-size: 2rem; }
.login-card > p { margin: 0 0 24px; color: #9bb2ad; line-height: 1.5; }
.login-card label { color: #edf6f4; }
.login-card input { padding: 13px; border-color: #284841; background: #071d19; color: #edf6f4; }
.login-card .button { margin-top: 20px; background: #31d89b; color: #052019; }
.login-foot { margin-top: 20px !important; margin-bottom: 0 !important; font-size: .8rem; }
.login-provider-credit { display: block; margin-top: 14px; color: #9fc5bb; font-size: .78rem; text-align: center; text-decoration: none; }
.errorlist { padding-left: 20px; color: #ffb5ba; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .content { padding: 26px 22px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selector-layout { grid-template-columns: 1fr; min-height: auto; }
  .welcome-panel { padding: 28px 6px 8px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px; }
  .brand { margin: 0 4px 14px; }
  .nav-label { display: none; }
  .main-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 3px; }
  .main-nav a { flex: 0 0 auto; padding: 9px 11px; font-size: .78rem; }
  .nav-icon { display: none; }
  .sidebar-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px 0; border-top: 1px solid #234b43; margin-top: 12px; }
  .provider-credit { flex-basis: 100%; margin-top: 0; text-align: left; }
  .signed-user { margin: 0; }
  .logout-button { width: auto; }
  .content { padding: 20px 16px 36px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .grid, .grid.three, .form-grid, .user-management-grid { grid-template-columns: 1fr; }
  .flash-package-grid { grid-template-columns: 1fr; }
  .wide, .form-grid .full { grid-column: auto; }
  .device-card-head, .release { align-items: flex-start; flex-direction: column; }
  .release-action-panel { width: min(360px, 100%); flex-basis: auto; }
  .actions form { width: 100%; }
  .actions .button { flex: 1; }
  .table-tools { grid-template-columns: 1fr 1fr; }
  .table-result { grid-column: 1 / -1; }
  .bell-controls { grid-template-columns: 1fr; }
  .home-actions { grid-template-columns: 1fr; }
  .firmware-library-tools { align-items: stretch; flex-direction: column; }
  .firmware-role-tabs { overflow-x: auto; }
  .firmware-search { width: 100%; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .card { padding: 17px; }
  .inline-form { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .head-actions { width: 100%; }
  .welcome-panel h2 { font-size: 2.15rem; }
  .table-tools { grid-template-columns: 1fr; }
  .table-result { grid-column: auto; }
  .bell-controls form { align-items: stretch; flex-direction: column; }
  .firmware-pagination { align-items: stretch; flex-direction: column; }
  .firmware-pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
}
