:root {
  --paper: #f7f8fa;
  --white: #fff;
  --ink: #202930;
  --muted: #63717c;
  --line: #e2e6e9;
  --green: #176c53;
  --pale: #edf6f1;
  --red: #af3535;
  --amber: #8a641f;
  --radius: 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.navigation-progress {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  z-index: 10000;
}
.navigation-progress::backdrop {
  background: transparent;
  pointer-events: none;
}
.navigation-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease-out;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #218264;
  outline-offset: 2px;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 13px;
  font-weight: 550;
  transition: background 0.12s, border-color 0.12s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #125b45;
}
.secondary {
  background: #fff;
  border-color: #d9dfe3;
  color: var(--ink);
}
.secondary:hover {
  background: #f7f9fa;
  border-color: #b8c3ca;
}
.quiet {
  background: transparent;
  color: var(--muted);
}
.quiet:hover {
  background: #edf1f3;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  font-weight: 600;
}
h1 {
  font-size: 26px;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
p {
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 9px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  font-size: 19px;
  font-weight: 400;
}
.section-label {
  margin: 29px 10px 9px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: #7b8790;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8dfe3;
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  min-height: 40px;
  box-shadow: 0 1px 2px #172d3b04;
  transition: border-color 0.12s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #b8c4cb;
}
input::placeholder,
textarea::placeholder {
  color: #87929a;
}
input:disabled,
select:disabled {
  background: #f5f7f8;
  color: var(--muted);
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #6f7c85 50%), linear-gradient(135deg, #6f7c85 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select-wrap {
  display: block;
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 19px;
  font-size: 13px;
  font-weight: 550;
}
.credential-field {
  margin-bottom: 19px;
  min-width: 0;
}
.credential-field > label {
  margin-bottom: 7px;
}
.password-control {
  position: relative;
}
.password-control input {
  min-height: 44px;
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 1px;
  top: 0;
  bottom: 0;
  width: 44px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}
.password-toggle:hover {
  color: var(--ink);
  background: #edf3f1;
}
.password-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.credential-hint,
.field-error {
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}
.credential-hint {
  color: var(--muted);
}
.field-error {
  color: #b42318;
}
.credential-field input[aria-invalid="true"] {
  border-color: #b42318;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--green);
  margin: 0;
}
.check-label {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 450;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: -8px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-story {
  padding: 50px clamp(30px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #eef3f0;
  border-right: 1px solid var(--line);
}
.login-story > div {
  max-width: 390px;
  margin: 80px 0;
}
.login-story h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 16px 0;
}
.intro {
  font-size: 16px;
  color: #54655c;
  line-height: 1.7;
}
.journey {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}
.journey li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 14px;
}
.journey span {
  border: 1px solid #cedbd3;
  background: #f8fbf9;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--green);
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.login-form > p.muted {
  margin-bottom: 27px;
}
.login-form > .primary {
  width: 100%;
  margin: 4px 0 20px;
}
.login-form > .small {
  line-height: 1.5;
}
.workspace {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scroll-padding-block: 16px;
}
.sidebar > * {
  flex-shrink: 0;
}
.sidebar > .brand {
  padding: 0 9px;
  margin-bottom: 7px;
}
.sidebar select {
  font-size: 12px;
  padding-left: 10px;
}
.add {
  font-size: 12px;
  text-align: left;
  padding-left: 10px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  color: #52616b;
  padding: 10px;
  min-height: 38px;
  font-weight: 450;
  font-size: 13px;
}
.nav-button:hover {
  background: #f4f6f7;
}
.nav-button.selected {
  background: var(--pale);
  color: var(--green);
  font-weight: 600;
}
.channel-count {
  font-size: 11px;
  color: #87958d;
}
.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0 14px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 9px 0;
  color: var(--muted);
  font-size: 11px;
}
.health-dot {
  width: 6px;
  height: 6px;
  background: #23916b;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}
#identity {
  margin: 19px 0 7px;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: #56646e;
}
.sidebar-bottom button {
  padding: 6px 0;
  min-height: 28px;
  font-size: 12px;
}
main {
  padding: 0 32px 20px;
  min-width: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar p {
  margin: 0;
  font-size: 12px;
}
.topbar p span {
  padding: 0 9px;
  color: #abb3b8;
}
.topbar button {
  min-height: 32px;
  font-size: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0 22px;
}
.page-heading h1 {
  margin: 0 0 7px;
  font-size: 25px;
}
.page-heading .muted {
  margin: 0;
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
#app-platform {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}
.release-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-top .eyebrow {
  font-size: 10px;
  margin: 0;
  letter-spacing: 0.05em;
}
.release-hero h2 {
  font-size: 20px;
  max-width: 800px;
  overflow-wrap: anywhere;
  margin: 0 0 14px;
  font-weight: 550;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12px;
  color: var(--muted);
}
.pill,
.status-tag {
  font-size: 11px;
  line-height: 1.4;
  padding: 4px 8px;
  background: var(--pale);
  color: var(--green);
  border-radius: 5px;
  display: inline-block;
  font-weight: 550;
  white-space: nowrap;
}
.pill.gray,
.status-tag {
  background: #f0f3f5;
  color: #61707a;
}
.status-tag.green {
  background: var(--pale);
  color: var(--green);
}
.pill.amber {
  background: #faf1dc;
  color: var(--amber);
}
.rollout {
  width: 140px;
  flex-shrink: 0;
  align-self: center;
}
.rollout strong {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 550;
}
.rollout small {
  margin-left: 6px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 5px;
  display: block;
  margin-top: 13px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e7eee9;
}
progress::-webkit-progress-bar {
  background: #e7eee9;
}
progress::-webkit-progress-value {
  background: #288268;
}
progress::-moz-progress-bar {
  background: #288268;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 21px;
  background: #fff;
}
.metric p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.metric strong {
  display: block;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.metric small {
  display: block;
  color: #89949c;
  font-size: 11px;
  margin-top: 4px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}
.section-head h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.section-head p {
  font-size: 11px;
  color: #7b8790;
  margin: 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  padding: 12px 15px;
  font-weight: 550;
  background: #fafbfc;
  white-space: nowrap;
}
td {
  padding: 15px;
  border-top: 1px solid #edf0f2;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fcfdfd;
}
.release-name {
  min-width: 160px;
}
.release-name strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 600;
}
.release-name p {
  margin: 0;
  max-width: 260px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}
.release-name small {
  display: block;
  color: #8a959c;
  margin-top: 6px;
  font-size: 10px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}
td > .small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 185px;
  max-width: 230px;
}
.row-actions button {
  font-size: 11px;
  padding: 4px 6px;
  min-height: 26px;
  background: transparent;
  color: #4e6660;
  border: 1px solid transparent;
}
.row-actions button:hover {
  background: var(--pale);
  border-color: #d6e7dd;
}
.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.audit-list:empty {
  display: none;
}
.audit-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f2;
  align-items: start;
}
.audit-list li:last-child {
  border-bottom: 0;
}
.audit-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b1bfb7;
  overflow: hidden;
  font-size: 0;
  margin-top: 6px;
}
.audit-list p {
  margin: 0 0 3px;
  font-size: 12px;
}
.audit-list small,
.audit-list time {
  font-size: 10px;
  color: #849099;
}
.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 45px 24px;
  text-align: center;
}
.empty h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 auto 22px;
  max-width: 470px;
}
.inline-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 20px;
  background: #eef5f1;
  border: 1px solid #dce9e1;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  color: #416353;
}
.inline-note strong {
  font-weight: 550;
}
.inline-note p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #648071;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #8b969e;
}
#notice {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 1000;
  background: #203c30;
  color: #fff;
  border: 1px solid #38574a;
  border-radius: 8px;
  padding: 12px 18px;
  max-width: min(550px, 90vw);
  box-shadow: 0 6px 22px #15271e20;
  font-size: 13px;
}
#notice.failure {
  background: #822f2f;
}
.error {
  font-size: 12px;
  color: var(--red);
  margin: 14px 0;
}
.error:empty {
  display: none;
}
dialog {
  border: 1px solid #d9dfe3;
  border-radius: 12px;
  padding: 0;
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 70px #14212a33;
  overflow: auto;
}
dialog::backdrop {
  background: #18253066;
}
#modal-form {
  padding: 24px;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-header h2 {
  font-size: 21px;
  margin: 0;
}
.modal-header .eyebrow {
  font-size: 11px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.icon-button {
  font-size: 23px;
  background: transparent;
  color: #87929a;
  padding: 0;
  width: 30px;
  min-height: 30px;
  line-height: 1;
}
.icon-button:hover {
  background: #f1f4f5;
  color: #34454f;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.modal-actions > .small {
  margin-right: auto;
}
.team-list {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.team-member {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.team-member p {
  font-size: 13px;
  margin-bottom: 4px;
}
.team-member small {
  font-size: 11px;
  color: var(--muted);
}
#setup-modal {
  width: 780px;
  padding: 25px 28px 20px;
}
#setup-modal .modal-header {
  margin-bottom: 20px;
}
#setup-steps {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  gap: 8px;
  margin-bottom: 26px;
}
.setup-tab {
  background: transparent;
  color: #849099;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 13px;
  font-size: 13px;
  margin-bottom: -1px;
  white-space: nowrap;
}
.setup-tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.setup-tab:hover {
  color: var(--ink);
}
.setup-section-heading h3 {
  margin-bottom: 7px;
}
.setup-section-heading p {
  font-size: 13px;
  margin-bottom: 23px;
}
.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.setup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.code-block {
  border: 1px solid #dce2e6;
  border-radius: 7px;
  overflow: hidden;
  margin: 18px 0;
  background: #f8fafb;
  min-width: 0;
}
.code-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e7eb;
  background: #f1f4f6;
  color: #65747f;
  font-size: 11px;
  font-weight: 550;
}
.copy-button {
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #d5dde2;
  background: #fff;
  color: #53616b;
  font-size: 11px;
  border-radius: 4px;
}
.copy-button:hover {
  border-color: #aabbb2;
  color: var(--green);
}
pre {
  margin: 0;
  padding: 17px;
  max-width: 100%;
  overflow: auto;
  tab-size: 2;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #334953;
}
code {
  font: inherit;
}
.code-caption {
  background: #fff;
  border-top: 1px solid #e8ecef;
  margin: 0;
  padding: 11px 14px;
  color: #7c8790;
  font-size: 11px;
  line-height: 1.6;
}
.setup-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.setup-status button {
  font-size: 12px;
}
.setup-note {
  font-size: 12px;
  line-height: 1.7;
  background: #f5f7f8;
  border-radius: 6px;
  border: 1px solid #e7ecef;
  padding: 13px 15px;
  color: #65737c;
  margin: 20px 0;
}
.setup-note p {
  margin: 6px 0 0;
}
.setup-note button {
  margin-top: 12px;
}
.setup-note strong {
  color: #485963;
  font-weight: 550;
}
details {
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  font-weight: 550;
  color: #52646e;
  padding: 5px 0;
  line-height: 1.5;
}
details > p {
  line-height: 1.7;
  padding: 7px 0;
}
#setup-body > label {
  max-width: 250px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  background: #fff;
  padding: 12px;
  z-index: 999;
  color: var(--green);
}
.skip:focus {
  top: 12px;
}
@media (min-width: 1600px) {
  main {
    padding-left: 46px;
    padding-right: 46px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  main {
    padding: 0 22px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .rollout {
    width: 95px;
  }
  .section-head p {
    max-width: 45%;
    text-align: right;
  }
}
@media (max-width: 700px) {
  .credential-field input {
    font-size: 16px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }
  .login-story {
    padding: 20px 24px;
    border: 0;
    background: #fff;
  }
  .login-story > div,
  .login-story > .small {
    display: none;
  }
  .login-form-wrap {
    padding: 25px;
    align-items: flex-start;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    overscroll-behavior-y: auto;
    scrollbar-gutter: auto;
    padding: 17px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .sidebar > .brand {
    grid-column: 1/-1;
    margin-bottom: 6px;
    padding: 0;
  }
  .sidebar .section-label,
  .sidebar-divider {
    display: none;
  }
  .sidebar select {
    min-width: 0;
  }
  .sidebar nav {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-top: 1px solid var(--line);
    padding-top: 9px;
  }
  .sidebar nav button {
    width: auto;
    gap: 12px;
    padding: 7px 10px;
    min-height: 33px;
  }
  .sidebar > .nav-button {
    font-size: 12px;
    padding: 5px 0;
    min-height: 25px;
    width: auto;
  }
  .sidebar > .add {
    padding: 4px 6px;
    min-height: 30px;
  }
  .sidebar-bottom {
    grid-column: 1/-1;
    padding: 5px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .sidebar-bottom > span {
    display: none;
  }
  #identity {
    margin: 0;
    font-size: 10px;
  }
  .sidebar-bottom #logout {
    font-size: 11px;
    padding: 0;
  }
  main {
    padding: 0 18px 18px;
  }
  .topbar {
    height: 52px;
  }
  .page-heading {
    padding: 23px 0 18px;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions button {
    flex: 1;
  }
  .release-hero {
    padding: 17px;
    gap: 15px;
    flex-direction: column;
  }
  .release-hero h2 {
    font-size: 18px;
  }
  .rollout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .rollout strong {
    font-size: 20px;
  }
  .rollout small {
    margin: 0;
    white-space: nowrap;
  }
  .rollout progress {
    margin: 0 0 0 12px;
  }
  .metrics {
    gap: 7px;
  }
  .metric {
    padding: 12px 10px;
  }
  .metric p {
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .metric strong {
    font-size: 23px;
  }
  .metric small {
    font-size: 9px;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head p {
    font-size: 10px;
  }
  .audit-list li {
    grid-template-columns: 12px 1fr;
    padding: 12px;
  }
  .audit-list time {
    grid-column: 2;
  }
  .inline-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .inline-note button {
    width: 100%;
  }
  .empty {
    padding: 34px 18px;
  }
  .form-grid,
  .setup-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 9px;
  }
  #modal-form {
    padding: 20px;
  }
  #setup-modal {
    padding: 20px 17px 16px;
  }
  .modal-header h2 {
    font-size: 19px;
  }
  .modal-header {
    margin-bottom: 20px;
  }
  #setup-steps {
    gap: 0;
  }
  .setup-tab {
    padding: 11px 8px;
    font-size: 11px;
    flex: 1;
  }
  pre {
    font-size: 11px;
    padding: 13px;
  }
  #setup-modal .modal-actions > .small {
    font-size: 10px;
  }
  .page-footer {
    font-size: 9px;
  }
}
.action-spinner {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-inline-end: 0.5em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: action-spin 0.8s linear infinite;
}
@keyframes action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .action-spinner { animation: none; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.security-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--border, #dce3df);
  border-radius: 12px;
  color: inherit;
}
.security-dialog::backdrop {
  background: rgb(16 30 26 / 38%);
}
.security-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e9e6;
}
.security-header h2 {
  font-size: 19px;
  margin: 0;
}
.security-body {
  padding: 24px;
}
.security-body form {
  display: grid;
  gap: 18px;
}
.security-body h3,
.security-body p {
  margin: 0;
}
.security-body pre {
  overflow-x: auto;
  padding: 16px;
  background: #f3f5f4;
  border: 1px solid #e2e7e4;
  border-radius: 6px;
}
.security-actions,
.security-token,
.code-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.security-token {
  padding: 14px 0;
  border-top: 1px solid #e5e9e6;
}
.security-token p {
  margin-top: 5px;
}

#modal-body .mono {
  overflow-wrap: anywhere;
}

.device-approval {
  border: 1px solid var(--line, #dbe1e6);
  padding: 20px;
  border-radius: 10px;
  margin-block: 24px;
}
.device-list-heading,
.test-device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.test-device-row {
  padding-block: 18px;
  border-top: 1px solid var(--line, #dbe1e6);
}
.test-device-row h4,
.test-device-row p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .test-device-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .device-approval {
    padding: 16px;
  }
}

.devices-dialog .security-header {
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
  z-index: 1;
}
.devices-dialog section > p {
  margin-block: 8px;
}
.devices-dialog a {
  color: var(--accent, #166b50);
  text-underline-offset: 3px;
}

/* Organisation controls share the console's spacing, type and surfaces. */
#organisation-select {
  width: 100%;
}
.member-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}
.member-actions label {
  font-size: 12px;
}
.app-access-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.app-access-actions label {
  min-width: 0;
  flex: 1 1 220px;
}
.app-access-actions select {
  max-width: 100%;
}
.access-note {
  margin-bottom: 20px;
}
.organisation-activity {
  border-top: 1px solid var(--border, #dde1df);
  padding-top: 20px;
  margin-top: 24px;
}
.organisation-activity summary {
  cursor: pointer;
  font-weight: 600;
}
.organisation-activity .audit-event {
  padding: 10px 0;
}
.organisation-activity p {
  margin: 0 0 4px;
}
@media (max-width: 600px) {
  .member-actions {
    flex-wrap: wrap;
  }
  .team-member {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px;
  }
}


/* App activity shares one compact event row between the preview and history. */
.activity-preview .section-head {
  align-items: center;
}
.activity-preview .section-head h2 {
  margin-bottom: 4px;
}
.activity-preview .section-head button {
  flex: 0 0 auto;
}
.audit-list .activity-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
}
.activity-event-title,
.activity-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  overflow-wrap: anywhere;
}
.audit-list .activity-event-title p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}
.activity-release {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: #f2f4f5;
  padding: 1px 5px;
  border-radius: 4px;
}
.activity-event-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.activity-scope {
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 4px;
  color: #53636d;
  font-size: 10px;
}
.audit-list .activity-note {
  margin: 4px 0 0;
  line-height: 1.5;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.audit-list .activity-time {
  grid-column: auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
}
.activity-preview-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}
.activity-dialog {
  width: 880px;
  height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
}
.activity-dialog[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.activity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.activity-header > div {
  min-width: 0;
}
.activity-header .eyebrow {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.activity-header h2 {
  margin: 0;
  font-size: 21px;
}
.activity-header #activity-description {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.6;
}
.activity-header button {
  flex: 0 0 auto;
}
.activity-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.activity-filters label {
  margin: 0;
  min-width: 0;
  font-size: 12px;
}
.activity-filters select {
  width: 100%;
}
.activity-results {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 24px 24px;
  scroll-padding: 12px;
}
.activity-day h3 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin: 18px 0 10px;
}
.activity-day .audit-list {
  border: 0;
  border-radius: 0;
}
.activity-day .activity-row {
  padding-inline: 0;
}
.activity-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.activity-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.activity-footer-actions button {
  flex: 0 0 auto;
}
.activity-footer button[aria-disabled="true"] {
  color: var(--muted);
  cursor: progress;
}
.activity-error {
  margin: 0;
  max-width: 320px;
  color: var(--red);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.activity-empty {
  text-align: center;
  padding: 44px 16px;
}
.activity-empty h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.activity-empty p {
  font-size: 12px;
  color: var(--muted);
}
.release-name .rollback-release {
  margin: 5px 0 0;
  display: inline-flex;
  color: #53636d;
  background: #f2f4f5;
  font-size: 10px;
}
@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .activity-dialog {
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .activity-header {
    padding: max(18px, env(safe-area-inset-top)) 16px 18px;
    gap: 12px;
  }
  .activity-filters {
    padding: 14px 16px;
    gap: 12px;
  }
  .activity-results {
    padding: 4px 16px 16px;
  }
  .activity-footer {
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
    flex-wrap: wrap;
    gap: 12px;
  }
  .activity-footer-actions {
    margin-left: auto;
    flex-wrap: wrap;
  }
  .activity-footer-actions .activity-error {
    max-width: none;
    flex: 1 1 100%;
  }
  .activity-dialog button,
  .activity-dialog select,
  .activity-preview button {
    min-height: 44px;
  }
  .audit-list .activity-row {
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
    padding: 12px;
  }
  .activity-day .activity-row {
    padding-inline: 0;
  }
  .audit-list .activity-time {
    grid-column: 2;
  }
  .activity-preview .section-head {
    gap: 12px;
  }
  .activity-preview .section-head h2 {
    font-size: 17px;
  }
}
/* Automatic organisation usage comparison shares the existing dialog controls. */
.savings-dialog {
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
}
.savings-dialog[open] { display: flex; flex-direction: column; }
.savings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 12px;
  flex: 0 0 auto;
}
.savings-header > div { min-width: 0; }
.savings-header h2 { margin: 0; }
.savings-header .eyebrow { margin: 0 0 5px; overflow-wrap: anywhere; }
.savings-header > button { flex-shrink: 0; }
.savings-status { margin: 0; padding: 0 26px 16px; color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.savings-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 26px 24px; }
.savings-body > h3 { margin: 24px 0 12px; font-size: 16px; }
.savings-body p, .savings-body dt, .savings-feedback { overflow-wrap: anywhere; }
.savings-result { border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.savings-result-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.savings-result h3 { margin: 0; font-size: 14px; }
.savings-amount { margin: 14px 0 8px; font-size: clamp(22px, 6vw, 34px); line-height: 1.3; font-variant-numeric: tabular-nums; }
.savings-money { display: flex; align-items: baseline; }
.savings-number { white-space: nowrap; }
.savings-number-long { font-size: clamp(15px, 4vw, 22px); }
.savings-result p { margin: 6px 0 0; }
.savings-result.saving .savings-amount { color: var(--accent, #166b50); }
.savings-result.unchanged .pill { color: var(--muted); background: #eef1f3; }
.savings-fees { margin: 16px 0; }
.savings-fee-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.savings-fee-row dt { flex: 1 1 170px; font-size: 13px; }
.savings-fee-row dd { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.savings-coverage { margin: 20px 0 24px; }
.savings-coverage p { margin: 5px 0; }
.savings-coverage h3 { margin: 18px 0 6px; font-size: 16px; }
.savings-coverage-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.savings-usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.savings-usage-metric { padding: 14px; border: 1px solid var(--line); border-radius: 7px; min-width: 0; }
.savings-usage-metric dt { color: var(--muted); font-size: 12px; }
.savings-usage-metric dd { margin: 8px 0 6px; font-size: 23px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.savings-usage-metric dd.savings-count-large { font-size: 14px; }
.savings-usage-metric p { margin: 0; font-size: 11px; }
.savings-breakdown { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.savings-breakdown summary { display: list-item; cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; min-height: 36px; }
.savings-plan { font-size: 14px; margin: 10px 0; font-weight: 600; }
.savings-breakdown > a { display: inline-block; font-size: 13px; padding: 8px 0; }
.savings-observations { font-size: 13px; }
.savings-observations > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 12px 0; }
.savings-observations dd { margin: 0; font-variant-numeric: tabular-nums; }
.savings-notes { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; }
.savings-notes p { margin: 6px 0 0; }
.savings-warnings { padding-left: 18px; margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.savings-warnings li + li { margin-top: 6px; }
.savings-footer { flex: 0 0 auto; padding: 16px 26px 20px; border-top: 1px solid var(--line); max-height: 40dvh; overflow-y: auto; }
.savings-feedback:empty { display: none; }
.savings-feedback { color: #8c332a; font-size: 13px; margin-bottom: 14px; }
.savings-feedback p { margin: 0 0 10px; }
.savings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.savings-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 12px; }
.savings-dialog button { min-height: 40px; }
@media (max-width: 600px) {
  .savings-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .savings-header { padding: max(18px, env(safe-area-inset-top)) 18px 10px; }
  .savings-header h2 { font-size: 22px; }
  .savings-status { padding: 0 18px 12px; }
  .savings-body { flex: 1 1 auto; padding: 8px 18px 20px; }
  .savings-result { padding: 16px; }
  .savings-usage-metric { padding: 12px; }
  .savings-usage-metric dd { font-size: 20px; }
  .savings-footer { padding: 12px 18px max(16px, env(safe-area-inset-bottom)); }
  .savings-dialog button, .savings-breakdown summary { min-height: 44px; }
  .savings-links a { padding-block: 5px; }
}
@media (max-width: 360px) { .savings-usage { grid-template-columns: minmax(0, 1fr); } }
@media (max-height: 500px) {
  .savings-header { padding: 10px 16px 6px; }
  .savings-header h2 { font-size: 20px; }
  .savings-status { padding-bottom: 8px; }
  .savings-footer { padding-top: 10px; padding-bottom: 10px; }
  .savings-links { margin-top: 8px; }
}
.native-build-dialog {
  width: min(900px, calc(100vw - 48px));
  height: min(820px, 90dvh);
  max-height: 90dvh;
  padding: 0;
  overflow: hidden;
}
.native-build-dialog[open] { display: flex; flex-direction: column; }
.native-build-header, .native-build-pagination, .native-build-row-heading, .native-build-row-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.native-build-header { padding: 24px 28px 16px; flex: 0 0 auto; }
.native-build-header h2 { margin: 0; }
.native-build-header .eyebrow { margin: 0 0 6px; overflow-wrap: anywhere; }
.native-build-header > div { min-width: 0; }
.native-build-header > button { flex-shrink: 0; }
.native-build-guidance { padding: 0 28px; flex: 0 0 auto; max-height: 28dvh; overflow: auto; }
.native-build-guidance > p { margin: 0 0 10px; }
.native-build-help { margin-bottom: 12px; }
.native-build-help summary, .native-build-runtime summary { cursor: pointer; }
.native-build-help summary { color: var(--accent, #166b50); font-weight: 600; }
.native-build-help .code-block { margin-top: 12px; }
.native-build-search { display: flex; align-items: end; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.native-build-search > label { flex: 1; min-width: 0; margin: 0; }
.native-build-search > button { white-space: nowrap; flex-shrink: 0; }
.native-build-results { min-height: 80px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.native-build-list { list-style: none; padding: 0; margin: 0; }
.native-build-row { padding: 18px 28px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.native-build-row:last-child { border-bottom: 0; }
.native-build-row h3 { margin: 0; font-size: 16px; }
.native-build-variant { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.native-build-row-detail { margin: 10px 0 6px; align-items: start; }
.native-build-row-detail > button { flex-shrink: 0; }
.native-build-row > p { margin: 0; }
.native-build-runtime { min-width: 0; font-size: 13px; }
.native-build-runtime summary code { color: var(--muted); }
.native-build-full-runtime { display: block; margin-top: 8px; word-break: break-all; user-select: all; }
.native-build-empty { padding: 32px 28px; text-align: center; }
.native-build-empty p { color: var(--muted); }
.native-build-footer { flex: 0 0 auto; padding: 14px 28px 20px; border-top: 1px solid var(--line); background: var(--surface, #fff); max-height: 38dvh; overflow-y: auto; }
.native-build-status { color: var(--muted); font-size: 13px; margin: 0; }
.native-build-paging { display: flex; gap: 10px; align-items: center; }
.native-build-paging .error { max-width: 340px; overflow-wrap: anywhere; font-size: 13px; }
.native-build-enable:empty { display: none; }
.native-build-enable { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.native-build-enable .check-label { font-size: 13px; margin: 0 0 10px; }
.native-build-enable .error:empty { display: none; }
.native-build-dialog button, .native-build-dialog summary { min-height: 36px; }
@media (max-width: 600px) {
  .native-build-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .native-build-header { padding: max(18px, env(safe-area-inset-top)) 18px 14px; }
  .native-build-guidance { padding: 0 18px; max-height: 24dvh; font-size: 14px; }
  .native-build-search { padding: 12px 18px; gap: 8px; }
  .native-build-search > button { font-size: 12px; padding: 8px; }
  .native-build-search input { font-size: 16px; }
  .native-build-search label { font-size: 13px; }
  .native-build-row { padding: 16px 18px; }
  .native-build-row-heading { gap: 8px; align-items: start; }
  .native-build-row-detail { flex-wrap: wrap; gap: 4px; }
  .native-build-variant { max-width: 45%; text-align: right; }
  .native-build-footer { padding: 12px 18px max(14px, env(safe-area-inset-bottom)); }
  .native-build-pagination { gap: 8px; flex-wrap: wrap; }
  .native-build-paging { flex-wrap: wrap; }
  .native-build-dialog button, .native-build-dialog summary { min-height: 44px; }
}
@media (max-height: 600px) {
  .native-build-header { padding: 12px 18px 10px; }
  .native-build-header h2 { font-size: 20px; }
  .native-build-header .eyebrow { margin-bottom: 2px; }
  .native-build-guidance { max-height: 50px; padding: 0 18px; font-size: 13px; }
  .native-build-search { padding: 8px 18px; }
  .native-build-results { min-height: 64px; }
  .native-build-footer { max-height: 32dvh; padding: 8px 18px; }
}
@media (max-width: 400px) {
  .native-build-row-heading { flex-direction: column; gap: 4px; }
  .native-build-variant { max-width: 100%; text-align: left; }
}
@media (max-width: 380px) {
  .activity-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-height: 500px) {
  .activity-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .activity-header {
    padding: 10px 16px;
  }
  .activity-header .eyebrow {
    margin-bottom: 4px;
  }
  .activity-header h2 {
    font-size: 18px;
  }
  .activity-header #activity-description {
    display: none;
  }
  .activity-filters {
    padding: 8px 16px;
    gap: 8px;
  }
  .activity-footer {
    padding: 8px 16px;
  }
  .activity-dialog button,
  .activity-dialog select {
    min-height: 44px;
  }
}

/* File diagnostics keep controls and close reachable on narrow/short screens. */
.native-file-dialog { width: min(960px, calc(100vw - 24px)); max-width: calc(100vw - 24px); height: min(900px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; }
.native-file-dialog[open] { display: flex; flex-direction: column; }
.native-file-dialog > header, .native-file-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; flex: none; }
.native-file-dialog > footer { border-top: 1px solid var(--border, #dce3e6); flex-wrap: wrap; }
.native-file-dialog > footer p { margin: 0; flex: 1; min-width: 130px; font-size: .85rem; }
.native-file-dialog h2, .native-file-dialog .eyebrow { margin: 0; }
.native-file-dialog .eyebrow { overflow-wrap: anywhere; }
.native-file-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 24px 24px; }
.native-file-intro code, .native-file-hash code { overflow-wrap: anywhere; word-break: break-word; }
.native-file-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 16px 0; }
.native-file-filters label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.native-file-filters input, .native-file-filters select { min-width: 0; width: 100%; }
.native-file-row { padding: 16px 0; border-top: 1px solid var(--border, #dce3e6); }
.native-file-row > div { display: flex; align-items: flex-start; gap: 12px; }
.native-file-row code { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.native-file-row details { margin-top: 8px; }
.native-file-kind { text-transform: capitalize; font-size: .8rem; color: var(--muted, #637381); min-width: 65px; }
.native-file-hash { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
@media (max-width: 600px) {
  .native-file-dialog > header, .native-file-dialog > footer { padding: 12px; }
  .native-file-body { padding: 0 12px 12px; }
  .native-file-filters { grid-template-columns: 1fr 1fr; }
  .native-file-filters > :first-child { grid-column: 1 / -1; }
  .native-file-hash { grid-template-columns: minmax(0, 1fr) auto; }
  .native-file-hash > span { grid-column: 1 / -1; }
}
