/* OHM Systems identity: the user's original artwork, framed without redrawing it. */
.ohm-mark {
  --mark-width: 158px;
  position: relative;
  display: inline-block;
  width: var(--mark-width);
  aspect-ratio: 858 / 390;
  flex: none;
  overflow: hidden;
  vertical-align: middle;
  border-radius: 6px;
  background: transparent;
}
.ohm-mark > .ohm-source {
  position: absolute;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  left: 0;
  top: 0;
  mix-blend-mode: normal;
}
.brand .brand-byline { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.brand .ohm-mark { --mark-width: 116px; }
.publisher { display: flex; justify-content: center; }
.publisher .ohm-mark { --mark-width: 158px; }
.login-brand .login-byline > .ohm-mark { --mark-width: 188px; }
.light .ohm-mark { box-shadow: none; }

/* RESURS keeps its planning structure; OHM's palette and glass surfaces connect it to Workspace. */
body:not(.auth-page) {
  --bg: #040e1b;
  --panel: #0a1a2d;
  --panel2: #10253c;
  --line: #25425e;
  --muted: #9db5d0;
  --text: #edf6ff;
  --hover: #153651;
  background: radial-gradient(ellipse at 80% -15%, #174b7f 0, transparent 48%), #020914;
  font-size: 13px;
}
.app-shell {
  max-width: none;
  border-color: #426b8f99;
  background: radial-gradient(ellipse at 85% 0, #12345566 0, transparent 44%), var(--bg);
  box-shadow: 0 24px 70px #0005, inset 0 1px #b8ddff0b;
}
.sidebar {
  background: linear-gradient(160deg, #0b1c2ee8, #030c18f5 70%);
  border-right-color: #36597677;
}
.brand { gap: 10px; align-items: flex-start; }
.brand .r-logo { margin-top: 1px; }
.brand strong { color: #f1f8ff; letter-spacing: 1px; }
nav { gap: 6px; }
nav button { font-size: 13px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
nav button.active {
  background: linear-gradient(110deg, #0061de, #093c7f);
  border-color: #3eacff99;
  box-shadow: inset 0 1px #b4e7ff24, 0 0 19px #0077ff16;
}
nav button:hover:not(.active) { background: #17395970; border-color: #477ca54d; }
.topbar .searchbox { background: #07182bb3; border-color: #315c81; padding: 13px 15px; box-shadow: inset 0 1px #e0f4ff05; }
.searchbox input { font-size: 13px; }
.primary { background: linear-gradient(115deg, #087dff, #0654bb); border-color: #36a9ff; box-shadow: 0 4px 18px #0066ff24, inset 0 1px #bdeaff24; }
.stat, .bottom-card, .rail-panel, .period-panel, .entity {
  background: linear-gradient(135deg, #1736536b, #061323b8 70%);
  border-color: #365b7a99;
  box-shadow: inset 0 1px #b7ddff0a, 0 5px 18px #0000000c;
  border-radius: 11px;
}
.stat { height: 94px; padding: 16px; }
.stat strong { font-size: 28px; letter-spacing: -.5px; }
.stat small { font-size: 10px; }
.stat-icon { width: 46px; height: 46px; background: linear-gradient(140deg, #087eff2e, #06459c12); box-shadow: inset 0 1px #7ac7ff16; color: #35adff; }
.planning-panel { background: linear-gradient(145deg, #0d2033dc, #061322ed); border-color: #365b7a99; border-radius: 11px; }
.planning-toolbar { background: #102a423d; }
.planning-toolbar h1 { font-size: 14px; font-weight: 600; }
.view { min-height: 460px; }
.people-heading { font-size: 12px; }
.day-head { font-size: 12px; }
.person-button b { font-size: 12px; max-width: 120px; }
.person-button small { font-size: 10px; }
.person .load { font-size: 11px; }
.booking b { font-size: 12px; }
.booking small { font-size: 10px; }
.booking { border-radius: 5px; }
.ring { background: conic-gradient(#33acff calc(var(--value)*1%), #1b3651 0); }
.panel-heading h2 { font-size: 13px; }
.section-content h2 { font-size: 21px; font-weight: 600; }
.section-content p { font-size: 12px; }
.list-table { font-size: 12px; }
.list-table th { font-size: 11px; }
.list-table td small { font-size: 10px; }
.entity:hover { border-color: #3f93ce; box-shadow: inset 0 1px #bbe8ff1a, 0 0 22px #0878ff12; }
.calendar-grid button.selected { box-shadow: 0 0 17px #078bff4d; }
.workspace { background: #102a413d; border-color: #365b7a77; }
.profile { border-radius: 8px; }
.app-footer { color: var(--muted); }

body.light:not(.auth-page) {
  --bg: #f1f6fc;
  --panel: #fff;
  --panel2: #eaf2fb;
  --line: #cfdeed;
  --muted: #506a87;
  --text: #102a45;
  --hover: #e2effb;
  background: radial-gradient(ellipse at 80% 0, #c9e2fa 0, transparent 60%), #e9f1f9;
}
.light .app-shell { background: linear-gradient(135deg, #f9fcff, #eef5fc); border-color: #a8c5df; box-shadow: 0 18px 55px #203f5c18; }
.light .sidebar { background: linear-gradient(160deg, #fafdff, #eaf3fc); border-right-color: #c7dbed; }
.light .brand strong { color: #102a45; }
.light nav button:hover:not(.active) { background: #e3effa; border-color: #afcee8; }
.light .topbar .searchbox { background: #ffffffcc; border-color: #c1d8eb; }
.light .stat, .light .bottom-card, .light .rail-panel, .light .period-panel, .light .entity { background: linear-gradient(140deg, #ffffffed, #f7fbff); border-color: #c6dcec; box-shadow: 0 3px 13px #29476b05; }
.light .planning-panel { background: #ffffffdf; border-color: #bfd6e8; }
.light .planning-toolbar { background: #f0f7fcb3; }
.light .workspace { background: #fafdff; border-color: #c4d7e8; }
.light .ring { background: conic-gradient(#168ef1 calc(var(--value)*1%), #d5e5f3 0); }

@media(min-width:1600px) {
  .app-shell { grid-template-columns: 238px minmax(0,1fr) 330px; gap: 16px; }
  .sidebar { padding: 25px 16px 15px; }
  .brand strong { font-size: 27px; }
  nav button { font-size: 14px; padding: 14px; }
  .time-head, .time-row { grid-template-columns: 228px minmax(0,1fr); }
  .stat { height: 104px; }
  .stat strong { font-size: 31px; }
}
@media(max-width:1250px) {
  .brand { gap: 7px; }
  .brand .ohm-mark { --mark-width: 90px; }
  .brand .brand-byline { gap: 4px; }
  .stat { height: 80px; padding: 11px 9px; }
  .stat strong { font-size: 23px; }
  .stat small { font-size: 9px; }
  .stat-icon { width: 33px; height: 37px; }
  nav button { font-size: 11px; padding: 11px 9px; }
  .person-button b { font-size: 10px; max-width: 84px; }
  .person-button small { font-size: 9px; }
  .booking b { font-size: 10px; }
  .booking small { font-size: 9px; }
}
@media(max-width:700px) {
  .sidebar .brand { align-items: center; }
  .stat { height: 74px; padding: 10px; }
  nav button { padding: 12px 0; }
  .planning-toolbar h1 { font-size: 12px; }
  .view { min-height: 300px; }
}
@media(prefers-reduced-motion:reduce) { nav button { transition: none; } }

/* Original silhouettes, high-contrast colors for light surfaces. */
.ohm-mark > .ohm-light-source { display: none; }
.light .ohm-mark > .ohm-dark-source { display: none; }
.light .ohm-mark > .ohm-light-source { display: block; }
