:root {
  font-family: "IBM Plex Sans", sans-serif;
  color: #22204f;
  background: #e7e5f6;
  font-synthesis: none;
  --ink: #22204f;
  --muted: #686378;
  --line: #e8e4df;
  --orange: #c2402a;
  --accent: #ef5b3b;
  --blue: #4e52cf;
  --white: #ffffff;
  --radius: 12px;
  line-height: 1.5;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #4e52cf;
  outline-offset: 4px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.12;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 1.45rem;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 1.12rem;
  letter-spacing: -0.2px;
}
h4 {
  font-size: 1rem;
}
p {
  line-height: 1.65;
}
img {
  max-width: 100%;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #22204f;
  color: #efece8;
  display: flex;
  flex-direction: column;
  padding: 34px 18px 24px;
  z-index: 20;
}
.brand {
  display: block;
  padding: 0 14px 28px;
  text-decoration: none;
}
.brand img {
  width: 166px;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}
.brand > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.81rem;
  color: #9a95a8;
  margin-top: 15px;
}
.brand i {
  font-style: normal;
  font-family: sans-serif;
  color: #d9d3cb;
  font-size: 0.75rem;
}
.sidebar nav {
  flex: 1;
  overflow: auto;
}
.nav-label {
  display: block;
  font-size: 0.75rem;
  color: #9a95a8;
  padding: 23px 14px 10px;
}
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin: 3px 0;
  text-decoration: none;
  font-size: 0.875rem;
  color: #d9d3cb;
  border-radius: 7px;
}
.sidebar nav > a:hover {
  background: #22204f;
  color: white;
}
.sidebar nav > a.active {
  background: #22204f;
  color: white;
}
.sidebar nav > a.active .nav-symbol {
  color: #ef5b3b;
}
.nav-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
  color: #9a95a8;
}
.sidebar-bottom {
  padding: 16px 12px 0;
}
.organizer-link {
  font-size: 0.8125rem;
  display: flex;
  gap: 12px;
  color: #9a95a8;
  text-decoration: none;
  padding-bottom: 24px;
  border-bottom: 1px solid #3b3779;
}
.event-mark {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
}
.event-mark img {
  width: 63px;
  max-height: 32px;
  object-fit: contain;
}
.event-mark p {
  font-size: 0.75rem;
  color: #9a95a8;
  line-height: 1.5;
}
.workspace {
  margin-left: 240px;
  min-height: 100vh;
}
.topbar {
  height: 77px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  gap: 20px;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb span {
  color: #9a95a8;
}
.breadcrumb b {
  color: #22204f;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.edition {
  font-size: 0.75rem;
  color: #686378;
}
.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid #c9c2d6;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.button:hover {
  background: #e7e5f6;
  border-color: #9a95a8;
}
.button.primary {
  background: #22204f;
  color: #ffffff;
  border-color: #22204f;
}
.button.primary:hover {
  background: #3b3779;
}
.button.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.button.small {
  padding: 8px 13px;
  font-size: 0.8125rem;
}
.button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.danger {
  color: #c2402a;
}
.icon-button {
  width: 37px;
  height: 37px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.25rem;
}
.topbar > #menu-toggle {
  display: none;
}
main {
  padding: 40px 42px 48px;
  max-width: 1500px;
  margin: auto;
  min-height: calc(100vh - 150px);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}
.kicker {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker .accent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.page-head p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 12px;
  max-width: 700px;
}
.page-head .aside-note {
  white-space: nowrap;
  font-size: 0.75rem;
  font-family: sans-serif;
  color: #686378;
  margin-bottom: 3px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
}
.welcome-panel {
  background: #e7e5f6;
  border: 1px solid #c9c2d6;
  padding: 31px 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.welcome-panel h2 {
  font-size: 2.2rem;
  line-height: 1.13;
  letter-spacing: -1px;
  max-width: 460px;
}
.welcome-panel p {
  color: #4e52cf;
  font-size: 0.875rem;
  max-width: 430px;
  margin: 14px 0 24px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.mono {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}
.welcome-panel .panel-top .mono {
  color: #4e52cf;
}
.welcome-panel .actions {
  position: relative;
  z-index: 1;
}
.coordinate {
  position: absolute;
  right: 23px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 8px);
  gap: 8px;
  opacity: 0.34;
}
.coordinate i {
  display: block;
  width: 4px;
  height: 4px;
  border: 1px solid #4e52cf;
}
.countdown-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.countdown-panel .date {
  font-size: 1rem;
  color: #3b3779;
}
.countdown {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 12px 0;
}
.countdown small {
  font-size: 0.8125rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  padding-left: 5px;
  padding-right: 12px;
}
.location {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 16px;
  font-size: 0.875rem;
}
.location span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.metric {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric strong {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.7px;
}
.metric span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0 17px;
}
.section-head h2 {
  font-size: 1.25rem;
}
.text-link {
  font-size: 0.8125rem;
  color: #4e52cf;
  text-decoration: none;
  border-bottom: 1px solid #9a95a8;
  padding-bottom: 2px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.resource-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.resource-card:hover {
  border-color: #9ea1ea;
  box-shadow: 0 6px 18px #22204f07;
}
.resource-card .identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}
.resource-card h3 {
  margin: 7px 0 10px;
  font-size: 1.18rem;
}
.resource-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 23px;
}
.resource-card .resource-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.resource-card .resource-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #efece8;
}
.resource-card .resource-foot a {
  font-size: 0.8125rem;
  font-weight: 500;
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9c2d6;
  background: #e7e5f6;
  border-radius: 5px;
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 4px 8px;
  color: #686378;
  white-space: nowrap;
}
.tag.green {
  background: #efece8;
  border-color: #d9d3cb;
  color: #3b3779;
}
.tag.blue {
  background: #e7e5f6;
  border-color: #c9c2d6;
  color: #4e52cf;
}
.tag.orange {
  background: #fbe4dc;
  border-color: #fbe4dc;
  color: #c2402a;
}
.tag.grey {
  background: #f7f6f4;
  color: #686378;
}
.tag.purple {
  background: #e7e5f6;
  border-color: #e7e5f6;
  color: #4e52cf;
}
.badge-row {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.two-col {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel.padded {
  padding: 26px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-header h2,
.panel-header h3 {
  font-size: 1rem;
}
.equipment-row {
  padding: 18px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #efece8;
  text-decoration: none;
}
.equipment-row:last-child {
  border-bottom: 0;
}
.equipment-row:hover {
  background: #e7e5f6;
}
.item-index {
  font: 0.75rem sans-serif;
  color: #9a95a8;
  width: 21px;
}
.equipment-row .item-text {
  flex: 1;
  min-width: 0;
}
.item-text strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.item-text small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}
.list-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-steps li {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #efece8;
}
.list-steps li:last-child {
  border: 0;
  padding-bottom: 0;
}
.step-number {
  font: 0.75rem sans-serif;
  color: #9a95a8;
  padding-top: 3px;
}
.list-steps strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.list-steps p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 5px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.notice {
  padding: 16px 20px;
  border: 1px solid #c9c2d6;
  background: #e7e5f6;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4e52cf;
  margin: 20px 0;
  line-height: 1.6;
}
.notice.warning {
  background: #fbe4dc;
  border-color: #fbe4dc;
  color: #c2402a;
}
.notice strong {
  font-weight: 600;
}
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0;
  flex-wrap: wrap;
}
.filter-bar .search {
  flex: 1;
  min-width: 210px;
}
.input,
input,
select,
textarea {
  border: 1px solid #c9c2d6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  line-height: 1.4;
  font-size: 0.875rem;
  max-width: 100%;
}
input,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #686378;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter-button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.filter-button.active {
  background: #22204f;
  color: white;
  border-color: #22204f;
}
.filter-button:hover:not(.active) {
  background: #e7e5f6;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty .button {
  margin-top: 18px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 0.8125rem;
}
.calendar-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}
.hardware-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hardware-option {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  padding: 15px 17px;
  width: 100%;
  position: relative;
}
.hardware-option.selected {
  border-color: #4e52cf;
  box-shadow: inset 3px 0 #4e52cf;
  background: #e7e5f6;
}
.hardware-option strong {
  font-size: 0.875rem;
  display: block;
  margin: 7px 0;
}
.hardware-option .sponsor {
  font-size: 0.75rem;
  color: var(--muted);
}
.hardware-option .option-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.calendar-main {
  min-width: 0;
}
.hardware-summary {
  border-bottom: 1px solid var(--line);
  padding: 24px;
}
.hardware-summary h2 {
  font-size: 1.7rem;
  margin: 12px 0 8px;
}
.hardware-summary p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 610px;
}
.hardware-summary .specs {
  display: flex;
  gap: 28px;
  margin-top: 22px;
}
.specs small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.specs b {
  font-size: 0.875rem;
  font-weight: 500;
}
.day-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  padding: 0 24px;
}
.day-tab {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 16px 0;
  font-size: 0.875rem;
  border-bottom: 2px solid transparent;
}
.day-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 15px;
  flex-wrap: wrap;
}
.calendar-controls label {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
}
.time-slot {
  border: 1px solid #c9c2d6;
  border-radius: 7px;
  background: #ffffff;
  text-align: left;
  padding: 14px 13px;
  transition: background 0.15s;
}
.time-slot:hover:not(:disabled) {
  background: #e7e5f6;
  border-color: #9ea1ea;
}
.time-slot strong {
  font-size: 0.875rem;
  display: block;
  font-weight: 500;
}
.time-slot span {
  font-size: 0.75rem;
  color: #4e52cf;
  display: block;
  margin-top: 4px;
}
.time-slot:disabled {
  background: #f7f6f4;
  opacity: 0.58;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
th {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: #e7e5f6;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 19px;
  border-bottom: 1px solid #e7e5f6;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 0.875rem;
  font-weight: 500;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 5px;
}
td .button {
  white-space: nowrap;
}
.bookings td:nth-child(2) {
  white-space: nowrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}
.field.full {
  grid-column: 1/-1;
}
.field > span {
  font-weight: 500;
}
.field small {
  color: var(--muted);
  font-size: 0.75rem;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.form-error {
  color: #c2402a;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 12px 0;
}
.team-summary {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.avatar {
  width: 58px;
  height: 58px;
  background: #c9c2d6;
  border-radius: 14px;
  color: #4e52cf;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.team-summary h2 {
  margin-bottom: 5px;
}
.team-summary p {
  font-size: 0.875rem;
  color: var(--muted);
}
.code-box {
  padding: 20px;
  background: #e7e5f6;
  border: 1px solid #c9c2d6;
  border-radius: 8px;
  font: 1.3rem sans-serif;
  overflow-wrap: anywhere;
  margin: 18px 0;
}
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.schedule-day h2 {
  padding: 23px 24px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 12px;
  padding: 21px 24px;
  border-bottom: 1px solid #e7e5f6;
}
.timeline-item:last-child {
  border: 0;
}
.timeline-item time {
  font: 0.8125rem sans-serif;
  color: #686378;
  margin-top: 4px;
}
.timeline-item h3 {
  font-size: 0.9375rem;
}
.timeline-item p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 7px;
}
.timeline-item.key {
  background: #e7e5f6;
}
.timeline-item .tag {
  margin-top: 10px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.project {
  padding: 26px;
}
.project h2 {
  margin: 15px 0 7px;
}
.project .by {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.project p {
  font-size: 0.875rem;
  color: #686378;
}
.project details {
  margin-top: 18px;
}
.project .text-link {
  display: inline-block;
  margin-top: 20px;
}
.project summary {
  font-size: 0.8125rem;
  cursor: pointer;
  color: #4e52cf;
}
.guide-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.guide-body {
  padding: 32px;
  max-width: 960px;
}
.guide-body .block {
  margin: 0;
}
.guide-body .title {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
.guide-body h3 {
  margin: 30px 0 12px;
}
.guide-body h4 {
  margin: 16px 0 7px;
}
.guide-body p,
.guide-body li {
  font-size: 0.9375rem;
  color: #686378;
  line-height: 1.8;
}
.guide-body p {
  margin: 12px 0;
}
.guide-body .standfirst {
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.guide-body ul,
.guide-body ol {
  padding-left: 22px;
}
.guide-body li {
  padding: 5px;
}
.guide-body a {
  color: #4e52cf;
}
.guide-body .pending {
  padding: 18px 22px;
  background: #e7e5f6;
  border-radius: 8px;
  margin: 22px 0;
}
.guide-body .scroll {
  overflow: auto;
}
.guide-body .tk {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
}
.guide-body .tk p {
  margin: 0;
}
.guide-body details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
.guide-body summary {
  cursor: pointer;
  font-size: 0.9375rem;
}
.chk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.chk input {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  accent-color: #4e52cf;
}
.chk.done span {
  color: #686378;
  text-decoration: line-through;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 24px;
}
.inventory-table {
  min-width: 850px;
}
.inventory-table td:nth-child(1) {
  width: 210px;
}
.inventory-table td:nth-child(4) {
  min-width: 260px;
  max-width: 380px;
}
.inventory-table .action-note {
  font-size: 0.8125rem;
  color: #686378;
  line-height: 1.6;
}
.admin-list {
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
}
.admin-list .actions {
  margin-top: 12px;
}
.audit-row {
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  display: flex;
  gap: 25px;
}
.audit-row .mono {
  flex: none;
}
.footer {
  padding: 23px 42px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.75rem;
  color: #686378;
}
.footer a {
  text-decoration: none;
}
.loading {
  display: flex;
  min-height: 50vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.loading-mark {
  font-size: 2.5rem;
  color: var(--ink);
  letter-spacing: -1.5px;
  font-weight: 600;
}
.loading p {
  font-size: 0.875rem;
  margin-top: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  width: min(590px, calc(100% - 28px));
  max-height: 90dvh;
  box-shadow: 0 25px 100px #22204f33;
  color: var(--ink);
  background: #ffffff;
}
dialog::backdrop {
  background: #22204f80;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 24px 27px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.dialog-header h2 {
  font-size: 1.3rem;
}
.dialog-body {
  padding: 26px;
}
.dialog-body .form-grid {
  gap: 17px;
}
.dialog-body .form-actions {
  justify-content: flex-end;
}
.dialog-body p {
  font-size: 0.875rem;
  color: var(--muted);
}
.dialog-body .detail {
  margin: 20px 0;
  padding: 18px;
  background: #e7e5f6;
  border-radius: 8px;
  font-size: 0.875rem;
}
.detail p {
  margin: 5px 0;
}
.full-width {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 120px);
  transform: translateX(-50%);
  background: #22204f;
  color: white;
  padding: 13px 21px;
  border-radius: 8px;
  box-shadow: 0 5px 30px #22204f22;
  font-size: 0.875rem;
  max-width: 90vw;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.visible {
  opacity: 1;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  padding: 12px 20px;
  background: white;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.full-span {
  grid-column: 1/-1;
}
@media (min-width: 1500px) {
  main {
    padding-top: 50px;
  }
  .welcome-panel {
    min-height: 265px;
  }
  .welcome-panel h2 {
    font-size: 2.5rem;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 218px;
  }
  .workspace {
    margin-left: 218px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 30px 28px;
  }
  .metric {
    padding: 17px 16px;
    gap: 10px;
  }
  .metric strong {
    font-size: 1.6rem;
  }
  .resource-card {
    padding: 19px;
  }
  .calendar-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .slots {
    grid-template-columns: repeat(2, 1fr);
  }
  .edition {
    display: none;
  }
  .two-col {
    grid-template-columns: 1.4fr 1fr;
  }
  .footer {
    padding: 22px 28px;
  }
  .welcome-panel {
    padding: 26px;
  }
  .welcome-panel h2 {
    font-size: 1.85rem;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .countdown-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }
  .countdown-panel .location {
    grid-column: 2;
    grid-row: 1/4;
    border: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 20px;
    margin: 0;
    align-self: center;
  }
  .countdown-panel .countdown {
    margin: 0;
    font-size: 2rem;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resource-grid.featured .resource-card:last-child {
    display: none;
  }
  .two-col,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .hardware-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hardware-option {
    padding: 12px;
  }
  .hardware-option .option-bottom > .mono {
    display: none;
  }
  .calendar-layout .slots {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .page-head .aside-note {
    display: none;
  }
  h1 {
    font-size: 2.35rem;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head .actions {
    flex-shrink: 0;
  }
}
@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
    transition: transform 0.2s;
    box-shadow: 20px 0 50px #22204f22;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    gap: 12px;
  }
  .topbar > #menu-toggle {
    display: block;
    flex: none;
  }
  .breadcrumb {
    gap: 7px;
    flex: 1;
    font-size: 0.8125rem;
  }
  .breadcrumb > span,
  .breadcrumb > b {
    display: none;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions .button {
    font-size: 0.75rem;
    padding: 8px 11px;
  }
  main {
    padding: 28px 18px 35px;
  }
  h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-head p {
    font-size: 0.875rem;
  }
  .kicker {
    font-size: 0.75rem;
  }
  .welcome-panel {
    padding: 24px;
    min-height: 247px;
  }
  .welcome-panel h2 {
    font-size: 1.9rem;
  }
  .welcome-panel p {
    margin-bottom: 19px;
  }
  .countdown-panel {
    padding: 22px 20px;
  }
  .countdown-panel .countdown {
    font-size: 1.6rem;
  }
  .countdown small {
    font-size: 0.7rem;
    padding-right: 5px;
  }
  .countdown-panel .date {
    font-size: 0.875rem;
  }
  .location {
    font-size: 0.8125rem;
  }
  .location span {
    font-size: 0.75rem;
  }
  .metrics {
    margin: 20px 0 27px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 1.7rem;
  }
  .resource-grid,
  .resource-grid.featured {
    grid-template-columns: 1fr;
  }
  .resource-grid.featured .resource-card:last-child {
    display: flex;
  }
  .resource-card .identity {
    margin-bottom: 18px;
  }
  .resource-card p {
    margin-bottom: 15px;
  }
  .resource-card {
    padding: 23px;
  }
  .section-head h2 {
    font-size: 1.1rem;
  }
  .section-head .text-link {
    font-size: 0.75rem;
  }
  .two-col {
    gap: 20px;
  }
  .panel-header {
    padding: 19px 20px;
  }
  .equipment-row {
    padding: 17px 20px;
    gap: 10px;
  }
  .item-index {
    display: none;
  }
  .filter-bar {
    margin: 20px 0;
  }
  .filter-bar .search {
    flex-basis: 100%;
  }
  .filter-bar select {
    flex: 1;
  }
  .hardware-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hardware-option .tag {
    font-size: 0.7rem;
  }
  .hardware-option strong {
    font-size: 0.8125rem;
  }
  .hardware-summary {
    padding: 22px 20px;
  }
  .hardware-summary .specs {
    gap: 20px;
  }
  .calendar-layout .slots {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 18px 22px;
  }
  .calendar-controls {
    padding: 19px 18px;
  }
  .day-tabs {
    padding: 0 18px;
    gap: 22px;
  }
  .day-tab {
    font-size: 0.8125rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex: 1;
  }
  .panel.padded,
  .guide-body {
    padding: 23px;
  }
  .guide-body .tk {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer {
    padding: 20px 18px;
    flex-direction: column;
    gap: 7px;
  }
  .dialog-body {
    padding: 22px;
  }
  .dialog-header {
    padding: 21px 22px;
  }
  .dialog-header h2 {
    font-size: 1.1rem;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 30px);
  }
  .audit-row {
    flex-direction: column;
    gap: 6px;
  }
  .guide-tabs {
    gap: 4px;
  }
  .guide-tabs .filter-button {
    padding: 7px 9px;
  }
  .admin-tabs {
    flex-wrap: wrap;
  }
  .timeline-item {
    padding: 20px;
  }
  .project {
    padding: 23px;
  }
  .notice {
    padding: 15px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.hardware-mobile {
  display: none;
}
@media (max-width: 900px) {
  .hardware-mobile {
    display: flex;
  }
  .hardware-picker {
    display: none;
  }
}
/* Keep the working surface usable with enlarged browser text. */
.hardware-mobile,
.field,
.welcome-grid > *,
.form-grid > * {
  min-width: 0;
}
.hardware-mobile select {
  width: 100%;
}
.hardware-summary .specs {
  flex-wrap: wrap;
}
.day-tabs {
  flex-wrap: wrap;
}
.time-slot {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .calendar-layout .slots {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
  .countdown-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-wrap: anywhere;
  }
  .topbar {
    min-height: 66px;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .welcome-panel .panel-top {
    flex-wrap: wrap;
  }
  .tag {
    white-space: normal;
  }
  .metric {
    flex-wrap: wrap;
  }
}
