[hidden] {
  display: none !important;
}
#portal {
  min-height: 100dvh;
  padding: 36px max(24px, 7vw);
  background: #0a0a0a;
  color: #f5f5f5;
}
.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.portal-logo {
  width: 150px;
  display: block;
}
.portal-header > div {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.portal-header .button {
  color: #f5f5f5;
  border-color: #444;
  background: transparent;
}
.portal-intro {
  padding: 90px 0 50px;
}
.portal-intro h1 {
  font-size: clamp(64px, 10vw, 140px);
  letter-spacing: -.07em;
  line-height: 1;
  margin: 24px 0;
}
.portal-intro h1 span {
  color: #8e8e8e;
  font-weight: 200;
}
.portal-slogan {
  letter-spacing: .35em;
  font-size: 15px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.workspace-card {
  position: relative;
  display: block;
  padding: 32px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #555;
  min-height: 260px;
  transition: background .2s;
}
.workspace-card:hover,
.workspace-card:focus-visible {
  background: #f5f5f5;
  color: #0a0a0a;
}
.workspace-card h2 {
  font-size: clamp(30px, 3vw, 48px);
  letter-spacing: -.04em;
  margin: 32px 0 10px;
}
.card-index {
  font-size: 11px;
  letter-spacing: .2em;
  color: #8e8e8e;
}
.card-arrow {
  display: block;
  margin-top: 30px;
}
.workspace-disabled {
  opacity: .45;
}
.portal-footer {
  margin-top: 70px;
  padding: 24px 0;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  color: #8e8e8e;
}
.production-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4vw;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}
.production-brand {
  font-weight: 700;
  letter-spacing: .12em;
}
.production-header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.production-header a {
  text-decoration: none;
  color: #555;
  padding: 10px;
}
.production-header a[aria-current] {
  background: #0a0a0a;
  color: #f5f5f5;
}
.production-main {
  max-width: 1400px;
  margin: auto;
  padding: 32px 4vw;
}
.production-main h1 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -.04em;
}
.production-main .panel {
  padding: 22px;
  margin: 20px 0;
}
.production-main .metrics {
  grid-template-columns: repeat(4, 1fr);
}
.os-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.os-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.os-project-card {
  border: 1px solid #ddd;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: white;
}
.os-project-card h3 {
  margin: 12px 0;
}
.os-project-card p {
  color: #666;
}
.os-dialog {
  width: min(720px, 94vw);
  max-height: 92dvh;
  padding: 26px;
  border: 1px solid #aaa;
}
.os-dialog::backdrop {
  background: #0009;
}
.os-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.os-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.os-form input,
.os-form select,
.os-form textarea,
.calendar-controls input,
.calendar-controls select {
  padding: 12px;
  border: 1px solid #bbb;
  background: #fff;
  min-width: 0;
  font: inherit;
}
.os-form textarea {
  min-height: 90px;
  resize: vertical;
}
.os-form .full {
  grid-column: 1/-1;
}
.os-dialog .os-actions {
  margin-top: 22px;
  justify-content: flex-end;
}
.os-error {
  color: #8c2929;
}
.os-status {
  min-height: 24px;
  margin-top: 12px;
}
.os-record {
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.os-record p {
  color: #666;
  white-space: pre-wrap;
}
.os-record .tag {
  white-space: nowrap;
}
.os-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  overflow: auto;
}
.os-board > section {
  background: #ededed;
  padding: 16px;
}
.os-board .os-record {
  background: white;
  padding: 16px;
  display: block;
  margin-bottom: 10px;
}
.os-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  min-width: 770px;
}
.os-day {
  min-height: 130px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 10px;
}
.os-day time {
  font-size: 12px;
  color: #666;
}
.os-day a {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  color: #0a0a0a;
}
.calendar-scroll {
  overflow: auto;
}
.calendar-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.os-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.os-empty {
  padding: 25px;
  color: #666;
  border: 1px dashed #aaa;
}
.os-meta {
  font-size: 12px;
  color: #666;
}
.os-demo {
  padding: 10px 4vw;
  background: #e9e9e9;
  color: #222;
}
.production-main button,
.production-main a.button {
  min-height: 44px;
}
.production-main .task-filter {
  padding: 10px;
  font: inherit;
}
.os-record code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.os-workspace-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.os-activity {
  max-height: 350px;
  overflow: auto;
}
.os-linked {
  color: #222;
}
.production-main table {
  width: 100%;
}
@media (max-width: 700px) {
  #portal {
    padding: 24px 20px;
  }
  .portal-header {
    align-items: flex-start;
  }
  .portal-logo {
    width: 100px;
  }
  .portal-header > div {
    font-size: 11px;
    justify-content: flex-end;
    gap: 8px;
  }
  .portal-intro {
    padding: 60px 0 32px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .workspace-card {
    min-height: 220px;
    padding: 24px;
  }
  .portal-footer {
    font-size: 11px;
    gap: 20px;
  }
  .production-header {
    padding: 16px;
  }
  .production-main {
    padding: 24px 16px;
  }
  .production-main .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .os-form,
  .os-workspace-brief {
    grid-template-columns: 1fr;
  }
  .os-dialog {
    padding: 18px;
  }
  .os-record {
    flex-direction: column;
  }
  .production-main .page-heading {
    display: block;
  }
  .production-main .metric strong {
    font-size: 30px;
  }
  .production-header nav {
    width: 100%;
    overflow: auto;
    flex-wrap: nowrap;
  }
  .production-header nav a {
    white-space: nowrap;
  }
  .os-actions .button {
    flex-grow: 1;
  }
  .os-board {
    grid-template-columns: repeat(4, 240px);
  }
}
