/* AR3S visual layer. Existing controls, access rules and module states stay intact. */
:root {
  color-scheme: dark;
  --ink: #060606;
  --ink-2: #0a0a0b;
  --panel: #101012;
  --panel-2: #141416;
  --panel-3: #19191c;
  --line: #2a2a2f;
  --line-strong: #414147;
  --text: #f5f5f7;
  --muted: #a0a0aa;
  --muted-2: #72727e;
  --orange: #ff303b;
  --orange-soft: #ff7580;
  --ar3s-red: #ff303b;
  --ar3s-silver: #d9dce3;
  --shadow: 0 24px 70px #0008;
  --shadow-soft: 0 12px 32px #0005;
}
html { background: #060606; }
body {
  background: radial-gradient(ellipse at 88% 0%, #ff303b09, transparent 42%), linear-gradient(180deg, #0a0a0c, #060606 70%);
  font-family: "Public Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.appbar {
  background: linear-gradient(120deg, #151518f2, #0a0a0cf5 65%);
  border-color: #ffffff22;
  box-shadow: 0 14px 40px #0007, inset 0 1px 0 #ffffff0d;
  border-radius: 19px;
}
.brand-lockup img { box-shadow: 0 0 0 1px #ffffff20, 0 5px 22px #ff303b19; }
.brand-copy strong { letter-spacing: .055em; }
.brand-copy span { color: #bfc1ca; letter-spacing: .19em; }
.home-user-pill {
  border-color: #ffffff20;
  background: linear-gradient(135deg, #222226, #111113);
  color: #d9dce3;
  box-shadow: inset 0 1px 0 #ffffff08;
}
.install-button, .home-button, .icon-button {
  border-color: #ffffff26;
  color: #d9dce3;
  background: linear-gradient(145deg, #232327, #111113);
  box-shadow: inset 0 1px 0 #ffffff09;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.install-button:hover, .home-button:hover, .icon-button:hover {
  border-color: #ff303b88;
  color: #fff;
  box-shadow: 0 0 20px #ff303b12, inset 0 1px 0 #ffffff10;
}
.logout-button { background: #ff303b0b; border-color: #ff303b4d; color: #ff9299; }
.page-hero {
  position: relative;
  isolation: isolate;
  border-radius: 25px;
  border-color: #ffffff24;
  background: radial-gradient(ellipse at 95% 25%, #ff303b13, transparent 47%), linear-gradient(125deg, #19191d, #0b0b0d 65%);
  box-shadow: 0 20px 70px #0006, inset 0 1px 0 #ffffff0b;
}
.hero-inner { position: relative; z-index: 1; padding: 32px 30px 29px; }
.page-hero h1 { letter-spacing: -.052em; line-height: 1.04; }
.page-hero h1 span {
  color: #ff414b;
  background: linear-gradient(110deg, #ffb0b5 0%, #ff4550 36%, #ef1827 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow { color: #d0d1d8; font-size: 9px; letter-spacing: .22em; }
.hero-copy { color: #a6a6b0; }
.status-chip { background: #09090bd9; border-color: #ffffff20; color: #b7b8c2; }
.status-chip.live { background: #28cf8b06; }
body.ar3s-home .page-hero::before {
  content: "";
  position: absolute;
  width: 292px;
  height: 292px;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: url("ar3s-login-logo.png") center / contain no-repeat;
  opacity: .62;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
body.ar3s-home .page-hero::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #ff303b, #ff303b25 45%, transparent 80%);
  pointer-events: none;
}
body.ar3s-home .hero-inner { padding-right: 310px; }
.section-heading { margin-top: 28px; }
.section-heading h2 { color: #ececf0; letter-spacing: -.03em; }
.section-heading p { color: #9999a4; }
.module-grid { gap: 14px; }
.module-card {
  border-color: #ffffff20;
  border-radius: 21px;
  background: radial-gradient(ellipse at 0 0, #ffffff05, transparent 62%), linear-gradient(135deg, #161619, #0c0c0e);
  box-shadow: 0 12px 32px #0004, inset 0 1px 0 #ffffff09;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.module-card::before {
  top: 0;
  left: 17px;
  right: 17px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.module-card[data-module-id="labour"] { --accent: #ff303b !important; }
.module-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, #ffffff26);
  background: radial-gradient(ellipse at 5% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), linear-gradient(135deg, #1b1b20, #0d0d10);
  box-shadow: 0 18px 38px #0007, 0 0 26px color-mix(in srgb, var(--accent) 6%, transparent), inset 0 1px 0 #ffffff0c;
}
.module-card:active { transform: scale(.985); }
.module-icon {
  background: linear-gradient(145deg, #25252a, #101012);
  border-color: color-mix(in srgb, var(--accent) 35%, #ffffff24);
  box-shadow: inset 0 1px 0 #ffffff0e, 0 8px 20px #0005;
}
.module-body h3 { color: #f0f0f4; font-weight: 750; }
.module-body p { color: #9e9ea9; }
.module-foot { color: #a1a1ad; }
.module-foot svg { transition: transform .2s ease; }
.module-card:hover .module-foot svg { transform: translateX(3px); }
.module-state.control { border-color: #ffffff29; background: #ffffff06; color: #c7c9d2; }
.surface, .sheet, .access-blocker-card {
  background: linear-gradient(135deg, #17171a, #0d0d10);
  border-color: #ffffff25;
  box-shadow: 0 20px 65px #0006, inset 0 1px 0 #ffffff09;
}
.btn-primary {
  background: linear-gradient(135deg, #ff4d57, #e51526);
  box-shadow: 0 8px 24px #e5152625, inset 0 1px 0 #ffffff2a;
}
.field input, .field select, .field textarea, .data-row, .choice { background: #0b0b0e; border-color: #34343c; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #ff5661;
  box-shadow: 0 0 0 3px #ff303b15;
}
.choice.active { border-color: #ff5661; background: #ff303b0d; box-shadow: inset 0 0 0 1px #ff303b25; }
.choice.break-choice { color: #ffd784; border-color: #f4b94266; }
.bottom-nav {
  background: linear-gradient(135deg, #17171beF, #09090cef);
  border-color: #ffffff2b;
  box-shadow: 0 15px 45px #000a, inset 0 1px 0 #ffffff10;
}
.bottom-nav a.active { background: #ff303b0e; box-shadow: inset 0 1px 0 #ff303b33; }
.bottom-nav a.active svg { color: #ff5661; }
.legal-foot { color: #787882; }
.toast { background: #151518; border-color: #ffffff2a; }
/* Login: the supplied artwork sits on a quiet, illuminated black surface. */
#loginModal {
  background: radial-gradient(ellipse at 50% 39%, #ff303b12, transparent 48%), radial-gradient(ellipse at 50% 100%, #ffffff04, transparent 58%), #050506f5;
  backdrop-filter: blur(20px);
}
#loginModal .login-sheet {
  position: relative;
  width: min(440px, 100%);
  padding: 24px 27px 23px;
  border: 1px solid #ffffff2b;
  border-radius: 27px;
  background: radial-gradient(ellipse at 50% -18%, #ff303b14, transparent 52%), linear-gradient(155deg, #151517, #09090b 75%);
  box-shadow: 0 32px 110px #000b, 0 0 65px #ff303b08, inset 0 1px 0 #ffffff0e;
}
#loginModal .login-sheet::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff8b93 30%, #ff303b 65%, transparent);
  box-shadow: 0 0 20px #ff303b55;
}
#loginModal .login-mark {
  width: min(226px, 54vw);
  aspect-ratio: 1;
  height: auto;
  margin: -4px auto 8px;
  background: none;
  border: 0;
  box-shadow: none;
}
#loginModal .login-mark img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 0;
  mix-blend-mode: screen;
}
#loginModal .login-title {
  font-size: 29px;
  letter-spacing: .11em;
  font-weight: 750;
  color: #f0f1f5;
}
#loginModal .login-sub { color: #a0a0ac; font-size: 12px; margin-top: 8px; margin-bottom: 21px; }
#loginModal .login-field { color: #c1c1cd; letter-spacing: .15em; font-size: 9px; margin-top: 13px; }
#loginModal .login-field select, #loginModal .login-field input {
  min-height: 48px;
  background: linear-gradient(145deg, #0e0e11, #09090b);
  border-color: #3a3a43;
  border-radius: 12px;
  color: #efeff5;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 3px #0005;
}
#loginModal .login-field select:focus, #loginModal .login-field input:focus {
  border-color: #ff5b66;
  box-shadow: 0 0 0 3px #ff303b17, 0 0 22px #ff303b0b;
}
#loginModal .login-actions { gap: 9px; margin-top: 18px; }
#loginModal .login-primary {
  position: relative;
  min-height: 48px;
  border: 1px solid #ff5966;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4653, #d71021);
  color: #fff;
  letter-spacing: .095em;
  box-shadow: 0 8px 25px #f01e3028, inset 0 1px 0 #ffffff30;
  transition: filter .2s ease, box-shadow .2s ease;
}
#loginModal .login-primary:hover { filter: brightness(1.12); box-shadow: 0 10px 35px #ff303b3b, inset 0 1px 0 #ffffff38; }
#loginModal .login-primary:active { filter: brightness(.95); }
#loginModal .login-secondary {
  min-height: 48px;
  background: linear-gradient(145deg, #25252b, #151518);
  border-color: #ffffff28;
  border-radius: 12px;
  color: #d3d4df;
  box-shadow: inset 0 1px 0 #ffffff09;
}
#loginModal .login-msg { margin-bottom: 0; color: #ff929b; }
a:focus-visible, button:focus-visible { outline: 2px solid #ff6a75; outline-offset: 3px; }
@media (min-width: 901px) {
  body.ar3s-home .page-hero h1 { font-size: clamp(39px, 4.1vw, 53px); }
}
@media (max-width: 1100px) {
  body.ar3s-home .hero-inner { padding-right: 235px; }
  body.ar3s-home .page-hero::before { width: 220px; height: 220px; right: 12px; opacity: .47; }
}
@media (max-width: 900px) {
  body.ar3s-home .hero-inner { padding-right: 28px; }
  body.ar3s-home .page-hero::before { opacity: .08; width: 290px; height: 290px; right: -18px; }
}
@media (max-width: 620px) {
  .appbar { border-radius: 17px; }
  .brand-copy span { font-size: 6.5px; letter-spacing: .14em; }
  .hero-inner, body.ar3s-home .hero-inner { padding: 24px 20px; }
  .page-hero h1 { font-size: 35px; }
  .hero-copy { font-size: 11px; }
  .module-grid { gap: 10px; }
  .module-card { padding: 14px; border-radius: 18px; }
  .module-body h3 { font-size: 18px; }
  .module-body p { font-size: 10px; }
  .module-state { padding: 5px 6px; font-size: 7px; }
  #loginModal { padding: 12px; }
  #loginModal .login-sheet { padding: 20px 21px 19px; border-radius: 24px; max-height: calc(100dvh - 24px); }
  #loginModal .login-mark { width: min(194px, 51vw); }
  #loginModal .login-title { font-size: 26px; }
  #loginModal .login-sub { margin-bottom: 17px; font-size: 11px; }
  #loginModal .login-field { margin-top: 11px; }
  #loginModal .login-actions { margin-top: 15px; }
}
@media (max-height: 700px) {
  #loginModal .login-mark { width: min(152px, 36vw); }
  #loginModal .login-sheet { padding-top: 17px; padding-bottom: 17px; }
  #loginModal .login-sub { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .module-card, .module-foot svg, .install-button, .home-button, .icon-button, #loginModal .login-primary { transition: none; }
  .module-card:hover, .module-card:active, .module-card:hover .module-foot svg { transform: none; }
}
@media print {
  body { background: #fff; }
  body.ar3s-home .page-hero::before, body.ar3s-home .page-hero::after { display: none; }
  .page-hero h1 span { -webkit-text-fill-color: currentColor; background: none; }
}
