/* Front door — follows Claim Desk CA's look (claimdesk-ca src/styles.css). */
:root {
  font-family: "Poppins", system-ui, sans-serif;
  color: #17334d;
  background: #f7f9fc;
  font-synthesis: none;
  font-size: 14px;
  --navy: #1b3a5c;
  --navy-deep: #0f293f;
  --purple: #5700c4;
  --purple-hover: #4700a3;
  --line: #e5e9ef;
  --line-soft: #edf0f4;
  --muted: #65758a;
  --ink: #16344d;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f7f9fc; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: var(--purple); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #bca0f5;
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(23px, 3vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -0.6px; }
h2 { font-size: 17px; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.boot { padding: 48px 24px; text-align: center; }
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #748499;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Buttons */
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.primary { background: var(--purple); color: #fff; box-shadow: 0 3px 8px #5700c418; }
.primary:hover { background: var(--purple-hover); }
.secondary { background: #fff; color: #284861; border: 1px solid #d8e0e8; }
.secondary:hover { background: #f3f0fa; }
.text-button { background: none; color: #5e5279; font-weight: 600; font-size: 12px; padding: 8px; text-decoration: none; }
.text-button:hover { color: var(--purple); }
.danger { color: #aa473f; }
.danger:hover { color: #8c2f28; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--navy);
  text-decoration: none;
}
.logo img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 9px; padding: 2px; }
.logo small { display: block; letter-spacing: 1.5px; font-weight: 500; font-size: 8px; margin-top: 3px; color: var(--purple); }

/* Sign-in (Claim Desk's welcome screen) */
.welcome { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.welcome-brand {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
}
.welcome-brand::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -220px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  width: 620px;
  height: 620px;
  box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff02;
}
.welcome-brand .logo { color: #fff; font-size: 23px; }
.welcome-brand .logo img { width: 36px; height: 36px; padding: 5px; }
.welcome-brand .logo small { color: #d2c4e6; }
.welcome-copy { max-width: 430px; margin-top: 110px; position: relative; z-index: 1; }
.welcome-copy .eyebrow { color: #b5a4dc; }
.welcome-copy h1 { color: #fff; font-size: 55px; line-height: 1.2; letter-spacing: -2px; font-weight: 700; }
.welcome-copy p { color: #b8c8d9; font-size: 16px; margin: 24px 0 36px; }
.phase-tag {
  display: inline-block;
  padding: 8px 12px;
  background: #ffffff10;
  color: #d2c4e6;
  border: 1px solid #ffffff15;
  border-radius: 6px;
  font-size: 11px;
}
.welcome-form { align-self: center; margin: 70px auto; width: min(400px, 85%); }
.welcome-form h2 { font-size: 29px; }
.welcome-form .primary { width: 100%; margin-top: 22px; }
.welcome-form .hint { font-size: 12px; margin-top: 14px; }

/* Header (Claim Desk's topbar) */
.topbar {
  min-height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(24px, calc((100vw - 1120px) / 2));
  font-size: 12px;
  color: #738297;
}
.topbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-actions .who { color: #738297; }
.content { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading p { margin: 8px 0 0; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 4px #19334d03;
}
.card-head {
  padding: 20px 23px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-body { padding: 22px 23px; }
.badge {
  display: inline-block;
  background: #f1eef7;
  color: #77618f;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
}
.badge.navy { background: #eaf0f6; color: var(--navy); }

/* Apps page */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.app-card { margin: 0; }
.app-card .card-head h2 { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f3eefb;
  color: var(--purple);
  flex-shrink: 0;
}
.app-icon svg { width: 20px; height: 20px; }
.app-card .card-body > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.writer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.writer:first-of-type { border-top: 0; padding-top: 0; }
.writer h3 { font-size: 14px; font-weight: 600; }
.writer p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.writer .open { display: flex; align-items: center; gap: 10px; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 7px; margin-bottom: 18px; font-size: 12px; line-height: 1.65; }
.alert p { margin: 0; }
.alert p + p, .alert ul { margin-top: 6px; }
.alert ul { padding-left: 18px; margin-bottom: 0; }
.error { background: #fff0ef; border: 1px solid #edc4bf; color: #aa473f; }
.notice { background: #edf5f2; border: 1px solid #d9e8e0; color: #4e7c66; }
.warning { background: #fdf6e7; border: 1px solid #f0dfb5; color: #8a6414; }

/* Forms */
label { display: block; font-size: 11px; font-weight: 600; color: #64758a; }
input, select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #fff;
  color: #243d55;
  font-size: 13px;
}
input::placeholder { color: #9ba7b6; }
input:disabled, select:disabled { background: #f7f8fa; color: #8a97a8; }
.add-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.add-grid .primary { height: 43px; }

/* Team & access list */
.people { list-style: none; margin: 0; padding: 0; }
.people-head, .person {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) 92px;
  gap: 16px;
  align-items: center;
  padding: 14px 23px;
}
.people-head {
  color: #8a97a8;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fbfcfd;
}
.person { border-top: 1px solid var(--line-soft); }
.person select { margin-top: 0; padding: 8px 10px; font-size: 12px; }
.person .who b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.person .who span { display: block; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.person .who .badge { display: inline-block; margin-top: 6px; }
.person .app-label { display: none; }
.person .row-end { text-align: right; }
.person.saving { opacity: 0.6; }
.person.former .who b { color: var(--muted); }
.section-label { margin: 28px 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.history { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.history li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 23px;
  border-top: 1px solid var(--line-soft);
}
.history li:first-child { border-top: 0; }
.history time { color: #8a97a8; }
.history .by { color: var(--muted); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 6px 18px #0f293f33;
  z-index: 20;
}

/* Phones */
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-brand { padding: 32px 24px 40px; }
  .welcome-copy { margin-top: 40px; }
  .welcome-copy h1 { font-size: 38px; }
  .welcome-form { margin: 40px auto; }
  .topbar { padding: 14px 16px; }
  .topbar-actions .who, .head-hint { display: none; }
  .content { padding: 24px 16px 40px; }
  .page-heading { flex-direction: column; gap: 12px; }
  .add-grid { grid-template-columns: 1fr 1fr; }
  .add-grid .wide { grid-column: 1 / -1; }
  .people-head { display: none; }
  .person { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .person .app-label { display: block; margin-bottom: 4px; }
  .person .row-end { text-align: left; }
  .history li { grid-template-columns: 1fr; gap: 2px; padding: 11px 16px; }
}
@media (max-width: 480px) {
  .add-grid { grid-template-columns: 1fr; }
  .topbar .logo small { display: none; }
}
