:root {
  font-family: 'DM Sans', sans-serif;
  color: #1b2420;
  background: #f6f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #08294b;
  --muted: #818a84;
  --line: #e7e9e4;
  --green: #a8dd0b;
  --green-dark: #287500;
  --dark: #08294b;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.icon { display: inline-flex; width: 19px; height: 19px; flex: none; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 252px; padding: 27px 17px 17px; color: #eff4ed; background: var(--dark); }
.brand-lockup { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #536253; border-radius: 12px; color: #f4f7ed; font: 800 20px Manrope, sans-serif; letter-spacing: -2px; }
.brand-mark { overflow: hidden; flex: none; background: white; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.23); }
.brand-hero { width: 100%; height: 100%; object-fit: contain; transform: scale(1.24); }
.app-shell { background: linear-gradient(#f6fafbeF, #f6fafbeF), url('/icons/bold-logo.png') right center / min(900px, 100vw) auto no-repeat fixed; }
.sidebar { background: linear-gradient(165deg, var(--dark), #004a58); }
.sidebar .nav-item.is-active { color: white; background: #0b5363; box-shadow: inset 2px 0 var(--green); }
.app-shell .primary-button { background: #08294b; color: white; }
.login-shell .login-side { background: linear-gradient(160deg, #08294b, #005868); }
.login-shell .login-side h2 em { color: var(--green); }
.login-card .login-art { background: white; }
.brand-lockup b { display: block; font: 800 11px Manrope, sans-serif; letter-spacing: 1.65px; }
.brand-lockup small { display: block; margin-top: 3px; color: #839087; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; }
.workspace-label { margin: 49px 10px 12px; color: #718077; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 8px; color: #aeb8b0; background: transparent; text-align: left; font-size: 12px; font-weight: 500; }
.nav-item:hover { color: white; background: #1d2922; }
.nav-item.is-active { color: #e9f3df; background: #26372a; box-shadow: inset 2px 0 #a5d66e; }
.nav-item.is-active .icon { color: var(--green); }
.nav-count { display: grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; border-radius: 6px; color: #c5d8bb; background: #344538; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.side-status { display: flex; align-items: center; gap: 11px; margin: 0 3px 17px; padding: 14px 10px; border: 1px solid #2b3830; border-radius: 10px; color: #98a69b; }
.side-status .icon { color: var(--green); }
.side-status strong, .side-status small { display: block; }
.side-status strong { color: #dce5da; font-size: 10px; font-weight: 600; }
.side-status small { margin-top: 3px; color: #79867c; font-size: 9px; }
.status-dot, .mini-dot { display: inline-block; flex: none; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #8dc966; box-shadow: 0 0 0 3px #263c2b; }
.sidebar-bottom > .nav-item { min-height: 39px; font-size: 11px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 15px 4px 2px; border-top: 1px solid #29342d; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border: 1px solid #5d7157; border-radius: 50%; color: #e4f1d7; background: #374b38; font: 700 11px Manrope, sans-serif; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { color: #e3e9e2; font-size: 10px; font-weight: 600; }
.user-copy small { max-width: 136px; margin-top: 3px; color: #77837a; font-size: 8px; }
.logout-button { width: 28px; height: 28px; margin-left: auto; border: 0; border-radius: 7px; color: #98a69b; background: transparent; font-size: 17px; transform: rotate(45deg); }
.logout-button:hover { color: white; background: #28362d; }
.main-area { width: calc(100% - 252px); min-height: 100vh; margin-left: 252px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 4.5%; border-bottom: 1px solid #eaebe7; background: rgba(255,255,255,.7); }
.crumb { display: flex; align-items: center; gap: 10px; color: #9aa19b; font-size: 11px; }
.crumb b { color: #c7cbc5; font-weight: 400; }
.crumb strong { color: #475149; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.install-button { padding: 8px 12px; border: 1px solid #dfe7d9; border-radius: 7px; color: #39543b; background: #f5f9f1; font-size: 10px; font-weight: 700; }
.install-button[hidden] { display: none; }
.today-label { color: #808981; font-size: 10px; }
.avatar-small { width: 29px; height: 29px; color: #315333; background: #dcebd1; border-color: #c9dfb9; }
.content-area { max-width: 1410px; margin: 0 auto; padding: 38px 4.5% 22px; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 28px; }
.eyebrow { margin: 0; color: #8a938b; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.eyebrow-dot { display: inline-block; width: 5px; height: 5px; margin: 0 3px 1px; border-radius: 50%; background: #9bcf6e; }
h1, h2, h3, p { margin-top: 0; }
.welcome-row h1 { margin: 10px 0 4px; color: #1a241f; font: 700 29px Manrope, sans-serif; letter-spacing: -1.2px; }
.page-subtitle { margin: 0; color: #879089; font-size: 12px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 39px; padding: 0 16px; border: 1px solid #17221c; border-radius: 7px; color: #f6f8f2; background: #17221c; font-size: 11px; font-weight: 600; transition: transform .15s ease, background .15s ease; }
.primary-button:hover { background: #2a3b2d; transform: translateY(-1px); }
.primary-button .icon { width: 16px; height: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 39px; }
.metric-card { position: relative; min-height: 145px; padding: 18px 18px 15px; overflow: hidden; border: 1px solid #e6e9e3; border-radius: 9px; background: #fff; }
.metric-card.metric-dark { border-color: #17221c; color: #f5f8ef; background: #17221c; }
.metric-card.metric-outline { background: #f4f7f1; }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: #8d978f; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.metric-dark .metric-head { color: #aab9aa; }
.metric-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #b6df88; background: #304232; font-size: 15px; }
.metric-icon.pale { color: #638450; background: #eff5e9; }
.metric-cloud { width: 19px; height: 19px; color: #709552; }
.metric-card > strong { display: block; margin: 10px 0 0; font: 700 29px Manrope, sans-serif; letter-spacing: -1.1px; }
.metric-card > small { color: #89928b; font-size: 10px; }
.metric-dark > small { color: #a7b2a8; }
.metric-foot { position: absolute; right: 17px; bottom: 13px; left: 17px; display: flex; align-items: center; gap: 8px; color: #9aa29a; font-size: 9px; }
.metric-dark .metric-foot { color: #9faf9f; }
.metric-line { width: 33px; height: 2px; border-radius: 2px; background: var(--green); }
.mini-dot { width: 6px; height: 6px; margin-left: 0; box-shadow: none; }
.mini-dot.green { background: #80bd5f; }
.mini-dot.amber { background: #e1b669; }
.portfolio-section { padding: 0 0 27px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 6px 0 0; font: 700 17px Manrope, sans-serif; letter-spacing: -.4px; }
.text-button { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; border: 0; color: #5b7250; background: transparent; font-size: 10px; font-weight: 600; }
.text-button span { font-size: 15px; transition: transform .15s ease; }
.text-button:hover span { transform: translateX(3px); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 13px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(310px, 34%); height: 36px; padding: 0 10px; border: 1px solid #e4e8e1; border-radius: 7px; color: #929a93; background: #fff; }
.search-box .icon { width: 15px; height: 15px; }
.search-box input { width: 100%; border: 0; outline: 0; color: #39443c; background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #a0a8a0; }
.filter-group { display: flex; align-items: center; gap: 5px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 0 9px; border: 1px solid transparent; border-radius: 6px; color: #879088; background: transparent; font-size: 9px; white-space: nowrap; }
.filter-chip:hover { color: #364638; background: #eff3eb; }
.filter-chip.is-selected { border-color: #e0e9d9; color: #47643b; background: #edf4e7; font-weight: 600; }
.filter-chip b { color: #6b835b; font-size: 9px; }
.table-wrap { position: relative; min-height: 168px; overflow: hidden; border: 1px solid #e7eae5; border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #fafbf9; }
th { height: 37px; padding: 0 12px; border-bottom: 1px solid #edf0eb; color: #9aa19b; font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
td { height: 59px; padding: 7px 12px; border-bottom: 1px solid #f0f2ee; color: #778078; font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfb; }
.product-cell { display: flex; align-items: center; gap: 9px; min-width: 155px; }
.product-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #e2e9dc; border-radius: 8px; color: #527143; background: #f0f5eb; font: 700 11px Manrope, sans-serif; }
.product-cell strong, .product-cell small { display: block; }
.product-cell strong { max-width: 190px; overflow: hidden; color: #313c34; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-cell small { margin-top: 4px; color: #9ba29c; font-size: 8px; }
.type-label { color: #727d74; font-size: 9px; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #e5eee0; border-radius: 20px; color: #63834e; background: #f1f7ec; font-size: 8px; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: #81bc5d; }
.status-pill.development { border-color: #f0e8d4; color: #967438; background: #fbf6e9; }
.status-pill.development i { background: #d9ad53; }
.status-pill.planned { border-color: #e6e9ed; color: #718090; background: #f4f6f8; }
.status-pill.planned i { background: #9aa9b8; }
.status-pill.archived { border-color: #e8e5e4; color: #887e7a; background: #f6f4f3; }
.status-pill.archived i { background: #aaa19e; }
.firebase-label { display: inline-flex; align-items: center; gap: 5px; max-width: 180px; color: #758078; font-family: 'DM Sans', sans-serif; font-size: 8px; text-decoration: none; }
.firebase-label[href]:hover { color: #4f7742; text-decoration: underline; }
.firebase-label .icon { width: 12px; height: 12px; color: #8bae70; }
.firebase-label:not(:has(.icon)) { color: #a1a8a2; }
.firebase-cell { display: grid; gap: 3px; }
.access-progress { padding-left: 17px; color: #889486; font-size: 8px; }
.date-cell { color: #929a93; font-size: 8px; white-space: nowrap; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-link, .row-more { display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 6px; color: #8a958a; background: transparent; }
.row-link:hover, .row-more:hover { color: #50713f; background: #eef4e8; }
.row-link[aria-disabled="true"] { pointer-events: none; opacity: .35; }
.row-link .icon, .row-more .icon { width: 15px; height: 15px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 24px 15px 26px; text-align: center; }
.empty-state[hidden], .filtered-empty[hidden] { display: none; }
.empty-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 8px; border: 1px solid #e4ebdd; border-radius: 10px; color: #799563; background: #f4f8ef; font-size: 19px; }
.empty-state h3 { margin: 0 0 5px; color: #354138; font: 700 12px Manrope, sans-serif; }
.empty-state p { max-width: 360px; margin: 0 0 14px; color: #919a93; font-size: 10px; line-height: 1.6; }
.empty-state .primary-button { min-height: 33px; font-size: 9px; }
.filtered-empty { padding: 30px; color: #8b948d; text-align: center; font-size: 11px; }
.lower-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 25px 0; }
.note-card, .security-card { min-height: 166px; padding: 19px 20px; border-radius: 9px; }
.note-card { position: relative; overflow: hidden; color: #edf4e8; background: #25352a; }
.note-card:after { position: absolute; right: -38px; bottom: -91px; width: 220px; height: 220px; border: 1px solid rgba(209,235,188,.11); border-radius: 50%; content: ''; box-shadow: 0 0 0 19px rgba(209,235,188,.035), 0 0 0 43px rgba(209,235,188,.025); }
.note-spark { position: absolute; top: 18px; right: 20px; color: #acd786; font-size: 21px; }
.note-card .eyebrow { color: #a9b8a9; }
.note-card h3 { position: relative; z-index: 1; margin: 10px 0 5px; font: 700 15px Manrope, sans-serif; letter-spacing: -.4px; }
.note-card > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 440px; margin: 0 0 6px; color: #b4c0b5; font-size: 9px; line-height: 1.6; }
.note-card .text-button { position: relative; z-index: 1; color: #bfdf9e; font-size: 9px; }
.security-card { border: 1px solid #e5e9e2; background: #fff; }
.security-top { display: flex; align-items: center; gap: 8px; color: #929b93; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.security-top .icon { width: 17px; height: 17px; color: #779c5d; }
.security-card h3 { margin: 12px 0 4px; color: #2c372f; font: 700 13px Manrope, sans-serif; }
.security-card > p { margin: 0 0 15px; color: #929a93; font-size: 9px; }
.security-person { display: flex; align-items: center; gap: 8px; padding-top: 11px; border-top: 1px solid #eff1ed; }
.avatar-tiny { width: 26px; height: 26px; border-color: #d4e4c8; color: #52723f; background: #eef5e8; font-size: 9px; }
.security-person strong, .security-person small { display: block; }
.security-person strong { color: #455046; font-size: 9px; }
.security-person small { margin-top: 2px; color: #99a198; font-size: 8px; }
.verified { display: grid; place-items: center; width: 16px; height: 16px; margin-left: auto; border-radius: 50%; color: #5e8e45; background: #edf6e7; font-size: 10px; }
.app-footer { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid #e8ebe5; color: #a1a8a1; font-size: 8px; font-weight: 600; letter-spacing: .8px; }
.app-footer span:last-child { font-weight: 400; letter-spacing: 0; }
.app-footer b { margin-left: 5px; color: #77975e; }
.connection-guide { margin: 3px 0 25px; padding: 23px 25px; border: 1px solid #e3e9df; border-radius: 10px; background: #fff; }
.connection-guide h2 { margin: 7px 0 18px; color: #26352a; font: 700 17px Manrope, sans-serif; letter-spacing: -.4px; }
.connection-guide ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.connection-guide li { position: relative; min-height: 72px; padding-left: 35px; counter-increment: steps; }
.connection-guide li:before { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #4e713c; background: #edf5e7; content: counter(steps); font-size: 10px; font-weight: 700; }
.connection-guide li b, .connection-guide li span { display: block; }
.connection-guide li b { margin-bottom: 5px; color: #354238; font-size: 11px; }
.connection-guide li span { color: #858f86; font-size: 10px; line-height: 1.6; }
.guide-note { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #edf0eb; color: #728071; font-size: 10px; line-height: 1.6; }
.project-dialog { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 1px solid #e4e9e1; border-radius: 13px; color: #27322b; background: #fff; box-shadow: 0 25px 80px rgba(14,29,19,.25); }
.project-dialog::backdrop { background: rgba(14,23,17,.5); backdrop-filter: blur(3px); }
.project-dialog form { padding: 24px; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-top h2 { margin: 5px 0 0; font: 700 19px Manrope, sans-serif; letter-spacing: -.5px; }
.close-dialog { width: 29px; height: 29px; border: 1px solid #e9ece7; border-radius: 7px; color: #7f8981; background: #fafbf9; font-size: 20px; line-height: 1; }
.project-dialog label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; color: #616d63; font-size: 10px; font-weight: 600; }
.project-dialog label > small { color: #8a948b; font-size: 9px; font-weight: 400; line-height: 1.45; }
.project-dialog input, .project-dialog select, .project-dialog textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e2e8df; border-radius: 6px; outline: none; color: #354139; background: #fcfdfb; font-size: 10px; font-weight: 400; }
.project-dialog textarea { resize: vertical; }
.project-dialog input:focus, .project-dialog select:focus, .project-dialog textarea:focus { border-color: #92b87a; box-shadow: 0 0 0 3px #eef5e9; }
.project-dialog input::placeholder, .project-dialog textarea::placeholder { color: #a4aca5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0eb; }
.secondary-button { min-height: 38px; padding: 0 15px; border: 1px solid #e1e6df; border-radius: 7px; color: #647067; background: white; font-size: 10px; font-weight: 600; }
.secondary-button:hover { background: #f7f9f5; }
.danger-button { margin-right: auto; min-height: 38px; padding: 0 13px; border: 1px solid #f0d8d4; border-radius: 7px; color: #a55246; background: #fff8f7; font-size: 10px; font-weight: 600; }
.danger-button:hover { border-color: #eac4bd; background: #fff1ee; }
.danger-button[hidden] { display: none; }
.danger-button:disabled { opacity: .6; }
.form-error { min-height: 0; color: #ab4d42; font-size: 10px; }
.form-error:not(:empty) { padding: 9px; border-radius: 6px; background: #fff3f1; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 10; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #3a5140; border-radius: 8px; color: #eff5ec; background: #1c2b20; box-shadow: 0 8px 30px #101b1270; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* Sign-in screen */
.login-shell { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(330px, .82fr); min-height: 100vh; background: #f6f7f4; }
.login-card { display: flex; flex-direction: column; align-items: flex-start; width: min(440px, calc(100% - 48px)); margin: auto; padding: 40px 0 25px; }
.login-card .brand-lockup { color: #17211d; }
.login-card .brand-mark { color: #193020; border-color: #dfe7d9; background: white; }
.login-card .brand-lockup small { color: #879188; }
.login-art { position: relative; display: grid; place-items: center; width: 100%; height: 195px; margin: 31px 0 26px; overflow: hidden; border: 1px solid #e4eae0; border-radius: 13px; background: radial-gradient(ellipse at 51% 44%, #e8f2df, #f5f8f1 63%, #f8f9f6); }
.login-glow { position: absolute; width: 91px; height: 91px; border-radius: 50%; background: #d3eabf; filter: blur(23px); }
.orbit { position: absolute; width: 155px; height: 155px; border: 1px solid #cfdec5; border-radius: 50%; transform: scaleY(.55) rotate(-25deg); }
.orbit-two { width: 205px; height: 205px; border-color: #dce6d5; transform: scaleY(.44) rotate(28deg); }
.art-center { position: relative; z-index: 1; display: grid; place-items: center; width: 67px; height: 67px; border: 1px solid #d9e6d2; border-radius: 21px; color: #1a2c20; background: #fff; box-shadow: 0 8px 25px #496d3322; font: 800 34px Manrope, sans-serif; letter-spacing: -4px; }
.art-chip { position: absolute; z-index: 1; display: flex; gap: 8px; padding: 8px 10px; border: 1px solid #e2e9dd; border-radius: 6px; color: #7d8a7d; background: #ffffffde; font-size: 7px; font-weight: 700; letter-spacing: .7px; box-shadow: 0 4px 12px #263b1710; }
.art-chip b { color: #507340; }
.chip-one { top: 35px; left: 15%; }
.chip-two { right: 12%; bottom: 35px; }
.login-card > .eyebrow { margin-bottom: 10px; color: #769264; }
.login-card h1 { margin: 0 0 10px; color: #1d2921; font: 800 27px/1.18 Manrope, sans-serif; letter-spacing: -1.2px; }
.login-copy { max-width: 370px; margin: 0 0 18px; color: #818b82; font-size: 11px; line-height: 1.7; }
.google-button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; height: 44px; padding: 0 13px; border: 1px solid #dfe5dc; border-radius: 7px; color: #303b33; background: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 2px 4px #20321b08; }
.google-button:hover { border-color: #b6c9a9; background: #fcfdfb; }
.google-g { font: 700 15px Arial, sans-serif; color: #4285f4; }
.button-arrow { margin-left: auto; color: #82917d; font-size: 17px; }
.access-note { align-self: center; margin: 11px 0 0; color: #9aa39a; font-size: 9px; }
.error-note { align-self: center; margin: 9px 0 0; color: #ad4c41; font-size: 10px; text-align: center; }
.login-footer { width: 100%; margin-top: 25px; padding-top: 14px; border-top: 1px solid #e5e9e2; color: #a2aaa2; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.login-footer span { margin: 0 5px; color: #9bc777; }
.login-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; padding: 9% 9% 11%; overflow: hidden; color: #f1f5ed; background: #16221a; }
.login-side:before, .login-side:after { position: absolute; top: 20%; right: -29%; width: 700px; height: 700px; border: 1px solid #314437; border-radius: 50%; content: ''; }
.login-side:after { top: 23%; right: -25%; width: 590px; height: 590px; border-color: #29392e; }
.side-orb { position: absolute; top: 29%; right: 18%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle at 42% 39%, #416342, #253e2b 48%, #1b2e22 72%); box-shadow: 0 0 110px #a3d27917, inset -20px -28px 45px #0f191b; }
.side-orb:after { position: absolute; inset: 15px; border: 1px solid #b1d39426; border-radius: 50%; content: ''; }
.login-side > p, .login-side h2, .login-side > span { position: relative; z-index: 1; }
.login-side > p { margin: 0 0 13px; color: #a1c085; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.login-side h2 { margin: 0 0 13px; font: 700 clamp(25px, 3vw, 38px)/1.27 Manrope, sans-serif; letter-spacing: -1px; }
.login-side h2 em { color: #a8ce84; font-style: normal; }
.login-side > span { color: #a5b0a5; font-size: 10px; }

@media (min-width: 1600px) { .content-area { padding-top: 48px; } }
@media (max-width: 1100px) {
  .sidebar { width: 218px; }
  .main-area { width: calc(100% - 218px); margin-left: 218px; }
  .content-area { padding-right: 3%; padding-left: 3%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-group { gap: 0; }
  .filter-chip { padding: 0 6px; }
  th, td { padding-right: 8px; padding-left: 8px; }
  .firebase-label { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; inset: auto 0 0; flex-direction: row; align-items: center; justify-content: center; width: 100%; height: 65px; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #344238; }
  .sidebar .brand-lockup, .workspace-label, .sidebar-bottom .side-status, .sidebar-bottom > #settings-button, .sidebar-user { display: none; }
  .nav-list { display: flex; justify-content: center; gap: 9px; width: 100%; margin: 0; }
  .nav-item { justify-content: center; width: auto; min-width: 128px; min-height: 44px; padding: 0 15px; }
  .nav-item > span:not(.icon) { display: inline; }
  .main-area { width: 100%; margin-left: 0; padding-bottom: 69px; }
  .topbar { height: 54px; padding: 0 18px; }
  .content-area { padding: 28px 18px 20px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row h1 { font-size: 25px; }
  .welcome-row .primary-button { min-height: 35px; padding: 0 10px; font-size: 9px; }
  .metric-grid { gap: 8px; margin-bottom: 30px; }
  .metric-card { min-height: 131px; padding: 14px 12px; }
  .metric-foot { right: 12px; left: 12px; font-size: 8px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-group { max-width: 100%; overflow-x: auto; }
  .filter-chip { flex: none; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 740px; }
  .lower-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-card { width: min(440px, calc(100% - 40px)); padding-top: 26px; }
  .login-art { height: 155px; margin: 23px 0 22px; }
  .login-side { display: none; }
  .connection-guide { padding: 18px 16px; }
  .connection-guide ol { grid-template-columns: 1fr; gap: 13px; }
}
@media (max-width: 430px) {
  .content-area { padding-right: 13px; padding-left: 13px; }
  .metric-card > strong { font-size: 25px; }
  .metric-head { font-size: 7px; letter-spacing: .8px; }
  .metric-card { min-height: 126px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .app-footer { font-size: 7px; }
  .welcome-row { flex-direction: column; }
  .welcome-row .primary-button { align-self: stretch; }
  .today-label { display: none; }
}

.candle-sign-in {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
  padding: clamp(24px, 7vw, 115px);
  background: radial-gradient(ellipse at center, #fff 25%, #edf7f9 75%, #c4e4e8);
  color: #08294b;
}
.candle-sign-in::before, .candle-sign-in::after {
  position: absolute;
  z-index: -1;
  width: 110vw;
  height: 36vw;
  border-radius: 50%;
  content: '';
  background: linear-gradient(125deg, #0b9caf, #08294b 62%);
  box-shadow: 0 5px #fff, 0 22px #7dce00, 0 27px #fff, 0 46px #bce0e5;
  transform: rotate(-20deg);
}
.candle-sign-in::before { left: -54vw; top: -27vw; }
.candle-sign-in::after { right: -53vw; bottom: -28vw; transform: rotate(160deg); }
.candle-sign-in-brand { text-align: center; }
.candle-sign-in-brand img {
  width: min(100%, 470px);
  display: block;
  margin: auto;
  mix-blend-mode: multiply;
}
.candle-sign-in-brand p { letter-spacing: .27em; font-weight: 800; }
.candle-sign-in-card {
  padding: clamp(24px, 4vw, 64px);
  border-radius: 30px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 40px #12374c22;
}
.candle-sign-in-card h1 { margin: 0; font: 800 clamp(30px, 4vw, 52px)/1.12 Manrope, sans-serif; }
.candle-sign-in-card > p { margin: 14px 0 0; color: #526174; }
.candle-sign-in-card .google-button {
  justify-content: center;
  height: auto;
  min-height: 52px;
  margin-top: 28px;
  border: 2px solid #b8c6d2;
  border-radius: 15px;
  color: #08294b;
  font-size: 16px;
}
.candle-sign-in-card .google-button:focus-visible { outline: 3px solid #459600; outline-offset: 3px; }
.candle-sign-in-card .access-note { font-size: 12px; }
.candle-sign-in-card .error-note { color: #a52d29; font-size: 14px; }
@media (max-width: 700px) {
  .candle-sign-in { grid-template-columns: 1fr; align-content: center; gap: 24px; padding: 32px 20px; }
  .candle-sign-in-brand img { width: min(65vw, 230px); }
  .candle-sign-in-brand p { font-size: 11px; }
}
