:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #d8dee9;
  --blue: #1f5eff;
  --blue-dark: #1549d1;
  --orange: #ff9900;
  --surface: #ffffff;
  --background: #f4f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(31, 94, 255, .08), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, var(--background) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.login-card { width: min(100%, 430px); padding: 38px 40px 32px; background: var(--surface); border: 1px solid #e4e9f1; border-radius: 14px; box-shadow: 0 18px 50px rgba(23, 32, 51, .10); }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 14px 14px 14px 3px; color: white; background: var(--blue); font-size: 30px; font-weight: 800; }
.brand-mark.small { width: 38px; height: 38px; margin: 0; border-radius: 11px 11px 11px 3px; font-size: 23px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.subtitle { margin: 10px 0 28px; color: var(--muted); line-height: 1.5; }
label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 700; }
input { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; outline: none; font: inherit; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 94, 255, .12); }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
code { padding: 2px 4px; border-radius: 4px; background: #eef2f7; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); padding: 4px; color: var(--blue); background: transparent; border: 0; cursor: pointer; font-weight: 650; }
.remember-option { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.remember-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.submit-button { width: 100%; margin-top: 28px; padding: 13px 16px; color: white; background: var(--blue); border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 750; }
.submit-button:hover { background: var(--blue-dark); }
.submit-button:disabled { cursor: wait; opacity: .65; }
.feedback { margin-bottom: 18px; padding: 11px 13px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.feedback.error { color: #9c2c2c; background: #fff0f0; border: 1px solid #ffd1d1; }
.feedback.success { color: #17613b; background: #edfaf2; border: 1px solid #bee9ce; }
.security-note { margin: 24px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }

.app-view { width: min(100%, 1040px); min-height: min(720px, calc(100vh - 64px)); overflow: hidden; background: rgba(255, 255, 255, .88); border: 1px solid #e4e9f1; border-radius: 22px; box-shadow: 0 24px 70px rgba(23, 32, 51, .12); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 26px; background: rgba(255, 255, 255, .82); border-bottom: 1px solid #edf0f5; }
.app-brand, .account-area { display: flex; align-items: center; }
.app-brand { gap: 12px; }
.app-brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.app-brand span, .account-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.odoo-link { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; text-decoration: none; }
.odoo-link:hover { color: var(--blue); text-decoration: underline; }
.account-area { gap: 12px; }
.account-copy { text-align: right; }
.account-copy strong { display: block; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; color: #1641ae; background: linear-gradient(135deg, #dce8ff, #c4d5ff); border: 3px solid white; border-radius: 50%; box-shadow: 0 4px 12px rgba(31, 94, 255, .18); font-size: 12px; font-weight: 800; }
.logout-button { padding: 9px 13px; color: #59657a; background: white; border: 1px solid #dce2eb; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; }
.logout-button:hover { color: #b23b3b; border-color: #efbcbc; background: #fff8f8; }
.app-content { padding: clamp(30px, 6vw, 68px); }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 0 42px; }
.welcome-row h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.055em; }
.welcome-row .eyebrow { margin-bottom: 13px; }
.app-subtitle { margin: 13px 0 0; color: var(--muted); font-size: 15px; }
.wave { display: inline-block; transform: rotate(-8deg); font-size: .75em; }
.welcome-orb { display: grid; place-items: center; flex: 0 0 auto; width: 132px; height: 132px; border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%; background: linear-gradient(135deg, #dfeaff, #edf3ff 60%, #e8ddff); box-shadow: inset 18px 12px 30px rgba(255,255,255,.8), 0 18px 36px rgba(77, 103, 211, .12); }
.welcome-orb span { color: var(--blue); font-size: 66px; font-weight: 850; transform: rotate(-9deg); }
.empty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.empty-card { display: flex; gap: 16px; min-height: 170px; padding: 24px; background: rgba(248, 250, 253, .88); border: 1px solid #e9edf4; border-radius: 16px; }
.featured-card { background: linear-gradient(145deg, #f4f8ff, #fbfcff); }
.card-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; font-weight: 800; }
.blue-icon { color: #2457d3; background: #e1ebff; }
.violet-icon { color: #7250c8; background: #eee8ff; }
.empty-card h2 { margin: 1px 0 8px; font-size: 17px; letter-spacing: -.02em; }
.empty-card p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.coming-soon { display: inline-block; margin-top: 20px; color: #78849a; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.status-strip { display: flex; align-items: center; gap: 9px; margin-top: 24px; padding: 13px 15px; color: #607087; background: #f6faf7; border: 1px solid #dcefe2; border-radius: 10px; font-size: 12px; }
.status-dot { width: 8px; height: 8px; background: #35b76b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53, 183, 107, .12); }
.status-tenant { margin-left: auto; color: #25824b; font-weight: 750; }
.card-link { display: inline-block; margin-top: 18px; padding: 8px 12px; color: var(--blue); background: #eaf0ff; border: 0; border-radius: 7px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.card-link:hover { background: #dce7ff; }
.evolutes-view { width: min(100%, 1040px); min-height: min(720px, calc(100vh - 64px)); overflow: hidden; background: rgba(255,255,255,.9); border: 1px solid #e4e9f1; border-radius: 22px; box-shadow: 0 24px 70px rgba(23,32,51,.12); }
.evolutes-content { padding-top: clamp(30px, 5vw, 54px); }
.evolutes-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.evolutes-title-row h1 { font-size: clamp(32px, 5vw, 48px); }
.section-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #8a96a8; font-size: 11px; letter-spacing: .04em; }
.section-breadcrumb button { padding: 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 700; letter-spacing: inherit; }
.section-breadcrumb button:hover { text-decoration: underline; }
.section-breadcrumb strong { color: var(--blue); font-size: 11px; letter-spacing: .1em; }
.repo-badge { max-width: 280px; overflow: hidden; padding: 9px 12px; color: #425372; background: #f1f5fb; border: 1px solid #e2e8f2; border-radius: 9px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 30px 0 12px; color: var(--muted); font-size: 12px; }
.breadcrumb button { padding: 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.category-help { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.category-help span { padding: 8px 10px; color: #68758a; background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 7px; font-size: 11px; }
.category-help strong { color: #30415f; }
.readme-card { margin: 18px 0 22px; padding: 20px; background: linear-gradient(145deg, #f5f8ff, #fff); border: 1px solid #dfe8fb; border-radius: 14px; }
.readme-heading { display: flex; align-items: center; gap: 12px; }
.readme-heading .card-icon { width: 34px; height: 34px; font-size: 16px; }
.readme-heading h2 { margin: 0 0 3px; font-size: 16px; }
.readme-heading span:last-child { color: var(--muted); font-size: 11px; }
.readme-card pre { max-height: 330px; margin: 17px 0 0; padding: 15px; overflow: auto; color: #4c5a70; background: rgba(255,255,255,.8); border: 1px solid #e9edf5; border-radius: 9px; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.file-list { display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 57px; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid #e7ecf3; border-radius: 10px; text-align: left; text-decoration: none; }
.file-row:hover { background: #f7faff; border-color: #cbd9f7; }
.folder-row { cursor: pointer; font: inherit; }
.file-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #426bd2; background: #eaf0ff; border-radius: 8px; font-size: 15px; }
.file-row strong, .file-row small { display: block; }
.file-row strong { font-size: 13px; }
.file-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.row-arrow { margin-left: auto; color: #8b98aa; font-size: 19px; }
.loading-state { padding: 35px 15px; color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 480px) { .login-card { padding: 30px 24px 26px; } }
@media (max-width: 700px) { .app-view, .evolutes-view { min-height: calc(100vh - 36px); border-radius: 16px; } .app-header { align-items: flex-start; padding: 16px; } .account-copy { display: none; } .logout-button { padding: 8px 10px; } .app-content { padding: 34px 22px; } .welcome-row { align-items: flex-start; padding-bottom: 30px; } .welcome-orb { width: 82px; height: 82px; } .welcome-orb span { font-size: 42px; } .empty-grid { grid-template-columns: 1fr; } .evolutes-title-row { display: block; } .repo-badge { display: inline-block; margin-top: 18px; } }
