@charset "UTF-8";

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  font-size: 1rem;
}
.sidebar-bottom [data-page="settings"] { display: none; }
.consultation-privacy { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf9; }
.consultation-privacy label { display: flex; align-items: center; gap: 9px; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.consultation-privacy p { margin: 8px 0 0; font-size: .875rem; }
.badge.private-log { color: #78516f; background: #f2e8ef; }
.record-actions { display: flex; justify-content: flex-end; margin-top: 9px; }
.drawer-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.drawer-head > div:first-child { min-width: 0; }
.row-record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-record-actions .button { white-space: nowrap; }
@media (max-width: 600px) {
  .drawer-head { flex-wrap: wrap; }
  .drawer-head-actions { width: 100%; justify-content: space-between; }
  .drawer-head-actions .button { flex: 1; }
}

.auth-intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 48px clamp(32px, 5vw, 88px) 32px;
  color: #fff;
  background: linear-gradient(155deg, #153d40 0%, #17363f 52%, #172b38 100%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}

.auth-brand:hover { color: #fff; text-decoration: none; }
.auth-symbol {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #4c827b;
  border-radius: 11px;
  color: #c4f7e9;
  background: #285e59;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.auth-copy { margin: auto 0; padding: 80px 0 34px; }
.auth-copy .auth-symbol { width: 72px; height: 72px; margin-bottom: 25px; border-radius: 18px; }
.auth-copy .auth-symbol svg { width: 42px; height: 42px; }
.auth-copy h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.05em;
  word-break: keep-all;
}
.auth-copy p {
  max-width: 390px;
  margin: 0;
  color: #bfd2d1;
  font-size: 1rem;
  line-height: 1.9;
  word-break: keep-all;
}
.auth-features { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 34px 0 0; list-style: none; }
.auth-features li { display: flex; align-items: flex-start; gap: 12px; color: #d8e8e4; font-size: .9375rem; line-height: 1.7; }
.auth-features li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: .6em; border: 1px solid #90cabb; border-radius: 2px; background: #4a8f7e; }
.auth-features li svg { flex-shrink: 0; margin-top: 3px; color: #a4d9cb; }
.auth-features li:has(svg)::before { display: none; }
.auth-foot { margin: 48px 0 0; color: #a7bfbd; font-size: .875rem; line-height: 1.7; }

.auth-main { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 60px 48px; background: #fff; }
.auth-card { width: 100%; max-width: 440px; min-width: 0; }
.auth-eyebrow { margin: 0 0 12px; color: var(--accent, #087f78); font-size: .875rem; font-weight: 650; letter-spacing: .015em; }
.auth-main h1 { margin: 0 0 12px; color: #192c3c; font-size: 1.875rem; line-height: 1.4; font-weight: 730; letter-spacing: -.045em; word-break: keep-all; }
.auth-subtitle { margin: 0 0 32px; color: #687586; font-size: 1rem; line-height: 1.8; word-break: keep-all; }
.auth-form { display: flex; flex-direction: column; gap: 21px; margin: 0; }
.auth-form .field { width: 100%; min-width: 0; }
.auth-form .field label { margin-bottom: 9px; font-size: .875rem; color: #435768; font-weight: 600; }
.auth-form .field input:not([type="checkbox"]):not([type="radio"]),
.auth-form .field select,
.auth-form .field textarea { min-height: 49px; padding: 12px 14px; border-color: #d7e0e5; border-radius: 9px; font-size: 1rem; background-color: #fff; }
.auth-form .field input:focus, .auth-form .field select:focus, .auth-form .field textarea:focus { border-color: #4a9d92; }
.auth-form .field input::placeholder { color: #909ba7; }
.auth-form > .button, .auth-form > button[type="submit"] { width: 100%; min-height: 49px; margin-top: 4px; padding: 12px 18px; border-radius: 9px; font-size: 1rem; font-weight: 650; }
.auth-form .field-grid { gap: 18px; }
.auth-note { margin: 25px 0 0; padding: 15px 17px; border: 1px solid #e1e9e8; border-radius: 10px; background: #f6f9f8; color: #647873; font-size: .875rem; line-height: 1.75; word-break: keep-all; }
.auth-note strong { color: #3f6c61; font-weight: 600; }
.auth-note p { margin: 0 0 6px; }
.auth-note p:last-child { margin-bottom: 0; }
.auth-error { padding: 13px 15px; margin: 0 0 20px; border: 1px solid #edcdd1; border-radius: 9px; background: #fff5f6; color: #a93747; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.auth-form .auth-error { margin: 0; }
.auth-switch { margin: 24px 0 0; text-align: center; color: #748291; font-size: .875rem; line-height: 1.8; }
.auth-switch .link-button { min-height: 30px; margin-left: 4px; font-size: .875rem; }
.auth-switch a { font-weight: 600; }
.password-hint { display: block; margin: 7px 0 0; color: #748291; font-size: .875rem; line-height: 1.7; word-break: keep-all; }
.auth-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; min-height: 100vh; min-height: 100dvh; padding: 32px; background: #f4f7f7; color: #536f70; font-size: 1rem; text-align: center; }
.auth-loading .auth-symbol { width: 44px; height: 44px; background: #e3f1ec; border-color: #c9e2da; color: #347d6e; }
.auth-loading p { margin: 0; }

.company-user { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.company-user-name { color: #33495b; font-size: .9375rem; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.company-user-id { display: block; color: #748291; font-size: .875rem; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.company-user .avatar { flex-shrink: 0; }
.member-count { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid #d9e9e3; border-radius: 7px; color: #497868; background: #eff7f3; font-size: .875rem; font-weight: 550; white-space: nowrap; }
.user-status { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 6px; color: #697787; background: #edf1f4; font-size: .875rem; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.user-status.active { color: #297860; background: #e8f5ed; }
.user-status.pending { color: #926a24; background: #fcf3df; }
.user-status.inactive { color: #7a6d75; background: #f1edf0; }
.users-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; padding: 18px 23px; border-bottom: 1px solid var(--line, #e4e9ed); }
.users-toolbar p { margin: 0; color: #687586; font-size: .875rem; }
.users-toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.invite-link { display: flex; align-items: stretch; gap: 9px; width: 100%; min-width: 0; padding: 12px; border: 1px solid #dbe8e2; border-radius: 10px; background: #f3f9f6; }
.invite-link input { flex: 1 1 0; width: 0; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #d3e2db; border-radius: 7px; color: #4e6e62; background: white; font-size: .875rem; text-overflow: ellipsis; }
.invite-link button { flex-shrink: 0; min-height: 43px; padding: 10px 14px; border: 1px solid #bdd7cb; border-radius: 7px; color: #326c57; background: #fff; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.invite-link button:hover { border-color: #7baa98; background: #eaf4ef; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.account-grid > * { min-width: 0; }
.account-grid .panel { margin-bottom: 0; }
.account-grid .field + .field { margin-top: 18px; }
.account-grid .button { margin-top: 19px; }

@media (min-width: 1600px) {
  .auth-intro { padding-top: 58px; padding-bottom: 42px; }
  .auth-card { max-width: 460px; }
  .auth-copy h1 { font-size: 2.75rem; }
}

@media (max-width: 1100px) {
  .auth-intro { padding: 38px 32px 28px; }
  .auth-main { padding: 50px 36px; }
  .auth-copy h1 { font-size: 2rem; }
  .auth-copy p { font-size: .9375rem; }
  .auth-features li { font-size: .875rem; }
}

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .auth-intro { padding: 20px 26px; }
  .auth-brand { gap: 10px; font-size: 1.25rem; }
  .auth-symbol { width: 32px; height: 32px; border-radius: 9px; font-size: 1.125rem; }
  .auth-copy, .auth-features, .auth-foot { display: none; }
  .auth-main { align-items: flex-start; padding: 48px 26px 42px; }
  .auth-card { max-width: 460px; }
  .auth-main h1 { font-size: 1.75rem; }
  .auth-subtitle { margin-bottom: 29px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 480px) {
  .auth-intro { padding: 17px 20px; }
  .auth-main { padding: 36px 20px 32px; }
  .auth-eyebrow { margin-bottom: 9px; }
  .auth-main h1 { font-size: 1.625rem; }
  .auth-form { gap: 19px; }
  .auth-note { padding: 13px 14px; margin-top: 23px; }
  .auth-switch { margin-top: 21px; }
  .users-toolbar { padding: 16px; }
  .users-toolbar > div { width: 100%; }
  .users-toolbar .button { flex: 1; }
  .invite-link { gap: 7px; padding: 10px; }
  .invite-link input { font-size: 1rem; }
  .invite-link button { padding: 9px 11px; }
  .company-user { gap: 8px; }
  .top-actions .company-user-id { display: none; }
}

@media (max-height: 680px) and (min-width: 801px) {
  .auth-intro { padding-top: 30px; padding-bottom: 24px; }
  .auth-copy { padding-top: 40px; padding-bottom: 20px; }
  .auth-copy h1 { margin-bottom: 17px; }
  .auth-features { margin-top: 24px; gap: 11px; }
  .auth-foot { margin-top: 24px; }
  .auth-main { padding-top: 35px; padding-bottom: 35px; }
}

.auth-register {display:grid;gap:12px;margin-top:22px;padding-top:22px;border-top:1px solid #e1e9ed;text-align:center;}
.auth-register > span {color:#627180;font-size:14px;}
.auth-register .button,.auth-wide {width:100%;justify-content:center;}
.auth-back {display:block;margin:20px auto 0;}
.approval-status-card {padding:24px;border:1px solid #d2e8e4;border-radius:12px;background:#f3faf8;text-align:center;line-height:1.8;margin-bottom:22px;}
.approval-status-card p {font-size:15px;color:#506675;margin:12px 0 0;}
.approval-status-icon {color:#00867d;margin-bottom:12px;}
.approval-count {background:#d9f2e9;color:#07594f;}
.approval-list {padding:0 20px;}
.approval-applicant {display:flex;align-items:center;gap:20px;justify-content:space-between;padding:20px 0;border-top:1px solid #e5ecef;}
.approval-applicant:first-child {border-top:0;}
.approval-applicant > div:first-child {flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.7;}
.approval-actions {display:flex;gap:8px;}
@media(max-width:600px){.approval-applicant{flex-wrap:wrap;gap:12px;}.approval-actions{width:100%;}.approval-actions .button{flex:1;justify-content:center;}.approval-panel .panel-head{flex-wrap:wrap;gap:8px;}.approval-applicant > div:first-child{flex-basis:60%;}}
