.workspace {
  --ink: #172938;
  --muted: #526575;
  --line: #dbe3e9;
  --green: #17635e;
  --wash: #e9f4f0;
  --paper: #f4f7f9;
  background: var(--paper);
}

.workspace .top, .workspace .site-nav { background: #132531; color: #f7fafc; }
.workspace .top { border: 0; }
.workspace .brand { line-height: 1.35; }
.workspace .brand small { display: block; margin: 0; color: #bdccd5; font-size: .78rem; }
.workspace .mark { background: #26756a; flex: none; }
.workspace .site-nav { gap: .25rem; padding: .5rem 1rem; }
.workspace .site-nav a {
  color: #d8e3ea;
  border-radius: 7px;
  padding: .55rem .75rem;
  text-decoration: none;
  white-space: nowrap;
}
.workspace .site-nav a:hover, .workspace .site-nav a[aria-current] { color: white; background: #254553; }
.workspace main.wrap, .workspace footer.wrap { min-width: 0; width: min(1120px, calc(100% - 36px)); }
.workspace .workspace-heading { margin-bottom: 1.3rem; }
.workspace-heading h1 { margin: .2rem 0; }
.workspace-heading p { margin: 0; color: var(--muted); }
.workspace-heading p:first-child { color: var(--green); font-size: .78rem; font-weight: 700; }
.workspace .directory-filter { padding: 1.1rem; box-shadow: 0 4px 16px #17293808; }
.workspace .directory-filter form { display: block; }
.workspace .directory-tags { border: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workspace .project-picker > span { font-size: .84rem; font-weight: 650; color: var(--muted); }
.picker-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
  padding: .5rem .7rem;
  overflow-wrap: anywhere;
}
.picker-trigger::after { content: "⌄"; flex: none; color: var(--green); }
.picker-trigger:disabled { background: var(--paper); color: var(--muted); cursor: default; }
.workspace .picker-panel {
  display: none;
  position: fixed;
  inset: auto;
  margin: 0;
  padding: .55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 28px #13253125;
}
.workspace .picker-panel:popover-open { display: flex; flex-direction: column; gap: .4rem; }
.workspace .picker-panel > input { flex: none; }
.workspace .picker-options { display: block; min-height: 0; overflow: auto; }
.picker-options button {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  width: 100%;
  min-height: 36px;
  text-align: left;
  padding: .4rem .55rem;
  color: var(--ink);
  border: 0;
  background: transparent;
  overflow-wrap: anywhere;
}
.picker-options button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--wash); }
.picker-options button:focus-visible { outline-offset: -3px; }
.picker-message, .workspace-empty p { color: var(--muted); margin: 0; }
.secondary-filters { margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.secondary-filters > summary { color: var(--muted); font-size: .85rem; }
.secondary-filters > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
.school-heading, .school-badges { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.school-heading { gap: .65rem; }
.school-badges > span { padding: .12rem .4rem; color: var(--green); background: var(--wash); border-radius: 5px; font-size: .75rem; white-space: nowrap; }
.picker-trigger > :first-child { flex: 1; min-width: 0; }
.secondary-filters .activity-filter { grid-column: 1 / -1; }
.workspace-empty { margin-top: 1rem; padding: 1.65rem; border: 1px dashed var(--line); border-radius: 12px; }
.workspace-empty h2, .workspace #school-name { margin: 0; font-size: 1.2rem; }
.workspace #school-detail { margin-top: 1.35rem; }
.workspace #status:empty { margin: 0; }
.workspace .announcement-select select { max-width: 100%; }
.presentation-heading, #consultation-presentation > header {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem;
}
#open-presentation, #consultation-presentation button {
  border: 0; border-radius: 8px; padding: .5rem .85rem; background: var(--green); color: white; white-space: nowrap;
}
#consultation-presentation {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(1rem, 4vw, 3rem); border: 0; background: var(--paper); color: var(--ink);
  overflow-wrap: anywhere;
}
#consultation-presentation header, .presentation-content { max-width: 65rem; margin-inline: auto; }
#consultation-presentation form { display: block; margin: 0; }
.presentation-context { color: var(--green); font-weight: 700; margin-top: 2rem; }
.presentation-content h2 { font-size: clamp(1.45rem, 4vw, 2.4rem); margin: .35rem 0; }
.presentation-project { font-size: 1.1rem; color: var(--muted); }
.presentation-section { margin: 1rem 0; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 12px; }
.presentation-section h3, .presentation-rule h4 { margin: 0 0 .45rem; }
.presentation-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
.presentation-rule { padding: .85rem; border-radius: 8px; background: var(--paper); }
.presentation-rule p { margin: .4rem 0; white-space: pre-line; }
.presentation-rule small { color: var(--muted); }

@media (min-width: 900px) {
  .workspace { display: grid; grid-template: auto 1fr auto / 216px minmax(0, 1fr); min-height: 100vh; }
  .workspace .top { grid-area: 1 / 1; }
  .workspace .brand { width: auto; margin-inline: 1rem; }
  .workspace .site-nav { grid-area: 2 / 1 / 4; width: 100%; flex-direction: column; }
  .workspace main { grid-area: 1 / 2 / 3; }
  .workspace footer { grid-area: 3 / 2; }
}

@media (max-width: 899px) {
  .workspace .site-nav { width: 100%; overflow-x: auto; }
}

@media (max-width: 580px) {
  .workspace .directory-tags, .secondary-filters > div { grid-template-columns: minmax(0, 1fr); }
  .workspace main { padding-top: 1.25rem; }
}
