/* Immediate, reversible feedback. Keep the approved brand and three-second intros. */
:root { --ui-ease-out: cubic-bezier(.23, 1, .32, 1); }
.password-control { position: relative; min-width: 0; width: 100%; }
.password-control input { padding-right: 82px !important; width: 100%; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 70px; min-height: 40px; padding: 8px; background: transparent; border: 0; border-radius: 6px; color: #006b36; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.caps-warning { color: #8b4b00; }
.field .caps-warning[hidden] { display: none; }
.button { transition: background-color 150ms var(--ui-ease-out), box-shadow 150ms var(--ui-ease-out), transform 120ms var(--ui-ease-out); }
.button:active:not(:disabled):not(:focus-visible) { transform: scale(.98); }
.button:focus-visible, .password-toggle:focus-visible, summary:focus-visible { outline: 3px solid #006b36; outline-offset: 3px; }
.button:disabled { cursor: wait; }
.button:focus-visible { transition: none; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.recovery-actions .button { white-space: normal; line-height: 1.5; min-height: 44px; }
.job-recovery h2 { margin: 0 0 10px; font-size: 22px; }
.job-recovery p { max-width: 70ch; line-height: 1.65; overflow-wrap: anywhere; }
.connection-feedback { border: 1px solid #dbe2dc; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.connection-feedback h3 { margin-top: 0; }
.connection-feedback p { line-height: 1.65; }
.setup-progress { flex-wrap: wrap; }
.home-direct-error { border-left: 3px solid #1aff8e; padding: 4px 0 4px 14px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .password-toggle:hover { background: #e2f8ea; } }
@media (max-width: 760px) {
  .field input, .field select, .field textarea, .context-form select, .context-form input { font-size: 16px; }
  .recovery-actions { align-items: stretch; }
  .recovery-actions > * { width: 100%; }
  .recovery-actions .button { width: 100%; }
  .management-form .button { white-space: normal; line-height: 1.5; }
  .ops-consent { align-items: flex-start; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: background-color 100ms ease; } .button:active:not(:disabled):not(:focus-visible) { transform: none; } }
/* Mobile company context stays readable instead of shrinking its fields. */
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 64px; align-items: flex-start; }
  .topbar-leading { padding-top: 8px; }
  .management-context { flex: 1; min-width: 0; max-width: none; }
  .management-context .context-form { display: grid; grid-template-columns: minmax(0, 1fr) 40px; width: 100%; height: auto; }
  .management-context .context-client { grid-column: 1 / -1; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); min-height: 44px; }
  .management-context .context-client select { font-size: 16px !important; min-height: 44px; min-width: 0; }
  .management-context .context-period { width: 100%; min-height: 44px; }
  .management-context .context-period input { font-size: 16px !important; min-height: 44px; width: 100%; }
  .management-context .context-apply { min-height: 44px; width: 40px; }
  .management-context .directory-all { font-size: 11px; padding: 10px 4px; }
}

/* Direction control follows the existing company/period form. */
.context-form{flex-wrap:wrap}#global-direction{max-width:110px;min-width:0} .management-context{min-width:0}
@media(max-width:700px){#global-direction{max-width:100%;width:100%}}

@media(max-width:700px){.management-context .context-period{grid-column:1 / -1}.management-context #global-direction{grid-column:1;max-width:none;min-height:44px;width:100%}.management-context .context-apply{grid-column:2}}
