.falcon-welcome,
.falcon-panel {
  color: #23453c;
  color-scheme: light;
  font: inherit;
}

.falcon-welcome {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(13px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(13px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  background: radial-gradient(ellipse at 25% 3%, #dfebdb, transparent 63%), #f5f4ec;
  overflow: auto;
}

.falcon-welcome[open] {
  display: flex;
}

.welcome-card {
  width: min(100%, 448px);
  flex-shrink: 0;
  margin: auto;
  border: 1px solid #d2dace;
  border-radius: 21px;
  background: #fffdf7;
  overflow: hidden;
  box-shadow: 0 18px 50px #253b261d;
}

.welcome-art {
  height: clamp(112px, 25svh, 176px);
  border-bottom: 3px solid #d7b26b;
  background: #234d3e url('media/cover.webp') center 45% / cover no-repeat;
}

.welcome-body {
  padding: 18px clamp(16px, 5vw, 30px) 22px;
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.welcome-brand .brandmark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.welcome-body h1 {
  margin: .32em 0 .63em;
  color: #194b40;
  font-size: clamp(23px, 6.4vw, 33px);
  line-height: 1.2;
  letter-spacing: .02em;
}

.welcome-actions,
.falcon-account-body {
  display: grid;
  gap: 8px;
}

.falcon-welcome button,
.falcon-panel button {
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid #b3c4b8;
  border-radius: 10px;
  background: #fffefb;
  color: #244e43;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.falcon-welcome button:hover:not(:disabled),
.falcon-panel button:hover:not(:disabled) {
  background: #eff5ea;
  border-color: #649080;
}

.falcon-welcome button:focus-visible,
.falcon-panel button:focus-visible,
.falcon-panel summary:focus-visible,
.falcon-account-trigger:focus-visible {
  outline: 2px solid #95621c;
  outline-offset: 2px;
}

.falcon-welcome button:disabled,
.falcon-panel button:disabled {
  opacity: .58;
  cursor: default;
}

.falcon-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.falcon-google svg { flex: 0 0 auto; }

.falcon-welcome .falcon-guest {
  background: #174d43;
  border-color: #174d43;
  color: #fffdf5;
}

.falcon-welcome .falcon-guest:hover:not(:disabled) {
  background: #226455;
  border-color: #226455;
}

.falcon-help,
.falcon-status {
  margin: 0;
  color: #4c635b;
  font-size: .82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.welcome-body .falcon-help { margin-top: 12px; }
.welcome-body .falcon-status:not(:empty) { margin-top: 7px; }
.falcon-status:empty { display: none; }
.falcon-status.is-error { color: #8b3631; }

.head-right .falcon-account-trigger {
  position: relative;
  min-width: 38px;
  min-height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.falcon-account-trigger.is-signed-in::after {
  position: absolute;
  left: 27px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #fffef8;
  border-radius: 50%;
  background: #286e53;
  content: '';
}

.falcon-panel {
  inset: 0;
  width: min(calc(100% - 26px), 430px);
  max-height: min(85dvh, 680px);
  margin: auto;
  padding: 0;
  border: 1px solid #d2dace;
  border-radius: 16px;
  background: #fffdf8;
  overflow: auto;
  box-shadow: 0 18px 50px #17291f41;
}

.falcon-panel::backdrop { background: #0d2522a3; }

.falcon-panel-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px 8px 15px;
  border-bottom: 1px solid #e2e6da;
  background: #fffdf8;
}

.falcon-panel-head h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.falcon-panel .falcon-dialog-close {
  min-width: 40px;
  min-height: 40px;
  padding: 2px;
  font-size: 1.5rem;
  line-height: 1;
}

.falcon-panel-body { padding: 12px 15px 16px; }
.falcon-account-name { margin: 0; font-weight: 780; overflow-wrap: anywhere; }
.falcon-account-body .falcon-visibility { margin-bottom: 5px; }
.falcon-panel .falcon-secondary { background: #edf4eb; }
.falcon-panel .falcon-text-button { margin-top: 4px; }
.falcon-panel [hidden] { display: none !important; }

.falcon-notice-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding-inline-start: 1.22em;
  font-size: .94rem;
  line-height: 1.6;
}

.falcon-notice-list li::marker { color: #327362; }
.falcon-notice-actions { display: grid; gap: 8px; }
.falcon-notice-actions .falcon-notice-confirm {
  border-color: #174d43;
  background: #174d43;
  color: #fffdf5;
}
.falcon-notice-actions .falcon-notice-confirm:hover:not(:disabled) {
  border-color: #226455;
  background: #226455;
}

.falcon-admin { width: min(calc(100% - 20px), 750px); }
.falcon-admin-body { display: grid; gap: 10px; }
.falcon-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.falcon-results > li { border: 1px solid #d9e1d5; border-radius: 10px; background: #fffefb; }

.falcon-results summary {
  padding: 11px 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.falcon-results summary span {
  display: inline-block;
  margin-left: .7em;
  color: #4c635b;
  font-size: .77rem;
  white-space: nowrap;
}

.falcon-admin-email {
  margin: 0 12px 10px;
  color: #4c635b;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.falcon-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 202px), 1fr));
  gap: 8px;
  padding: 0 9px 10px;
}

.falcon-admin-grid section {
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: #eff4e9;
}

.falcon-admin-grid h3 { margin: 0 0 6px; font-size: .92rem; }
.falcon-admin-grid dl { display: grid; grid-template-columns: 1fr auto; column-gap: 4px; margin: 0; font-size: .77rem; }
.falcon-admin-grid dt, .falcon-admin-grid dd { margin: 0; padding: 2px 0; }
.falcon-admin-grid dd { font-weight: 720; white-space: nowrap; }
.falcon-admin-grid p { margin: 0 3px; font-size: .82rem; }

@media (max-width: 400px) {
  .has-falcon-account .head-right { gap: 5px; }
  .has-falcon-account #switcher {
    width: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
  .head-right .falcon-account-trigger { display: grid; place-items: center; }
  .head-right .falcon-account-trigger > span { display: none; }
}

@media (max-width: 370px) {
  .head-right:has(.asset-trigger:not([hidden])) .falcon-account-trigger { display: grid; }
}

@media (max-height: 470px) {
  .welcome-art { height: 78px; }
  .welcome-body { padding-top: 10px; padding-bottom: 13px; }
}
