.sidebar { background: #e4ece6; border-right-color: #cbd8cf; box-shadow: 2px 0 12px #304e4305; overflow: hidden; }
.sidebar .brand-sub, .sidebar .workspace-label small, .sidebar .nav-label { color: #5c7166; }
.sidebar .workspace-avatar { background: #f7faf7; border-color: #c3d2c8; }
.sidebar nav button { color: #435b50; }
.sidebar nav button:hover { background: #d5e2d9; }
.sidebar nav button[aria-current] { background: #4a6860; color: #fff; box-shadow: 0 2px 5px #304e4312; }
.sidebar nav button[aria-current] .nav-count { background: #ffffff24; color: white; }
.sidebar nav button:disabled,.sidebar nav button:disabled:hover {color:#7b8980;background:transparent;box-shadow:none;cursor:default}
.sidebar .brand-original { opacity: 1; }
.account-area { position: relative; border-top: 1px solid #c6d5cb; }
.profile { width: 100%; text-align: left; border: 0; padding: 18px 6px; gap: 9px; }
.profile:hover, .profile[aria-expanded="true"] { background: #d8e4dc; }
.profile .avatar { flex-shrink: 0; background: #c7d8cd; color: #304e43; }
.profile-name { flex: 1; min-width: 0; }
.profile-name strong { overflow-wrap: anywhere; }
.profile small { color: #5c7166; }
.profile > svg { width: 14px; color: #5c7166; }
.account-menu { position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; background: white; border: 1px solid #ccd9d0; padding: 14px; border-radius: 7px; box-shadow: 0 6px 24px #223a291a; font-size: 12px; z-index: 20; }
[hidden] { display: none !important; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 16px; color: #617369; font-size: 11px; }
.connection-status { color: #3c6852; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.connection-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #5d8b6d; }
.account-menu > strong { overflow-wrap: anywhere; }
.account-email { color: #718077; font-size: 11px; overflow-wrap: anywhere; margin-top: 3px; }
.account-menu dl { margin: 15px 0 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.account-menu dl div { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; }
.account-menu dt { color: #718077; }
.account-menu dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.account-logout { display: flex; gap: 8px; align-items: center; padding: 9px 0 0; border-top: 1px solid var(--border); width: 100%; color: #765e45; font-size: 12px; }
.account-logout:hover { color: #4a3522; }
.account-logout:disabled { opacity: .5; }
.account-error { font-size: 12px; color: #934e42; background: #fbf1ef; padding: 10px 12px; border-radius: 5px; margin: 12px 0; }
.login-screen { min-height: 100svh; max-width: none; padding: 56px 24px; background: #f8faf8; display: grid; place-items: center; }
.login-form-wrap { width: 100%; max-width: 368px; }
.login-brand { display: flex; align-items: center; justify-content: center; text-align: center; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid #d9d1c6; margin-bottom: 30px; }
.login-brand img { width: 70px; height: 48px; flex-shrink: 0; }
.login-brand strong { font-size: 24px; font-weight: 600; line-height: 1.3; }
.login-brand strong span { color: var(--green); font-weight: 400; }
.login-brand p { color: #7b654c; font-size: 13px; margin-top: 4px; }
.login-form-wrap h1 { font-size: 22px; font-weight: 550; color: #705c46; margin-bottom: 24px; }
#account-login label { display: block; font-size: 13px; font-weight: 550; margin: 20px 0 8px; }
#account-login label:first-child { margin-top: 0; }
#account-login input { min-width: 0; width: 100%; height: 46px; background: white; border: 1px solid #d2dbd4; border-radius: 6px; padding: 0 12px; font-size: 13px; transition: border-color .15s; }
#account-login input:hover { border-color: #a8b8ad; }
#account-login input:focus { border-color: var(--green); }
#account-login input::placeholder { color: #778179; opacity: 1; }
.login-password { position: relative; }
.login-password input { padding-right: 44px !important; }
.login-password .icon-button { position: absolute; top: 6px; right: 6px; color: #806c54; }
.login-submit { position:relative; margin-top: 26px; height: 48px; justify-content:center; padding: 0 44px; font-size: 14px; font-weight: 600; color:#fff; background:#8d7054; border:1px solid #82664c; border-radius:6px; box-shadow:0 2px 4px #60472b14; transition:background .15s,box-shadow .15s; }
.login-submit:hover:not(:disabled) { background:#7e6349; box-shadow:0 3px 8px #60472b20; }
.login-submit:focus-visible { outline:3px solid #ad9679; outline-offset:3px; }
.login-submit svg { position:absolute; right:18px; width:19px; height:19px; }
.sidebar > .nav-label { display:flex; align-items:center; gap:9px; color:#745f49; text-transform:none; font-size:14px; font-weight:600; margin:20px 12px 18px; padding-bottom:12px; border-bottom:1px solid #bfccbf; }
.sidebar > .nav-label::before { content:''; width:3px; height:17px; border-radius:2px; background:#927859; flex-shrink:0; }
.login-submit:disabled { opacity: .7; }
.login-help { text-align: center; color: #7b654c; font-size: 12px; margin-top: 18px; }
.login-help summary { cursor: pointer; list-style: none; padding: 6px; border-radius: 4px; }
.login-help summary:hover { color: #594530; text-decoration: underline; text-underline-offset: 3px; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help p { margin-top: 10px; color: #66766b; line-height: 1.6; }
.login-loading { display: flex; align-items: flex-start; gap: 10px; min-height: 267px; font-size: 13px; color: var(--green); }
.login-code-recipient { color:#617369; font-size:13px; line-height:1.65; margin-bottom:24px; }
.login-code-recipient strong { display:block; color:#354b40; font-weight:550; overflow-wrap:anywhere; }
.login-code-form label { display:block; margin-bottom:8px; color:#354b40; font-size:13px; font-weight:550; }
.login-code-form input { width:100%; min-width:0; height:52px; border:1px solid #d2dbd4; border-radius:6px; background:#fff; padding:0 16px; color:#354b40; font-size:24px; text-align:center; font-variant-numeric:tabular-nums; letter-spacing:0; }
.login-code-form input:hover { border-color:#a8b8ad; }
.login-code-form input:focus { border-color:var(--green); outline:2px solid #c7d8cd; outline-offset:2px; }
.login-code-form input:disabled { background:#f0f4f0; color:#617369; }
.login-code-expiry { min-height:20px; margin-top:8px; color:#718077; font-size:12px; font-variant-numeric:tabular-nums; }
.login-code-notice { margin-top:12px; color:#3c6852; font-size:13px; line-height:1.5; }
.login-code-form .login-submit { margin-top:20px; padding:0 16px; }
.login-code-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin-top:12px; }
.login-code-actions .button { min-height:42px; justify-content:center; font-size:13px; font-variant-numeric:tabular-nums; }
.login-code-actions button:disabled { opacity:.6; cursor:default; }
.login-code-back { display:flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:8px; color:#617369; font-size:13px; }
.login-code-back svg { width:15px; height:15px; flex-shrink:0; }
.login-code-back:hover:not(:disabled) { color:#354b40; }
.login-code-actions button:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
@media(max-width:600px) { .login-screen { padding: 36px 24px; } .login-brand { gap: 12px; } }
