:root {
  color-scheme: light;
  --ink: #1c3435;
  --pine: #0c4d4d;
  --petrol-deep: #093d40;
  --ivory: #f7f4ed;
  --paper: #fffefa;
  --white: #fff;
  --muted: #556965;
  --quiet: #526461;
  --line: #d8ded7;
  --edge: #cbd7d1;
  --sage: #e1eeea;
  --tint: #edf3ef;
  --positive: #245a47;
  --attention: #764816;
  --attention-bg: #fcf0d8;
  --radius: 14px;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 3.6vw, 62px);
  font-family: var(--ui);
  color: var(--ink);
  background: var(--ivory);
  accent-color: var(--pine);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
input, textarea, select { color: var(--ink); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #956024; outline-offset: 2px; }
::selection { background: #c4ded4; color: #143d3a; }
.octoLogo { display: block; height: auto; }
.octoReverse { filter: brightness(0) invert(96%); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-160%); padding: 12px; background: var(--paper); color: var(--pine); border-radius: 6px; }
.skip:focus { transform: none; }
.app { grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "rail top" "rail content"; background: var(--ivory); }
aside { grid-area: rail; padding: 24px 14px 18px; background: var(--petrol-deep); color: #f7f4ed; scrollbar-width: thin; scrollbar-color: #47716f var(--petrol-deep); }
.brand { display: block; margin: 0 6px 16px; padding: 3px 6px 21px; border-bottom: 1px solid #416768; }
.brand .octoLogo { width: 122px; }
.navGroup { break-inside: avoid; }
.group { margin: 18px 12px 6px; color: #b7d0ca; font-size: .66rem; letter-spacing: .13em; }
nav button { color: #ecf4ef; min-height: 42px; line-height: 1.25; }
nav button:hover, nav button.active:hover { background: #285c5d; }
nav button.active { color: #fff; background: #256160; box-shadow: inset 3px 0 #c2ded2; }
.logout { border-top: 1px solid #416768; padding: 14px 2px 0; margin-top: 22px; }
.logout button { color: #f4f5ef; background: transparent; border: 1px solid #638382; min-height: 40px; }
.bar { grid-area: top; min-width: 0; height: auto; min-height: 66px; padding: 10px var(--gutter); gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb strong { font-weight: 650; color: var(--pine); }
.crumbSep { color: #718380; }
.mobileBrand { display: none; }
.avatar { color: #31514b; background: var(--tint); padding: 6px 11px; font-size: .82rem; overflow-wrap: anywhere; text-align: end; }
main { grid-area: content; padding: 0 var(--gutter) 52px; }
.heading { gap: 16px; margin: 32px 0 22px; }
h1 { color: #143f40; font: 640 clamp(1.85rem, 3.2vw, 2.7rem)/1.11 var(--ui); letter-spacing: -.047em; text-wrap: balance; }
h2, dialog h2 { color: #21433f; }
.sub { line-height: 1.45; }
.card, .metric, .homePanel, .weekSurface, .billingPanel, details:not(.taskGroup, .moreActions), dialog { background: var(--paper); border-color: var(--line); }
.card, .metric, .homePanel, .billingPanel, .weekSurface { box-shadow: 0 2px 5px rgb(17 59 54 / 3%); }
.metric strong, .banner strong { font-family: var(--ui); color: var(--pine); font-weight: 620; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.banner, .weekGoal { background: var(--sage); }
.avatar, .pill, .count { font-variant-numeric: tabular-nums; }
:is(.pill:not(.warn), .weekDate.current) { background: var(--sage); color: var(--pine); }
.weekDate.current { box-shadow: inset 0 -3px var(--pine); }
.weekDate, .axisCaption, thead { background: var(--tint); }
th { font-weight: 600; }
.billingTable tbody tr:focus-within, .ref-table tbody tr:focus-within { background: #f2f6f2; }
input:not([type=checkbox], [type=radio]), select, textarea { border-color: #a1b4ae; background: #fff; }
button.primary { background: var(--pine); border-color: var(--pine); color: #fff; }
button.primary:hover, .loginForm button:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); }
a, .nameAction, .billingTable th button { color: var(--pine); }
dialog { box-shadow: 0 16px 64px rgb(14 49 48 / 18%); padding: clamp(18px, 3vw, 30px); }
dialog::backdrop { background: rgb(13 40 42 / 46%); }
#formError:not(:empty), .loginError { color: #88362e; border-left: 3px solid currentColor; padding: 8px 11px; background: #fff1ec; }
#notice { background: var(--petrol-deep); }
@media (max-width: 950px) {
  .app { grid-template-columns: 194px minmax(0, 1fr); }
  aside { padding-inline: 10px; }
}
@media (max-width: 700px) {
  .app, .app.open { display: grid; grid-template-areas: "top" "rail" "content"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .app aside { display: none; }
  .app.open aside { display: block; position: static; height: auto; padding: 8px 14px 16px; }
  .app.open nav { columns: 2; column-gap: 8px; }
  .app.open .brand { display: none; }
  #mobile { display: inline-flex; min-height: 44px; align-items: center; background: transparent; color: var(--pine); border-color: var(--edge); }
  .bar { padding: 9px 14px; gap: 9px; min-height: 64px; }
  .crumb { display: none; }
  .mobileBrand { display: block; flex: 0 0 auto; width: 76px; }
  .mobileBrand img { width: 100%; }
  .avatar { max-width: 44%; font-size: .75rem; }
  main { padding: 0 14px 36px; }
  .heading { margin: 23px 0 16px; }
  .row > *, .grid > * { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 440px) {
  .grid:has(> .card), .grid:has(> details) { grid-template-columns: minmax(0, 1fr); }
  .app.open nav { columns: 1; }
}
.loginShell { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; padding: clamp(16px, 5vw, 72px); }
.loginCard { width: min(870px, 100%); display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 14px 52px rgb(22 49 46 / 8%); }
.loginBrand { position: relative; isolation: isolate; overflow: hidden; background: var(--pine); color: #f7f4ed; padding: clamp(32px, 4.5vw, 55px); display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 50px; }
.loginBrand .octoLogo { width: min(192px, 100%); }
.loginBrand::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -99px; bottom: 43px; background: #86b2a6; opacity: .16; -webkit-mask: url('/marca/octo-logo.png') left top / 361% auto no-repeat; mask: url('/marca/octo-logo.png') left top / 361% auto no-repeat; }
.loginBrand p { font: 480 .94rem/1.5 var(--ui); margin: 0; color: #d9ebe4; }
.loginForm { padding: clamp(28px, 4vw, 58px); display: grid; gap: 18px; }
.loginForm h1 { margin: 0 0 4px; font: 620 clamp(1.75rem, 3vw, 2.15rem)/1.1 var(--ui); letter-spacing: -.045em; color: var(--ink); }
.loginForm label { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; }
.loginForm small { font-weight: 450; color: var(--muted); }
.loginForm input { width: 100%; min-height: 45px; padding: 9px 12px; background: #fff; border: 1px solid #9aaea6; border-radius: 8px; }
.loginForm button { min-height: 46px; color: #fff; border: 1px solid var(--pine); background: var(--pine); border-radius: 8px; font-weight: 610; }
.loginError { margin: 0; font-size: .88rem; }
@media (max-width: 620px) {
  .loginCard { max-width: 440px; grid-template-columns: 1fr; }
  .loginBrand { padding: 25px; gap: 14px; }
  .loginBrand .octoLogo { width: 124px; }
  .loginBrand::after { width: 135px; height: 135px; right: -24px; bottom: -58px; }
  .loginForm { padding: 24px; gap: 16px; }
}
@media print {
  .app { display: block; }
  aside, .bar, .skip, #notice, .toolbar, .headingActions { display: none !important; }
  main { padding: 0; }
  main::before { content: "OCTO Smart Office"; display: block; color: #0c4d4d; font-weight: 650; margin-bottom: 1em; }
  .card, .metric, .homePanel { box-shadow: none; break-inside: avoid; }
}
.loginFormArea { grid-area: auto; min-width: 0; padding: 0; }
