@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root {
  font-family: 'DM Sans',system-ui,sans-serif;
  color: #24221f;
  background: #fbf8f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #24221f;
  --muted: #817c74;
  --line: #e9e4dc;
  --paper: #fffefa;
  --cream: #f4efe7;
  --orange: #e7653b;
  --orange-dark: #c94c27;
  --green: #477768;
  --shadow: 0 18px 55px #34221212;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: #fbf8f3;
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  border-radius: 10px;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 max(5vw,24px);
  background: #fbf8f3ed;
  border-bottom: 1px solid #e9e4dc88;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope,sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.7px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 500;
  color: #858077;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: white;
  border-radius: 11px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 14px #e7653b42;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link,
.mobile-nav button {
  border: 0;
  background: transparent;
  color: #777168;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 14px;
}
.nav-link:hover,
.nav-link.is-active {
  background: #f0ebe3;
  color: var(--ink);
}
.header-search {
  height: 42px;
  max-width: 360px;
  flex: 1;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #f2eee8;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #817c74;
}
.header-search:focus-within {
  background: white;
  border-color: #d7cfc4;
  box-shadow: 0 0 0 3px #e7653b19;
}
.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.header-search input::placeholder {
  color: #9b958c;
}
.header-search kbd {
  font-size: 11px;
  border: 1px solid #ded8cf;
  background: #faf8f4;
  padding: 2px 6px;
  border-radius: 5px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.button {
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .15s,background .15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 6px 15px #e7653b35;
}
.button-primary:hover {
  background: var(--orange-dark);
}
.button-secondary {
  background: #f1ece4;
  color: var(--ink);
}
.button-quiet {
  background: transparent;
  color: #6f6a62;
}
.button-danger {
  background: #fae8e3;
  color: #a23e26;
}
.icon-button,
.avatar-button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  color: #514c45;
  font-size: 18px;
  position: relative;
}
.notification-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50%;
  right: 7px;
  top: 6px;
}
.avatar-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #dfebe6;
  color: #416b5d;
  font-weight: 800;
  font-size: 13px;
}
.account-menu {
  position: absolute;
  right: 0;
  top: 49px;
  width: 220px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.account-menu button {
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.account-menu button:hover {
  background: var(--cream);
}
.account-menu .menu-user {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--muted);
}
.mobile-menu-button,
.mobile-nav {
  display: none;
}
main {
  min-height: calc(100vh - 160px);
}
.page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  padding: 75px 0 62px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 45px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.45px;
  font-weight: 800;
}
.eyebrow:before {
  content: '';
  width: 19px;
  height: 2px;
  background: var(--green);
}
h1,
h2,
h3 {
  font-family: Manrope,system-ui,sans-serif;
  letter-spacing: -1.2px;
  margin: 0;
}
h1 {
  font-size: clamp(42px,5.5vw,72px);
  line-height: 1.03;
  margin: 18px 0 17px;
  max-width: 650px;
}
h1 em {
  color: var(--orange);
  font-style: normal;
}
.hero-copy {
  font-size: 16px;
  line-height: 1.7;
  color: #716c64;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.hero-note {
  font-size: 12px;
  color: #928c82;
  margin-top: 17px;
}
.hero-art {
  position: relative;
  min-height: 345px;
  background: #eee5d9;
  border-radius: 28px;
  overflow: hidden;
  padding: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art:before,
.hero-art:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: #f7b781;
}
.hero-art:before {
  height: 180px;
  width: 180px;
  right: -35px;
  top: -48px;
  opacity: .66;
}
.hero-art:after {
  width: 120px;
  height: 120px;
  left: -32px;
  bottom: -46px;
  background: #86ad9e;
  opacity: .75;
}
.stack-card {
  position: absolute;
  width: 75%;
  max-width: 340px;
  padding: 19px 21px;
  background: #fffefa;
  border-radius: 16px;
  box-shadow: 0 16px 32px #5b46331c;
  z-index: 1;
}
.stack-card:nth-child(1) {
  transform: rotate(-8deg) translate(-20px,1px);
  background: #d9e7df;
}
.stack-card:nth-child(2) {
  transform: rotate(6deg) translate(22px,4px);
  background: #f3cba7;
}
.stack-card:nth-child(3) {
  transform: rotate(-1deg);
  position: relative;
}
.stack-tag {
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stack-card h3 {
  font-size: 18px;
  margin: 8px 0 14px;
}
.stack-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e9e4dc;
  padding: 9px 0;
  font-size: 12px;
}
.stack-num {
  color: var(--orange);
  font-weight: 800;
}
.section {
  padding: 20px 0 56px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 21px;
}
.section-heading h2 {
  font-size: 27px;
}
.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.text-link {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 8px;
}
.top-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 17px;
}
.managed-top {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.managed-top > .top-card {
  flex: 1;
}
.top-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 19px;
  transition: transform .18s,box-shadow .18s;
  cursor: pointer;
  min-width: 0;
}
.top-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.category-pill,
.visibility-pill,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  background: #eef2ed;
  border-radius: 999px;
  color: #4e7567;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.visibility-pill {
  background: #f4eee6;
  color: #83715d;
}
.card-menu {
  border: 0;
  background: transparent;
  color: #8c867d;
  font-size: 20px;
}
.top-card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 14px 0 8px;
}
.top-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #777168;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 8px;
}
.mini-list div {
  display: flex;
  gap: 9px;
  padding: 5px 0;
  font-size: 12px;
  color: #5e5952;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-list b {
  color: var(--orange);
  font-size: 11px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 12px;
  font-size: 11px;
  color: #8b857d;
}
.card-author {
  display: flex;
  align-items: center;
  gap: 7px;
}
.author-dot {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2e3d5;
  color: #a45a31;
  font-size: 10px;
  font-weight: 800;
}
.card-stats {
  display: flex;
  gap: 11px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.topic-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  background: #f4efe7;
  text-align: left;
  transition: .18s;
}
.topic-card:hover {
  transform: translateY(-2px);
  background: #f0e8dc;
}
.topic-icon {
  font-size: 23px;
}
.topic-card h3 {
  font-size: 15px;
  margin: 11px 0 4px;
}
.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.page-title {
  padding: 44px 0 20px;
}
.page-title h1 {
  font-size: 44px;
  margin: 7px 0;
}
.page-title p {
  color: var(--muted);
  margin: 0;
}
.filter-bar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 16px 0 23px;
}
.filter-bar select,
.filter-chip {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 9px;
  padding: 9px 12px;
  color: #5e5952;
  font-size: 12px;
}
.results-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
}
.tree-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 36px 0 65px;
}
.tree-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
  padding: 17px;
  align-self: start;
}
.tree-panel h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.tree-node {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 9px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b564f;
  font-size: 13px;
}
.tree-node:hover,
.tree-node.selected {
  background: #f4efe7;
  color: var(--orange-dark);
}
.tree-children {
  margin-left: 15px;
  border-left: 1px solid var(--line);
  padding-left: 7px;
}
.empty-state {
  padding: 50px 20px;
  text-align: center;
  background: #fffefa;
  border: 1px dashed #dcd4c9;
  border-radius: 18px;
}
.empty-state .empty-icon {
  font-size: 32px;
}
.empty-state h3 {
  font-size: 20px;
  margin: 10px 0 7px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 17px;
  line-height: 1.6;
}
.detail-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 24px 70px;
}
.back-link {
  border: 0;
  background: none;
  color: #827b72;
  font-size: 13px;
  padding: 8px 0;
}
.detail-head {
  padding: 24px 0 23px;
  border-bottom: 1px solid var(--line);
}
.detail-head h1 {
  font-size: clamp(34px,5vw,54px);
  margin: 14px 0 12px;
}
.detail-description {
  font-size: 16px;
  line-height: 1.65;
  color: #69645d;
  max-width: 720px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.detail-items {
  padding-top: 15px;
}
.detail-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.item-number {
  font-family: Manrope;
  font-size: 26px;
  color: var(--orange);
  font-weight: 800;
}
.detail-item h2 {
  font-size: 22px;
  color: var(--top-primary, currentColor);
  font-weight: 800;
  margin: 0 0 7px;
}
.top-style.heading-soft .detail-item h2,
.design-preview h3.heading-soft {
  font-size: 19px;
  font-weight: 500;
  color: inherit;
  opacity: .82;
}
.detail-item p {
  font-size: 14px;
  line-height: 1.7;
  color: #706a62;
  margin: 0;
}
.comment-section {
  padding-top: 35px;
}
.comment-section h2 {
  font-size: 23px;
}
.comment-form {
  display: flex;
  gap: 10px;
  margin: 16px 0 22px;
}
.comment-form textarea {
  flex: 1;
  min-height: 46px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
  padding: 12px;
  outline: 0;
}
.comment {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.comment strong {
  font-size: 13px;
}
.comment p {
  font-size: 13px;
  line-height: 1.55;
  color: #6d675f;
  margin: 5px 0;
}
.top-style {
  padding: 22px;
  border-radius: 18px;
  margin: 15px 0 6px;
}
.editor-wrap {
  max-width: 1000px;
  padding: 32px 24px 70px;
  margin: 0 auto;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.editor-head h1 {
  font-size: 32px;
  margin: 4px 0;
}
.editor-steps {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0;
}
.editor-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #918a81;
  font-size: 12px;
}
.editor-step span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffefa;
  font-weight: 700;
}
.editor-step.active {
  color: var(--orange-dark);
  font-weight: 700;
}
.editor-step.active span,
.editor-step.done span {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.step-line {
  height: 1px;
  background: var(--line);
  flex: 1;
  max-width: 80px;
}
.editor-panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 4px 16px #3c281009;
}
.editor-panel h2 {
  font-size: 21px;
  margin-bottom: 6px;
}
.panel-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 700;
  font-size: 12px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e5dfd5;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fffefa;
  outline: 0;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.comment-form textarea:focus {
  border-color: #d59578;
  box-shadow: 0 0 0 3px #e7653b18;
}
.field textarea {
  min-height: 83px;
  resize: vertical;
  line-height: 1.5;
}
.field small {
  color: #8a837a;
  font-size: 11px;
}
.items-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.item-editor-row {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: #fffefa;
}
.item-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.drag-handle {
  color: #a29a8f;
  cursor: grab;
}
.item-editor-toolbar strong {
  font-size: 12px;
  flex: 1;
}
.small-icon-button {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: #716b62;
}
.item-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}
.item-fields input,
.item-fields textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  font-size: 12px;
  min-width: 0;
}
.item-fields textarea {
  resize: vertical;
  min-height: 42px;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  gap: 10px;
}
.button-row {
  display: flex;
  gap: 9px;
}
.design-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 11px;
  font-size: 12px;
}
.color-field input[type=color] {
  width: 33px;
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
}
.design-preview {
  padding: 20px;
  border-radius: 14px;
  min-height: 150px;
}
.design-preview h3 {
  font-size: 20px;
  margin-bottom: 11px;
}
.access-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}
.access-option:has(input:checked) {
  border-color: #db9b7e;
  background: #fff9f5;
}
.access-option input {
  accent-color: var(--orange);
  margin-top: 3px;
}
.access-option strong {
  font-size: 13px;
}
.access-option small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.invite-box {
  background: #f6f2eb;
  border-radius: 12px;
  padding: 14px;
  margin-top: 13px;
}
.invite-row {
  display: flex;
  gap: 8px;
}
.invite-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
}
.invited-users {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.invited-chip {
  border-radius: 999px;
  background: #e4eee8;
  color: #456f5f;
  padding: 6px 9px;
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #211b16a8;
  padding: 20px;
  backdrop-filter: blur(5px);
}
.modal {
  width: min(100%,440px);
  background: #fffefa;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 30px 100px #0003;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}
.modal.wide {
  width: min(100%,760px);
}
.modal h2 {
  font-size: 25px;
  margin: 0 35px 7px 0;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 33px;
  height: 33px;
  border: 0;
  background: #f2eee8;
  border-radius: 10px;
  font-size: 17px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}
.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 17px 0 0;
}
.auth-switch button {
  border: 0;
  background: none;
  color: var(--orange-dark);
  font-weight: 700;
}
.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 9px;
}
.toast {
  min-width: 230px;
  max-width: 360px;
  padding: 13px 16px;
  background: #27241f;
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in .2s ease;
}
.toast.error {
  background: #9e3e2a;
}
.toast.success {
  background: #416f5e;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 25px max(5vw,24px);
  display: flex;
  align-items: center;
  gap: 25px;
  color: #89837b;
  font-size: 11px;
}
.footer-brand {
  font-size: 14px;
  color: var(--ink);
}
.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
  font-size: 13px;
  border-radius: 8px;
}
.site-footer > span {
  flex: 1;
}
.site-footer nav {
  display: flex;
  gap: 16px;
}
.site-footer nav a:hover {
  color: var(--orange-dark);
}
.legal-page {
  max-width: 760px;
  margin: 50px auto;
  padding: 25px;
  line-height: 1.7;
}
.legal-page h1 {
  font-size: 38px;
  margin: 25px 0;
}
.legal-page p {
  color: #68625a;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 30px 24px 70px;
  max-width: 1200px;
  margin: auto;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.admin-sidebar button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px;
  border-radius: 9px;
  color: #726c63;
  font-size: 13px;
}
.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: #f0ebe3;
  color: var(--orange-dark);
}
.admin-main h1 {
  font-size: 34px;
  margin: 0 0 7px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin: 21px 0;
}
.metric-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
}
.metric-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.metric-card strong {
  display: block;
  font: 700 27px Manrope;
  margin-top: 9px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.admin-table th {
  color: #837c73;
  background: #f6f2eb;
  font-weight: 700;
}
.admin-table td {
  color: #504b44;
}
.admin-table button {
  border: 0;
  background: none;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 11px;
}
.loading {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
[hidden] {
  display: none!important;
}
@media (max-width:1000px) {
  .site-header {
    gap: 18px;
  }
  .desktop-nav {
    gap: 0;
  }
  .nav-link {
    padding: 9px;
  }
  .top-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .hero {
    gap: 24px;
  }
  .metric-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:740px) {
  .site-header {
    height: 65px;
    padding: 0 16px;
    gap: 12px;
  }
  .desktop-nav {
    display: none;
  }
  .header-search {
    margin-left: auto;
    max-width: unset;
  }
  .header-search kbd,
  .button-create span,
  .notification-button {
    display: none;
  }
  .button-create {
    width: 39px;
    height: 39px;
    padding: 0;
    font-size: 19px;
  }
  .header-actions {
    gap: 8px;
  }
  .mobile-menu-button {
    display: grid;
  }
  .mobile-nav {
    position: sticky;
    top: 65px;
    z-index: 19;
    background: #fbf8f3;
    border-bottom: 1px solid var(--line);
    padding: 7px 16px;
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  .mobile-nav[hidden] {
    display: none;
  }
  .mobile-nav button {
    white-space: nowrap;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 37px;
    gap: 27px;
  }
  .hero-art {
    min-height: 260px;
  }
  .stack-card {
    padding: 15px;
  }
  .stack-card h3 {
    font-size: 16px;
  }
  .hero-copy {
    font-size: 14px;
  }
  .page-wrap {
    padding: 0 17px;
  }
  .top-grid {
    grid-template-columns: 1fr;
  }
  .topic-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .section {
    padding-bottom: 40px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading {
    align-items: start;
  }
  .page-title {
    padding: 34px 0 14px;
  }
  .page-title h1 {
    font-size: 36px;
  }
  .tree-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }
  .tree-panel {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 3px;
  }
  .tree-panel h3 {
    grid-column: 1/-1;
  }
  .detail-wrap {
    padding: 20px 17px 55px;
  }
  .detail-head h1 {
    font-size: 37px;
  }
  .detail-item {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 18px 0;
  }
  .item-number {
    font-size: 22px;
  }
  .detail-item h2 {
    font-size: 19px;
  }
  .comment-form {
    flex-direction: column;
  }
  .editor-wrap {
    padding: 22px 14px 50px;
  }
  .editor-head h1 {
    font-size: 26px;
  }
  .editor-panel {
    padding: 17px;
  }
  .editor-steps {
    gap: 5px;
  }
  .editor-step {
    font-size: 10px;
    gap: 5px;
  }
  .editor-step span {
    width: 23px;
    height: 23px;
  }
  .step-line {
    max-width: 23px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .item-fields {
    grid-template-columns: 1fr;
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
  .editor-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .editor-footer .button-row {
    justify-content: space-between;
  }
  .site-footer {
    flex-wrap: wrap;
    padding: 21px 17px;
    gap: 12px;
  }
  .site-footer > span {
    flex-basis: 100%;
    order: 3;
  }
  .site-footer nav {
    margin-left: auto;
  }
  .admin-layout {
    grid-template-columns: 1fr;
    padding: 20px 15px 50px;
    gap: 18px;
  }
  .admin-sidebar {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    flex-direction: row;
    overflow: auto;
  }
  .admin-sidebar button {
    white-space: nowrap;
  }
  .admin-main h1 {
    font-size: 29px;
  }
  .metric-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .admin-table th,
  .admin-table td {
    padding: 9px 7px;
    font-size: 10px;
  }
  .hide-mobile {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }
}
.card-management {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 4px 4px;
}
.card-management button {
  border: 0;
  background: none;
  color: #c65331;
  font-size: 11px;
  font-weight: 700;
}
.filter-chip.selected {
  border-color: #dc987b;
  background: #fff4ee;
  color: #a74529;
}
.muted-count {
  color: #a59d93;
  font-size: 15px;
}
.semantic-answer {
  margin: 15px 0;
  padding: 17px 19px;
  border: 1px solid #e6d7c9;
  border-radius: 14px;
  background: #f8f1e8;
}
.semantic-answer p {
  margin: 8px 0 0;
  color: #625b52;
  line-height: 1.6;
  font-size: 13px;
}
.top-style.layout-cards .detail-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.top-style.layout-cards .detail-item {
  border: 1px solid #ded8ce;
  border-radius: 13px;
  padding: 15px;
}
.invited-chip button {
  border: 0;
  background: transparent;
  color: inherit;
}
.admin-main h2 {
  font-size: 20px;
  margin: 14px 0;
}
.format-toolbar {
  display: flex;
  gap: 5px;
  margin-top: -2px;
}
.format-toolbar button {
  min-width: 31px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid #e9e4dc;
  border-radius: 7px;
  background: #faf8f4;
  color: #625d56;
  font-size: 11px;
}
.format-toolbar button:hover {
  background: #f2e9df;
  color: #c94c27;
}
.detail-description a,
.detail-item a {
  color: #bd4e2d;
  text-decoration: underline;
}
.top-style.layout-cards .detail-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.top-style.layout-cards .detail-item {
  border: 1px solid #ded8ce;
  border-radius: 13px;
  padding: 15px;
}
.notification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 10px 0;
}
.notification-row.unread {
  border-left: 3px solid var(--orange);
}
.notification-row p {
  margin: 6px 0;
  color: #756f67;
  font-size: 13px;
}
.notification-row small {
  color: #999187;
  font-size: 10px;
}
.notification-row .button-row {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-search {
  position: relative;
}
.search-suggestions {
  position: absolute;
  z-index: 45;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 7px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 3px;
}
.search-suggestions[hidden] {
  display: none;
}
.search-suggestions button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--ink);
}
.search-suggestions button:hover {
  background: #f5f0e9;
}
.suggestion-icon {
  color: var(--orange);
  font-size: 17px;
}
.search-suggestions strong,
.search-suggestions small {
  display: block;
}
.search-suggestions strong {
  font-size: 12px;
}
.search-suggestions small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.search-suggestions .suggestion-search {
  border-top: 1px solid var(--line);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 12px;
}
.comment-reply {
  margin-left: 28px;
  padding-left: 14px;
  border-left: 2px solid #ead8ca;
}
.comment .text-link {
  font-size: 10px;
  padding: 4px 7px;
}
