:root {
    --app-bg: #f5f7fb;
    --app-ink: #172033;
    --app-muted: #718096;
    --app-border: #e8edf4;
    --app-blue: #2563eb;
    --app-navy: #172554;
}

* { box-sizing: border-box; }
body { background: var(--app-bg); color: var(--app-ink); font-family: Inter, system-ui, -apple-system, sans-serif; font-size: .92rem; }
a { text-decoration: none; }
.app-navbar { background: #fff; min-height: 70px; border-bottom: 1px solid var(--app-border); position: sticky; top: 0; z-index: 1030; }
.navbar-brand { color: var(--app-ink); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.navbar-brand:hover { color: var(--app-blue); }
.brand-mark { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); border-radius: 10px; font-size: .95rem; }
.brand-muted { color: #64748b; font-weight: 500; }
.nav-link { color: #64748b; font-weight: 600; border-radius: 8px; padding: .55rem .8rem !important; }
.nav-link:hover, .nav-link.active { color: var(--app-blue); background: #eff6ff; }
.nav-divider { width: 1px; height: 24px; background: var(--app-border); margin: 0 .5rem; }
.app-shell { max-width: 1680px; margin: 0 auto; padding-top: 28px; }
.app-alert { margin: 0 1rem 1rem; border: 0; box-shadow: 0 5px 18px rgba(15, 23, 42, .06); }
.eyebrow { color: var(--app-blue); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.page-title { font-size: clamp(1.55rem, 2.3vw, 2.25rem); font-weight: 800; letter-spacing: -.04em; }
.btn { border-radius: 9px; font-weight: 600; }
.btn-primary { background: var(--app-blue); border-color: var(--app-blue); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.calendar-card { overflow: hidden; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 22px; border-bottom: 1px solid var(--app-border); background: #fff; }
.calendar-month { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-head { background: #fbfcfe; border-bottom: 1px solid var(--app-border); }
.calendar-weekday { padding: 11px 10px; color: #64748b; font-size: .72rem; font-weight: 800; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.calendar-weekday.weekend { color: #ef6b6b; }
.calendar-body { background: #fff; }
.calendar-day { min-height: 140px; border-right: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); padding: 9px; position: relative; transition: background .15s ease; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #f8fbff; }
.calendar-day.is-outside { background: #fbfcfe; color: #a0aec0; }
.calendar-day.is-outside .day-agendas { opacity: .72; }
.day-number { display: flex; justify-content: flex-end; margin-bottom: 7px; }
.day-number span { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .78rem; font-weight: 700; color: #5b687c; }
.is-today .day-number span { background: var(--app-blue); color: #fff; box-shadow: 0 3px 8px rgba(37, 99, 235, .26); }
.day-agendas { display: flex; flex-direction: column; gap: 4px; }
.agenda-chip { min-width: 0; display: flex; align-items: center; gap: 5px; padding: 4px 5px; border-radius: 5px; color: #334155; background: color-mix(in srgb, var(--agenda-color) 10%, white); border-left: 3px solid var(--agenda-color); font-size: .69rem; line-height: 1.25; }
.agenda-chip:hover { color: var(--agenda-color); background: color-mix(in srgb, var(--agenda-color) 15%, white); }
.agenda-chip.is-completed { opacity: .58; text-decoration: line-through; }
.agenda-chip.is-external { border-left-style: dashed; }
.agenda-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--agenda-color); }
.agenda-dot i { font-size: .48rem; }
.agenda-time { color: #64748b; font-size: .64rem; white-space: nowrap; }
.agenda-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-agenda { color: #64748b; font-size: .68rem; font-weight: 700; padding: 2px 4px; }
.day-add { align-self: flex-end; opacity: 0; color: var(--app-blue); font-size: .72rem; padding: 2px 4px; }
.calendar-day:hover .day-add { opacity: 1; }
.side-stack { display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 18px; }
.side-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 15px; }
.side-title { font-size: 1rem; font-weight: 800; margin: 3px 0 0; }
.icon-circle { width: 38px; height: 38px; display: inline-flex; flex: 0 0 38px; align-items: center; justify-content: center; border-radius: 12px; }
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-orange { background: #fff7ed; color: #ea580c; }
.upcoming-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--app-border); color: var(--app-ink); }
.upcoming-item:hover .upcoming-copy strong { color: var(--app-blue); }
.upcoming-date { width: 39px; height: 42px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: #eff6ff; border-radius: 8px; color: var(--app-blue); line-height: 1.05; }
.upcoming-date strong { font-size: .95rem; }.upcoming-date small { font-size: .55rem; text-transform: uppercase; font-weight: 700; }
.upcoming-date-external { color: #15803d; background: #f0fdf4; }.upcoming-item-external .upcoming-copy strong { color: #166534; }
.upcoming-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }.upcoming-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .77rem; }.upcoming-copy small { color: #94a3b8; font-size: .68rem; }
.goal-item { padding: 12px 0; border-top: 1px solid var(--app-border); }.goal-mark { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; border-radius: 8px; color: var(--goal-color); background: color-mix(in srgb, var(--goal-color) 12%, white); font-size: .75rem; }.goal-title { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 175px; }.goal-percent { color: #64748b; font-size: .7rem; font-weight: 700; }.goal-actions { opacity: 0; transition: opacity .15s; }.goal-item:hover .goal-actions { opacity: 1; }.goal-actions .btn-link { color: #64748b; }.goal-actions .btn-link:hover { color: var(--app-blue); }.progress { height: 6px; background: #eef2f7; }.progress-bar { border-radius: 6px; }
.empty-state { text-align: center; color: #94a3b8; }.empty-state i { font-size: 1.6rem; margin-bottom: 8px; }.empty-state p { font-size: .78rem; margin: 0; }
.google-calendar-controls { font-size: .74rem; }.google-connected { display: inline-flex; align-items: center; color: #15803d; font-weight: 700; padding: .42rem .65rem; background: #f0fdf4; border-radius: 8px; }.google-not-configured { color: #94a3b8; font-size: .7rem; }
.form-card { overflow: hidden; }.form-card-header { display: flex; gap: 12px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--app-border); }.form-section-title { font-size: 1rem; font-weight: 800; margin: 0 0 3px; }.form-card-header p { font-size: .76rem; }.form-card-body { padding: 22px; }.form-label { color: #475569; font-size: .76rem; font-weight: 700; margin-bottom: 6px; }.form-control, .form-select { border-color: #dfe6ef; border-radius: 8px; font-size: .86rem; padding: .62rem .75rem; }.form-control:focus, .form-select:focus { border-color: #93c5fd; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .1); }.form-control-lg { padding: .78rem .85rem; }.form-control-color { width: 44px; height: 40px; padding: 4px; }.modal-content { border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .18); }.modal-header, .modal-footer { border-color: var(--app-border); }.offcanvas { max-width: 340px; }
@media (max-width: 767.98px) { .app-shell { padding-top: 20px; }.calendar-toolbar { flex-wrap: wrap; padding: 15px; }.calendar-month { order: -1; width: 100%; }.calendar-weekday { padding: 8px 3px; font-size: .62rem; }.calendar-day { min-height: 95px; padding: 5px; }.day-number { margin-bottom: 3px; }.day-number span { width: 23px; height: 23px; font-size: .7rem; }.agenda-chip { padding: 3px; font-size: .6rem; }.agenda-time { display: none; }.day-add { opacity: 1; }.calendar-card { margin-left: -3px; margin-right: -3px; }.form-card-body, .form-card-header { padding: 16px; } }
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top left, #e9f2ff, transparent 38%), var(--app-bg); }
.auth-shell { width: min(100% - 32px, 1500px); }
.auth-card { padding: 36px; border-radius: 16px; }
.auth-brand-mark { display: inline-flex; }
.auth-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; }
.auth-login-layout { width: min(1500px, 100%); min-height: min(760px, calc(100vh - 48px)); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr); overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(30, 64, 175, .13); }
.auth-hero-panel { position: relative; display: flex; min-height: 680px; overflow: hidden; padding: 64px 7% 34px; color: #123b83; background: linear-gradient(145deg, #fafdff 0%, #e6f4ff 55%, #c7e5fa 100%); }
.auth-hero-copy { position: relative; z-index: 3; max-width: 530px; }.auth-hero-brand { display: flex; align-items: center; gap: 10px; color: #1d4ed8; font-size: .98rem; font-weight: 700; }.auth-hero-brand strong { color: #123b83; }.auth-hero-logo { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); border-radius: 12px; box-shadow: 0 8px 18px rgba(37, 99, 235, .24); }
.auth-hero-copy h1 { margin: 58px 0 18px; color: #0f3d91; font-size: clamp(2.6rem, 4vw, 4.5rem); font-weight: 800; letter-spacing: -.06em; line-height: .98; }.auth-hero-copy h1 span { color: #2563eb; }.auth-hero-copy p { max-width: 500px; color: #355883; font-size: 1.08rem; line-height: 1.7; }
.auth-hero-glow { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .7); filter: blur(2px); }.auth-hero-glow-one { width: 280px; height: 280px; top: -110px; right: 18%; }.auth-hero-glow-two { width: 190px; height: 190px; top: 110px; left: 38%; opacity: .55; }
.auth-illustration { position: absolute; z-index: 1; right: -2%; bottom: 30px; width: 94%; height: 49%; min-height: 300px; overflow: hidden; border-radius: 48% 0 0 0; background: linear-gradient(180deg, rgba(187, 228, 251, .15), rgba(103, 185, 237, .38)); }.auth-sun { position: absolute; right: 25%; top: 5%; width: 76px; height: 76px; border-radius: 50%; background: #fff2b2; opacity: .7; }.auth-mountain { position: absolute; bottom: -25%; width: 75%; height: 95%; transform: rotate(28deg); border-radius: 45px; background: rgba(142, 207, 240, .55); }.auth-mountain-back { left: -12%; }.auth-mountain-front { right: -14%; bottom: -35%; background: rgba(102, 181, 230, .4); }
.auth-office { position: absolute; right: 24%; bottom: 18%; width: 210px; height: 145px; filter: drop-shadow(0 16px 10px rgba(41, 111, 174, .18)); }.auth-office-roof { position: absolute; top: 0; left: 15px; width: 180px; height: 34px; transform: skewX(-28deg); background: #eaf8ff; border: 7px solid #6eb9ed; border-bottom-width: 4px; }.auth-office-body { position: absolute; bottom: 0; left: 0; width: 190px; height: 112px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 13px 13px; background: #d9f1ff; border: 5px solid #69afe4; }.auth-office-body span { background: #4e9cdb; border: 4px solid #effaff; }.auth-office-door { position: absolute; bottom: 0; right: 13px; width: 42px; height: 65px; display: flex; align-items: center; justify-content: center; color: #fff; background: #2563eb; border: 5px solid #effaff; font-size: 1.1rem; }
.auth-dashboard { position: absolute; left: 7%; bottom: 11%; width: 220px; height: 135px; padding: 13px; transform: rotate(-8deg); color: #fff; background: #1769e8; border: 9px solid #e8f7ff; border-radius: 10px; box-shadow: 0 18px 16px rgba(24, 91, 168, .25); }.auth-dashboard-top { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.35); }.auth-dashboard-top span { width: 28px; height: 4px; border-radius: 8px; background: rgba(255,255,255,.75); }.auth-dashboard-top i { margin-right: auto; }.auth-dashboard-body { display: flex; justify-content: space-around; align-items: center; height: 85px; font-size: 1.8rem; }.auth-dashboard-body i:nth-child(2) { color: #8ce3ff; }.auth-dashboard-body i:nth-child(3) { color: #ffe27a; }
.auth-person { position: absolute; z-index: 2; bottom: 11%; display: flex; align-items: center; justify-content: center; width: 30px; height: 46px; color: #fff; background: #123b83; border-radius: 50% 50% 35% 35%; font-size: .72rem; box-shadow: 0 7px 0 #f5a56f; }.auth-person-one { left: 34%; }.auth-person-two { right: 18%; bottom: 7%; background: #16a34a; }.auth-tree { position: absolute; z-index: 2; bottom: 6%; width: 28px; height: 78px; border-radius: 50% 50% 10% 10%; background: #16a34a; box-shadow: inset 7px 0 #22c55e, 0 58px 0 -11px #986b43; }.auth-tree-one { left: 2%; }.auth-tree-two { left: 48%; bottom: 3%; transform: scale(1.15); }.auth-tree-three { right: 3%; bottom: 12%; transform: scale(.86); }.auth-hero-footer { position: absolute; z-index: 3; bottom: 28px; left: 7%; right: 7%; display: flex; flex-wrap: wrap; gap: 22px; color: #46729c; font-size: .75rem; font-weight: 600; }
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 44px 8%; background: #fff; }.auth-form-panel .auth-card { width: min(100%, 500px); padding: 26px 0; box-shadow: none; }.auth-form-panel .auth-brand-mark { width: 54px; height: 54px; border-radius: 16px; font-size: 1.25rem; }.auth-form-panel .auth-title { color: #123b83; font-size: clamp(1.65rem, 2.2vw, 2.2rem); }.auth-input-wrap { position: relative; }.auth-input-wrap > i { position: absolute; z-index: 2; top: 50%; left: 17px; color: #527098; transform: translateY(-50%); }.auth-input-wrap .form-control { height: 58px; padding-left: 48px; padding-right: 48px; border: 1px solid #cbdcf1; border-radius: 10px; color: #193b69; font-size: .92rem; }.auth-input-wrap .form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12); }.auth-password-toggle { position: absolute; z-index: 2; top: 50%; right: 15px; padding: 4px; transform: translateY(-50%); color: #527098; background: transparent; border: 0; }.auth-help-link { color: #2563eb; font-size: .75rem; font-weight: 600; }.auth-submit { display: flex; align-items: center; justify-content: center; gap: 16px; border-radius: 10px; background: #2563eb; border-color: #2563eb; font-size: 1rem; font-weight: 700; }.auth-submit:hover { background: #1d4ed8; border-color: #1d4ed8; }.auth-submit i { font-size: .9rem; transition: transform .15s; }.auth-submit:hover i { transform: translateX(4px); }.auth-card-note { margin-top: 28px; color: #7890ad; font-size: .72rem; text-align: center; }
@media (max-width: 991.98px) { .auth-login-layout { grid-template-columns: 1fr; }.auth-hero-panel { min-height: 410px; padding: 38px 8%; }.auth-hero-copy h1 { margin-top: 38px; font-size: clamp(2.25rem, 7vw, 3.6rem); }.auth-illustration { bottom: -54px; height: 48%; opacity: .72; }.auth-hero-footer { bottom: 18px; }.auth-form-panel { padding: 36px 8%; } }
@media (max-width: 575.98px) { .auth-login-layout { width: 100%; min-height: 100vh; border-radius: 0; }.auth-hero-panel { min-height: 360px; padding: 30px 24px; }.auth-hero-copy p { font-size: .88rem; line-height: 1.5; }.auth-hero-copy h1 { margin-top: 30px; font-size: 2.5rem; }.auth-office { right: 13%; transform: scale(.7); transform-origin: bottom right; }.auth-dashboard { left: -2%; transform: scale(.62) rotate(-8deg); transform-origin: bottom left; }.auth-hero-footer { left: 24px; right: 24px; bottom: 12px; gap: 10px; font-size: .63rem; }.auth-form-panel { padding: 26px 24px; }.auth-form-panel .auth-card { padding: 8px 0; } }

/* Legal links on the public login page. */
.auth-legal-links { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: .72rem; }
.auth-legal-links a { color: #2563eb; text-decoration: none; }
.auth-legal-links a:hover { text-decoration: underline; }
.auth-page.legal-public-page { height: auto; min-height: 100vh; align-items: flex-start; overflow-y: auto; overflow-x: hidden; }
.auth-page.legal-public-page .auth-shell { height: auto; max-height: none; }

/* Login viewport sizing: keep the desktop layout inside the viewport and let
   smaller screens grow vertically when the form needs more room. */
.auth-page { min-height: 100dvh; height: 100dvh; padding: 12px 16px; overflow: hidden; }
.auth-page .auth-shell { width: 100%; height: 100%; max-height: 100%; display: flex; flex-direction: column; }
.auth-page .auth-shell > .alert { flex: 0 0 auto; margin-bottom: 10px; }
.auth-page .auth-login-layout { width: 100%; height: 100%; min-height: 0; max-height: 100%; flex: 1 1 auto; }
.auth-page .auth-hero-panel { min-height: 0; }

@media (max-width: 991.98px) {
    .auth-page { height: auto; min-height: 100dvh; overflow-y: auto; }
    .auth-page .auth-shell { height: auto; max-height: none; }
    .auth-page .auth-login-layout { height: auto; max-height: none; flex: 0 0 auto; }
    .auth-page .auth-hero-panel { min-height: clamp(300px, 45dvh, 410px); }
}

@media (max-width: 575.98px) {
    .auth-page { padding: 0; }
    .auth-page .auth-login-layout { min-height: 100dvh; border-radius: 0; }
    .auth-page .auth-hero-panel { min-height: 320px; }
}

/* Spreadsheet input view */
.sheet-card { overflow: hidden; }
.sheet-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 18px; background: #fff; border-bottom: 1px solid #dbe3ec; }
.sheet-actionbar-label { color: #475569; font-size: .75rem; font-weight: 700; }
.sheet-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 15px 18px; background: #fff; border-bottom: 1px solid var(--app-border); }
.sheet-status { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: .75rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #22c55e; }.sheet-status.is-dirty .status-dot { background: #f59e0b; }.sheet-status.is-dirty { color: #b45309; }
.sheet-filter-search { width: 205px; }.sheet-filter-date { width: 138px; }.sheet-filter-select { width: 140px; }.sheet-toolbar .input-group-text, .sheet-toolbar .form-control, .sheet-toolbar .form-select { border-color: #dfe6ef; }
.sheet-hint { padding: 10px 18px; background: #f8fbff; border-bottom: 1px solid #e7eef8; color: #64748b; font-size: .74rem; }
.spreadsheet-wrap { width: 100%; overflow: auto; max-height: calc(100vh - 280px); min-height: 430px; }
.spreadsheet-table { min-width: 2050px; border-collapse: separate; border-spacing: 0; font-size: .76rem; }
.spreadsheet-table th { position: sticky; top: 0; z-index: 3; height: 43px; padding: 8px 9px; color: #334155; background: #f1f5f9; border-right: 1px solid #dbe3ec; border-bottom: 2px solid #cbd5e1; white-space: nowrap; font-size: .71rem; font-weight: 800; vertical-align: middle; }
.spreadsheet-table th.sheet-filterable { padding-right: 28px; }
.sheet-filterable > span { display: inline-block; }
.column-filter { position: absolute; top: 50%; right: 6px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 4px; color: #64748b; background: transparent; font-size: .62rem; }
.column-filter:hover, .column-filter.is-active { color: #2563eb; background: #dbeafe; }
.column-filter-menu { position: fixed; z-index: 2000; width: min(340px, calc(100vw - 16px)); max-height: min(480px, calc(100vh - 16px)); display: flex; flex-direction: column; overflow: hidden; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(15, 23, 42, .2); color: #334155; font-size: .76rem; font-weight: 500; }
.column-filter-search { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 7px; color: #64748b; }
.column-filter-search:focus-within { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); }
.column-filter-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #1e293b; font: inherit; }
.column-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 3px 8px; color: #475569; border-bottom: 1px solid #e2e8f0; }
.column-filter-summary label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.column-filter-summary span { color: #94a3b8; font-size: .68rem; white-space: nowrap; }
.column-filter-options { overflow-y: auto; min-height: 40px; max-height: 285px; padding: 4px 0; }
.column-filter-option { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 5px; cursor: pointer; }
.column-filter-option:hover { background: #f1f5f9; }
.column-filter-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.column-filter-empty { padding: 14px 4px; color: #94a3b8; text-align: center; }
.column-filter-footer { display: flex; justify-content: flex-end; gap: 5px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.column-filter-footer .btn-link { margin-right: auto; color: #64748b; text-decoration: none; }
.column-filter-footer .btn-link:hover { color: #2563eb; }
.spreadsheet-table td { height: 54px; padding: 3px; background: #fff; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.spreadsheet-table tbody tr:hover td { background: #f8fbff; }.spreadsheet-table tbody tr.is-completed td { background: #f8fafc; }.spreadsheet-table tbody tr.is-completed .sheet-input { color: #94a3b8; text-decoration: line-through; }.spreadsheet-table tbody tr.is-focused td { background: #fff7ed; box-shadow: inset 0 2px #f59e0b, inset 0 -2px #f59e0b; }.spreadsheet-table tbody tr.is-dirty td { background: #fffbeb; }
.row-number-head, .row-number { width: 42px; min-width: 42px; text-align: center; color: #94a3b8 !important; background: #f8fafc !important; position: sticky; left: 0; z-index: 4; }.row-number-head { z-index: 6; }.row-number { font-size: .7rem; }
.sheet-cell-control { position: relative; display: flex; align-items: center; }.sheet-input { width: 100%; height: 47px; padding: 6px 27px 6px 7px; color: #1e293b; background: transparent; border: 1px solid transparent; border-radius: 3px; outline: none; font: inherit; }.sheet-input:hover { border-color: #cbd5e1; background: #fff; }.sheet-input:focus { background: #fff; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }.sheet-input[type="number"] { min-width: 68px; text-align: center; }.sheet-input[type="date"] { min-width: 136px; }.sheet-check { width: 17px; height: 17px; cursor: pointer; }.sheet-actions { width: 88px; min-width: 88px; text-align: center; white-space: nowrap; }.sheet-actions .btn { width: 31px; height: 31px; padding: 0; border-radius: 5px; }.agenda-row.is-new td { background: #fcfdff; }.agenda-row.is-new .sheet-input { border: 1px dashed #cbd5e1; }.agenda-row.is-new .row-number { font-weight: 700; color: #2563eb !important; }
.copy-cell { position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%); opacity: 0; border: 0; border-radius: 4px; color: #64748b; background: #e8eef7; font-size: .6rem; transition: opacity .12s, color .12s, background .12s; z-index: 2; }.sheet-cell-control:hover .copy-cell, .sheet-cell-control:focus-within .copy-cell, .sheet-check-control:hover .copy-cell { opacity: 1; }.copy-cell:hover { color: #fff; background: #2563eb; }.sheet-check-control { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 47px; }.sheet-check-control .copy-cell { right: -17px; }.sheet-check-control:hover .copy-cell { opacity: 1; }
.sheet-link-cell { display: flex; align-items: center; gap: 2px; }.sheet-link-cell .sheet-input { min-width: 175px; }.sheet-link { color: #2563eb; padding: 5px; }.sheet-link:hover { color: #1d4ed8; }
.col-city { min-width: 185px; }.col-renstra { min-width: 205px; }.col-title { min-width: 190px; }.col-objective { min-width: 185px; }.col-priority { min-width: 78px; }.col-action { min-width: 220px; }.col-date { min-width: 145px; }.col-time { min-width: 125px; }.col-description { min-width: 260px; }.col-location { min-width: 180px; }.col-google-calendar { min-width: 190px; }.col-target { min-width: 190px; }.col-role { min-width: 130px; }.col-check { min-width: 58px; text-align: center; }.col-evidence { min-width: 215px; }.col-obstacle { min-width: 180px; }.col-notes { min-width: 180px; }.sheet-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 11px 18px; color: #94a3b8; font-size: .7rem; background: #fbfcfe; }.sheet-footer .btn { margin-left: auto; }
@media (max-width: 767.98px) { .sheet-actionbar { align-items: flex-start; flex-direction: column; padding: 12px; }.sheet-toolbar { padding: 12px; }.sheet-hint, .sheet-footer { padding: 10px 12px; }.sheet-footer { align-items: flex-start; flex-direction: column; gap: 4px; }.sheet-footer .btn { margin-left: 0; }.sheet-filter-search { width: 160px; }.sheet-filter-date { width: 130px; } }
.sheet-add-row td { height: 58px; padding: 10px 12px; background: #fff; border-bottom: 0; text-align: right; }.sheet-add-row .btn { white-space: nowrap; }
@media (max-width: 767.98px) { .sheet-add-row td { text-align: left; } }

/* Calendar source list */
.calendar-sources-card { overflow: hidden; }
.calendar-sources-header { padding-bottom: 13px; }
.calendar-sources-header .btn-icon { width: 28px; height: 28px; color: #64748b; font-size: .7rem; }
.calendar-sources-header .btn-icon[aria-expanded="false"] i { transform: rotate(180deg); }
.calendar-source-group { padding: 0 18px 11px; }
.calendar-source-group-other { padding-top: 8px; border-top: 1px solid var(--app-border); }
.calendar-source-group-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #64748b; font-size: .7rem; font-weight: 800; }
.calendar-source-group-title .btn-link { color: #64748b; font-size: .9rem; }
.calendar-source-group-title .btn-link:hover { color: var(--app-blue); }
.calendar-source-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 0; color: #334155; font-size: .76rem; cursor: pointer; }
.calendar-source-item .form-check-input { margin: 0; width: 16px; height: 16px; border-color: #94a3b8; cursor: pointer; }
.calendar-source-item .form-check-input:checked { background-color: var(--source-color, #2563eb); border-color: var(--source-color, #2563eb); }
.calendar-source-swatch { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 3px; background: var(--source-color, #2563eb); }
.calendar-source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-source-empty { width: 100%; padding: 6px 0; color: #64748b; background: transparent; border: 0; font-size: .74rem; text-align: left; }
.calendar-source-empty:hover { color: var(--app-blue); }
.calendar-source-action { display: flex; align-items: center; gap: 11px; padding: 12px 0; color: #334155; border-bottom: 1px solid var(--app-border); }
.calendar-source-action:last-child { border-bottom: 0; }
.calendar-source-action > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.calendar-source-action strong { font-size: .8rem; }
.calendar-source-action small { overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.calendar-source-action > i { color: #64748b; font-size: .72rem; }
.calendar-source-action:hover { color: var(--app-blue); }
.calendar-source-action.is-connected, .calendar-source-action.is-disabled { cursor: default; }
.calendar-source-action.is-disabled { color: #64748b; }
.calendar-filterable.is-calendar-hidden { display: none !important; }

/* Floating login card layout */
@media (min-width: 992px) {
    .auth-page .auth-login-layout {
        position: relative;
        display: block;
        overflow: visible;
        background: linear-gradient(145deg, #fafdff 0%, #e6f4ff 55%, #c7e5fa 100%);
    }
    .auth-page .auth-hero-panel {
        width: 63%;
        height: 100%;
        padding: clamp(34px, 5vw, 68px) 7% 34px;
        background: transparent;
        border-radius: 28px;
    }
    .auth-page .auth-form-panel {
        position: absolute;
        z-index: 5;
        top: 50%;
        right: 3%;
        width: 45%;
        height: calc(100% - 40px);
        max-height: calc(100% - 40px);
        padding: clamp(24px, 3.5vw, 48px) clamp(24px, 4vw, 58px);
        transform: translateY(-50%);
        border-radius: 26px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 22px 55px rgba(30, 64, 175, .18), 0 3px 12px rgba(15, 23, 42, .06);
    }
    .auth-page .auth-form-panel .auth-card { width: 100%; padding: 0; }
}

@media (max-height: 760px) and (min-width: 992px) {
    .auth-page .auth-form-panel { padding-top: 20px; padding-bottom: 20px; }
    .auth-page .auth-form-panel .mb-3 { margin-bottom: .7rem !important; }
    .auth-page .auth-form-panel .mb-4 { margin-bottom: .85rem !important; }
    .auth-page .auth-input-wrap .form-control { height: 52px; }
    .auth-page .auth-card-note { margin-top: 16px; }
}

@media (max-width: 991.98px) {
    .auth-page .auth-login-layout {
        display: block;
        overflow: visible;
        min-height: 0;
        border-radius: 22px;
        background: linear-gradient(145deg, #fafdff 0%, #e6f4ff 55%, #c7e5fa 100%);
    }
    .auth-page .auth-hero-panel {
        width: 100%;
        height: auto;
        min-height: clamp(300px, 45dvh, 410px);
        border-radius: 22px 22px 0 0;
        background: transparent;
    }
    .auth-page .auth-form-panel {
        position: relative;
        z-index: 5;
        width: calc(100% - 32px);
        height: auto;
        max-height: none;
        margin: -56px 16px 24px;
        padding: 28px 8%;
        transform: none;
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 40px rgba(30, 64, 175, .16);
    }
    .auth-page .auth-form-panel .auth-card { width: 100%; padding: 0; }
}

@media (max-width: 575.98px) {
    .auth-page .auth-login-layout { border-radius: 0; }
    .auth-page .auth-hero-panel { min-height: 330px; border-radius: 0; padding: 30px 24px 24px; }
    .auth-page .auth-form-panel { width: calc(100% - 24px); margin: -44px 12px 16px; padding: 26px 20px; border-radius: 18px; }
    .auth-page .auth-form-panel .auth-title { font-size: 1.55rem; }
}
