:root {
  color-scheme: dark;
  --background: #08090a;
  --surface: #101113;
  --surface-high: #15171a;
  --foreground: #f4f4f5;
  --muted: #989ba0;
  --line: rgba(255, 255, 255, 0.1);
  --red: #ff2020;
  --red-bright: #ff4a4a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(122, 18, 18, 0.16), transparent 30rem),
    var(--background);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--red-bright);
  outline-offset: 3px;
}

.portal-shell {
  display: grid;
  width: min(calc(100% - 2rem), 88rem);
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.portal-header {
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.portal-brand img {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 32, 32, 0.25);
  border-radius: 0.4rem;
}

.portal-brand span span {
  color: var(--red);
  text-shadow: 0 0 1rem rgba(255, 32, 32, 0.5);
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.portal-nav > a {
  color: #a7aaae;
  font-size: 0.75rem;
  font-weight: 650;
}

.portal-nav > a:hover {
  color: white;
}

.secure-label,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #85888d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secure-label i,
.live-badge i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0.7rem rgba(255, 32, 32, 0.9);
}

.login-layout {
  display: grid;
  padding: clamp(4rem, 10vw, 8rem) 0;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--red-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-intro h1,
.dashboard-heading h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.login-intro h1 span {
  color: var(--red);
  text-shadow: 0 0 2.5rem rgba(255, 32, 32, 0.24);
}

.login-intro > p:last-child,
.dashboard-heading > div > p:last-child,
.required-change > p:last-child,
.account-panel > div > p:last-child {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-panel {
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  background: rgba(16, 17, 19, 0.92);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
}

.standalone-panel {
  align-self: center;
  max-width: 38rem;
  margin: 4rem auto;
}

.panel-heading {
  display: flex;
  margin-bottom: 2rem;
  align-items: center;
  gap: 1rem;
}

.panel-icon {
  display: inline-flex;
  width: 3.2rem;
  height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 32, 32, 0.24);
  border-radius: 0.5rem;
  background: rgba(255, 32, 32, 0.08);
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  text-shadow: 0 0 1rem rgba(255, 32, 32, 0.7);
}

.panel-heading h2,
.dashboard-card h2,
.account-panel h2,
.required-change h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.panel-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

label {
  display: block;
  margin: 1rem 0 0.45rem;
  color: #bfc1c4;
  font-size: 0.78rem;
  font-weight: 620;
}

input,
select,
textarea {
  width: 100%;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #090a0b;
  color: white;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 3.15rem;
}

textarea {
  min-height: 7rem;
  padding-top: 0.8rem;
  resize: vertical;
}

select {
  color-scheme: dark;
}

input[type="file"] {
  height: auto;
  min-height: 3.15rem;
  padding: 0.72rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 32, 32, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 32, 32, 0.1);
  outline: none;
}

.primary-button {
  width: 100%;
  min-height: 3.2rem;
  margin-top: 1.4rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--red);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 720;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: #ff3939;
  transform: translateY(-1px);
}

.security-note {
  margin: 1.15rem 0 0;
  color: #64676b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.61rem;
  line-height: 1.55;
  text-align: center;
}

.notice {
  padding: 0.8rem 0.9rem;
  border: 1px solid;
  font-size: 0.78rem;
  line-height: 1.5;
}

.notice-error {
  border-color: rgba(255, 74, 74, 0.28);
  background: rgba(255, 32, 32, 0.08);
  color: #ffb6b6;
}

.notice-success {
  border-color: rgba(101, 211, 153, 0.25);
  background: rgba(60, 174, 114, 0.08);
  color: #a9e4c4;
}

.dashboard {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.dashboard-heading {
  display: flex;
  margin-bottom: 3rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.dashboard-heading h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.portal-workspace {
  display: grid;
  min-height: 42rem;
  grid-template-columns: 15rem minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #0d0e10;
}

.portal-sidebar {
  display: flex;
  min-width: 0;
  padding: 1rem;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #08090a;
}

.sidebar-account {
  display: flex;
  min-width: 0;
  padding: 0.45rem;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-avatar {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 32, 32, 0.3);
  border-radius: 0.45rem;
  background: rgba(255, 32, 32, 0.08);
  color: var(--red-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.sidebar-account div {
  min-width: 0;
}

.sidebar-account strong,
.sidebar-account span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account strong {
  font-size: 0.78rem;
}

.sidebar-account span:last-child {
  margin-top: 0.2rem;
  color: #74777c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  margin-top: 1.5rem;
  gap: 0.35rem;
}

.sidebar-nav a {
  display: grid;
  padding: 0.65rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  color: #8e9196;
}

.sidebar-nav a:hover {
  border-color: var(--line);
  color: white;
}

.sidebar-nav a.is-active {
  border-color: rgba(255, 32, 32, 0.22);
  background: rgba(255, 32, 32, 0.075);
  color: white;
}

.sidebar-nav a > span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: #7c7f84;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.55rem;
  font-weight: 750;
}

.sidebar-nav a.is-active > span {
  border-color: rgba(255, 32, 32, 0.28);
  color: var(--red-bright);
}

.sidebar-nav strong,
.sidebar-nav small {
  display: block;
}

.sidebar-nav strong {
  font-size: 0.76rem;
}

.sidebar-nav small {
  margin-top: 0.2rem;
  color: #62656a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.54rem;
}

.sidebar-footer {
  display: grid;
  margin-top: auto;
  padding: 1rem 0.45rem 0.25rem;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
}

.sidebar-footer > a {
  color: #85888d;
  font-size: 0.66rem;
}

.sidebar-footer > a:hover {
  color: white;
}

.portal-main {
  min-width: 0;
  padding: 1.25rem;
  background: #101113;
}

.portal-main .portal-view,
.portal-main .management-panel,
.portal-main .account-panel {
  margin-top: 0;
}

.portal-main .dashboard-card-wide {
  min-height: 24rem;
}

.portal-enhanced .portal-view:not(.is-active) {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dashboard-card {
  min-height: 15rem;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.dashboard-card-wide {
  grid-row: span 2;
  min-height: 30rem;
}

.card-label {
  display: flex;
  margin-bottom: 4rem;
  align-items: center;
  justify-content: space-between;
  color: #696c71;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-label strong {
  color: var(--red-bright);
  font-weight: 700;
}

.status-online {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #53d68a;
  box-shadow: 0 0 0.7rem rgba(83, 214, 138, 0.7);
}

.dashboard-card h2 {
  font-size: 1.55rem;
}

.dashboard-card p {
  max-width: 28rem;
  margin: 0.8rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.dashboard-card a {
  color: var(--red-bright);
  font-size: 0.8rem;
  font-weight: 650;
}

.required-change {
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 32, 32, 0.22);
  background: rgba(255, 32, 32, 0.055);
}

.account-panel {
  display: grid;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
  gap: clamp(2rem, 7vw, 6rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.portal-main .account-panel {
  grid-template-columns: minmax(0, 0.7fr) minmax(20rem, 1fr);
}

.management-panel {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 1rem;
}

.management-heading {
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.management-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
}

.management-heading > div > p:last-child {
  max-width: 43rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.count-badge {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #85888d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.management-form {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  background: #0b0c0e;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.field-note {
  margin: 0.65rem 0 0;
  color: #65686d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
}

.compact-button {
  width: auto;
  min-width: 11rem;
  padding: 0 1.2rem;
}

.management-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.management-row,
.account-row {
  display: flex;
  min-height: 6.5rem;
  padding: 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.row-main {
  min-width: 0;
}

.row-main h3 {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.row-main h3 small {
  margin-left: 0.45rem;
  color: var(--red-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 650;
  text-transform: uppercase;
}

.row-main p {
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: #73767b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #73767b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.item-status::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #66696e;
  content: '';
}

.item-status.is-active {
  color: #9bd7b6;
}

.item-status.is-active::before {
  background: #53d68a;
  box-shadow: 0 0 0.6rem rgba(83, 214, 138, 0.55);
}

.row-actions,
.account-controls,
.inline-reset-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.version-uploader {
  position: relative;
}

.version-uploader > summary {
  list-style: none;
}

.version-uploader > summary::-webkit-details-marker {
  display: none;
}

.version-uploader[open] > summary {
  border-color: rgba(255, 32, 32, 0.32);
  color: white;
}

.version-uploader form {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(23rem, calc(100vw - 3rem));
  padding: 1rem;
  border: 1px solid rgba(255, 32, 32, 0.25);
  background: #0a0b0c;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.55);
}

.version-uploader form label:first-of-type {
  margin-top: 0;
}

.version-uploader form .primary-button {
  margin-top: 1rem;
}

.access-picker,
.account-entitlement-form fieldset {
  min-width: 0;
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
}

.access-picker legend,
.account-entitlement-form legend {
  padding: 0 0.45rem;
  color: #c6c8cb;
  font-size: 0.75rem;
  font-weight: 700;
}

.access-picker > p {
  margin: 0 0 0.8rem;
  color: #74777c;
  font-size: 0.72rem;
}

.access-options,
.entitlement-options {
  display: grid;
  gap: 0.45rem;
}

.access-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-options label,
.entitlement-options label {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0.7rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
}

.access-options input,
.entitlement-options input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.access-options span,
.access-options strong,
.access-options small {
  display: block;
  min-width: 0;
}

.access-options strong {
  overflow: hidden;
  color: #d8d9db;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-options small {
  margin-top: 0.2rem;
  color: #65686d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.57rem;
}

.account-controls {
  max-width: 36rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-entitlement-form {
  width: 100%;
}

.account-entitlement-form fieldset {
  display: flex;
  margin-top: 0;
  align-items: end;
  gap: 0.65rem;
}

.entitlement-options {
  min-width: 12rem;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entitlement-options label {
  padding: 0.5rem;
  font-size: 0.65rem;
}

.empty-choice {
  color: #686b70;
  font-size: 0.7rem;
}

.member-empty-state {
  display: flex;
  min-height: 13rem;
  padding: 2rem;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.member-empty-state > span {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 32, 32, 0.25);
  color: var(--red-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.member-empty-state h3,
.member-empty-state p {
  margin: 0;
}

.member-empty-state p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.row-actions form,
.account-controls form {
  margin: 0;
}

.small-button {
  display: inline-flex;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.035);
  color: #c1c3c6;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 650;
}

.small-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}

.danger-button {
  border-color: rgba(255, 32, 32, 0.2);
  color: #ff9d9d;
}

.inline-reset-form input {
  width: 13rem;
  height: 2.25rem;
  font-size: 0.7rem;
}

.current-account {
  color: #676a6f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
}

.empty-row {
  margin: 0;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #6f7277;
  font-size: 0.78rem;
}

.optional {
  color: #65686d;
  font-size: 0.64rem;
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logout-form {
  margin: 0;
}

.text-button {
  border: 0;
  background: transparent;
  color: #8d9095;
  cursor: pointer;
  font-size: 0.75rem;
}

.text-button:hover {
  color: white;
}

footer {
  display: flex;
  padding: 1.6rem 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #5f6267;
  font-size: 0.7rem;
}

@media (max-width: 980px) {
  .portal-workspace {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-footer {
    margin-top: 1rem;
    align-items: center;
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 760px) {
  .login-layout,
  .account-panel,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-wide {
    grid-row: auto;
    min-height: 15rem;
  }

  .management-row,
  .account-row,
  .management-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .row-actions,
  .account-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-options,
  .entitlement-options {
    grid-template-columns: 1fr;
  }

  .account-controls {
    width: 100%;
    max-width: none;
  }

  .account-entitlement-form fieldset {
    align-items: stretch;
    flex-direction: column;
  }

  .version-uploader form {
    position: fixed;
    top: 50%;
    right: 50%;
    max-height: calc(100svh - 2rem);
    overflow-y: auto;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 520px) {
  .secure-label {
    font-size: 0;
  }

  .login-layout {
    padding: 3rem 0;
  }

  .login-intro h1 {
    font-size: 3.4rem;
  }

  .portal-nav {
    gap: 0.7rem;
  }

  .portal-main {
    padding: 0.75rem;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .compact-button {
    width: 100%;
  }

  .inline-reset-form {
    width: 100%;
  }

  .inline-reset-form input {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button {
    transition: none;
  }
}
