/* ColorOS-inspired fluid feedback: ambient color, local light, soft return. */
:root {
  --ink: #292e35;
  --navy: #3b4653;
  --blue: #3b4653;
  --paper: #f6f6f7;
  --muted: #707780;
  --line: rgba(45, 50, 58, .09);
  --soft: #eeeff1;
  --soft-border: #e0e2e5;
  --liquid-surface: linear-gradient(120deg, rgba(255,255,255,.88), rgba(255,255,255,.64) 50%, rgba(244,245,247,.82));
  --quiet-surface: linear-gradient(120deg, rgba(255,255,255,.97), rgba(249,249,250,.96));
  --liquid-depth: inset 0 -1px 3px rgba(30,35,43,.025), 0 4px 16px rgba(30,35,43,.045);
  --return: cubic-bezier(.2,.8,.25,1.08);
}
body, .phone {
  background: linear-gradient(160deg, #fcfcfc, #f4f4f5);
  color: var(--ink);
}
.panel, .stat, .staff-card, .mobile-card, .personal-profile {
  border: 0;
  background: var(--liquid-surface);
  box-shadow: var(--liquid-depth);
}
.panel:has(form), .record, .form-card, .team-form, .profile-editor, .signup-card {
  background: var(--quiet-surface);
}
.button, .nav-button, .tabbar button, .close, .device-options button,
.content-row, .privacy-button, .team-stats button, .text-button, .case-entry {
  position: relative;
  isolation: isolate;
  transition: transform 260ms var(--return), box-shadow 260ms ease, background 240ms ease, color 200ms ease;
}
.button {
  border: 0;
  color: #fff;
  background: linear-gradient(130deg, #414a56, #343d48 60%, #303741);
  box-shadow: inset 0 -3px 8px rgba(24,29,38,.14), 0 5px 14px rgba(40,48,60,.19);
}
.button:hover {background: linear-gradient(130deg, #4a5360, #3d4652 60%, #363f4b);box-shadow: 0 5px 14px rgba(40,48,60,.12)}
.button.secondary, .close {
  border: 0;
  background: var(--liquid-surface);
  color: var(--navy);
  box-shadow: var(--liquid-depth);
}
.button.secondary:hover {background: var(--liquid-surface);color: #303944;box-shadow: 0 5px 14px rgba(30,35,43,.1)}
.button::before, .tabbar button::before, .close::before, .device-options button::before,
.privacy-button::before, .team-stats button::before, .case-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 85px 65px at var(--light-x,50%) var(--light-y,50%), rgba(255,255,255,.18), transparent 100%);
  opacity: 0;
  transition: opacity 360ms ease;
}
.is-pressed::before {opacity: 1;transition-duration: 90ms}
.is-pressed {transform: scale(.99,.985);transition-duration: 110ms;transition-timing-function: ease-out}
.button.is-pressed {box-shadow: inset 0 3px 9px rgba(24,29,38,.18), 0 2px 6px rgba(40,48,60,.12)}
@media (hover:hover) {
  .button:hover::before, .close:hover::before, .device-options button:hover::before,
  .team-stats button:hover::before, .privacy-button:hover::before {opacity: .55}
}
.button:disabled {transform: none;color:#92979e;background:rgba(231,232,235,.8);border:0;box-shadow:none;opacity:.7}
.button:disabled::before {opacity:0}
input, textarea, select {background: rgba(255,255,255,.86);color:var(--ink);border-color:rgba(80,86,97,.16)}
input:focus, textarea:focus {border-color:#a5adb8;box-shadow:0 0 0 3px rgba(96,108,125,.08)}
.sidebar {border:0;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(246,246,248,.84));box-shadow:3px 0 24px rgba(30,35,43,.04)}
.topbar {border:0;background:rgba(255,255,255,.78);backdrop-filter:blur(12px) saturate(100%);box-shadow:0 3px 18px rgba(30,35,43,.04)}
.nav-button.active {border:0;color:var(--navy);background:linear-gradient(120deg,rgba(235,237,241,.78),rgba(224,228,234,.65));box-shadow:0 3px 12px rgba(30,35,43,.07)}
.stat.accent {background:linear-gradient(130deg,#414a56,#343d48 60%,#303741);box-shadow:0 8px 24px rgba(40,48,60,.15)}
.stat.accent .number {color:#fff}.stat.accent .stat-label,.stat.accent .stat-foot {color:#e6e9ed}
.badge {color:#66717e;background:rgba(233,235,239,.74)}
.hint {color:#68727e;background:rgba(236,237,240,.7)}
.login-brand {background:linear-gradient(140deg,#fafafa,#f0f1f3)}
.login-area {background:rgba(255,255,255,.7)}
.phone-top {background:rgba(252,252,253,.86);color:#747b84;border:0}
.capsule {border:0;background:rgba(236,237,240,.5)}
.mine-top {background:linear-gradient(155deg,rgba(255,255,255,.56),rgba(247,247,248,.32));border:0}
.mine-top h2 {color:var(--ink)}.mine-top p,.profile-copy small,.team-form .muted,.muted {color:var(--muted)}
.avatar-blank {border:0;background:linear-gradient(135deg,#f1f2f4,#e1e4e9);box-shadow:inset 0 -5px 12px rgba(30,35,43,.06)}
.phone .hero,.phone .brand-head {background:rgba(255,255,255,.66)}
.privacy-button, .personal-profile {background:var(--liquid-surface)}
.team-stats button {background:var(--liquid-surface);border:0}
.tabbar, .device-content .tabbar {
  position:absolute;
  left:16px;right:16px;
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
  height:60px;
  flex:none;
  padding:4px;
  border:0;
  border-radius:20px;
  background:linear-gradient(120deg,rgba(255,255,255,.86),rgba(248,248,250,.79));
  box-shadow:0 6px 24px rgba(30,35,43,.075),inset 0 -1px 3px rgba(30,35,43,.025);
  backdrop-filter:blur(12px) saturate(100%);
  isolation:isolate;
  z-index:10;
}
.tabbar::before {
  content:'';
  position:absolute;
  inset:4px auto 4px 4px;
  width:calc(50% - 4px);
  border-radius:16px;
  background:linear-gradient(120deg,rgba(224,228,235,.56),rgba(237,239,244,.78));
  box-shadow:inset 0 -1px 3px rgba(45,50,58,.025);
  transform:translateX(0);
  transition:transform 320ms cubic-bezier(.2,.84,.28,1.08);
  z-index:-1;
}
.tabbar:has(button:nth-child(2).active)::before {transform:translateX(100%)}
.tabbar button {flex:1;padding:4px 0;height:52px;min-width:0;border-radius:16px;color:#8a919a;font-size:11px;gap:2px}
.tabbar button.active {color:var(--navy);font-weight:600}
.tabbar button span {font-size:25px;line-height:26px}
.phone {padding-bottom:96px}
.device-content .phone {padding-bottom:0}
.device-content #screen {padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
dialog, #modal:where(dialog) {
  border:0;
  border-radius:26px;
  background:var(--quiet-surface);
  box-shadow:0 20px 65px rgba(30,35,43,.22);
  transform-origin:50% 85%;
}
#modal:not(dialog) {border:0;background:transparent;box-shadow:none}
dialog[open] {animation:glass-open 320ms var(--return) both}
dialog::backdrop {background:rgba(31,35,42,.26);backdrop-filter:blur(5px);animation:scrim-open 200ms ease both}
.drawer-backdrop {background:rgba(31,35,42,.26);backdrop-filter:blur(5px);animation:scrim-open 200ms ease both}
.drawer {border:0;background:var(--quiet-surface);box-shadow:-12px 0 50px rgba(30,35,43,.16);animation:drawer-open 340ms cubic-bezier(.2,.84,.28,1.06) both}
.drawer-head {background:rgba(251,251,252,.94)}
.phone dialog {background:linear-gradient(120deg,rgba(255,255,255,.97),rgba(248,248,250,.95))}
.profile-editor,.team-form,#visitor-signup,.personal-profile-form {animation:glass-open 280ms var(--return) both}
@keyframes glass-open {from{opacity:0;transform:translateY(24px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes drawer-open {from{transform:translateX(45px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes scrim-open {from{opacity:0}to{opacity:1}}
@media(max-width:700px) {.phone {padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.device-content .phone {padding-bottom:0}}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {transition:none!important;animation:none!important;scroll-behavior:auto!important}
  .is-pressed {transform:none}
}

/* Neutral chrome keeps the translucent surfaces quiet and readable. */
.panel,.stat,.staff-card,.mobile-card,.personal-profile{border-radius:18px}
.button{border-radius:12px;box-shadow:inset 0 -1px 3px rgba(24,29,38,.13),0 3px 9px rgba(40,48,60,.1)}
.button.secondary{box-shadow:var(--liquid-depth)}
.text-button,.team-detail,.visitor-account-actions button{color:var(--navy)}
.profile-edit-label{color:#747d89!important}
.stat.accent>a,.stat.accent svg{color:#e6e9ed}
.simulator-page,.device-stage,.simulator-canvas{background:#f5f5f6}
.device-frame,.simulator-phone{box-shadow:0 18px 48px rgba(30,35,43,.085)}
.device-options button{border-color:rgba(70,78,90,.1);background:rgba(255,255,255,.67);color:#66717e}
.device-options button[aria-pressed="true"]{border-color:rgba(70,78,90,.18);background:rgba(255,255,255,.92);box-shadow:0 3px 12px rgba(30,35,43,.04)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#aeb6c1}
