/* LIFE OS: approved HOOOMES-inspired white workspace. Existing logic remains unchanged. */
:root{color-scheme:light;--bg:#f6f6f6;--panel:#fff;--p2:#f7f7f7;--line:#e4e4e4;--gold:#5a5a5a;--muted:#828282;--text:#383838}
html,body{background:var(--bg)!important;color:var(--text)!important;font:14px/1.6 "Dubai",Tahoma,Arial,sans-serif!important;-webkit-font-smoothing:antialiased}
body{background:linear-gradient(145deg,#fcfcfc,#f5f5f5)!important}
header{height:72px;background:#fff!important;color:#3a3a3a!important;border-bottom:1px solid #e5e5e5;box-shadow:0 2px 14px #3d3d3d0c;padding:10px 22px}
.brand{color:#3a3a3a!important;letter-spacing:.01em;font-weight:800;font-size:16px;gap:12px}
.brand small{color:#888888;font-size:10px}
.logo{background:#404040!important;color:#e6cb99!important;border:0!important;border-radius:12px;box-shadow:0 6px 18px #40404022;width:46px;height:46px}
button,header button{background:#fff;color:#4a4a4a;border:1px solid #e1e1e1;border-radius:10px;transition:background .15s,border-color .15s}
button:hover:not(:disabled){background:#f2f2f2;border-color:#cbcbcb}
button.gold,.tabs button.active,.archive-sections button[aria-selected=true]{background:#464646!important;color:#fff!important;border-color:#464646!important;font-weight:700}
button.gold:hover{background:#616161!important}button.ghost{background:transparent;color:#5f5f5f}
button.danger{color:#a74747}
a{color:#5d5d5d}h1,h2,h3{color:#3e3e3e}h1{font-size:clamp(18px,2vw,24px)}h2{font-size:18px}h3{font-size:15px}
small,.muted,.stat{color:var(--muted)}
input,select,textarea{background:#fdfdfd!important;color:#3d3d3d!important;border:1px solid #dedede!important;border-radius:10px}
input::placeholder,textarea::placeholder{color:#909090}
button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #737373!important;outline-offset:2px}
#auth{background:radial-gradient(circle at 75% 30%,#f0f0f0,transparent 50%),#f7f7f7}
#auth .login{background:#fff!important;border:1px solid #e4e4e4;box-shadow:0 16px 65px #40404018;border-radius:20px;padding:clamp(20px,3vw,35px)}
#auth .login h1{color:#464646;font-size:24px}
#app{grid-template-columns:minmax(245px,278px) minmax(0,1fr);height:calc(100dvh - 72px)}
aside{background:#fff!important;border:0!important;border-inline-end:1px solid #e4e4e4!important;box-shadow:0 4px 19px #47474710;padding:17px 13px}
aside strong{color:#404040}
.main{background:transparent!important;padding:clamp(13px,2vw,28px)}
#heading{color:#3b3b3b;font-weight:800}
.card{background:#fff!important;color:#404040;border:1px solid #e4e4e4!important;border-radius:16px;box-shadow:0 6px 22px #44444410;padding:clamp(13px,2vw,20px);margin:12px 0}
.navbtn{background:#fff;color:#4c4c4c;border-color:transparent;text-align:start;padding:9px 11px;margin-bottom:5px}
.navbtn.sel{background:#f0f0f0!important;color:#515151!important;border-color:#dbdbdb!important;font-weight:700}
.treeBtn .treeTwist{color:#7b7b7b}.treeBtn .treeType{color:#949494}
.org-trail button{color:#616161}
.org-grid{gap:11px}.org-card{background:#fff;color:#404040;border-color:#e3e3e3;box-shadow:0 4px 12px #45454508;min-height:86px}
.org-card:hover{background:#fafafa;border-color:#cecece}
.tabs{gap:6px;padding:6px;background:#f0f0f0;border:1px solid #e3e3e3;border-radius:13px;margin:14px 0 18px}
.tabs button{background:transparent;border-color:transparent;color:#5a5a5a}
.tabs button.active{box-shadow:0 2px 8px #4040401a}
.folder{background:#fbfbfb;color:#414141;border-color:#e5e5e5}.folder:hover{background:#f5f5f5;border-color:#c0c0c0}
.file{border-bottom-color:#eaeaea}.member{border-bottom-color:#e9e9e9}
.teamSegments button[aria-selected=true]{background:#f0f0f0!important;border:2px solid #a6a6a6!important;color:#4c4c4c!important}
.teamRoster .staffState.paused{color:#967234}
#messageList{background:#fafafa;border-color:#e5e5e5}.msg{background:#f4f4f4;color:#444444;border:1px solid #ebebeb}.msg.mine{background:#efefef}
.badge{background:#f4f4f4;border:1px solid #e1e1e1;color:#5c5c5c;border-radius:8px;padding:4px 8px}
.drop{background:#f9f9f9;color:#6b6b6b;border:1px dashed #c3c3c3}
dialog{background:#fff!important;color:#3f3f3f!important;border:1px solid #e2e2e2;box-shadow:0 20px 65px #37373733}
dialog::backdrop{background:#21212188}dialog label{color:#787878}
#toast{background:#464646;border-color:#d1d1d1;color:#fff}
.archive-sections button[aria-selected=true]{color:#fff!important}
.migration-panel{border:1px solid #e2e2e2;border-radius:15px;padding:17px;background:linear-gradient(135deg,#fff,#f7f7f7);box-shadow:0 5px 18px #4646460d;margin:12px 0 18px}
.migration-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0}
.migration-stat{background:#fff;border:1px solid #e4e4e4;border-radius:12px;padding:13px}
.migration-stat strong{display:block;color:#595959;font-size:24px;font-variant-numeric:tabular-nums}
.migration-stat small{color:#8d8d8d;font-size:11px}
@media(max-width:700px){header{height:auto;min-height:66px;padding:8px 10px}.logo{width:38px;height:38px}#app{height:calc(100dvh - 66px);grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}aside{max-height:min(38dvh,280px);border-inline-end:0!important;border-bottom:1px solid #e4e4e4!important;box-shadow:none;padding:10px}.main{padding:12px}.tabs{padding:5px;gap:4px}.tabs button{padding:7px 8px}.migration-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.liveGptLink{display:inline-flex;align-items:center;gap:.4em;padding:.65em .9em;border-radius:.7em;background:#292929;color:white!important;text-decoration:none;font-weight:700}
