#k12-client {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  background: #f3f1ec;
  color: #1c1915;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

#k12-client * { box-sizing: border-box; }

#k12-client button, #k12-client input { font: inherit; }

.k12-shell {
  width: min(1180px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.k12-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.k12-kicker {
  margin: 0 0 4px;
  color: #6f6a62;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.k12-top h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 650;
}

.k12-actions { display: flex; gap: 14px; align-items: center; }

.k12-ghost {
  border: 0;
  background: transparent;
  color: #6f6a62;
  padding: 8px 0;
  cursor: pointer;
}

.k12-login {
  max-width: 420px;
  margin: 48px auto;
  background: white;
  border-radius: 18px;
  padding: 24px;
}

.k12-login h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.k12-login label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
}

.k12-login input {
  width: 100%;
  border: 0;
  background: #f3f1ec;
  border-radius: 12px;
  padding: 12px 14px;
}

.k12-login button[type="submit"] {
  margin-top: 18px;
  border: 0;
  background: #1c1915;
  color: #f6f4ef;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.k12-login button[type="submit"]:disabled { opacity: 0.6; }

.k12-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.k12-tabs button {
  border: 0;
  background: transparent;
  color: #5f5a53;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.k12-tabs button[aria-selected="true"] {
  background: #1c1915;
  color: #f6f4ef;
}

.k12-stack {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-bottom: 28px;
}

.k12-stack.k12-fit {
  overflow: hidden;
  display: flex;
  padding-bottom: 0;
}

.k12-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 8px;
  align-items: center;
}

.k12-search, .k12-select {
  border: 0;
  background: white;
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
}

.k12-search { min-width: 160px; flex: 1; }

.k12-chip {
  border: 0;
  background: #efece6;
  color: #3f3a34;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}

.k12-chip.on { background: #1c1915; color: #f6f4ef; }

.k12-person { position: relative; min-width: 140px; }

.k12-suggest {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 40px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 25, 21, 0.12);
}

.k12-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}

.k12-note {
  margin: 0 12px 8px;
  color: #6f6a62;
  font-size: 13px;
}

.k12-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 0;
  border-top: 1px solid #e6e1d8;
}

.k12-listcol, .k12-detailcol {
  min-height: 0;
  overflow: auto;
}

.k12-listcol { background: #f7f5f1; }

.k12-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #ece7df;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
}

.k12-item.on { background: white; }
.k12-item.unread .k12-item-title,
.k12-item.unread strong { font-weight: 750; }

.k12-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.k12-item-title {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.3;
}

.k12-item-date, .k12-snippet {
  color: #6f6a62;
  font-size: 13px;
}

.k12-snippet {
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k12-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.k12-read {
  background: white;
  margin: 12px;
  border-radius: 18px;
  padding: 18px 20px 28px;
}

.k12-read h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.k12-from {
  margin: 0 0 4px;
  font-size: 16px;
}

.k12-body {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 15px;
  margin-top: 16px;
}

.k12-link {
  display: block;
  margin-top: 8px;
  color: #1d4e89;
}

.k12-back {
  border: 0;
  background: transparent;
  color: #1c1915;
  padding: 12px 14px 0;
  cursor: pointer;
}

.k12-click { cursor: pointer; }

@media (max-width: 860px) {
  #k12-client { overflow: auto; }
  .k12-shell { height: auto; min-height: 100%; overflow: visible; }
  .k12-stack.k12-fit { overflow: visible; display: block; }
  .k12-split { display: block; height: auto; }
  .k12-split.is-detail .k12-listcol { display: none; }
  .k12-split:not(.is-detail) .k12-detailcol { display: none; }
  .k12-listcol, .k12-detailcol { overflow: visible; }
}

.k12-card {
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
}

.k12-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.3;
}

.k12-meta, .k12-preview {
  margin: 0;
  color: #6f6a62;
  font-size: 14px;
}

.k12-preview {
  margin-top: 8px;
  line-height: 1.4;
}

.k12-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.k12-pill {
  flex: none;
  border-radius: 999px;
  padding: 4px 8px;
  background: #efece6;
  color: #3f3a34;
  font-size: 12px;
}

.k12-pill.warn { background: #f3e1d4; color: #8a3d12; }
.k12-pill.ok { background: #e3f0e8; color: #1d6b45; }

.k12-section {
  margin: 18px 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6a62;
}

.k12-empty, .k12-error {
  padding: 28px 8px;
  color: #6f6a62;
}

.k12-error { color: #8a3d12; }

.k12-course {
  margin-bottom: 14px;
}

.k12-course h2 { margin-bottom: 8px; }

.k12-mark {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #eeeae4;
  font-size: 15px;
}
