:root {
  --ink: #17211f;
  --muted: #6e7975;
  --soft-muted: #99a29e;
  --line: #e3e8e3;
  --paper: #f6f7f4;
  --white: #ffffff;
  --sidebar: #edf1ed;
  --coral: #e96d54;
  --coral-dark: #d75c45;
  --green: #4a7b63;
  --shadow: 0 8px 24px rgba(28, 42, 36, 0.06);
  --shadow-hover: 0 14px 30px rgba(28, 42, 36, 0.1);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
svg { width: 17px; height: 17px; stroke-width: 1.8; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; display: flex; flex-direction: column; width: 248px; min-height: 100vh; padding: 30px 18px 24px; color: #f8f8f6; background: #050505; border-right: 1px solid #252525; }
.brand-lockup { display: flex; align-items: center; min-height: 36px; padding: 0 13px; }
.brand-logo { display: block; width: 157px; height: auto; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; background: var(--coral); color: white; border-radius: 8px 8px 8px 2px; font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -1px; }
.brand-name { color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -1.2px; }
.brand-name span { color: var(--coral); }
.sidebar-label { margin: 72px 13px 14px; color: #767676; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; color: #929292; border-radius: 9px; font-size: 13px; font-weight: 600; transition: color .2s, background .2s; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { color: #fff; background: #191919; }
.nav-item.active { color: #fff; background: #202020; box-shadow: inset 2px 0 0 #d5aa22; }
.nav-count { margin-left: auto; color: #666; font-size: 11px; font-weight: 500; }
.sidebar-spacer { flex: 1; }
.sidebar-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 6px 24px; padding: 12px; background: #131313; border: 1px solid #292929; border-radius: 9px; }
.status-dot { width: 7px; height: 7px; margin-top: 4px; flex: 0 0 auto; background: #6aa57c; border-radius: 50%; box-shadow: 0 0 0 3px rgba(106,165,124,.15); }
.sidebar-note strong, .sidebar-note span { display: block; font-size: 11px; line-height: 1.45; }
.sidebar-note strong { color: #d4d4d4; font-weight: 600; }
.sidebar-note span { color: #747474; }
.sidebar-footer { display: flex; gap: 7px; padding: 0 13px; color: #666; font-size: 10px; }
.main-content { width: calc(100% - 248px); margin-left: 248px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 5.1vw; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #a0a9a4; font-size: 12px; }
.breadcrumbs svg { width: 13px; height: 13px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 21px; }
.top-search-trigger { display: flex; align-items: center; gap: 9px; min-width: 188px; padding: 7px 10px; color: #8c9791; background: transparent; border: 1px solid transparent; border-radius: 7px; text-align: left; }
.top-search-trigger:hover { color: var(--ink); background: var(--white); border-color: var(--line); }
kbd { color: #a3aca7; font-size: 10px; font-family: inherit; letter-spacing: .2px; }
.top-search-trigger kbd { margin-left: auto; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfa; }
.icon-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; color: #728078; background: transparent; border-radius: 8px; }
.icon-button:hover { color: var(--ink); background: var(--white); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; background: var(--coral); border: 1.5px solid var(--paper); border-radius: 50%; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 3px; }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; color: #fff; background: #526b5d; border-radius: 50%; font-size: 10px; font-weight: 700; }
.user-copy strong, .user-copy span { display: block; line-height: 1.25; white-space: nowrap; }
.user-copy strong { font-size: 12px; font-weight: 600; }
.user-copy span { color: var(--soft-muted); font-size: 10px; }
.user-chevron { width: 13px; height: 13px; margin-left: 3px; color: var(--soft-muted); }
.menu-toggle { display: none; }
.content-container { max-width: 1240px; margin: 0 auto; padding: 58px 5.1vw 38px; }
.hero-section { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 31px; }
.eyebrow, .section-kicker { color: var(--coral-dark); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.eyebrow-line { display: inline-block; width: 19px; height: 1px; background: var(--coral); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; letter-spacing: -0.8px; }
h1 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.1; font-weight: 800; }
.wave { display: inline-block; margin-left: 4px; color: var(--coral); font-size: .65em; vertical-align: 15%; transform: rotate(20deg); }
.hero-copy p { margin-top: 11px; color: var(--muted); font-size: 15px; }
.hero-meta { display: flex; align-items: center; gap: 8px; padding-bottom: 3px; color: var(--soft-muted); font-size: 11px; }
.hero-meta svg { width: 14px; height: 14px; }
.global-search { display: flex; align-items: center; gap: 13px; height: 58px; margin-bottom: 22px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 8px rgba(34,48,42,.025); transition: border-color .2s, box-shadow .2s; }
.global-search:focus-within { border-color: #bdc9c0; box-shadow: 0 5px 16px rgba(34,48,42,.07); }
.global-search svg { color: #8f9c95; }
.global-search input, .modal-search input { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.global-search input::placeholder, .modal-search input::placeholder { color: #a5afaa; }
.global-search kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fafbfa; }
.announcement { display: flex; align-items: center; gap: 14px; min-height: 65px; margin-bottom: 46px; padding: 11px 17px; background: #f5eee9; border: 1px solid #eee0d8; border-radius: 10px; }
.announcement-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--coral-dark); background: #f9e2d8; border-radius: 8px; }
.announcement-icon svg { width: 17px; }
.announcement-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.announcement-copy strong { color: #634b42; font-size: 12px; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--coral-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-link svg, .button-link svg { width: 14px; height: 14px; }
.text-link:hover, .button-link:hover { color: var(--ink); }
.dismiss-button { display: grid; width: 24px; height: 24px; place-items: center; margin-left: 8px; color: #b9a39a; background: transparent; border-radius: 5px; }
.dismiss-button:hover { color: var(--ink); background: rgba(255,255,255,.45); }
.dismiss-button svg { width: 15px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 800; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.tool-total { padding: 5px 9px; color: var(--soft-muted); background: #ecefea; border-radius: 5px; font-size: 10px; font-weight: 600; }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card { display: flex; min-height: 236px; flex-direction: column; padding: 17px 17px 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 8px rgba(34,48,42,.022); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tool-card:hover { border-color: #ccd7ce; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-icon, .recent-icon, .shortcut-icon { display: grid; place-items: center; border-radius: 9px; }
.tool-icon { width: 38px; height: 38px; }
.tool-icon svg { width: 18px; height: 18px; }
.category { padding-top: 5px; color: #a2aaa5; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.coral { color: #dc674e; background: #fae5de; }.lime { color: #6f8c3b; background: #edf3d9; }.blue { color: #5877a2; background: #e2ebf5; }.yellow { color: #ae8c36; background: #f7f0d6; }.violet { color: #7b6c9b; background: #ece8f5; }.teal { color: #4e8880; background: #dff0ed; }.orange { color: #b87d4e; background: #f7e8da; }.pink { color: #b36f87; background: #f6e4eb; }.slate { color: #687d8c; background: #e5edf0; }.green { color: #56816d; background: #e1eee6; }
.tool-card-body { margin-top: 22px; }.tool-card-body h3 { font-size: 15px; line-height: 1.25; font-weight: 700; }.tool-card-body p { max-width: 220px; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tool-card-action { display: flex; align-items: center; gap: 5px; margin-top: auto; color: #78857d; font-size: 10px; font-weight: 700; }.tool-card-action svg { width: 13px; height: 13px; transition: transform .2s; }.tool-card:hover .tool-card-action { color: var(--coral-dark); }.tool-card:hover .tool-card-action svg { transform: translate(2px,-2px); }
.no-results { display: none; grid-column: 1/-1; padding: 35px; color: var(--muted); text-align: center; }.no-results svg { display: block; margin: auto auto 10px; }.no-results strong, .no-results span { display: block; }.no-results strong { color: var(--ink); margin-bottom: 5px; }
.lower-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; margin-top: 61px; }
.section-heading.compact { align-items: flex-start; margin-bottom: 16px; }.more-button { display: grid; width: 28px; height: 28px; place-items: center; color: var(--soft-muted); background: transparent; border-radius: 6px; }.more-button:hover { color: var(--ink); background: var(--white); }.more-button svg { width: 18px; }
.shortcut-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.shortcut { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; background: transparent; border: 1px solid var(--line); border-radius: 9px; transition: background .2s, border .2s; }.shortcut:hover { background: var(--white); border-color: #d1dbd3; }.shortcut-icon { width: 31px; height: 31px; flex: 0 0 auto; }.shortcut-icon svg { width: 15px; height: 15px; }.drive { color: #608069; background: #e7efe6; }.mail { color: #bd7054; background: #f6e8df; }.admin { color: #5e7d9d; background: #e3ebf4; }.calendar { color: #88785c; background: #f1ecde; }.support { color: #8c7194; background: #eee7f1; }.shortcut strong, .shortcut small { display: block; line-height: 1.3; }.shortcut strong { font-size: 11px; font-weight: 600; }.shortcut small { color: var(--soft-muted); font-size: 10px; }.shortcut > svg { width: 13px; height: 13px; margin-left: auto; color: #a1aaa5; }
.recent-list { padding: 3px 0; border-top: 1px solid var(--line); }.recent-item { display: flex; align-items: center; gap: 10px; min-height: 53px; border-bottom: 1px solid var(--line); }.recent-icon { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 7px; }.recent-icon svg { width: 14px; height: 14px; }.recent-item strong, .recent-item small { display: block; line-height: 1.35; }.recent-item strong { font-size: 11px; font-weight: 600; }.recent-item small { color: var(--soft-muted); font-size: 10px; }.recent-item > svg { width: 14px; height: 14px; margin-left: auto; color: #a9b1ac; }.recent-item:hover strong { color: var(--coral-dark); }
.support-card { display: flex; align-items: center; gap: 17px; margin-top: 58px; padding: 22px 24px; background: #eaf0ea; border: 1px solid #dce7dc; border-radius: 11px; }.support-symbol { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: var(--green); background: #dce9dd; border-radius: 9px; }.support-card h2 { margin-top: 4px; font-size: 17px; }.support-card p { margin-top: 5px; color: #687a6d; font-size: 11px; }.button-link { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 10px 14px; color: white; background: var(--green); border-radius: 7px; font-size: 11px; font-weight: 700; transition: background .2s, transform .2s; }.button-link:hover { color: white; background: #3d6853; transform: translateY(-1px); }
.page-footer { display: flex; align-items: center; gap: 17px; margin-top: 42px; padding-top: 17px; border-top: 1px solid var(--line); color: #a2aaa5; font-size: 10px; }.page-footer strong { color: #75817a; font-family: 'Manrope', sans-serif; }.page-footer a { margin-left: auto; }.page-footer a:hover { color: var(--ink); }
.search-overlay { position: fixed; z-index: 50; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: 17vh; background: rgba(20, 29, 26, .22); backdrop-filter: blur(3px); }.search-overlay.open { display: flex; }.search-modal { width: min(560px, calc(100% - 30px)); padding: 9px; background: var(--white); border: 1px solid #dbe3dc; border-radius: 11px; box-shadow: 0 20px 60px rgba(20,31,25,.18); }.modal-search { display: flex; align-items: center; gap: 11px; height: 48px; padding: 0 12px; border-bottom: 1px solid var(--line); }.modal-search svg { color: #87948c; }.modal-hint { display: flex; justify-content: space-between; padding: 10px 12px 5px; color: var(--soft-muted); font-size: 10px; }.modal-hint button { padding: 2px 5px; color: #8e9993; background: #f3f5f3; border-radius: 4px; font-size: 9px; }
@media (max-width: 1120px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .sidebar { width: 220px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 30px rgba(22,33,28,.08); }.sidebar.open { transform: translateX(0); }.main-content { width: 100%; margin-left: 0; }.menu-toggle { position: relative; z-index: 20; display: grid; margin-right: 10px; }.topbar { justify-content: flex-start; padding: 0 24px; }.breadcrumbs { margin-right: auto; }.top-actions { gap: 8px; }.top-search-trigger { min-width: 34px; width: 34px; padding: 0; justify-content: center; }.top-search-trigger span, .top-search-trigger kbd, .user-copy, .user-chevron { display: none; }.content-container { padding-right: 24px; padding-left: 24px; } }
@media (max-width: 620px) { .content-container { padding-top: 38px; }.hero-section { display: block; }.hero-meta { margin-top: 19px; }.hero-section, .announcement { margin-bottom: 26px; }.announcement { align-items: flex-start; padding: 13px; }.announcement-copy strong { line-height: 1.4; }.announcement .text-link { display: none; }.dismiss-button { margin-left: auto; }.tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.tool-card { min-height: 225px; padding: 14px; }.category { display: none; }.tool-card-body { margin-top: 17px; }.tool-card-body h3 { font-size: 14px; }.tool-card-body p { font-size: 10px; }.lower-grid { display: block; margin-top: 45px; }.recent-section { margin-top: 42px; }.shortcut-list { gap: 7px; }.shortcut { padding: 8px; }.shortcut strong { font-size: 10px; }.support-card { align-items: flex-start; flex-wrap: wrap; margin-top: 45px; padding: 18px; }.support-card .button-link { width: 100%; justify-content: center; margin: 4px 0 0 56px; }.page-footer { flex-wrap: wrap; gap: 8px 15px; }.page-footer a { width: 100%; margin-left: 0; }.hero-copy p { font-size: 14px; } }
@media (max-width: 390px) { .tools-grid { grid-template-columns: 1fr; }.tool-card { min-height: 190px; }.tool-card-body { margin-top: 14px; }.shortcut-list { grid-template-columns: 1fr; }.topbar { padding: 0 16px; }.content-container { padding-right: 16px; padding-left: 16px; } }

/* Oxgital brand surface */
body { background: #080808; color: #f5f5f2; }
.main-content { background: #080808; }
.topbar { border-bottom-color: #252525; }
.breadcrumbs { color: #777; }
.breadcrumbs strong { color: #f5f5f2; }
.top-search-trigger { color: #8d8d8d; }
.top-search-trigger:hover, .icon-button:hover { color: #fff; background: #1a1a1a; border-color: #303030; }
.icon-button { color: #999; }
.notification-dot { border-color: #080808; background: #d5aa22; }
.avatar { color: #080808; background: #d5aa22; }
.hero-meta, .section-heading p { color: #858585; }
.eyebrow, .section-kicker { color: #d5aa22; }
.eyebrow-line { background: #d5aa22; }
.global-search { background: #121212; border-color: #303030; box-shadow: none; }
.global-search:focus-within { border-color: #d5aa22; box-shadow: 0 0 0 1px #d5aa22; }
.global-search input, .modal-search input { color: #f5f5f2; }
.global-search input::placeholder, .modal-search input::placeholder { color: #777; }
.global-search svg { color: #999; }
.global-search kbd, .top-search-trigger kbd { color: #888; background: #1c1c1c; border-color: #353535; }
.announcement { background: #15130d; border-color: #3c3219; }
.announcement-icon { color: #d5aa22; background: #302813; }
.announcement-copy strong { color: #d8d0b9; }
.text-link { color: #d5aa22; }
.dismiss-button { color: #777; }
.dismiss-button:hover { color: #fff; background: #252525; }
.tool-total { color: #969696; background: #1b1b1b; }
.tool-card { background: #111; border-color: #292929; box-shadow: none; }
.tool-card:hover { border-color: #4d431f; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.category { color: #777; }
.tool-card-body h3, .tool-card-action { color: #f2f2ef; }
.tool-card-body p { color: #8d8d8d; }
.tool-card-action { color: #a3a3a3; }
.tool-card:hover .tool-card-action { color: #d5aa22; }
.lower-grid { border-color: #252525; }
.more-button { color: #858585; }
.more-button:hover { color: #fff; background: #1a1a1a; }
.shortcut { border-color: #292929; }
.shortcut:hover { background: #111; border-color: #4d431f; }
.shortcut strong, .recent-item strong { color: #f2f2ef; }
.shortcut small, .recent-item small { color: #777; }
.shortcut > svg, .recent-item > svg { color: #777; }
.recent-list, .recent-item { border-color: #292929; }
.recent-item:hover strong { color: #d5aa22; }
.support-card { background: #13130f; border-color: #3c3219; }
.support-symbol { color: #d5aa22; background: #302813; }
.support-card p { color: #999; }
.button-link { color: #080808; background: #d5aa22; }
.button-link:hover { color: #080808; background: #edc642; }
.page-footer { color: #666; border-top-color: #292929; }
.page-footer strong { color: #aaa; }
.page-footer a:hover { color: #d5aa22; }
.search-overlay { background: rgba(0,0,0,.72); }
.search-modal { background: #111; border-color: #363636; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.modal-search { border-bottom-color: #292929; }
.modal-search svg { color: #999; }
.modal-hint button { color: #999; background: #1d1d1d; }
[hidden] { display: none !important; }
.app-shell.requires-auth { display: none !important; }
.auth-screen { display: grid; min-height: 100vh; place-items: center; padding: 30px; color: #f5f5f2; background: #080808; }
.auth-screen[hidden], .auth-screen.hidden { display: none !important; }
.auth-panel { width: min(430px, 100%); padding: 38px; background: #111; border: 1px solid #2d2d2d; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.auth-brand { display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 38px; margin-bottom: 44px; background: #050505; border-radius: 5px; }
.auth-brand img { width: 122px; height: auto; }
.auth-kicker { color: #d5aa22; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.auth-panel h1 { margin-top: 11px; font-size: 29px; }
.auth-intro { margin-top: 10px; color: #8b8b8b; font-size: 13px; line-height: 1.55; }
.auth-tabs { display: flex; gap: 5px; margin: 27px 0 19px; padding: 4px; background: #080808; border: 1px solid #292929; border-radius: 7px; }
.auth-tab { flex: 1; padding: 9px; color: #898989; background: transparent; border-radius: 4px; font-size: 11px; font-weight: 700; }
.auth-tab.active { color: #0b0b0b; background: #d5aa22; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { color: #aaa; font-size: 11px; font-weight: 600; margin-bottom: -7px; }
.auth-form input { width: 100%; padding: 12px; color: #f5f5f2; background: #0a0a0a; border: 1px solid #303030; border-radius: 6px; outline: none; }
.auth-form input:focus { border-color: #d5aa22; box-shadow: 0 0 0 1px #d5aa22; }
.auth-form input::placeholder { color: #626262; }

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrap input {
  padding-right: 42px !important;
}
.toggle-password-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: #777;
  border-radius: 5px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.toggle-password-btn:hover {
  color: #f5f5f2;
  background: #1a1a1a;
}
.toggle-password-btn svg {
  width: 15px;
  height: 15px;
}
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 7px; padding: 12px; color: #080808; background: #d5aa22; border-radius: 6px; font-size: 12px; font-weight: 700; }
.auth-submit:hover { background: #edc642; }
.auth-submit svg { width: 14px; height: 14px; }
.auth-message { min-height: 18px; margin-top: 16px; color: #d88478; font-size: 11px; line-height: 1.4; }
.auth-message.success { color: #7fb18b; }
.auth-footnote { display: block; margin-top: 23px; color: #666; font-size: 10px; line-height: 1.45; }
.logout-button { padding: 7px 9px; color: #8b8b8b; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: 10px; }
.logout-button:hover { color: #fff; background: #1a1a1a; border-color: #303030; }
.sync-status { padding-left: 8px; color: #727272; border-left: 1px solid #303030; }
.sync-status.connected { color: #86ac8b; }
.sync-status.warning { color: #d5aa22; }
.live-overview { margin-bottom: 48px; }
.live-label { display: inline-flex; align-items: center; gap: 6px; color: #7e987f; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.live-label span { width: 5px; height: 5px; background: #78a57d; border-radius: 50%; box-shadow: 0 0 0 3px rgba(120,165,125,.12); }
.live-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.live-metric { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 13px; background: #111; border: 1px solid #292929; border-radius: 10px; }
.metric-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 8px; }
.metric-icon svg { width: 17px; height: 17px; }
.live-metric span, .live-metric strong, .live-metric small { display: block; }
.live-metric span { color: #777; font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.live-metric strong { margin-top: 3px; color: #f5f5f2; font-family: 'Manrope', sans-serif; font-size: 20px; line-height: 1; }
.live-metric small { margin-top: 4px; color: #777; font-size: 10px; }
.live-metric.unavailable { border-color: #4b3e1a; }.live-metric.unavailable strong { color: #d5aa22; font-size: 13px; }
@media (max-width: 620px) { .auth-panel { padding: 28px 22px; }.auth-brand { margin-bottom: 36px; }.logout-button { display: none; }.sync-status { display: none; } }
@media (max-width: 620px) { .live-overview { margin-bottom: 38px; }.live-metrics { grid-template-columns: 1fr; gap: 7px; }.live-metric { min-height: 66px; } }

/* ─── User Menu & Dropdown ─────────────────────────────────────────────────── */
.user-menu-wrapper { position: relative; }
button.user-menu {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 8px 4px 5px;
  background: transparent; border: 1px solid transparent; border-radius: 20px;
  cursor: pointer; transition: all 0.15s ease;
}
button.user-menu:hover, button.user-menu:focus-visible {
  background: #181818; border-color: #303030;
}
.user-chevron { width: 14px; height: 14px; color: #777; transition: transform 0.2s ease; }
button.user-menu[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }

.avatar {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #080808; background: #d5aa22;
  font-size: 11px; font-weight: 700;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center; flex-shrink: 0;
}
.avatar.has-image { color: transparent !important; }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 260px; z-index: 1000;
  background: #121212; border: 1px solid #2d2d2d; border-radius: 12px;
  padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.65);
  animation: dropdownFadeIn 0.15s ease-out;
}
.user-dropdown[hidden] { display: none !important; }
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 12px;
}
.dropdown-meta {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.dropdown-meta strong {
  color: #f5f5f2; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-meta span {
  color: #888; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-divider { height: 1px; background: #242424; margin: 6px 0; }

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px;
  color: #ccc; background: transparent; border: none; border-radius: 7px;
  font-size: 12px; font-weight: 500; cursor: pointer; text-align: left;
  transition: all 0.15s ease;
}
.dropdown-item svg { width: 15px; height: 15px; color: #888; flex-shrink: 0; }
.dropdown-item:hover { background: #1f1f1f; color: #fff; }
.dropdown-item:hover svg { color: #d5aa22; }
.dropdown-item.text-danger:hover { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.dropdown-item.text-danger:hover svg { color: #f87171; }
.dropdown-item[hidden] { display: none !important; }

/* ─── Role Badges ──────────────────────────────────────────────────────────── */
.role-badge {
  display: inline-block; width: fit-content;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 2px 7px; border-radius: 4px;
}
.role-badge.admin { background: rgba(213, 170, 34, 0.15); color: #e5b933; border: 1px solid rgba(213, 170, 34, 0.3); }
.role-badge.executive { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.role-badge.member { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

/* ─── Modals ───────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none !important; }

.app-modal {
  width: min(500px, 100%);
  background: #111; border: 1px solid #2d2d2d; border-radius: 14px;
  padding: 30px; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-modal.wide-modal { width: min(760px, 100%); }
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-kicker { color: #d5aa22; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.modal-header h2 { margin-top: 4px; color: #f5f5f2; font-size: 22px; }
.close-modal-btn {
  background: transparent; border: none; color: #777; cursor: pointer;
  padding: 6px; border-radius: 6px; transition: color 0.15s;
}
.close-modal-btn:hover { color: #fff; background: #1c1c1c; }

/* Modal forms */
.modal-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field-group { display: grid; gap: 6px; }
.field-group label { color: #aaa; font-size: 11px; font-weight: 600; }
.field-group input, .field-group select {
  width: 100%; padding: 11px 13px;
  color: #f5f5f2; background: #0a0a0a;
  border: 1px solid #303030; border-radius: 7px;
  font-size: 13px; outline: none; font-family: inherit;
  transition: border-color 0.15s;
}
.field-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 4 6 8 10 4'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field-group input:focus, .field-group select:focus { border-color: #d5aa22; box-shadow: 0 0 0 1px #d5aa22; }
.field-group input:disabled { opacity: 0.6; cursor: not-allowed; }
.field-hint { color: #666; font-size: 11px; margin-top: 2px; }

.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px;
}
.button-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; background: #d5aa22; color: #080808;
  border: none; border-radius: 7px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background 0.15s ease;
}
.button-primary:hover { background: #edc642; }
.button-primary.compact-btn { padding: 7px 14px; font-size: 11px; }

.button-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; background: transparent; color: #ddd;
  border: 1px solid #383838; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.button-outline:hover { background: #1a1a1a; border-color: #555; color: #fff; }

.button-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; background: transparent; color: #888;
  border: none; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: color 0.15s;
}
.button-ghost:hover { color: #fff; }
.button-ghost.text-danger:hover { color: #f87171; }

.modal-message {
  min-height: 18px; font-size: 12px; color: #f87171; margin-top: 4px;
}
.modal-message.success { color: #4ade80; }

/* Avatar Upload Section */
.avatar-upload-section {
  display: flex; align-items: center; gap: 20px;
  padding: 16px; background: #0c0c0c; border: 1px solid #242424; border-radius: 10px;
}
.avatar.large-avatar { width: 72px; height: 72px; font-size: 22px; }
.avatar-upload-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ─── Management Tabs & Directory Table ────────────────────────────────────── */
.mgmt-tabs {
  display: flex; gap: 8px; border-bottom: 1px solid #262626; margin-bottom: 20px;
}
.mgmt-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: transparent; border: none;
  border-bottom: 2px solid transparent; color: #777; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.mgmt-tab svg { width: 14px; height: 14px; }
.mgmt-tab.active { color: #d5aa22; border-bottom-color: #d5aa22; }

.mgmt-tab-content { display: none; }
.mgmt-tab-content.active { display: block; }

.mgmt-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px;
}
.mgmt-search {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 380px;
  background: #0a0a0a; border: 1px solid #2d2d2d; border-radius: 7px;
  padding: 6px 12px;
}
.mgmt-search svg { width: 14px; height: 14px; color: #777; }
.mgmt-search input {
  flex: 1; background: transparent; border: none; color: #f5f5f2;
  font-size: 12px; outline: none;
}

.members-table-wrap {
  border: 1px solid #262626; border-radius: 10px; overflow: hidden;
  max-height: 380px; overflow-y: auto;
}
.members-list { display: grid; }
.member-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #0e0e0e; border-bottom: 1px solid #202020;
  transition: background 0.1s;
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: #141414; }

.member-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.member-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-text strong {
  color: #f5f5f2; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.member-text span { color: #888; font-size: 11px; }

.member-actions { display: flex; align-items: center; gap: 10px; }
.role-select {
  padding: 4px 8px; background: #181818; border: 1px solid #333;
  color: #ddd; border-radius: 5px; font-size: 11px; cursor: pointer; outline: none;
}
.role-select:focus { border-color: #d5aa22; }

.btn-icon-danger {
  padding: 6px; background: transparent; border: 1px solid transparent;
  color: #777; border-radius: 5px; cursor: pointer; transition: all 0.15s;
}
.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3);
}
.btn-icon-danger svg { width: 14px; height: 14px; }

.loading-state {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 36px; color: #888; font-size: 12px;
}
.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Member row layout additions */
.member-identity { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.member-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-meta strong { color: #f5f5f2; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-meta span { color: #888; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-avatar { width: 34px; height: 34px; font-size: 12px; flex-shrink: 0; }
.member-role-cell { flex: 0 0 130px; }
.member-joined { flex: 0 0 110px; text-align: right; color: #666; }
.member-joined small { font-size: 11px; }

.self-tag { color: #d5aa22; font-size: 10px; font-weight: 500; }

.inline-select {
  width: 100%; padding: 5px 8px; background: #181818; border: 1px solid #333;
  color: #ddd; border-radius: 6px; font-size: 11px; cursor: pointer; outline: none;
}
.inline-select:focus { border-color: #d5aa22; }
.inline-select:hover { border-color: #444; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px; color: #666; font-size: 12px; text-align: center;
}
.empty-state svg { width: 28px; height: 28px; color: #444; }

/* Avatar with photo */
.avatar.has-image { color: transparent; border: none; }

/* User dropdown */
.user-menu-wrapper { position: relative; }
.user-menu {
  display: flex; align-items: center; gap: 10px; background: transparent;
  border: 1px solid transparent; cursor: pointer; padding: 5px 10px; border-radius: 20px;
  color: #ffffff; transition: background .15s, border-color .15s;
}
.user-menu:hover, .user-menu:focus-visible { background: #161616; border-color: #2a2a2a; }
.user-copy { text-align: left; }
.user-copy strong { display: block; color: #ffffff !important; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.user-copy span { display: block; color: #9ea7a2 !important; font-size: 10.5px; line-height: 1.25; white-space: nowrap; }
.user-chevron { width: 14px; height: 14px; color: #888; transition: transform .2s; }
.user-menu[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }

.member-title-tag {
  display: inline-block; padding: 2px 6px; background: #1f1d15; color: #d5aa22;
  border: 1px solid #3d351a; border-radius: 4px; font-size: 10px; font-weight: 600;
  margin-left: 6px; letter-spacing: 0.2px; text-transform: uppercase;
}

.member-title-input {
  background: #141414; border: 1px solid #2a2a2a; color: #f0f0ed;
  padding: 3px 6px; border-radius: 4px; font-size: 11px; width: 100%;
}
.member-title-input:focus { border-color: #d5aa22; outline: none; }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  width: 250px; background: #111; border: 1px solid #252525; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45); overflow: hidden;
}
.dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #0c0c0c; border-bottom: 1px solid #1e1e1e;
}
.dropdown-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dropdown-meta strong { color: #f5f5f2; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-meta span { color: #777; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dropdown-divider { border-top: 1px solid #1e1e1e; margin: 4px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 16px; background: transparent; color: #bbb;
  font-size: 13px; font-weight: 500; text-align: left;
  border: none; cursor: pointer; transition: background .12s, color .12s;
}
.dropdown-item svg { width: 15px; height: 15px; }
.dropdown-item:hover { background: #1a1a1a; color: #f5f5f2; }
.dropdown-item.text-danger:hover { color: #f87171; }

/* Modal backdrop dark overlay */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}

/* form-row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── Coming Soon metric state ─────────────────────────────────────────────── */
.live-metric.coming-soon strong { color: #d5aa22; font-size: 14px; }
.live-metric.coming-soon small  { color: #7a6a2e; }

/* ── Hero subtitle (dynamic motivational line) ────────────────────────────── */
.hero-subtitle {
  font-size: 15px; color: var(--muted); margin: 0;
  font-style: italic; letter-spacing: -0.1px;
  animation: fadeSlideIn .5s ease both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Notification bell & wrapper ─────────────────────────────────────────── */
.notif-wrapper { position: relative; }

.notification-button { position: relative; }

.notif-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #e96d54; color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  pointer-events: none; border: 2px solid var(--paper);
}

/* ── Notification panel ───────────────────────────────────────────────────── */
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  width: 340px; max-height: 480px;
  background: #111; border: 1px solid #252525; border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
}

.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #1e1e1e;
  font-size: 13px; font-weight: 700; color: #f5f5f2;
}

.notif-panel-actions { display: flex; align-items: center; gap: 6px; }

.notif-mark-all-btn {
  background: transparent; border: 1px solid #2d2d2d; color: #888;
  font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.notif-mark-all-btn:hover { color: #f5f5f2; border-color: #444; }

.notif-list {
  flex: 1; overflow-y: auto; padding: 6px 0;
}

/* ── Notification items ──────────────────────────────────────────────────── */
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid #181818; transition: background .12s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #181818; }
.notif-item.is-read { opacity: .6; }

.notif-avatar {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%; background: #2a2a2a; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.notif-avatar.has-image { border: none; }

.notif-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.notif-meta { display: flex; align-items: center; gap: 6px; }

.notif-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  background: #1e2e20; color: #6aa57c;
}
.notif-tag.personal { background: #2a1e2e; color: #a07cc0; }

.notif-time { font-size: 10px; color: #555; margin-left: auto; }

.notif-title { font-size: 13px; font-weight: 600; color: #f5f5f2; line-height: 1.4; }

.notif-body {
  font-size: 12px; color: #888; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.notif-author { font-size: 11px; color: #555; }

.notif-unread-dot {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #d5aa22;
  flex-shrink: 0;
}

.notif-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 36px; color: #555; font-size: 12px; text-align: center;
}
.notif-empty svg { width: 26px; height: 26px; color: #333; }

/* ── Textarea in modal forms ──────────────────────────────────────────────── */
.modal-form textarea {
  width: 100%; padding: 10px 13px;
  background: #131313; border: 1px solid #2d2d2d;
  color: #f5f5f2; border-radius: 8px; font: inherit;
  font-size: 13px; resize: vertical; outline: none;
  transition: border-color .15s;
}
.modal-form textarea:focus { border-color: #d5aa22; }

/* ── req asterisk ─────────────────────────────────────────────────────────── */
.req { color: #e96d54; }

