.cm { --cm-ink:#312922; --cm-muted:#6d5f51; --cm-line:#e3d8cb; --cm-accent:#795a35; display:grid; gap:18px; color:var(--cm-ink); font-size:14px; line-height:1.6; }
.cm *, .cm *::before, .cm *::after {box-sizing:border-box;}
.cm h3,.cm h4,.cm p,.cm ul {margin:0;}
.cm h3 {font-size:16px;letter-spacing:.015em;}
.cm img {display:block;max-width:100%;object-fit:cover;}
.cm button,.cm input,.cm textarea,.cm select {font:inherit;}
.cm button {cursor:pointer;}
.cm button:disabled {opacity:.55;cursor:wait;}
.cm button:focus-visible,.cm input:focus-visible,.cm textarea:focus-visible,.cm select:focus-visible {outline:3px solid #a27139;outline-offset:2px;}
.cm-form,.cm-stack,.cm-section,.cm-card {display:grid;gap:13px;}
.cm-section+.cm-section {border-top:1px solid var(--cm-line);padding-top:18px;}
.cm-row,.cm-actions,.cm-tabs {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.cm-split {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.cm-split > div,.cm-row > div {min-width:0;}
.cm-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.cm-field {display:grid;gap:5px;min-width:0;align-content:start;font-weight:600;}
.cm :is(input:not([type="checkbox"]),textarea,select) {width:100%;min-width:0;border:1px solid #ddd1c1;border-radius:14px;padding:10px 12px;background:#fffdf9;color:#352a20;}
.cm textarea {resize:vertical;min-height:84px;}
.cm :is(input,textarea)::placeholder {color:#786957;font-weight:400;}
.cm-field small,.cm-meta {color:var(--cm-muted);font-weight:400;font-size:12px;}
.cm-check {display:flex;gap:8px;align-items:flex-start;color:var(--cm-ink);font-weight:500;}
.cm-check input {width:17px;height:17px;accent-color:var(--cm-accent);margin-top:3px;flex:none;}
.cm-card,.cm-empty,.cm-note {background:#f7f1e8;border:1px solid var(--cm-line);border-radius:19px;padding:15px;overflow-wrap:anywhere;}
.cm-card {gap:9px;}
.cm-card h4 {font-size:14px;}
.cm-card p {white-space:pre-line;}
.cm-empty,.cm-note,.cm-muted {color:var(--cm-muted);}
.cm-btn,.cm-primary,.cm-light,.cm-danger,.cm-chip {display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:7px 14px;border-radius:99px;border:1px solid var(--cm-line);background:#fff;color:var(--cm-ink);font-weight:600;line-height:1.4;text-align:center;text-decoration:none;}
.cm-primary {border-color:var(--cm-accent);background:var(--cm-accent);color:#fff;}
.cm-light {border-color:transparent;color:var(--cm-accent);background:#f2e9dc;}
.cm-danger {color:#9b3634;border-color:#e5ccc7;background:#fff9f8;}
.cm-chip {border-radius:99px;min-height:34px;font-size:13px;}
.cm-tabs {gap:7px;}
.cm-tabs .cm-selected {background:var(--cm-accent);color:#fff;border-color:var(--cm-accent);}
.cm-card .cm-actions .cm-btn, .cm-card .cm-actions .cm-light,.cm-card .cm-actions .cm-danger {min-height:32px;font-size:12px;padding:5px 10px;}
.cm-empty {text-align:center;padding:22px 15px;}
.cm-note {font-size:13px;}
.cm-error {color:#8c382e;border:1px solid #e4c9bd;background:#fff6f2;padding:9px 12px;border-radius:8px;}
.cm-error:empty {display:none;}
.cm-pic {border-radius:9px;max-height:260px;object-fit:contain !important;}
.cm-avatar {width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#ebddca;color:#694c30;flex:none;font-weight:700;}
.cm-avatar img {width:100%;height:100%;border-radius:inherit;}
.cm [hidden] {display:none !important;}
.cm details {border:1px solid var(--cm-line);border-radius:15px;padding:10px 13px;}
.cm summary {font-weight:600;cursor:pointer;}
.cm details[open] > summary {margin-bottom:10px;}
.cm dl {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:0;}
.cm dt {color:var(--cm-muted);}
.cm dd {margin:0;overflow-wrap:anywhere;}
@media(max-width:410px) {.cm-grid {grid-template-columns:1fr;} .cm {gap:14px;}}

.feed-toolbar {display:flex;align-items:center;gap:8px;}
.cm .feed-refresh {display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--cm-line);border-radius:50%;background:#fffdf9;color:var(--cm-accent);}
.feed-switch {display:flex;flex:1;min-width:0;padding:4px;border-radius:28px;background:#f0e9e1;}
.feed-switch button {flex:1;min-width:0;min-height:40px;border:0;border-radius:26px;background:transparent;color:var(--cm-muted);font-weight:650;}
.feed-switch [aria-selected="true"] {background:#fffdf9;color:var(--cm-ink);box-shadow:0 2px 6px #4a301815;}
.feed-panel {display:grid;gap:14px;min-width:0;}
.feed-card {display:grid;min-width:0;overflow:hidden;background:#fffefa;border:1px solid var(--cm-line);border-radius:22px;}
.feed-author {display:flex;align-items:center;gap:10px;min-width:0;padding:14px;}
.feed-avatar {display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:#ebdfcf;color:#71553e;font-weight:700;}
.feed-byline {display:grid;min-width:0;gap:1px;}
.feed-byline strong {overflow-wrap:anywhere;line-height:1.4;}
.feed-byline small {font-size:11px;color:var(--cm-muted);}
.cm .feed-follow {display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:5px 11px;border:1px solid var(--cm-line);border-radius:24px;background:#fffdf9;color:var(--cm-accent);font-size:12px;font-weight:650;white-space:nowrap;}
.feed-author .feed-follow {flex:none;margin-inline-start:auto;}
.feed-follow[data-cm-action="unfollow"] {background:#f5f0e9;}
.cm .feed-photo {width:100%;max-height:400px;object-fit:cover;}
.feed-content {display:grid;gap:10px;justify-items:start;min-width:0;padding:0 16px 14px;}
.feed-photo+.feed-content {padding-top:14px;}
.feed-location {display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0;max-width:100%;}
.feed-location small {color:var(--cm-muted);font-size:11px;overflow-wrap:anywhere;}
.cm .feed-place {display:flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:0;border-radius:8px;background:#f4eee5;color:#655039;text-align:start;font-size:12px;font-weight:650;}
.feed-place span {overflow-wrap:anywhere;}
.feed-place svg,.feed-follow svg {flex:none;}
.feed-caption {display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;}
.cm .feed-text-button {display:inline-flex;align-items:center;min-height:34px;padding:2px 4px;border:0;background:transparent;color:var(--cm-accent);font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px;}
.feed-manage {justify-self:end;}
.feed-empty {display:grid;justify-items:center;gap:10px;padding:28px 16px 24px;border:1px solid var(--cm-line);border-radius:22px;background:#fffdf9;text-align:center;}
.feed-empty-icon {display:grid;place-items:center;width:48px;height:48px;margin-bottom:2px;border-radius:17px;color:var(--cm-accent);background:#f1e9dd;}
.feed-empty p {color:var(--cm-muted);font-size:13px;}
.feed-empty-actions {display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 14px;margin-top:5px;}
.feed-person {border:1px solid var(--cm-line);border-radius:16px;}
.feed-mode {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 4px;color:var(--cm-muted);font-size:12px;}
