@font-face {
  font-family: "SuisseIntl";
  src: url("fonts/SuisseIntl-Regular-WebM.0UDEUt_8.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SuisseIntl";
  src: url("fonts/SuisseIntl-Book-WebM.Dmm7D8Tw.woff2") format("woff2");
  font-weight: 450;
  font-display: swap;
}
@font-face {
  font-family: "SuisseIntl";
  src: url("fonts/SuisseIntl-Medium-WebM.BBtZoIj1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #171818;
  --muted: #666;
  --accent: #f1592c;
  --accent-strong: #ac3715;
  --accent-soft: #fff0e9;
  --line: rgba(23, 24, 24, 0.14);
  --background: #f4f3f1;
  --surface: #fff;
  --table-heading: #f7f6f4;
  --link: #ac3715;
  --focus: #485fc7;
  --navbar-height: 4rem;
  --sidebar-width: 15rem;
}
html {
  background: var(--background);
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  padding-top: var(--navbar-height);
  color: var(--ink);
  background: var(--background);
  font:
    400 0.9375rem/1.55 "SuisseIntl",
    BlinkMacSystemFont,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
strong,
b,
label,
summary {
  font-weight: 500;
}
h1 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 0.85rem;
}
p:last-child {
  margin-bottom: 0;
}
a {
  text-underline-offset: 0.18em;
}
a:hover {
  color: #cb4118;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.btn,
input,
select,
textarea {
  min-width: 0;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
}
.app-topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--navbar-height);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.025em;
}
.app-brand::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  border-radius: 2px;
}
.app-version {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}
.app-sidebar {
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding: 1.6rem 1rem;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
}
.nav-label {
  margin: 0 0.75rem 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.app-nav {
  display: grid;
  gap: 0.3rem;
}
.nav-group + .nav-group {
  margin-top: 1.4rem;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 450;
}
.app-nav a:hover {
  background: var(--background);
}
.app-nav a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}
.nav-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.nav-icon svg {
  width: 100%;
  height: 100%;
}
.app-content {
  margin-left: var(--sidebar-width);
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-width: 0;
}
.app-footer {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}
.card {
  min-width: 0;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.page-heading {
  margin-bottom: 1.5rem;
}
.page-heading .eyebrow {
  margin-bottom: 0.4rem;
}
.page-heading > .actions {
  margin-top: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.grid > .card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.grid > .card > .actions {
  margin-top: auto;
  padding-top: 0.35rem;
}
.grid > .card > .btn {
  align-self: flex-start;
  margin-top: auto;
}
.project-card h2 {
  font-size: 1.1rem;
}
.project-card .project-code {
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}
.project-card .digest-status {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.project-card .actions {
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--accent);
  color: #171818;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  color: #171818;
  background: #e64d21;
}
.btn.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.btn.secondary:hover {
  background: var(--background);
  border-color: #aaa;
}
.btn:disabled:hover {
  background: var(--accent);
}
.btn.secondary:disabled:hover {
  background: var(--surface);
  border-color: var(--line);
}
input[type="text"],
input[type="search"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  border: 1px solid #b8b8b6;
  border-radius: 5px;
  background: var(--surface);
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
}
.release-tickets {
  min-width: 560px;
  font-size: 0.875rem;
}
.release-tickets tbody tr:hover {
  background: #faf9f7;
}
.release-tickets td {
  overflow-wrap: anywhere;
}
.release-tickets th {
  font-weight: 500;
}
.error,
.warning {
  padding: 0.85rem 1rem;
  border: 1px solid;
  border-radius: 6px;
}
.error {
  color: #8d1717;
  background: #fff2f2;
  border-color: #edbaba;
}
.warning {
  color: #76500c;
  background: #fff8e6;
  border-color: #e5ce9e;
}
.badge[data-stage="complete"],
.badge[data-stage="ready"] {
  color: #196b45;
  background: #e9f5ef;
}
.badge[data-stage="failed"],
.badge[data-stage="unknown"] {
  color: #8d1717;
  background: #fff2f2;
}
.release-dialog {
  background: var(--surface);
}
.menu-toggle,
.navigation-fallback {
  display: none;
}
.navigation-dialog {
  width: min(340px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.navigation-dialog::backdrop {
  background: #17181888;
}
.navigation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.navigation-heading h2 {
  margin: 0;
}
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  color: var(--ink);
  background: #fff;
}
.skip-link:focus {
  top: 0.5rem;
}
@media (max-width: 1023px) {
  .app-sidebar {
    display: none;
  }
  .app-content {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .navigation-fallback {
    display: block;
    margin: 1rem;
  }
  main {
    padding: 1.5rem;
  }
}
@media (max-width: 640px) {
  .app-topbar {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .app-identity {
    flex-wrap: wrap;
    gap: 0 0.6rem;
  }
  .app-brand {
    font-size: 1rem;
  }
  .app-version {
    font-size: 0.65rem;
    padding: 0;
    border: 0;
  }
  main {
    padding: 1rem 0.75rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .card {
    padding: 1rem;
  }
  .release-meta {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .release-meta dd {
    margin-bottom: 0.5rem;
  }
  .page-heading {
    margin-bottom: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none !important;
  }
}

/* Release workflow components */
* {
  box-sizing: border-box;
}
a {
  color: var(--accent-strong);
}
a,
button,
input,
select,
textarea {
  accent-color: var(--accent-strong);
}
.eyebrow {
  color: var(--accent-strong);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.version-list {
  display: grid;
  gap: 0.7rem;
  max-height: 24rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.form-card {
  max-width: 760px;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
label {
  font-weight: 600;
}
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.preview iframe {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.error {
  background: #fff2f2;
  border: 1px solid #ffc7c7;
  color: #8d1717;
  padding: 1rem;
  border-radius: 6px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.release-meta {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: 0.5rem;
}
.release-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.release-meta dt {
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.release-tickets {
  width: 100%;
  border-collapse: collapse;
}
.release-tickets th,
.release-tickets td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.release-tickets th {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--table-heading);
}
.ticket-key {
  white-space: nowrap;
}
[data-ticket-group] .release-tickets {
  min-width: 650px;
}
.block {
  display: block;
  margin-top: 0.3rem;
}
.missing {
  color: #a52626;
}
.success {
  color: #196b45;
  font-weight: 600;
}
.pdf-document {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.pdf-document > details {
  margin-top: 0.6rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.pdf-frame {
  width: 100%;
  height: 65vh;
  max-height: 720px;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
}
code {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
.selection-toolbar {
  position: sticky;
  top: calc(var(--navbar-height) + 0.75rem);
  z-index: 2;
  padding: 0.75rem;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 1rem;
}
.selection-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.selection-filters .field {
  flex: 1 1 220px;
  min-width: 0;
  margin-bottom: 0.6rem;
}
.selection-filters .missing-filter {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.selection-actions p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.group-tools {
  margin-bottom: 0.75rem;
}
.group-tools .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
.ticket-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.ticket-group > summary {
  padding: 0.75rem;
}
.ticket-group > summary input {
  margin-right: 0.6rem;
  vertical-align: middle;
}
.group-heading {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  vertical-align: middle;
  max-width: calc(100% - 55px);
}
.group-heading small {
  font-weight: normal;
}
.ticket-group .table-scroll {
  padding: 0 0.75rem;
}
.release-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.release-heading h1 {
  font-size: 1.5rem;
  margin: 0.35rem 0 0;
}
.release-heading a {
  font-size: 0.85rem;
}
.release-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.release-types .btn {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-align: left;
  font: inherit;
  border: 1px solid var(--line);
}
.release-types .btn span {
  font-size: 0.85rem;
}
.release-types .btn:hover {
  border-color: var(--accent-strong);
}
.release-step.card {
  padding: 0;
}
.release-step > summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  list-style: none;
}
.release-step > summary::-webkit-details-marker {
  display: none;
}
.release-step > summary::after {
  content: "⌄";
  font-size: 1.2rem;
  color: var(--muted);
}
.release-step[open] > summary::after {
  transform: rotate(180deg);
}
.release-step[open] > summary {
  border-bottom: 1px solid var(--line);
}
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.step-done {
  background: #e9f5ef;
  color: #196b45;
}
.step-heading {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}
.step-heading small {
  font-size: 0.8rem;
  font-weight: normal;
}
.step-status {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}
.step-content {
  padding: 0.9rem 1.1rem 1.1rem;
}
.step-content > :first-child {
  margin-top: 0;
}
.step-content > :last-child {
  margin-bottom: 0;
}
.step-next {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}
.release-progress p {
  margin: 0 0 0.4rem;
}
.release-progress small {
  margin-left: 0.5rem;
}
.release-progress summary {
  font-size: 0.8rem;
}
.selection-toolbar .btn,
.pdf-document .btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}
.selection-toolbar input[type="search"],
.selection-toolbar select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}
.selection-toolbar label {
  font-size: 0.85rem;
}
.selection-actions .actions {
  gap: 0.5rem;
}
.selection-toolbar .selection-check-status,
.selection-toolbar [data-selection-dirty] {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}
.selection-options {
  font-size: 0.85rem;
}
.selection-options[open] {
  flex-basis: 100%;
  order: 1;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.selection-options .actions {
  margin-top: 0.75rem;
}
[data-copy-status]:empty {
  display: none;
}
.missing-list {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.release-dialog {
  width: min(520px, calc(100% - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 20px 60px #0003;
}
.release-dialog::backdrop {
  background: #15202d88;
}
.release-dialog h2 {
  margin-top: 0;
}
.release-dialog .actions {
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .release-step > summary,
  .step-content {
    padding: 0.75rem;
  }
  .step-status {
    max-width: 5rem;
  }
  .selection-toolbar {
    position: static;
  }
  .selection-filters .field {
    flex-basis: 100%;
  }
  .selection-filters .missing-filter {
    margin-bottom: 0.5rem;
  }
  .selection-progress-actions {
    width: 100%;
  }
  .selection-progress-actions .btn {
    flex: 1;
  }
  .release-heading h1 {
    font-size: 1.25rem;
  }
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.dashboard-heading h1 {
  margin: 0;
}
.icon-button {
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.5rem;
}
.icon-button svg {
  width: 1.2rem;
  height: 1.2rem;
}
@media (max-width: 640px) {
  .dashboard-heading form {
    flex-basis: 100%;
  }
}

.app-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  min-width: 0;
}
.app-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
}
.app-account form {
  margin: 0;
}
.login-page {
  max-width: 32rem;
  margin: 4rem auto;
}
@media (max-width: 640px) {
  .app-account span {
    display: none;
  }
}
