@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --purple: #6d28d9;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
}
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--slate-100);
}
.login-card {
  width: min(100%, 28rem);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
}
.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.34em;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow: visible;
}
.hero-one {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  min-width: 3.15em;
  padding: 0.08em 0.44em;
  margin: 0 0.02em;
  border-radius: 999px;
  background:
    radial-gradient(120% 180% at 22% 18%, rgba(255, 255, 255, 0.12) 0 12%, transparent 13%),
    radial-gradient(120% 180% at 78% 82%, rgba(198, 190, 255, 0.16) 0 12%, transparent 13%),
    linear-gradient(90deg, #572B82 0%, #6F68EA 100%);
  background-size: 180% 180%, 180% 180%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 0 0;
  color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 36px rgba(87, 43, 130, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  vertical-align: middle;
  transform: translateY(-0.02em);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 0.97em;
  overflow: hidden;
  animation: hero-circuit-flow 6.8s ease-in-out infinite;
}
.hero-one > span {
  position: relative;
  z-index: 1;
}
.hero-one::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 13px,
      rgba(244, 240, 255, 0.12) 13px 14px,
      transparent 14px 26px,
      rgba(241, 232, 255, 0.06) 26px 27px,
      transparent 27px 40px),
    repeating-linear-gradient(45deg,
      transparent 0 16px,
      rgba(232, 226, 255, 0.05) 16px 17px,
      transparent 17px 34px),
    radial-gradient(circle, rgba(241, 236, 255, 0.48) 0 1.1px, transparent 1.6px),
    radial-gradient(circle, rgba(214, 210, 255, 0.52) 0 1.1px, transparent 1.6px),
    linear-gradient(90deg, transparent 0 10%, rgba(226, 220, 255, 0.18) 18%, transparent 35%, rgba(218, 212, 255, 0.10) 50%, transparent 65%, rgba(226, 220, 255, 0.18) 82%, transparent 100%);
  background-size: 170% 170%, 160% 160%, 14px 14px, 16px 16px, 200% 100%;
  background-position: 0% 0%, 100% 100%, 0 0, 2px 10px, 0 0;
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: hero-circuit-pulse 4.6s linear infinite;
}
.hero-one::after {
  content: "";
  position: absolute;
  inset: -18% -10%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 52%, rgba(241, 236, 255, 0.70) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 24% 52%, rgba(225, 220, 255, 0.56) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 44% 52%, rgba(241, 236, 255, 0.68) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 68% 52%, rgba(225, 220, 255, 0.54) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 92% 52%, rgba(241, 236, 255, 0.72) 0 1.2px, transparent 1.8px),
    linear-gradient(90deg, transparent 0 12%, rgba(226, 220, 255, 0.16) 22%, rgba(232, 228, 255, 0.38) 26%, rgba(226, 220, 255, 0.16) 30%, transparent 44%, rgba(218, 212, 255, 0.10) 58%, rgba(232, 228, 255, 0.28) 64%, rgba(218, 212, 255, 0.10) 70%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 220% 100%;
  filter: blur(0.1px);
  opacity: 0.58;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: hero-circuit-run 3.4s linear infinite;
}
@keyframes hero-circuit-pulse {
  0% { background-position: 0% 0%, 100% 100%, 0 0, 6px 8px, 0 0; }
  50% { background-position: 10% 6%, 90% 94%, 14px 6px, 12px 20px, 32% 0; }
  100% { background-position: 0% 0%, 100% 100%, 0 0, 6px 8px, 0 0; }
}
@keyframes hero-circuit-run {
  0% { background-position: -20% 0, -20% 0, 0 0, 6px 8px, 2px 10px, 0 0; }
  50% { background-position: 110% 0, 110% 0, 0 0, 6px 8px, 2px 10px, 0 0; }
  100% { background-position: -20% 0, -20% 0, 0 0, 6px 8px, 2px 10px, 0 0; }
}
@keyframes hero-circuit-flow {
  0% { background-position: 0% 0%, 100% 100%, 0 0; transform: translateY(-0.02em) skewX(0deg); }
  50% { background-position: 10% 10%, 90% 90%, 0 0; transform: translateY(-0.02em) skewX(1deg); }
  100% { background-position: 0% 0%, 100% 100%, 0 0; transform: translateY(-0.02em) skewX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-one,
  .hero-one::before,
  .hero-one::after { animation: none; }
}
.hero-subtitle {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate-700);
}
.login-copy { color: var(--slate-500); font-size: 0.92rem; }
.login-footer {
  width: min(100%, 28rem);
  margin-top: 0.85rem;
  text-align: center;
}
.guide-page {
  min-height: 100vh;
  background: var(--slate-100);
  padding: 1.25rem 1rem 2.5rem;
}
.guide-wrap { width: min(100%, 40rem); margin: 0 auto; }
.guide-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 1.2rem;
  padding: 1.3rem 1.15rem 1.5rem;
}
.guide-card h1 { margin: 0.2rem 0 0.4rem; font-size: 1.45rem; letter-spacing: -0.03em; }
.guide-card h2 { margin: 1.35rem 0 0.4rem; font-size: 1.05rem; }
.guide-card p, .guide-card li { color: var(--slate-700); line-height: 1.5; }
.guide-card ol, .guide-card ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.guide-card li + li { margin-top: 0.35rem; }
.guide-lead { margin-top: 0; color: var(--slate-500); }
.guide-back { display: inline-block; margin-bottom: 0.8rem; color: var(--purple); font-weight: 700; text-decoration: none; }
.login-note {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.68rem;
  line-height: 1.45;
  font-weight: 400;
}
.login-note__label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--slate-700);
  font-weight: 600;
}
.login-card label, .screen label, .account-modal label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-700);
}
.login-card input, .screen input, .screen select, .screen textarea, .account-modal input, .combo-input {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: white;
}
.screen input[readonly] {
  background: #f8fafc;
  color: var(--slate-700);
}
.login-button, .primary {
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #451c86, #7c3aed);
  color: white;
  font-weight: 700;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.login-button {
  width: 100%;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.login-button img { width: 1.4rem; height: 1.4rem; background: white; border-radius: 999px; }
.forgot-link { display: block; margin-top: 0.9rem; text-align: center; color: var(--purple); font-weight: 700; }
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.login-links .forgot-link { display: inline; margin: 0; font-size: 0.78rem; font-weight: 600; }
.login-links__dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #94a3b8;
  flex: 0 0 auto;
}
.simulate-button {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.9rem;
  background: white;
  color: var(--slate-800);
  font-weight: 700;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.5rem 0.8rem;
  background: white;
  border-bottom: 1px solid var(--slate-200);
}
.brand-word { height: 2.75rem; width: auto; max-width: 11rem; object-fit: contain; object-position: left center; justify-self: start; }
.brand-center { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 0; justify-self: center; }
.brand-mark { height: 2.45rem; width: auto; flex: 0 0 auto; }
.brand-title {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  background: linear-gradient(90deg, #572B82, #6F68EA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo . actions" "center center center";
    row-gap: 0.15rem;
  }
  .brand-word { grid-area: logo; height: 2.2rem; }
  .topbar-actions { grid-area: actions; }
  .brand-center { grid-area: center; }
  .brand-mark { height: 1.85rem; }
  .brand-title { font-size: 0.78rem; }
}
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; justify-self: end; }
.icon-button, .profile-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: linear-gradient(180deg, #fff, #e2e8f0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-button svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--slate-700); stroke-width: 2; }
.icon-button.is-busy svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-badge { font-weight: 800; color: var(--slate-700); }
.profile-shell { position: relative; }
.profile-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 1.2rem;
  padding: 0.9rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}
.profile-menu__header { display: flex; gap: 0.75rem; align-items: center; }
.profile-menu__avatar, .account-modal__avatar {
  width: 2.8rem; height: 2.8rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #4f46e5; font-weight: 800;
}
.account-modal__avatar { width: 4rem; height: 4rem; font-size: 1.2rem; }
.profile-menu__email { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.profile-menu__domain { color: var(--slate-500); font-size: 0.88rem; }
.profile-menu__divider { height: 1px; background: var(--slate-200); margin: 0.8rem 0; }
.profile-menu__item {
  width: 100%; text-align: left; border: 0; background: transparent;
  border-radius: 0.8rem; padding: 0.7rem 0.8rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 0.7rem;
  color: inherit; text-decoration: none; box-sizing: border-box;
}
.profile-menu__item svg, .bottom-tab svg {
  width: 1.2rem; height: 1.2rem; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.profile-menu__item:hover { background: var(--slate-100); }
.profile-menu__item.is-active { background: #f5f3ff; color: #6d28d9; }
.profile-menu__item--danger { color: #b91c1c; }

.screen { padding: 0.8rem 0.8rem 5.5rem; }
.sync-status, .form-status, .hint { color: var(--slate-500); font-size: 0.88rem; }
.page-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.6rem; }
.page-tab {
  border: 1px solid var(--slate-200); background: white; border-radius: 0.8rem 0.8rem 0 0;
  padding: 0.75rem 0.4rem; font-weight: 700; color: var(--slate-500); cursor: pointer;
}
.page-tab.is-active { color: var(--slate-900); box-shadow: inset 0 -2px 0 var(--purple); }
.req { color: #7c3aed; }
.form-page, .detail-card, .request-card {
  background: white; border: 1px solid var(--slate-200); border-radius: 1rem; padding: 0.9rem;
}
.form-actions { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 1rem; }
.ghost, .text-button {
  border: 0; background: transparent; font-weight: 800; cursor: pointer; color: var(--slate-800);
}
.text-button { color: var(--purple); padding: 0.4rem 0; }
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  background: white;
  color: var(--slate-900);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.back-button svg { width: 1.15rem; height: 1.15rem; display: block; }
.back-button:hover, .back-button:focus-visible { border-color: #7c3aed; color: #6d28d9; }
.request-list { display: grid; gap: 0.7rem; }
.request-card { width: 100%; text-align: left; cursor: pointer; }
.ticket-id {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}
.request-meta { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--slate-500); font-size: 0.85rem; margin-top: 0.35rem; }
.status {
  display: inline-block; margin-top: 0.45rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #f3e8ff; color: #6b21a8; font-size: 0.78rem; font-weight: 800;
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.detail-grid div { min-width: 0; }
.detail-grid .is-wide { grid-column: 1 / -1; }
.detail-grid span {
  display: block;
  color: var(--slate-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.detail-grid strong { display: block; margin-top: 0.18rem; font-size: 0.98rem; line-height: 1.35; word-break: break-word; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.detail-head .status { margin-top: 0.15rem; }
.detail-when { margin: 0.15rem 0 0; color: var(--slate-500); font-size: 0.82rem; }
.detail-section { margin: 1.15rem 0 0.55rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
.photo-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.photo-tile {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--slate-200); border-radius: 0.85rem; background: var(--slate-50); text-align: left;
}
.photo-tile img, .photo-file {
  display: block; width: 100%; height: 7.4rem; object-fit: cover; background: #eef2ff;
}
.photo-file {
  display: grid; place-items: center; color: #6d28d9; font-weight: 800; letter-spacing: 0.04em;
}
.photo-tile span { display: block; padding: 0.4rem 0.55rem 0.5rem; font-size: 0.75rem; font-weight: 700; color: var(--slate-700); }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 3.2rem 1rem 1.2rem; background: rgba(15, 23, 42, 0.9);
}
.lightbox figure { margin: 0; max-width: min(100%, 56rem); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 0.7rem; background: white; }
.lightbox iframe { width: min(92vw, 56rem); height: 78vh; border: 0; border-radius: 0.7rem; background: white; }
.lightbox figcaption { margin-top: 0.55rem; color: white; text-align: center; font-weight: 700; }
.lightbox-close {
  position: absolute; top: 0.8rem; right: 0.8rem; border: 0; border-radius: 999px;
  background: white; color: var(--slate-900); font-weight: 800; padding: 0.45rem 0.8rem; cursor: pointer;
}
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; background: white; border-top: 1px solid var(--slate-200);
}
.bottom-tab {
  border: 0; background: white; padding: 0.55rem 0.4rem 0.45rem; font-weight: 800; color: var(--slate-700); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; font-size: 0.78rem;
}
.bottom-tab.is-active { background: #7c3aed; color: white; }
label.camera-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 5.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.9rem;
  background: white;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}
.camera-tile input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  z-index: 2;
}
.camera-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  border-radius: 0.55rem;
  background: #f8fafc;
}
.camera-preview[hidden] { display: none !important; }
.camera-tile.has-photo {
  min-height: 0;
  padding: 0.45rem;
  align-items: stretch;
  width: min(100%, 28rem);
}
.form-alert {
  margin-bottom: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #fecaca;
  border-radius: 0.8rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
}
.form-alert strong { display: block; }
.form-alert ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.is-missing { box-shadow: 0 0 0 2px #dc2626; border-radius: 0.7rem; }
.camera-mark {
  width: 1.7rem;
  height: 1.4rem;
  border: 2px solid var(--slate-500);
  border-radius: 0.35rem;
  position: relative;
}
.camera-mark::before {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--slate-500);
  border-radius: 50%;
  left: 0.4rem;
  top: 0.25rem;
}
.camera-status { color: var(--slate-500); font-size: 0.82rem; font-weight: 700; text-align: center; }
.file-list { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--slate-700); }
.combo { position: relative; }
.combo-field { position: relative; }
.combo-input { padding-right: 2.8rem; }
.combo-clear {
  position: absolute; top: 50%; right: 0.45rem; transform: translateY(-50%);
  width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: #f1f5f9;
  color: #475569; font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.combo-clear:hover { background: #e2e8f0; color: #0f172a; }
.combo-list {
  position: absolute; z-index: 5; left: 0; right: 0; max-height: 18rem; overflow: auto;
  background: white; border: 1px solid #c4b5fd; border-radius: 0.8rem; margin-top: 0.25rem;
}
.combo-option { width: 100%; text-align: left; border: 0; background: white; padding: 0.65rem 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.65rem; }
.combo-logo { width: 1.7rem; height: 1.7rem; object-fit: contain; flex: 0 0 auto; }
.combo-option:hover, .combo-option.is-active { background: #f5f3ff; }
.account-modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.account-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.account-modal__panel {
  position: relative; width: min(100%, 40rem); max-height: 92dvh; overflow: auto;
  background: #f8fafc; border-radius: 1.4rem 1.4rem 0 0; padding: 1.2rem;
}
.account-modal__close { position: absolute; top: 0.6rem; right: 0.7rem; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }
.account-modal__hero { display: flex; gap: 0.8rem; align-items: center; padding-right: 2rem; }
.account-modal__eyebrow { color: #6366f1; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.account-modal__title { margin: 0.2rem 0; }
.password-card { margin-top: 1rem; padding: 0.9rem; border-radius: 1rem; background: white; border: 1px solid var(--slate-200); }
@media (min-width: 800px) {
  .account-modal { align-items: center; }
  .account-modal__panel { border-radius: 1.4rem; }
  .brand-word { height: 3rem; max-width: 220px; }
  .brand-title { font-size: 1.05rem; }
}
