:root {
  color-scheme: light;
  --workspace-header-height: 73px;
  --ink: #18313f;
  --muted: #5b6e78;
  --line: #e3e9ec;
  --teal: #087b78;
  --paper: #f5f7f8;
  --navy: #122b3b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.65 Arial,
    "Noto Sans JP",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #d5dfe3;
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 13px;
  min-height: 40px;
  font-weight: 600;
}
button:hover {
  background: #edf4f4;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  min-width: 0;
  border: 1px solid #d2dde1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
}
input[type="checkbox"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
}
textarea {
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #239eaa;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.06em;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 11px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--workspace-header-height);
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #a7ebe1;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 23px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.1;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
.contact {
  color: var(--teal);
  font-weight: 700;
}
.shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: var(--workspace-header-height);
  align-self: start;
  height: calc(100vh - var(--workspace-header-height));
  height: calc(100dvh - var(--workspace-header-height));
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 17px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar > * {
  flex-shrink: 0;
}
#workspace,
#demo-guide {
  scroll-margin-top: calc(var(--workspace-header-height) + 16px);
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.workspace-name {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 18px;
}
.workspace-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.workspace-icon {
  border: 1px solid #b6ccc9;
  background: #e9f5f0;
  color: #146d64;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}
.sidebar nav .active {
  background: #e9f5f1;
  color: #126a61;
  font-weight: 600;
}
.sidebar-count {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 7px;
}
main {
  padding: 27px 32px 20px;
  min-width: 0;
  max-width: 1800px;
}
.breadcrumb {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.breadcrumb span {
  padding: 0 10px;
  color: #94a4ab;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 21px;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 7px;
}
.primary {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: white;
  white-space: nowrap;
}
.primary:hover {
  background: #086862;
}
.demo-note {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.demo-label {
  border: 1px solid #c6d5db;
  padding: 2px 7px;
  border-radius: 4px;
  color: #395361;
  white-space: nowrap;
}
.storage-status {
  font-size: 11px;
  color: #8c471d;
  margin: 6px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 22px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 20px;
}
.metric-top {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.metric-number {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 8px 0 2px;
  font-weight: 700;
}
.metric-number small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
}
.metric-alert .metric-number {
  color: #b24c2a;
}
.progress-track {
  height: 4px;
  border-radius: 10px;
  background: #e8edef;
  margin-top: 10px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.planning-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.view-tabs {
  display: flex;
  background: #f0f4f5;
  padding: 3px;
  border-radius: 7px;
  gap: 3px;
}
.view-tabs button {
  border: 0;
  min-height: 34px;
  font-size: 12px;
  background: transparent;
  padding: 6px 13px;
}
.view-tabs button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 4px #17303f18;
  color: var(--teal);
}
.quiet {
  background: transparent;
  border: 0;
  font-size: 11px;
  min-height: 32px;
  padding: 5px 8px;
}
.panel-tools {
  display: flex;
  gap: 9px;
}
.filters {
  padding: 17px 18px 6px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 9px;
}
.filters .search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search span:not(.sr-only) {
  position: absolute;
  left: 9px;
  font-size: 20px;
  color: var(--muted);
}
.search input {
  width: 100%;
  padding-left: 30px;
}
.overdue-filter {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.result-heading {
  padding: 5px 18px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.gantt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.gantt-controls > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gantt-controls button {
  font-size: 11px;
  padding: 4px 10px;
  min-height: 30px;
}
.gantt-controls label {
  font-size: 11px;
  color: var(--muted);
}
.gantt-controls select {
  padding: 3px 7px;
  font-size: 11px;
}
.gantt-controls #period-label {
  font-weight: 700;
  margin-left: 7px;
  font-size: 12px;
}
.gantt-scroll {
  overflow: auto;
  max-height: 650px;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.gantt {
  position: relative;
  width: max-content;
  min-width: 100%;
  --label: 276px;
  --day: 30px;
}
.gantt-header,
.gantt-row {
  display: flex;
  width: max-content;
  min-width: 100%;
}
.gantt-header {
  height: 63px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.gantt-label {
  position: sticky;
  left: 0;
  width: var(--label);
  flex-shrink: 0;
  z-index: 3;
  background: white;
  border-right: 1px solid var(--line);
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gantt-header .gantt-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  z-index: 6;
}
.gantt-dates {
  display: flex;
}
.gantt-day {
  width: var(--day);
  text-align: center;
  font-size: 11px;
  padding: 6px 0;
  color: #536c77;
}
.gantt-day small {
  display: block;
  font-size: 9px;
  color: #6d808a;
}
.weekend {
  background: #f5f7f9;
}
.gantt-day.current {
  color: var(--teal);
  background: #e6f7f2;
  font-weight: 700;
}
.gantt-row {
  height: 58px;
  border-bottom: 1px solid #edf0f2;
}
.gantt-row:hover .gantt-label {
  background: #f7fbfa;
}
.gantt-label button {
  text-align: left;
  flex: 1;
  border: 0;
  padding: 0;
  background: transparent;
  min-height: 0;
  min-width: 0;
  display: block;
}
.ticket-id {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.ticket-title {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.avatar {
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e8eef3;
  color: #4a6474;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 10px;
  font-weight: 600;
}
.avatar-0 {
  background: #e2f0ed;
  color: #14665a;
}
.avatar-1 {
  background: #eee9fa;
  color: #6a45a1;
}
.avatar-2 {
  background: #e6edf9;
  color: #3c5c91;
}
.avatar-3 {
  background: #eceff0;
  color: #586a73;
}
.gantt-lane {
  position: relative;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 29px,
    #ecf0f2 29px,
    #ecf0f2 30px
  );
}
.gantt-weekend {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: #f2f5f780;
  pointer-events: none;
}
.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #299487;
  pointer-events: none;
}
.gantt-bar {
  position: absolute;
  top: 16px;
  height: 27px;
  min-height: 0;
  border: 1px solid #9db1c7;
  border-radius: 5px;
  padding: 0 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  background: #e6edf5;
  color: #314b69;
}
.gantt-bar.status-progress {
  background: #d9efea;
  border-color: #90c8ba;
  color: #165e52;
}
.gantt-bar.status-review {
  background: #eee5fa;
  border-color: #c7abea;
  color: #63408e;
}
.gantt-bar.status-done {
  background: #ecf0f1;
  border-color: #c8d4d7;
  color: #5c7079;
}
.gantt-bar.late {
  border-color: #c35e3b;
  background: #fbe7dd;
  color: #8e3b23;
}
.bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: #0d8c7124;
  z-index: -1;
}
.gantt-bar.status-review .bar-progress {
  background: #9257c323;
}
.gantt-bar.late .bar-progress {
  background: #c65a3824;
}
.gantt-bar span:not(.bar-progress) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dependency-svg {
  position: absolute;
  top: 63px;
  left: 276px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.dependency-path {
  fill: none;
  stroke: #9aaeb9;
  stroke-width: 1.4;
  stroke-dasharray: 3 2;
}
.dependency-arrow {
  fill: #8298a3;
}
.legend {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 9px;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-line {
  display: inline-block;
  width: 18px;
  border-top: 2px dashed #8298a3;
}
.legend-fill {
  width: 13px;
  height: 7px;
  background: #94cbbd;
  display: inline-block;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8297ad;
  margin-right: 5px;
}
.status-dot.status-progress {
  background: #16846e;
}
.status-dot.status-review {
  background: #9567c1;
}
.status-dot.status-done {
  background: #8e9d9f;
}
.pill {
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eff3f6;
  color: #4e6778;
}
.pill.status-progress {
  background: #e1f3ed;
  color: #146653;
}
.pill.status-review {
  background: #f0e8f8;
  color: #754f9a;
}
.pill.status-done {
  background: #eef2f2;
  color: #596c72;
}
.priority-high,
.late-text {
  color: #a74627;
}
.priority-medium {
  color: #84621f;
}
.priority-low {
  color: #566e7d;
}
.blocked-label {
  color: #96651c;
  background: #fbf0d6;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}
.ticket-table-wrap {
  overflow: auto;
}
.ticket-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.ticket-table th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: #f7f9fa;
  padding: 12px 16px;
  white-space: nowrap;
}
.ticket-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.ticket-table .title-cell {
  min-width: 230px;
}
.title-button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 12px;
  min-height: 30px;
}
.ticket-table .project-name {
  font-size: 10px;
  color: var(--muted);
}
.progress-cell {
  min-width: 95px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  padding: 18px;
  gap: 13px;
  overflow: auto;
  align-items: start;
}
.board-column {
  padding: 10px;
  background: #f4f7f8;
  border-radius: 8px;
  min-height: 300px;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 12px;
  margin: 0 1px 13px;
}
.board-heading small {
  font-weight: 400;
  color: var(--muted);
}
.board-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  margin-bottom: 9px;
  padding: 13px;
  box-shadow: 0 2px 3px #18313f04;
}
.board-card .title-button {
  margin: 6px 0 10px;
  font-weight: 600;
  line-height: 1.6;
  width: 100%;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}
.card-status {
  width: 100%;
  padding: 5px;
  font-size: 10px;
  margin-top: 12px;
}
.board-card .project-name {
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty a {
  color: var(--teal);
}
.guide {
  margin: 34px 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 25px;
  font-size: 12px;
}
.guide > div > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 10px;
}
.guide ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 17px;
}
.guide li {
  display: flex;
  gap: 13px;
}
.guide li > span {
  font-size: 10px;
  color: var(--teal);
  background: #e6f2ed;
  border: 1px solid #ccdfd9;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.guide li p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.guide details {
  grid-column: 1/-1;
  border-top: 1px solid #d9e2e6;
  padding-top: 15px;
}
.guide summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
}
.guide details p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 900px;
}
.consult {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  color: #f7fafa;
  padding: 26px;
  border-radius: 10px;
}
.consult .eyebrow {
  color: #8ccdc0;
}
.consult h2 {
  font-size: 19px;
}
.consult p:not(.eyebrow) {
  font-size: 11px;
  color: #b9cdd5;
  margin-top: 6px;
}
.button-link {
  display: inline-block;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  margin: 24px 0 0;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 13px;
  color: var(--ink);
  background: white;
  width: min(680px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 25px 100px #132d3d40;
}
dialog::backdrop {
  background: #10293870;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 4;
}
.dialog-head h2 {
  font-size: 20px;
}
.icon-button {
  font-size: 25px;
  border: 0;
  background: transparent;
  line-height: 1;
  padding: 0;
  width: 35px;
}
#ticket-form {
  padding: 22px 24px;
  display: grid;
  gap: 15px;
}
#ticket-form label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}
#ticket-form input,
#ticket-form select,
#ticket-form textarea {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dependency-field {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.dependency-field legend {
  font-size: 11px;
  font-weight: 600;
}
.dependency-field > p,
.field-help {
  font-size: 10px;
  color: var(--muted);
}
#dependency-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 150px;
  overflow: auto;
  gap: 7px;
  margin-top: 10px;
}
#dependency-options label {
  display: flex;
  align-items: start;
  font-weight: 400;
  gap: 5px;
}
#dependency-options input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.registered-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.github-link {
  font-size: 10px;
  border: 1px solid #ccd9e0;
  border-radius: 5px;
  display: inline-block;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: #21627f;
}
.ticket-warnings p {
  font-size: 11px;
  color: #89521e;
  background: #fff4df;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
}
.history h3 {
  font-size: 12px;
}
.history ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-height: 150px;
  overflow: auto;
}
.history li {
  font-size: 10px;
  border-left: 2px solid #d2e1df;
  padding: 3px 10px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.history time {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.form-error {
  font-size: 12px;
  color: #ad3f28;
  white-space: pre-line;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.dialog-actions > div {
  display: flex;
  gap: 8px;
}
.dialog-actions button {
  font-size: 11px;
}
.danger {
  color: #b1412a;
  border-color: #e6bcaf;
  background: #fff8f5;
}
#confirm-dialog {
  width: min(420px, calc(100% - 24px));
  padding: 25px;
}
#confirm-dialog h2 {
  font-size: 20px;
}
#confirm-description {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 20px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  box-shadow: 0 5px 20px #1234;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 20;
  max-width: calc(100% - 30px);
  font-size: 12px;
}
#notice:empty {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding: 32px 48px;
  }
  .gantt {
    --label: 300px;
  }
  .dependency-svg {
    left: 300px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 12px;
  }
  main {
    padding: 24px 20px;
  }
  .sidebar nav a {
    font-size: 11px;
    padding: 9px;
  }
  .metric {
    padding: 14px;
  }
  .topbar {
    padding: 0 20px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .guide {
    grid-template-columns: 1fr;
  }
  .guide > div {
    max-width: 650px;
  }
  .guide ol {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --workspace-header-height: 64px;
  }
  .sidebar {
    display: none;
  }
  .shell {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 15px;
  }
  .brand {
    font-size: 14px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .brand small {
    font-size: 9px;
  }
  .topbar nav {
    gap: 12px;
    font-size: 10px;
  }
  .topbar nav > a:first-child {
    display: none;
  }
  main {
    padding: 20px 14px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .page-heading {
    margin: 20px 0;
    align-items: start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading .primary {
    font-size: 10px;
    padding: 9px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 10px;
  }
  .demo-note {
    align-items: start;
    font-size: 10px;
    gap: 7px;
  }
  .demo-label {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 17px 0;
  }
  .metric {
    padding: 12px 14px;
  }
  .metric-number {
    font-size: 26px;
    margin: 6px 0;
  }
  .metric-note {
    font-size: 9px;
  }
  .panel-top {
    padding: 12px 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .view-tabs button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .panel-tools {
    gap: 1px;
  }
  .quiet {
    font-size: 10px;
    padding: 4px 6px;
  }
  .filters {
    padding: 12px 10px 5px;
    gap: 7px;
  }
  .filters label:not(.search) {
    flex: 1;
  }
  .filters select {
    width: 100%;
  }
  .filters .overdue-filter {
    flex-basis: 100% !important;
    font-size: 10px;
  }
  .result-heading {
    padding: 4px 10px 8px;
    font-size: 10px;
  }
  .gantt-controls {
    padding: 10px;
    align-items: start;
    flex-wrap: wrap;
  }
  .gantt-controls #period-label {
    font-size: 10px;
  }
  .gantt-controls label {
    margin-left: auto;
  }
  .gantt {
    --label: 164px;
  }
  .gantt-label {
    padding: 8px 9px;
    gap: 5px;
  }
  .gantt-label .avatar {
    display: none;
  }
  .ticket-title {
    font-size: 10px;
  }
  .dependency-svg {
    left: 164px;
  }
  .legend {
    padding: 10px;
    gap: 8px;
    font-size: 9px;
  }
  .legend > span:nth-child(3) {
    flex-basis: 100%;
  }
  .guide {
    margin: 25px 0;
    gap: 18px;
  }
  .guide h2 {
    font-size: 20px;
  }
  .guide ol {
    grid-template-columns: 1fr;
  }
  .consult {
    display: block;
    padding: 23px 18px;
  }
  .consult h2 {
    font-size: 18px;
  }
  .consult .button-link {
    margin-top: 18px;
  }
  .consult p:not(.eyebrow) {
    font-size: 10px;
  }
  .dialog-head {
    padding: 17px;
  }
  #ticket-form {
    padding: 17px;
  }
  .form-grid {
    gap: 10px;
  }
  #dependency-options {
    grid-template-columns: 1fr;
  }
  .dialog-actions button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .board {
    grid-template-columns: repeat(4, 235px);
    padding: 12px;
    gap: 10px;
  }
  footer {
    font-size: 9px;
  }
  #notice {
    bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.saved-view-section { padding: 18px 22px 0; }
.saved-view-section h2 { font-size: 13px; margin: 0 0 10px; }
.saved-views { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-views button { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.saved-views button[aria-pressed="true"] { color: var(--primary, #087d7d); border-color: currentColor; background: #e9f6f3; }
.saved-views span { border-radius: 20px; background: #eef2f3; padding: 1px 7px; font-size: 11px; }
.kind-label, .relation-label { display: inline-block; padding: 2px 7px; margin: 4px 6px 4px 0; border-radius: 5px; background: #edf2f5; color: #385566; font-size: 10px; }
.relation-label { background: #fff3d9; color: #694818; }
#related-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 180px; overflow: auto; margin: 10px 0 16px; }
#related-options label { display: flex; align-items: flex-start; gap: 7px; font-weight: normal; font-size: 12px; }
#related-options input { width: auto; margin: 3px 0 0; flex: 0 0 auto; }
.knowledge-handoff { border: 1px solid #d8e3e6; padding: 14px; margin: 18px 0; border-radius: 8px; }
.knowledge-handoff summary { cursor: pointer; font-weight: 700; }
.knowledge-handoff p { font-size: 12px; line-height: 1.7; }
.knowledge-handoff a { display: inline-block; margin: 12px 0 0; font-size: 12px; }
@media (max-width: 600px) { .saved-view-section { padding: 16px 12px 0; } #related-options { grid-template-columns: 1fr; } }
