.landing-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: calc(10vh + 32px + env(safe-area-inset-top, 0px)) 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #f5f5f7;
  font-family: "Roboto", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.landing-card {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 24px 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.08);
}

.landing-logo {
  width: 220px;
  max-width: 100%;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 8px auto 16px;
}

.landing-card h1 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1.1;
  color: #111827;
}

.landing-subtitle {
  margin: 10px auto 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.landing-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 16px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.label-row label {
  margin-bottom: 0;
}

.clear-inline {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.clear-inline:hover {
  color: #031f53;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.code-grid input {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  box-sizing: border-box;
  border: 2px solid #a9b1bd;
  border-radius: 10px;
  font-size: 20px;
  text-align: center;
  color: #1f2937;
}

.code-grid input:focus {
  outline: none;
  border-color: #031f53;
  box-shadow: 0 0 0 2px rgba(3, 31, 83, 0.18);
}

.field-help {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.landing-form button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 2px;
  margin-bottom: 14px;
  color: #fff;
  background: #031f53;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.landing-form button:disabled {
  opacity: 0.85;
  cursor: wait;
}

.contact-us {
  margin: 0 0 8px;
  text-align: center;
  font-size: 13px;
}

.contact-us a {
  color: #031f53;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-us a:hover {
  color: #0a2f75;
}

.switch-company-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.current-company-name {
  margin: 0;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #374151;
}

.landing-form .clear-inline {
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.error-message {
  margin: 12px 0 0;
  color: #b91c1c;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 14px;
  font-family: "Roboto", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #111827;
}

.modal-text {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.modal-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.modal-btn.danger {
  border-color: #fca5a5;
  color: #b91c1c;
}

.landing-form .switch-company-button {
  width: 32px;
  height: 32px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.switch-company-button .switch-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.switch-company-button .switch-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  line-height: 1;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer-sheet {
  width: min(100%, 430px);
  min-height: 52vh;
  max-height: 52vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  transform: translateY(100%);
  transition: transform 220ms ease;
}

.drawer-backdrop.drawer-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop.drawer-open .drawer-sheet {
  transform: translateY(0);
}

.drawer-grab {
  width: 78px;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 8px auto 0;
}

.drawer-header {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 16px 8px;
  text-align: center;
}

.drawer-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #0a0a0a;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.drawer-list {
  display: grid;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.drawer-company-row {
  width: 100%;
  border: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}
.drawer-company-row:last-child {
  border-bottom: 0;
}

.drawer-company-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  flex: 0 0 auto;
}

.drawer-company-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 18px;
  flex: 0 0 auto;
}

.drawer-company-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.drawer-company-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-company-code {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.drawer-check {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex: 0 0 auto;
}

.drawer-check svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-add-company {
  width: 100%;
  border: 0;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 12px;
}

.drawer-add-company .plus {
  width: 20px;
  height: 20px;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.drawer-add-company .plus svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none;
}

@media (max-height: 740px) {
  .landing-shell {
    justify-content: flex-start;
    padding-top: calc(10vh + 32px + env(safe-area-inset-top, 0px));
  }
}

