/* OrinHub visual system: intentionally dark, warm and spatially quiet. */
:root {
  --surface: #171719;
  --surface-raised: #202022;
  --surface-pressed: #2a2a2d;
  --hairline: rgba(255, 255, 255, .09);
  --soft-text: #a1a1a7;
  --orange-glow: rgba(255, 149, 0, .18);
}

body {
  background: #000;
  text-rendering: optimizeLegibility;
}

button { transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0) scale(.97); }
.nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.orin-app {
  grid-template-columns: 208px minmax(520px, 1fr) 360px;
  max-width: 1750px;
  background:
    radial-gradient(circle at 51% 9%, rgba(255,149,0,.055), transparent 30%),
    #000;
}

.desktop-nav {
  padding: 30px 20px 22px;
  border-color: var(--hairline);
  background: rgba(11, 11, 12, .78);
  backdrop-filter: blur(20px);
}

.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  color: #000;
  background: var(--orange);
  font-size: 25px;
  box-shadow: 0 10px 28px var(--orange-glow);
}

.desktop-nav-list { gap: 5px; margin-top: 52px; }
.nav-button {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #b7b7bb;
  font-size: 15px;
  font-weight: 650;
}
.nav-button:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-button.is-active {
  border-color: rgba(255,149,0,.18);
  background: linear-gradient(135deg, rgba(255,149,0,.18), rgba(255,149,0,.06));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.nav-button i { font-size: 20px; }
.connection { padding: 11px 12px; margin: auto 0 0; border-radius: 12px; background: rgba(255,255,255,.035); }

.content { padding: 72px clamp(48px, 6vw, 112px) 120px; }
.view { max-width: 760px; }
.page-title { position: relative; }
.page-title h1 { font-size: clamp(52px, 5vw, 76px); font-weight: 780; }
.page-title p { margin-top: 14px; color: var(--soft-text); }

.card {
  border: 1px solid var(--hairline);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 18px 45px rgba(0,0,0,.16);
}
.habit-card { padding: 32px; }
.card-heading h2 { font-size: 27px; }
.heart { filter: drop-shadow(0 5px 10px var(--orange-glow)); }
.habit-line { padding-top: 3px; }
.habit-line strong { color: #a8a8ad; }
.check { border-color: #6d6d73; }
.check:hover { border-color: var(--orange); background: rgba(255,149,0,.09); }
.empty-copy { color: var(--soft-text); }
.add-button { box-shadow: 0 16px 34px var(--orange-glow); }

.hermes-panel {
  padding: 30px 20px 20px;
  border-color: var(--hairline);
  background: rgba(10,10,11,.72);
  backdrop-filter: blur(20px);
}
.hermes-panel header { padding: 0 4px; }
.hermes-panel h2 { font-size: 24px; }
.hermes-panel header span { display: flex; align-items: center; gap: 6px; }
.hermes-panel header span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(50,216,117,.65); }
.hermes-jobs { margin-top: 24px; gap: 12px; }
.hermes-jobs article { min-height: 116px; border: 1px solid var(--hairline); border-radius: 19px; background: linear-gradient(145deg, #202022, #19191b); }
.hermes-jobs article:hover { border-color: rgba(255,149,0,.22); background: #222224; }
.hermes-jobs i { background: rgba(255,149,0,.14); }
.hermes-jobs p { color: #aaaab0; }
.bottom-composer { gap: 9px; padding-top: 18px; }
.bottom-composer input { min-height: 42px; border-radius: 13px; background: #18181a; }
.send { border-radius: 13px; background: var(--orange); color: #000; }
.send:hover { background: #ffad35; }

.orange-label { margin-top: 8px; }
.activity, .knowledge-row { border: 1px solid var(--hairline); }
.activity:hover, .knowledge-row:hover { border-color: rgba(255,149,0,.22); background: #222224; }
.activity { border-radius: 24px; }
.activity-icon { border: 1px solid rgba(255,255,255,.06); }
.search { border: 1px solid var(--hairline); background: #18181a; box-shadow: inset 0 1px rgba(255,255,255,.02); }
.knowledge-row { border-radius: 24px; }
.settings-card { overflow: hidden; }
.settings-card > div + div { border-top: 1px solid var(--hairline); }

@media (max-width: 1100px) {
  .orin-app { grid-template-columns: 166px minmax(0,1fr); }
  .content { padding-left: clamp(36px, 7vw, 76px); }
}

@media (max-width: 720px) {
  .content { padding: max(33px, env(safe-area-inset-top)) 20px 104px; }
  .page-title h1 { font-size: 38px; letter-spacing: -.045em; }
  .page-title p { margin: 7px 0 37px; font-size: 17px; }
  .habit-card { padding: 28px 26px; box-shadow: inset 0 1px rgba(255,255,255,.035), 0 16px 40px rgba(0,0,0,.2); }
  .card-heading h2 { font-size: 23px; }
  .mobile-tabbar {
    bottom: max(18px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    height: 62px;
    padding: 5px;
    border-radius: 23px;
    border-color: rgba(255,255,255,.13);
    background: rgba(28,28,30,.92);
    box-shadow: 0 16px 38px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(22px);
  }
  .tab { gap: 2px; border-radius: 18px; font-size: 10px; font-weight: 700; }
  .tab .nav-icon { width: 22px; height: 22px; }
  .tab.is-active { background: rgba(255,149,0,.17); }
  .knowledge-row { min-height: 126px; border-radius: 27px; }
  .activity { border-radius: 27px; }
  .search { height: 76px; border-radius: 22px; }
}

/* Native pass: removes the decorative dashboard layer in favour of the iOS app. */
:root { --surface:#1c1c1e; --surface-secondary:#2c2c2e; --separator:rgba(255,255,255,.1); --secondary-label:#98989f; }
.orin-app { grid-template-columns:196px minmax(520px,1fr) 360px; max-width:1720px; background:#000; }
.desktop-nav { padding:28px 16px 20px; border-color:var(--separator); background:#000; backdrop-filter:none; }
.logo { width:42px; height:42px; padding:0; display:grid; place-items:center; border-radius:12px; color:#000; background:var(--orange); font-size:25px; box-shadow:none; }
.desktop-nav-list { gap:4px; margin-top:48px; }
.nav-button { min-height:50px; padding:11px 13px; gap:14px; border:0; border-radius:12px; color:var(--text); font-size:15px; font-weight:600; }
.nav-button:hover { background:#242426; }
.nav-button.is-active { color:var(--orange); background:#2c2c2e; box-shadow:none; }
.connection { margin:auto 4px 0; padding:9px 8px; color:var(--secondary-label); background:transparent; font-size:12px; }
.content { padding:66px clamp(44px,6vw,106px) 108px; }
.view { max-width:760px; }
.page-title h1 { font-size:clamp(50px,5vw,72px); font-weight:750; letter-spacing:-.055em; }
.page-title p { margin-top:10px; color:var(--secondary-label); font-size:22px; }
.card { border:0; border-radius:24px; background:var(--surface); box-shadow:none; }
.habit-card { padding:30px; }
.label { color:var(--secondary-label); font-size:12px; letter-spacing:.07em; }
.card-heading h2 { margin-top:9px; font-size:25px; }
.heart { font-size:31px; filter:none; }
.habit-line { margin-top:28px; gap:15px; font-size:22px; }
.habit-line strong { color:var(--secondary-label); font-size:17px; }
.check { width:38px; height:38px; border-color:#8e8e93; }
.check:hover { border-color:var(--orange); background:transparent; }
.empty-copy { margin-top:46px; color:var(--secondary-label); font-size:22px; }
.add-button { width:64px; height:64px; border:0; border-radius:50%; background:var(--orange); color:#000; font-size:39px; box-shadow:none; }
.hermes-panel { padding:28px 18px 20px; border-color:var(--separator); background:#000; backdrop-filter:none; }
.hermes-panel header { padding:0 3px; }
.hermes-panel h2 { font-size:22px; }
.hermes-panel header span { display:flex; align-items:center; gap:5px; font-size:13px; }
.hermes-panel header span::before { width:7px; height:7px; background:var(--green); box-shadow:none; }
.hermes-jobs { margin-top:20px; gap:10px; }
.hermes-jobs article { min-height:105px; padding:15px; border:0; border-radius:17px; background:var(--surface); }
.hermes-jobs article:hover { border-color:transparent; background:var(--surface-secondary); }
.hermes-jobs i { width:38px; height:38px; background:#4a391c; font-size:20px; }
.hermes-jobs b { font-size:16px; }
.hermes-jobs p { margin:3px 0 7px; color:var(--secondary-label); }
.bottom-composer { gap:8px; padding-top:16px; }
.bottom-composer input { min-height:40px; border:0; border-radius:10px; background:var(--surface); }
.send { border-radius:10px; background:var(--orange); color:#000; }
.activity,.knowledge-row { border:0; background:var(--surface); }
.activity:hover,.knowledge-row:hover { border-color:transparent; background:var(--surface-secondary); }
.activity { border-radius:22px; }
.search { border:0; background:var(--surface); box-shadow:none; }
.knowledge-row { border-radius:22px; }

@media (max-width:1100px) { .orin-app { grid-template-columns:158px minmax(0,1fr); } .content { padding-left:clamp(36px,7vw,76px); } }
@media (max-width:720px) {
  .content { padding:max(31px,env(safe-area-inset-top)) 20px 110px; }
  .page-title h1 { font-size:36px; letter-spacing:-.045em; }
  .page-title p { margin:6px 0 35px; color:var(--secondary-label); font-size:17px; }
  .card { border-radius:22px; }
  .habit-card { padding:25px; }
  .card-heading h2 { font-size:21px; }
  .heart { font-size:29px; }
  .habit-line { margin-top:24px; gap:14px; font-size:21px; }
  .habit-line strong { font-size:16px; }
  .empty-copy { margin-top:38px; font-size:19px; }
  .add-button { right:28px; bottom:102px; width:58px; height:58px; font-size:35px; }
  .mobile-tabbar { bottom:max(18px,env(safe-area-inset-bottom)); width:calc(100% - 32px); height:60px; padding:5px; border:0; border-radius:22px; background:#1c1c1e; box-shadow:none; backdrop-filter:none; }
  .tab { gap:1px; border-radius:17px; color:#f5f5f7; font-size:10px; font-weight:650; }
  .tab .nav-icon { width:21px; height:21px; }
  .tab.is-active { color:var(--orange); background:#3a3a3c; }
  .knowledge-row { min-height:112px; padding:19px 22px; border-radius:20px; }
  .knowledge-row b { font-size:22px; }
  .knowledge-row small { font-size:16px; }
  .activity { border-radius:20px; }
  .search { height:68px; border-radius:18px; }
}
