@font-face{font-family:'Treehouse Inter';src:url('/fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
/* Roots follows the same layout and type as Swing and Treehouse; only the brand colour (the logo's brown) differs. */
:root{--th-font:'Treehouse Inter',Inter,system-ui,sans-serif;--roots:#7a4a2e;--roots-dark:#3f2516;--roots-ink:#3b2a20;--roots-muted:#7d6556;--roots-soft:#f7efe9;--roots-line:#ece2da;--th-radius:14px;--th-control-radius:9px;font-family:var(--th-font);color:var(--roots-ink);background:#faf6f3;font-synthesis:none;font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin-top:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b77a4f;outline-offset:3px}
.opening{min-height:100vh;display:grid;place-items:center;color:var(--roots-muted)}

/* Frame */
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(160deg,#6e4129,#3f2516 74%);color:#f6ebe3;padding:30px 16px 18px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;padding:0 12px}
.brand-logo{width:48px;height:48px;border-radius:13px;object-fit:contain;display:block;flex-shrink:0;filter:drop-shadow(0 5px 11px #1c0d0430)}
.brand b{display:block;font-size:29px;font-weight:800;letter-spacing:-.035em;line-height:1}.brand small{display:block;font-size:8px;letter-spacing:3px;margin-top:4px;color:#e8cdb9}
.workspace{display:flex;gap:9px;align-items:center;margin:32px 0 28px;padding:12px 9px;background:#ffffff0d;border:1px solid #ffffff18;border-radius:14px}
.workspace-avatar{height:30px;width:30px;border-radius:7px;background:#f3e4d8;color:#6b3f26;font-size:11px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.workspace div{min-width:0}.workspace b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace small{display:block;font-size:9px;color:#dcc2af;margin-top:4px}
.nav-label{font-size:8px;letter-spacing:1.6px;color:#d6b9a3;padding:0 12px;margin-bottom:12px}
nav{display:grid;gap:4px}
.nav-item{border:0;background:none;color:#f1dfd2;display:flex;align-items:center;gap:12px;text-align:left;padding:11px 12px;border-radius:10px;font-size:13px;white-space:nowrap;min-height:42px}
.nav-item:hover{background:#ffffff14;color:#fff}.nav-item.active{background:linear-gradient(115deg,#a2643d,#87502f);color:#fff;box-shadow:inset 3px 0 #f3d6c0}
.nav-item em{font-style:normal;margin-left:auto;background:#fbeee4;color:#6b3f26;border-radius:5px;padding:2px 6px;font-size:10px;font-weight:700}
.branch-note{margin-top:auto;padding:36px 14px 24px;color:#ecd6c6}.branch-note svg{color:#f0d7c4;margin-bottom:12px}.branch-note b{font-size:13px;line-height:1.6;font-weight:500}.branch-note p{font-size:10px;line-height:1.8;color:#d9bda8;margin:12px 0 0}
.sidebar-foot{border-top:1px solid #ffffff18;display:flex;align-items:center;gap:10px;padding:18px 10px 0}.sidebar-foot b{display:block;font-size:12px}.sidebar-foot small{display:block;font-size:10px;color:#dcc2af;margin-top:4px}
.sidebar-foot a,.link-button{color:#f6e3d5;font-size:10px;background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:2px}
.main{min-width:0}
.topbar{height:70px;border-bottom:1px solid var(--roots-line);background:#ffffffd0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 36px}
.breadcrumb{font-size:11px;color:#9c8577}.breadcrumb span{margin:0 12px;color:#cdbcb0}.breadcrumb b{color:#5a4334;font-weight:500}
.top-actions{display:flex;gap:16px;align-items:center}
.workspace-search{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--roots-line);border-radius:var(--th-control-radius);padding:7px 10px;color:#a48c7d}
.workspace-search input{border:0;outline:none;background:transparent;font-size:12px;width:170px;color:var(--roots-ink)}
.preview-pill{color:#8a6450;font-size:8px;letter-spacing:1.3px;border:1px solid #ecdcd0;padding:7px 10px;border-radius:6px;font-weight:650}
.avatar{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:12px;background:#f3e7de;color:#7a4a2e;font-weight:650;font-size:12px}
.page{padding-bottom:40px}

/* Page heading (same as Swing) */
.page-heading{padding:28px 36px 23px;display:flex;justify-content:space-between;align-items:center;gap:20px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 80% 10%,#d9a98042,transparent 50%),linear-gradient(160deg,#f6ece5,transparent 80%);margin-bottom:6px}
.eyebrow{font-size:8px;letter-spacing:2px;color:#9a7864;margin-bottom:10px;font-weight:650}
.page-heading h1{font-size:30px;line-height:1.12;font-weight:800;letter-spacing:-.035em;color:#3f2516;margin:0 0 9px}
.page-heading p{font-size:13px;line-height:1.6;color:#7d6556;margin:0 0 4px;max-width:620px}.page-heading .primary{margin-top:14px}
.heading-leaf{color:#c79f8459;transform:rotate(18deg);padding-right:20px}

/* Summary cards */
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 36px 23px}
.metric{border:1px solid var(--roots-line);background:#fff;border-radius:var(--th-radius);padding:18px;display:flex;justify-content:space-between;text-align:left;box-shadow:0 4px 13px #5a35200a}
.metric:hover{border-color:#d9b9a2}.metric span{display:block;font-size:12px;font-weight:650;color:#6a4e3d}.metric b{display:block;font-size:28px;font-weight:800;margin:8px 0 5px;letter-spacing:-1px;color:#3f2516}.metric small{font-size:10px;color:#937a6b}
.metric-icon{display:grid!important;place-items:center;background:#f6ebe3;color:#a46e4b!important;width:32px;height:32px;border-radius:10px}

/* Surfaces */
.card{background:#fff;border:1px solid var(--roots-line);border-radius:var(--th-radius);padding:24px;box-shadow:0 6px 22px #5a352008}
.page>.card,.page>.toolbar,.page>.primary,.page>p,.page>.kanban,.page>.calendar,.page>.people-grid,.page>.conversation-layout{margin-left:36px;margin-right:36px}
.page>.card+.card{margin-top:18px}.page>.primary{margin-bottom:18px}
.card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.card h2{font-size:17px;font-weight:750;letter-spacing:-.02em;margin:0;color:#3f2516}
.cabin-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:18px;margin:0 36px}.cabin-side{display:grid;gap:18px;align-content:start}
.muted{color:#86705f;font-size:12px;line-height:1.8}.empty{color:#9c8577;font-size:12px;line-height:1.7;margin:4px 0}
.error{color:#a33d2c;background:#fdf0ec;border-radius:8px;padding:10px 12px;font-size:12px}
.badge{display:inline-block;background:#f6ebe3;border:1px solid #ecdcd0;color:#7a4a2e;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:600;margin-bottom:12px}

/* Notes, tasks, lists */
.notice{border:1px solid var(--roots-line);border-radius:12px;padding:16px 18px;margin-top:12px;background:#fffdfb}
.notice h3{font-size:15px;font-weight:650;margin:6px 0 6px;color:#3f2516}.note-meta{font-size:10px;color:#9a7f6e;margin:0}.note-body{font-size:13px;line-height:1.7;color:#5f4a3d;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.item-actions{display:flex;gap:14px;margin-top:6px}
.text-button{border:0;background:none;color:#8a5434;font-size:12px;font-weight:600;padding:4px 0}.text-button:hover{text-decoration:underline}
.task-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #f1e8e1}.task-row:last-child{border-bottom:0}.task-row>div{flex:1;min-width:0}.task-row p{margin:0 0 3px;font-size:13px;font-weight:550}.task-row .completed{text-decoration:line-through;color:#a08a7c}
.task-row{flex-wrap:wrap}.task-row .item-actions{flex-basis:100%;padding-left:36px;margin-top:-4px}
.task-check{width:24px;height:24px;border-radius:50%;border:1.5px solid #c6a58d;background:#fff;color:#7a4a2e;display:grid;place-items:center;font-size:12px;padding:0;flex-shrink:0}
.person-line{font-size:13px;margin:6px 0;color:#5f4a3d}
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.toolbar h2{font-size:16px;font-weight:700;margin:0 8px}
.chip{border:1px solid #ecdcd0;background:#fff;color:#7d6556;border-radius:7px;padding:7px 11px;font-size:12px;text-decoration:none;display:inline-block;margin:0 8px 8px 0}.chip.selected{background:#f6ebe3;color:#6b3f26;border-color:#e0c5b1;font-weight:650}
.primary{border:0;border-radius:var(--th-control-radius);padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--roots);color:#fff;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap}.primary:hover{background:#633a22}
.kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.board-task{border:1px solid var(--roots-line);border-radius:10px;padding:4px 12px 12px;margin-bottom:10px}.board-task select{margin-top:6px;border:1px solid var(--roots-line);border-radius:7px;padding:6px;font-size:12px;background:#fff}
.conversation-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start}.channels{display:grid;gap:6px}.channels .chip{margin:0;text-align:left}
.message-list{display:grid;gap:10px;margin:14px 0}.message{background:#faf4f0;border:1px solid #efe4dc;border-radius:0 10px 10px 10px;padding:12px 14px}
.message-form{display:flex;gap:10px;align-items:flex-end}.message-form textarea{flex:1;min-height:70px;border:1px solid var(--roots-line);border-radius:var(--th-control-radius);padding:10px;resize:vertical}
.schedule-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #f1e8e1}.schedule-row h3{font-size:14px;margin:0 0 2px}.schedule-row p{margin:0}
.date-block{background:#f6ebe3;color:#6b3f26;border-radius:9px;padding:8px;text-align:center;font-size:12px;font-weight:700}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.day-label{font-size:10px;letter-spacing:1px;color:#9a7f6e;text-transform:uppercase;padding:4px}
.day{min-height:96px;background:#fff;border:1px solid var(--roots-line);border-radius:10px;padding:8px;overflow:hidden}.day.blank{background:transparent;border-color:transparent}.day.today{border-color:#b77a4f;box-shadow:inset 0 0 0 1px #b77a4f}
.day-number{font-size:11px;font-weight:700;color:#7d6556}.calendar-item{font-size:10px;border-radius:5px;padding:3px 6px;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-item.shift{background:#f6ebe3;color:#6b3f26}.calendar-item.event{background:#eaf1e6;color:#47603a}
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}.person-card{text-align:center}.person-card .avatar{margin:0 auto 12px;width:54px;height:54px;border-radius:17px;font-size:17px}.person-card h2{font-size:15px}

/* Sign-in page */
.login{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:radial-gradient(ellipse at 50% 0,#f1dccd,#faf6f3 65%)}
.login-logo{width:76px;height:76px;border-radius:20px;filter:drop-shadow(0 8px 18px #3f251630)}
.login .wordmark{font-size:30px;font-weight:800;letter-spacing:-.035em;color:#3f2516;margin-top:12px}.login h1{font-size:28px;font-weight:800;letter-spacing:-.03em;color:#3f2516;margin:6px 0 8px}.login>p{color:#7d6556;line-height:1.7;max-width:440px}
.identity-form{display:grid;gap:12px;width:min(360px,100%);margin:14px 0 10px;text-align:left}
.field{display:grid;gap:6px;font-size:12px;font-weight:650;color:#5a4334}
.field input,.field select,.field textarea{border:1px solid #e4d6cc;border-radius:var(--th-control-radius);padding:10px;font-size:13px;width:100%;background:#fff}.field textarea{min-height:110px;resize:vertical}

/* Dialog and toast */
dialog{border:0;border-radius:18px;padding:26px;width:min(520px,calc(100vw - 32px));box-shadow:0 24px 80px #2a150940}dialog::backdrop{background:#2a150960}
#create-form{display:grid;gap:14px}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:22px;font-weight:800;margin:0;color:#3f2516}
.icon{border:0;background:#f6ebe3;border-radius:8px;width:32px;height:32px;font-size:18px;color:#6b3f26}#form-error{color:#a33d2c;font-size:12px;margin:0}#fields{display:grid;gap:12px}
#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#4a2a18;color:#fff;border-radius:10px;padding:13px 20px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}

/* Smaller screens: same breakpoints as Swing */
@media(max-width:1100px){.cabin-columns{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:22px 10px}.brand{padding:0;justify-content:center}.brand>span,.workspace,.nav-label,.nav-item span,.nav-item em,.branch-note,.sidebar-foot div{display:none}.nav-item{justify-content:center;padding:12px}.sidebar-foot{justify-content:center;padding:14px 0 0}.workspace-search input{width:110px}}
@media(max-width:660px){.shell{display:block}.sidebar{position:relative;height:auto;padding:12px 14px;display:block}.brand{display:inline-flex;justify-content:flex-start}.brand>span{display:block}.brand b{font-size:23px}.brand-logo{width:40px;height:40px}
 nav{display:flex;overflow-x:auto;gap:6px;margin-top:12px;padding-bottom:4px}.nav-item span{display:inline}.nav-item{padding:9px 11px;min-height:0;font-size:11px}.sidebar-foot{display:none}
 .topbar{padding:0 16px;height:58px}.breadcrumb{display:none}.top-actions{width:100%;justify-content:space-between}.workspace-search{flex:1}.workspace-search input{width:100%}
 .page-heading{padding:22px 16px 18px}.page-heading h1{font-size:26px}.heading-leaf{display:none}.metrics{margin:0 16px 18px;gap:10px}.metric{padding:14px}.metric b{font-size:24px}
 .cabin-columns{margin:0 16px}.page>.card,.page>.toolbar,.page>.primary,.page>p,.page>.kanban,.page>.calendar,.page>.people-grid,.page>.conversation-layout{margin-left:16px;margin-right:16px}
 .card{padding:18px}.kanban,.conversation-layout{grid-template-columns:1fr}.schedule-row{grid-template-columns:60px minmax(0,1fr)}.calendar{gap:3px}.day{min-height:64px;padding:5px}.calendar-item{font-size:9px;padding:2px 4px}}
@media(prefers-reduced-motion:no-preference){.nav-item,.metric,.primary{transition:background .15s,border-color .15s}}

/* Roots colours for the shared sign-in layout */
.auth-scene{--auth-bg1:#1a0c05;--auth-bg2:#3a2012;--auth-bg3:#52301d;--auth-glow1:#a2643d50;--auth-glow2:#e8b48a18;--auth-soft1:#c47a4a16;--auth-soft2:#ffe2cc12;--auth-vine:#e0b0901a;--auth-mark:#6b3f26;--auth-muted:#d6b9a3;--auth-text:#e8cfbd;--auth-rule:#b77a4f;--auth-accent:#e9a978;--auth-card2:#fffaf6;--auth-card-line:#eedfd3;--auth-bar1:#4a2a18;--auth-bar2:#a2643d;--auth-bar3:#e2b08a;--auth-leaf1:#f7ece4;--auth-leaf2:#efdccd;--auth-strong:#8a4f2c;--auth-ink:#2e1b10;--auth-input-line:#e4d2c4;--auth-btn1:#8a5434;--auth-btn2:#5e341d;--auth-soft-btn:#f6ebe3;--auth-soft-line:#ecdcd0;--auth-page:#f7f0eb}
.auth-logo{width:100%;height:100%;object-fit:cover;display:block}

/* Sign-in page: same layout as the Treehouse login (brand panel left, white card right). Colours come from the --auth-* variables. */
.auth-scene{min-height:100vh;display:grid;grid-template-columns:minmax(0,520px) minmax(0,612px);justify-content:center;align-items:center;gap:64px;padding:51px;position:relative;overflow:hidden;font-family:var(--th-font);text-align:left;background:radial-gradient(circle at 18% 12%,var(--auth-glow1) 0,var(--auth-glow1) 11%,transparent 28%),radial-gradient(circle at 84% 78%,var(--auth-glow2) 0,var(--auth-glow2) 18%,transparent 40%),linear-gradient(145deg,var(--auth-bg1),var(--auth-bg2) 44%,var(--auth-bg3))}
.auth-glow{position:absolute;border-radius:50%;filter:blur(18px);pointer-events:none}.auth-glow.one{width:380px;height:380px;left:-130px;top:-110px;background:var(--auth-soft1)}.auth-glow.two{width:300px;height:300px;right:100px;bottom:-130px;background:var(--auth-soft2)}
.auth-vine{position:absolute;width:500px;height:500px;left:64px;bottom:-260px;border-top:2px solid var(--auth-vine);border-radius:100% 0 0;transform:rotate(22deg);pointer-events:none}
.auth-brand{position:relative;color:#fff;max-width:520px}
.auth-mark{width:172px;height:172px;border-radius:38px;background:var(--auth-mark);border:1px solid #ffffff2b;box-shadow:0 28px 75px #00000088,0 0 0 8px #ffffff08;overflow:hidden;margin-bottom:40px}.auth-mark img{width:100%;height:100%;object-fit:cover;display:block}
.auth-brand span{display:block;font-size:11px;font-weight:800;letter-spacing:2.2px;color:var(--auth-muted)}
.auth-brand h2{font-size:88px;font-weight:900;letter-spacing:-4.4px;line-height:.9;margin:10px 0 14px;color:#fff}
.auth-brand p{font-size:18px;line-height:1.25;color:var(--auth-text);margin:0}
.auth-rule{display:flex;gap:8px;margin:32px 0 0}.auth-rule i{width:56px;height:4px;border-radius:50px;background:var(--auth-rule)}.auth-rule i:nth-child(2){width:30px}.auth-rule i:nth-child(3){width:14px}
.auth-tagline{display:block;margin-top:16px;font-size:10px;font-weight:900;letter-spacing:1.7px;color:var(--auth-accent)}
.auth-powered{display:flex;align-items:center;gap:9px;margin-top:24px;font-size:11px;color:var(--auth-muted)}.auth-powered img{width:32px;height:32px;border-radius:9px}.auth-powered b{color:#fff}
.auth-card{position:relative;background:linear-gradient(#fff,var(--auth-card2));border:1px solid var(--auth-card-line);border-radius:30px;padding:58px;box-shadow:0 35px 100px #0000007a,0 0 0 1px #ffffff99;color:var(--auth-ink);max-width:690px}
.auth-card::before{content:"";position:absolute;top:0;left:55px;width:105px;height:9px;border-radius:0 0 20px 20px;background:linear-gradient(90deg,var(--auth-bar1),var(--auth-bar2),var(--auth-bar3))}
.auth-card::after{content:"";position:absolute;top:24px;right:28px;width:45px;height:45px;border-radius:100% 0;background:linear-gradient(145deg,var(--auth-leaf1),var(--auth-leaf2));transform:rotate(18deg);opacity:.85}
.auth-step,.auth-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:1.4px;color:var(--auth-strong);text-transform:uppercase;margin:0 0 14px}.auth-kicker{margin:0 0 4px}
.auth-card h1{font-size:52px;font-weight:700;letter-spacing:-2.34px;line-height:1.02;color:var(--auth-ink);margin:0 0 16px}
.auth-intro{font-size:16px;line-height:1.6;color:#5c6961;margin:0 0 28px;max-width:none}
.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:7px;font-size:13px;font-weight:750;color:#3f4c44}
.auth-form input{height:46px;border-radius:12px;border:1px solid var(--auth-input-line);padding:14px 15px;font-size:13px;background:#fff;width:100%;color:#1d2a22}
.auth-button{display:flex;align-items:center;justify-content:center;width:100%;border-radius:9px;text-decoration:none;font-size:14px;margin:0}
.auth-button.primary{height:40px;border:0;background:linear-gradient(150deg,var(--auth-btn1),var(--auth-btn2));color:#fff;font-weight:700;box-shadow:0 9px 22px #0000001f}
.auth-button.secondary{height:36px;background:var(--auth-soft-btn);border:1px solid var(--auth-soft-line);color:var(--auth-ink);font-weight:650}
.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;font-size:11px;color:#91a096}.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:#e3e9e4}
.auth-error{color:#a33d2c;background:#fdf0ec;border-radius:8px;padding:10px 12px;font-size:12px;margin:0}
.auth-card footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e6ebe7;margin-top:34px;padding-top:18px;font-size:10px;color:#98a39b}
@media(max-width:900px){.auth-scene{grid-template-columns:minmax(0,612px);padding:22px;gap:28px}.auth-brand{display:flex;align-items:center;gap:15px}.auth-mark{width:58px;height:58px;border-radius:15px;margin:0;box-shadow:none;flex-shrink:0}.auth-brand h2{font-size:28px;letter-spacing:-1px;margin:2px 0}.auth-brand p,.auth-rule,.auth-tagline,.auth-powered{display:none}.auth-brand span{font-size:8px}.auth-card{border-radius:24px;padding:28px}.auth-card h1{font-size:38px;letter-spacing:-1.5px}}
@media(max-width:600px){.auth-scene{display:block;min-height:100svh;padding:18px;background:linear-gradient(var(--auth-bg2) 0,var(--auth-bg2) 170px,var(--auth-page) 170px)}.auth-glow,.auth-vine{display:none}.auth-brand{padding:8px 4px 24px}.auth-card{padding:25px 20px;border-radius:25px}.auth-card h1{font-size:32px;letter-spacing:-1.2px}}
