.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #f0f2f3;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 36px;
}
.brandmark {
  background: var(--accent);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.brandmark svg {
  width: 24px;
  height: 24px;
}
.brand strong {
  font-size: 22px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  color: var(--muted);
  margin-top: -4px;
  font-size: 11px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  font-size: 14px;
  color: #5b626c;
  border-radius: 8px;
}
.nav a.active {
  background: white;
  box-shadow: 0 1px 3px #20242b0a;
  color: var(--accent);
  font-weight: 500;
}
.nav a:hover {
  background: #ffffffa0;
}
.nav a span:last-child:not(:nth-child(2)) {
  margin-left: auto;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  min-width: 23px;
  padding: 0 5px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.side-section {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.side-bottom {
  margin-top: auto;
  padding: 16px 10px 0;
}
.demo-tag {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid #bcd7d2;
  border-radius: 4px;
  padding: 2px 6px;
}
.side-bottom p {
  font-size: 12px;
  margin: 9px 0;
  color: var(--muted);
}
.textbtn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 72px;
  background: #ffffffc9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
}
.top-search {
  position: relative;
  width: min(390px, 45vw);
}
.top-search input {
  border: 0;
  background: transparent;
  padding-left: 30px;
  font-size: 14px;
}
.top-search svg {
  position: absolute;
  top: 12px;
  left: 0;
  color: #757e88;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile select {
  border: 0;
  background: transparent;
  width: auto;
  max-width: 190px;
  font-size: 13px;
  padding: 4px 22px 4px 4px;
}
.avatar {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #d8e8e5;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.small {
  width: 25px;
  height: 25px;
  font-size: 9px;
}
.content {
  padding: 32px;
  max-width: 1600px;
  margin: auto;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  align-items: center;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover {
  border-color: #aeb9c0;
  background: #fafbfc;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn.primary:hover {
  background: var(--accent-dark);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: var(--red);
}
.iconbtn {
  padding: 8px;
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iconbtn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #bed7d2;
}
.badge {
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1.4;
  white-space: nowrap;
  background: #f0f2f4;
  color: #5f6772;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  color: var(--accent);
  background: var(--accent-soft);
}
.badge.amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.badge.blue {
  color: var(--blue);
  background: var(--blue-soft);
}
.badge.red {
  color: var(--red);
  background: var(--red-soft);
}
.pill {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filters select,
.filters input {
  width: auto;
  max-width: 190px;
  font-size: 12px;
  min-height: 36px;
  padding: 6px 10px;
  background: white;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: white;
  gap: 3px;
}
.segmented .iconbtn {
  border: 0;
  min-height: 28px;
  padding: 5px 7px;
}
.view-info {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.space-between {
  justify-content: space-between;
}
.empty {
  text-align: center;
  padding: 64px 20px;
  background: white;
  border: 1px dashed #cbd3d9;
  border-radius: 12px;
}
.empty > svg {
  margin: 0 auto 14px;
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  margin: 8px auto 18px;
  max-width: 450px;
}
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #2b615c;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.notice p {
  margin-top: 3px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  background: #fafbfc;
  padding: 12px 16px;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-top: 1px solid #edf0f2;
  vertical-align: middle;
}
td strong {
  font-weight: 500;
}
td .hint {
  font-size: 11px;
}
tbody tr:hover {
  background: #fafcfc;
}
.table-link {
  display: flex;
  gap: 12px;
  align-items: center;
}
.table-link img {
  width: 54px;
  height: 42px;
  border-radius: 5px;
  object-fit: cover;
}
.table-link small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.table-foot {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.deadline.late {
  color: var(--amber);
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: 90dvh;
  box-shadow: var(--shadow);
  color: var(--ink);
}
dialog::backdrop {
  background: #14242965;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 20px;
}
.dialog-body {
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 24px;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 14px;
}
.checklist {
  display: grid;
  gap: 10px;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
}
.checklist span {
  margin: 0;
}
.preview {
  max-height: 65vh;
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}
.toast {
  position: fixed;
  right: 28px;
  bottom: 24px;
  background: #23433f;
  color: white;
  padding: 13px 18px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  z-index: 50;
  font-size: 14px;
  max-width: calc(100vw - 32px);
}
.mobile-menu {
  display: none;
}
.intro {
  font-size: 14px;
  line-height: 1.65;
  max-width: 75ch;
}
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.compact {
  font-size: 12px;
}
.separator {
  color: #bec7cc;
}
.list-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.imagebutton {
  position: relative;
  border: 0;
  padding: 0;
  display: block;
  background: transparent;
  overflow: hidden;
  border-radius: 8px;
}
.imagebutton:focus-visible {
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }
  .top-search {
    display: block;
    order: 3;
    width: 100%;
    flex-basis: 100%;
    background: #f4f6f7;
    border-radius: 7px;
  }
  .top-search svg {
    left: 10px;
  }
  .top-search input {
    padding-left: 36px;
  }
  .profile select {
    max-width: 152px;
  }
  .profile .pill {
    font-size: 10px;
  }
}
