.ak-space {
  --ak-ink: #303b2b;
  --ak-muted: #68705f;
  --ak-line: #dcded1;
  --ak-paper: #fffef9;
  color: var(--ak-ink);
  min-width: 0;
  width: 100%;
}
.ak-space-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.ak-space-head .eyebrow { margin: 0 0 9px; }
.ak-space-head h1 { margin: 0; font: 400 clamp(2.4rem, 3.6vw, 3.5rem)/1.07 var(--serif, Georgia, serif); letter-spacing: -.049em; }
.ak-space-head > .btn { flex: 0 0 auto; }
.ak-space-intro { margin: 11px 0 0; color: var(--ak-muted); line-height: 1.5; font-size: .99rem; }
.ak-space-panel, .ak-space-empty, .ak-resource-card { border: 1px solid var(--ak-line); background: var(--ak-paper); border-radius: 12px; }
.ak-space-panel { overflow: hidden; }
.ak-space-panelhead { padding: 21px 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ak-line); }
.ak-space-panelhead h2, .ak-account-layout h2, .ak-space-empty h2 { font: 400 1.55rem/1.18 var(--serif, Georgia, serif); letter-spacing: -.025em; color: var(--ak-ink); margin: 0; }
.ak-space-panelhead > span, .ak-result-count { font-size: .86rem; color: var(--ak-muted); }
.ak-space-empty { display: grid; justify-items: center; align-content: center; text-align: center; min-height: 275px; padding: 30px; }
.ak-space-empty .ak-space-emblem { width: 53px; height: 53px; margin-bottom: 17px; }
.ak-space-empty p { max-width: 32rem; margin: 9px 0 0; color: var(--ak-muted); font-size: .94rem; line-height: 1.5; }
.ak-space-emblem, .ak-space-avatar, .ak-resource-icon, .ak-category-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ak-space-emblem { width: 42px; height: 42px; border-radius: 12px; background: #e9edde; color: #536247; }
.ak-space-avatar { width: 40px; height: 40px; border-radius: 50%; color: #4c5940; background: #e9edde; font-weight: 600; font-size: .83rem; letter-spacing: .025em; }
.ak-space-tools, .ak-space-selects { display: flex; align-items: center; gap: 10px; }
.ak-space-tools { margin: 0 0 20px; flex-wrap: wrap; }
.ak-space-search, .ak-space-tools select { color: var(--ak-ink); border: 1px solid var(--ak-line); background-color: var(--ak-paper); border-radius: 8px; min-height: 43px; }
.ak-space-search { width: 290px; max-width: 100%; display: flex; align-items: center; padding: 0 12px; gap: 9px; }
.ak-space-search:focus-within { outline: 2px solid #738162; outline-offset: 1px; }
.ak-space-search input { font: inherit; font-size: .91rem; border: 0; outline: 0; min-width: 0; width: 100%; background: transparent; color: inherit; padding: 0; }
.ak-space-search input::placeholder { color: #747a6b; }
.ak-space-tools select { font: inherit; font-size: .9rem; max-width: 100%; padding: 0 32px 0 12px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23596550' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
.ak-result-count { margin: 0 0 12px; }
.ak-resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 15px; }
.ak-resource-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; cursor: pointer; color: inherit; text-align: left; font: inherit; transition: background-color .15s, border-color .15s; }
.ak-resource-card:hover, .ak-topic-row:hover { background-color: #fafbf3; }
.ak-resource-card:hover { border-color: #a7b099; }
.ak-resource-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.ak-resource-icon, .ak-category-mark { height: 43px; width: 43px; border-radius: 10px; background: #e8ebdf; color: #49573f; }
.ak-resource-type { font-size: .81rem; color: #5e6957; }
.ak-resource-card > strong, .ak-topic-main strong, .ak-member-name strong, .ak-category-row > strong { overflow-wrap: anywhere; font-weight: 600; }
.ak-resource-card > strong { font: 400 1.5rem/1.19 var(--serif, Georgia, serif); letter-spacing: -.025em; }
.ak-resource-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ak-muted); font-size: .9rem; line-height: 1.4; margin: 9px 0 0; overflow-wrap: anywhere; }
.ak-resource-foot { border-top: 1px solid var(--ak-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: .8rem; color: var(--ak-muted); margin: auto 0 0; padding: 13px 0 0; }
.ak-resource-card > :nth-last-child(2) { margin-bottom: 19px; }
.ak-space-tag { display: inline-flex; align-items: center; gap: 6px; color: #4c5546; }
.ak-space-tag i, .ak-color-choice i, .ak-category-mark i { width: 9px; height: 9px; display: inline-block; flex: none; border-radius: 50%; }
.ak-tone-olive { background: #809268; }
.ak-tone-clay { background: #b57d60; }
.ak-tone-mauve { background: #a28096; }
.ak-tone-sand { background: #b39958; }
.ak-tone-slate { background: #748898; }
.ak-tint-olive { background: #e7ecdc; color: #536540; }
.ak-tint-clay { background: #f3e5dc; color: #88583f; }
.ak-tint-mauve { background: #f0e5eb; color: #805e75; }
.ak-tint-sand { background: #f2ebd5; color: #7d693b; }
.ak-tint-slate { background: #e3eaed; color: #566d78; }
.ak-member-row, .ak-topic-row, .ak-category-row { display: flex; align-items: center; gap: 15px; padding: 17px 24px; }
.ak-member-row + .ak-member-row, .ak-topic-row + .ak-topic-row, .ak-category-row + .ak-category-row { border-top: 1px solid var(--ak-line); }
.ak-topic-row { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.ak-topic-row > svg { flex: 0 0 auto; }
.ak-topic-main, .ak-member-name { min-width: 0; display: grid; gap: 4px; }
.ak-topic-main span, .ak-member-name span, .ak-topic-count, .ak-category-total { color: var(--ak-muted); font-size: .86rem; line-height: 1.35; overflow-wrap: anywhere; }
.ak-topic-count, .ak-member-row .ak-role, .ak-category-total { margin-left: auto; flex: 0 0 auto; }
.ak-role { color: #53604a; background: #edf0e3; padding: 5px 10px; border-radius: 100px; font-size: .81rem; line-height: 1.2; }
.ak-icon-btn.btn { padding: 0; width: 36px; min-height: 36px; flex: none; align-items: center; justify-content: center; }
.ak-category-mark i { width: 13px; height: 13px; }
.ak-account-layout { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(260px, 1.25fr); gap: 18px; max-width: 850px; align-items: start; }
.ak-account-profile, .ak-password-panel { padding: 25px; }
.ak-account-profile h2 { margin: 15px 0 10px; overflow-wrap: anywhere; }
.ak-account-avatar { width: 53px; height: 53px; font-size: 1.08rem; }
.ak-account-profile dl { margin: 24px 0 0; padding-top: 17px; border-top: 1px solid var(--ak-line); }
.ak-account-profile dt, .ak-resource-author, .ak-thread-author small, .ak-space-byline { font-size: .85rem; color: #68705f; }
.ak-account-profile dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.ak-password-panel h2 { margin: 0 0 20px; }
.ak-space-form { display: grid; gap: 17px; min-width: 0; }
.ak-space-form .field { display: grid; gap: 7px; min-width: 0; }
.ak-space-form .field :is(input, select, textarea) { width: 100%; min-width: 0; }
.ak-space-form .field textarea { resize: vertical; }
.ak-space-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ak-field-hint { color: #65705e; font-size: .84rem; line-height: 1.45; margin: -10px 0 0; }
.ak-form-error { color: #893e32; background: #f9ebe4; border-radius: 6px; padding: 9px 12px; margin: 0; font-size: .91rem; }
.ak-color-palette { margin: 0; padding: 0; border: 0; min-width: 0; }
.ak-color-palette legend { padding: 0; margin-bottom: 8px; font-size: .92rem; font-weight: 600; }
.ak-color-palette > div { display: flex; flex-wrap: wrap; gap: 7px; }
.ak-color-choice { position: relative; }
.ak-color-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ak-color-choice span { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 1px solid #d5dacd; border-radius: 6px; padding: 9px 10px; font-size: .86rem; }
.ak-color-choice input:checked + span { border-color: #697959; background-color: #eef0e5; }
.ak-color-choice input:focus-visible + span { outline: 2px solid #647454; outline-offset: 2px; }
.ak-space-byline { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ak-resource-author { margin: 10px 0 19px; }
.ak-space-text { color: #3c4637; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .97rem; line-height: 1.6; }
.ak-space-link { margin: 18px 0 5px; text-decoration: none; }
.ak-space-link + .ak-space-link { margin-left: 5px; }
.ak-space-link { max-width: 100%; }
.ak-space-link span { overflow-wrap: anywhere; min-width: 0; }
.ak-space-form input[type=file] { font-size: .9rem; }
.ak-space-form input[type=file]::file-selector-button { font: inherit; margin-right: 9px; padding: 5px 9px; background: #e9edde; color: #46513e; border: 0; border-radius: 5px; cursor: pointer; }
.ak-file-remove { color: #765044; display: flex; align-items: flex-start; gap: 7px; font-size: .87rem; overflow-wrap: anywhere; }
.ak-file-remove input { flex: 0 0 auto; margin: 3px 0 0; }
.ak-remove.btn { color: #854537; }
.ak-password-panel .btn { justify-self: start; }
.ak-thread { min-width: 0; }
.ak-thread-post { padding: 0 0 16px; }
.ak-thread-post + .ak-thread-post { border-top: 1px solid #dcdfd3; padding-top: 15px; }
.ak-thread h3 { font: 400 1.24rem var(--serif, Georgia, serif); margin: 4px 0 16px; padding-top: 15px; border-top: 1px solid #dcdfd3; }
.ak-thread-author { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.ak-thread-author div { display: grid; gap: 2px; }
.ak-thread-author strong { font-size: .92rem; }
.ak-thread-author .ak-space-avatar { height: 33px; width: 33px; font-size: .74rem; }
.ak-reply-form { margin-top: 5px; }
@media (max-width: 740px) {
  .ak-space-head { flex-wrap: wrap; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
  .ak-space-tools { flex-direction: column; align-items: stretch; }
  .ak-space-search { width: 100%; }
  .ak-space-selects { flex-wrap: wrap; }
  .ak-space-selects select { flex: 1; }
  .ak-space-panelhead, .ak-member-row, .ak-topic-row, .ak-category-row { padding: 15px; }
  .ak-member-row, .ak-topic-row, .ak-category-row { gap: 10px; }
  .ak-account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ak-member-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; }
  .ak-member-row .ak-space-avatar { grid-row: span 2; width: 34px; height: 34px; }
  .ak-member-name { grid-column: 2; }
  .ak-member-row .ak-role { grid-row: 2; grid-column: 2; margin-left: 0; justify-self: start; }
  .ak-member-row .ak-icon-btn { grid-column: 3; grid-row: 1 / 3; }
  .ak-topic-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 17px; gap: 5px 10px; }
  .ak-topic-row .ak-space-emblem { grid-row: 1/3; width: 36px; height: 36px; }
  .ak-topic-count { grid-row: 2; grid-column: 2; margin: 0; }
  .ak-topic-row > svg { grid-column: 3; grid-row: 1/3; }
  .ak-space-pair { grid-template-columns: 1fr; }
  .ak-account-profile, .ak-password-panel { padding: 18px; }
}
