:root {
  color-scheme: light;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: #f5f7fb;
  color: #161e30;
  --blue: #315af6;
  --ink: #161e30;
  --muted: #61708b;
  --line: #dde4ef;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100dvh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #315af6; outline-offset: 3px; }
.access-logo, .ws-brand { mix-blend-mode: screen; }
.access-logo > img, .ws-brand > img {
  /* Screen leaves the panel untouched wherever the logo's light matte becomes black. */
  filter: grayscale(1) invert(1) contrast(1.15) brightness(1.12);
}
.boot-screen { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.access-shell { display: grid; grid-template-columns: minmax(360px, 43%) minmax(0, 1fr); min-height: 100dvh; }
.access-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate; min-height: 100%; padding: clamp(30px, 5vw, 78px);
  background: #101b31; color: white;
}
.access-brand::before {
  position: absolute; z-index: -2; inset: 0; content: "";
  background: radial-gradient(ellipse at 64% 74%, #264eaf 0, transparent 48%),
    linear-gradient(153deg, #0a1426 8%, #172b50 92%);
}
.access-brand::after {
  position: absolute; z-index: -1; inset: 0; content: "";
  background-image: radial-gradient(#7895d6 1px, transparent 1px); background-size: 20px 20px;
  opacity: .2; mask-image: linear-gradient(140deg, transparent 7%, black 90%);
}
.access-brand-label { color: #c7d6f9; font-size: 14px; font-weight: 700; }
.access-logo {
  align-self: center; position: relative; width: min(100%, 520px); aspect-ratio: 2.65;
  overflow: hidden; margin: 38px 0;
}
.access-logo img {
  display: block; width: 111%; max-width: none; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.access-projects { display: flex; flex-wrap: wrap; gap: 11px 23px; align-items: center; color: #c7d6f9; font-size: 14px; font-weight: 650; }
.access-projects span { display: flex; align-items: center; gap: 8px; }
.access-projects span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #86acff; }
.access-projects span + span::before { background: #85e2c2; }
.access-main { display: grid; place-items: center; padding: 44px clamp(24px, 7vw, 104px); background: #fbfcff; }
.access-card { max-width: 414px; width: 100%; }
.access-card h1 { margin: 0 0 12px; font-size: clamp(27px, 3.6vw, 39px); font-weight: 800; letter-spacing: -.055em; line-height: 1.25; }
.access-description, .access-note { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.68; overflow-wrap: anywhere; }
.access-form { display: grid; gap: 18px; margin-top: 31px; }
.access-field { display: grid; gap: 7px; color: #29354b; font-weight: 665; font-size: 14px; }
.access-field input, .settings-link input { width: 100%; min-width: 0; padding: 12px 13px; border-radius: 9px; border: 1px solid #cbd5e4; background: #fff; color: var(--ink); }
.access-field input { min-height: 48px; }
.access-field input::placeholder { color: #71809b; font-weight: 400; }
.password-control { position: relative; }
.password-control input { padding-inline-end: 52px; }
.password-toggle {
  position: absolute; inset: 2px 2px 2px auto; width: 44px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: transparent; color: #4d5d78;
}
.password-toggle:hover { background: #eff3fc; color: #233a68; }
.password-toggle:focus-visible { outline-offset: -3px; }
.access-primary { min-height: 45px; padding: 10px 15px; border: 1px solid var(--blue); border-radius: 9px; background: var(--blue); color: white; font-weight: 690; transition: background .15s; }
.access-primary:hover { background: #2247d8; }
.access-primary:disabled { opacity: .55; cursor: default; }
.access-note { margin-top: 22px; font-size: 13px; color: #4b5b77; }
.access-note a { color: #2348d5; font-weight: 650; }
.access-error { color: #aa223f; line-height: 1.5; font-size: 14px; margin: 0; }
.access-error:empty { display: none; }
.access-retry { margin-top: 22px; }
.settings-dialog {
  inset: 0; width: min(540px, calc(100vw - 32px)); padding: 24px; margin: auto;
  border: 1px solid #e0e6f0; border-radius: 18px; max-height: min(82dvh, 690px); overflow: auto;
  box-shadow: 0 18px 60px #0e1a3a38; background: white; color: var(--ink);
}
.settings-dialog::backdrop { background: #06112886; }
.settings-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.settings-header h2 { font-size: 23px; margin: 0; letter-spacing: -.045em; }
.settings-section { padding: 20px 0; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 6px; font-size: 16px; }
.settings-section p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-password summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.settings-password[open] summary { margin-bottom: 6px; }
.settings-password-form { display: grid; gap: 10px; }
.settings-password-form .access-primary { justify-self: start; }
.settings-password-form .settings-password-status { margin: 0; }
.settings-password-form .settings-password-status:empty { display: none; }
.settings-password-form .settings-password-status.access-error { color: #aa223f; }
.settings-account { margin: 14px 0 20px; color: #536481; font-size: 14px; overflow-wrap: anywhere; }
.settings-secondary {
  min-height: 36px; padding: 6px 11px; border: 1px solid #cbd5e4; border-radius: 8px;
  background: #fff; color: #2c3d58; font-weight: 650; font-size: 13px; text-wrap: nowrap;
}
.settings-secondary:hover { background: #eff3fc; }
.settings-secondary:disabled { opacity: .55; cursor: default; }
.settings-link { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.settings-link input { flex: 1 1 160px; min-width: 0; font-size: 13px; }
.settings-invite-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.settings-links { list-style: none; padding: 0; margin: 12px 0 0; }
.settings-links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; color: #536481; font-size: 13px; }
.settings-status { margin: 18px 0 0; font-size: 14px; color: #395079; line-height: 1.5; }
.settings-status:empty { display: none; }
@media (max-width: 760px) {
  .access-shell { display: block; }
  .access-brand { min-height: auto; padding: 25px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
  .access-brand-label { display: none; }
  .access-logo { width: clamp(115px, 32vw, 160px); margin: 0; }
  .access-projects { font-size: 12px; gap: 10px; }
  .access-main { min-height: calc(100dvh - 84px); padding: 46px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
