:root {
    color-scheme: light;
    --ink: #252823;
    --muted: #777a72;
    --line: #e6e5de;
    --paper: #f5f4f0;
    --card: #fffefa;
    --green: #315b47;
    --green-dark: #244735;
    --sage: #e6eee6;
    --gold: #e4b65e;
    --rose: #f7e7e1;
    --shadow: 0 12px 36px rgba(39, 43, 35, .045);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(64, 117, 88, .3); outline-offset: 2px; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -1.2px; }
.wordmark span { color: #72917a; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 246px; flex-direction: column; padding: 30px 20px 18px; border-right: 1px solid var(--line); background: #faf9f6; }
.sidebar .wordmark { padding: 0 12px; }
.workspace-label { margin: 54px 12px 13px; color: #a0a197; font-size: 9px; font-weight: 750; letter-spacing: 1.4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 9px; color: #53584f; font-size: 13px; }
.nav-link.active { background: var(--sage); color: var(--green-dark); font-weight: 650; }
.nav-link:first-letter { font-size: 16px; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 16px 5px 4px; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dfe9df; color: var(--green-dark); font-weight: 700; }
.profile { display: flex; min-width: 0; flex: 1; flex-direction: column; line-height: 1.35; }
.profile strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 31px; height: 31px; border: 0; border-radius: 7px; background: transparent; color: #72766e; font-size: 17px; }
.icon-button:hover { background: #eeede7; }
.main-content { max-width: 1550px; min-height: 100vh; margin-left: 246px; padding: 0 50px; }
.topbar { display: flex; height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #454941; font-size: 12px; }
.crumb { color: #93958c; }
.slash { padding: 0 10px; color: #c3c2ba; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 650; transition: background .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.subtle { min-height: 36px; border-color: var(--line); background: #fffefa; color: #4c5148; }
.button.full { width: 100%; }
.welcome { display: flex; min-height: 185px; align-items: center; justify-content: space-between; overflow: hidden; margin-top: 24px; padding: 25px 35px; border: 1px solid #e7e9df; border-radius: 12px; background: linear-gradient(112deg, #eaf0e7 0%, #edf0e8 56%, #e5ece3 100%); }
.eyebrow { margin: 0 0 8px; color: #73836f; font-size: 9px; font-weight: 750; letter-spacing: 1.45px; }
.welcome h1 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 36px); font-weight: 500; letter-spacing: -.8px; line-height: 1.2; }
.muted { color: var(--muted); }
.welcome .muted { max-width: 560px; margin: 0; font-size: 12px; }
.welcome-mark { position: relative; width: 128px; height: 128px; flex: 0 0 128px; margin-right: 20px; }
.welcome-mark::before, .welcome-mark::after { position: absolute; content: ""; border: 1px solid rgba(69, 104, 77, .2); border-radius: 50%; }
.welcome-mark::before { inset: 8px; }
.welcome-mark::after { inset: 27px; }
.welcome-mark span { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #6f9476; }
.welcome-mark span:nth-child(1) { top: 15px; left: 57px; }
.welcome-mark span:nth-child(2) { top: 59px; right: 8px; background: var(--gold); }
.welcome-mark span:nth-child(3) { bottom: 17px; left: 35px; width: 13px; height: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0 34px; }
.stat-card { display: flex; min-height: 108px; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: var(--shadow); }
.stat-card span { color: #6c7067; font-size: 10px; }
.stat-card strong { margin: 2px 0 -1px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; line-height: 1.2; }
.stat-card small { color: #999b91; font-size: 9px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 305px; align-items: start; gap: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-heading h2, .form-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; letter-spacing: -.25px; }
.count { color: #96988f; font-size: 10px; }
.filters { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.search-box { display: flex; height: 37px; min-width: 130px; flex: 1; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: #82857d; }
.search-box span { font-size: 19px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input:focus-visible { outline: 0; }
.filters select, .stack select, .status-control select { height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: #5c6058; font-size: 10px; }
.filters select { max-width: 142px; }
.concept-list { display: grid; gap: 11px; }
.concept-card { padding: 17px 18px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: var(--shadow); }
.concept-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.concept-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.type-tag, .priority { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: 9px; font-weight: 650; }
.type-tag { background: #eff0e9; color: #626b5b; }
.priority { background: #f4f1e9; color: #8a7957; }
.priority.high { background: #fae9e2; color: #a76245; }
.priority.low { background: #eff0ed; color: #85877f; }
.concept-top time { flex: 0 0 auto; color: #a0a197; font-size: 9px; }
.concept-card h3 { margin: 12px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.3; }
.context-line { margin: 0 0 7px; color: #72816f; font-size: 10px; }
.context-line span { padding: 0 3px; color: #a1a197; }
.summary { margin: 7px 0 15px; color: #777a72; font-size: 11px; line-height: 1.65; }
.status-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid #efeee8; }
.status-control label { display: flex; flex-direction: column; gap: 5px; }
.status-control label > span { color: #92948b; font-size: 9px; }
.status-control select { width: 100%; height: 31px; padding-right: 20px; font-size: 9px; }
.new-panel { position: sticky; top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: center; gap: 11px; }
.form-heading .eyebrow { margin: 0 0 2px; font-size: 8px; }
.form-heading h2 { font-size: 19px; }
.form-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: var(--sage); color: var(--green); font-size: 20px; }
.new-panel > .muted { margin: 12px 0 19px; font-size: 10px; }
.stack { display: flex; flex-direction: column; gap: 13px; }
.stack label { display: flex; flex-direction: column; gap: 5px; color: #555a51; font-size: 10px; font-weight: 600; }
.stack label em { align-self: flex-start; margin: -20px 0 0 48px; color: #a1a197; font-size: 8px; font-style: normal; font-weight: 400; }
.stack input, .stack textarea, .stack select { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fffefa; color: var(--ink); font-size: 10px; font-weight: 400; }
.stack textarea { min-height: 86px; resize: vertical; line-height: 1.5; }
.stack input::placeholder, .stack textarea::placeholder { color: #b3b3a9; }
.stack select { padding-top: 0; padding-bottom: 0; }
.hint { margin: -8px 0 0; color: #878a80; font-size: 10px; }
.notice { margin: 14px 0; padding: 10px 13px; border: 1px solid #cbdcc9; border-radius: 7px; background: #edf4ed; color: #355a3d; font-size: 11px; }
.notice.error { border-color: #eccdc3; background: #fcf0ec; color: #8b4836; }
.empty-state { display: flex; min-height: 270px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #d8d8cd; border-radius: 9px; text-align: center; }
.empty-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--green); font-size: 22px; }
.empty-state h3 { max-width: 310px; margin: 14px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.empty-state p { max-width: 325px; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.footer { padding: 35px 0 24px; color: #a3a399; font-size: 10px; text-align: center; }
.auth-shell { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; background: radial-gradient(ellipse at 50% 0%, #edf0e8 0, var(--paper) 55%); }
.auth-shell > .wordmark { margin-bottom: 28px; font-size: 25px; }
.auth-card { width: min(100%, 410px); padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 18px 60px rgba(39, 43, 35, .07); }
.auth-card h1 { margin: 4px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: -.4px; line-height: 1.2; }
.auth-card > .muted { margin: 0 0 23px; font-size: 11px; }
.auth-foot { margin-top: 19px; color: #999b91; font-size: 10px; }
@media (max-width: 1120px) {
    .main-content { padding: 0 30px; }
    .content-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
    .stats { gap: 9px; }
    .stat-card { padding: 12px; }
}
@media (max-width: 860px) {
    .sidebar { width: 66px; align-items: center; padding: 22px 9px 14px; }
    .sidebar .wordmark { padding: 0; font-size: 0; }
    .sidebar .wordmark:first-letter { font-size: 20px; }
    .sidebar .wordmark::before { content: "c"; color: var(--green); font-size: 22px; font-weight: 800; }
    .sidebar .wordmark span, .workspace-label, .nav-link span, .profile { display: none; }
    .nav-link { justify-content: center; width: 43px; margin-top: 37px; padding: 11px 0; font-size: 17px; }
    .sidebar-bottom { width: 100%; flex-direction: column; gap: 7px; padding-top: 12px; }
    .main-content { margin-left: 66px; padding: 0 23px; }
    .content-grid { grid-template-columns: 1fr; }
    .new-panel { position: static; }
    .new-panel .stack { display: grid; grid-template-columns: 1fr 1fr; }
    .new-panel .stack label:nth-last-of-type(1), .new-panel .stack button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .sidebar { width: 54px; padding-right: 5px; padding-left: 5px; }
    .main-content { margin-left: 54px; padding: 0 13px; }
    .topbar { height: 61px; font-size: 10px; }
    .topbar .button { min-height: 35px; padding: 0 10px; }
    .welcome { min-height: 150px; padding: 20px; }
    .welcome-mark { width: 77px; height: 77px; flex-basis: 77px; margin-right: 0; }
    .welcome-mark span:nth-child(1) { top: 10px; left: 35px; }
    .welcome-mark span:nth-child(2) { top: 35px; right: 0; }
    .welcome-mark span:nth-child(3) { bottom: 10px; left: 20px; }
    .welcome h1 { font-size: 25px; }
    .welcome .muted { font-size: 10px; }
    .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 25px; }
    .stat-card { min-height: 95px; }
    .filters { flex-wrap: wrap; }
    .search-box { flex-basis: 100%; }
    .filters select { max-width: none; flex: 1; }
    .concept-card { padding: 14px 12px 11px; }
    .concept-top { align-items: flex-start; }
    .concept-top time { font-size: 8px; }
    .status-row { grid-template-columns: 1fr; gap: 9px; }
    .status-control label { flex-direction: row; align-items: center; justify-content: space-between; }
    .status-control label > span { min-width: 78px; }
    .status-control select { max-width: 185px; }
    .new-panel { padding: 15px; }
    .new-panel .stack { display: flex; }
    .auth-card { padding: 25px 21px; }
}


.install-card { width: min(100%, 520px); }
.install-card .form-divider { padding-top: 4px; color: #82917c; font-size: 8px; font-weight: 750; letter-spacing: 1.25px; }
.install-two { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.stack label small { color: #95978e; font-size: 9px; font-weight: 400; }
.install-note { margin: 16px 0 0; color: #92948b; font-size: 9px; line-height: 1.6; }
@media (max-width: 600px) {
    .install-two { grid-template-columns: 1fr 90px; }
}
