* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1a73c7;
  --blue-dark: #135a9e;
  --bg: #f4f6f9;
  --border: #d4dae3;
  --text: #2b3440;
  --hint: #8a94a3;
}

body {
  font-family: "Yu Gothic UI", "Meiryo UI", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

h2 {
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 8px;
}

.hint {
  font-size: 11px;
  color: var(--hint);
  font-weight: normal;
}

.name-error {
  font-size: 12px;
  color: #c0392b;
  margin: 6px 0 0;
  min-height: 1em;
}

.hidden {
  display: none !important;
}

/* ---- ヘッダー ---- */
.app-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.app-header h1 {
  font-size: 16px;
  color: var(--blue-dark);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-label {
  font-size: 12px;
  color: #5a6472;
}

/* ---- タブ ---- */
.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 20px;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
  background: #eef1f6;
  color: #5a6472;
  cursor: pointer;
}

.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: bold;
}

#view-convert,
#view-youin {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---- 一覧系ビュー(案件一覧・要員一覧・提案・企業情報) ---- */
#view-list,
#view-youinlist,
#view-teian,
#view-teian-analytics,
#view-company {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px;
  gap: 10px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-toolbar input[type="text"] {
  flex: 1;
  max-width: 360px;
}

.dir-label {
  margin-left: auto;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-table-wrap {
  flex: 1;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.list-table th {
  position: sticky;
  top: 0;
  background: #f0f4f9;
  color: #40506a;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.list-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #ecf0f5;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-table tbody tr {
  cursor: pointer;
}

.list-table tbody tr:hover {
  background: #f2f7fd;
}

.list-empty {
  padding: 40px;
  text-align: center;
  color: var(--hint);
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: bold;
  background: #e4e9f0;
  color: #4a5568;
}

.status-badge.status-0 { background: #dcefdd; color: #1d7a33; } /* 募集中 */
.status-badge.status-1 { background: #dfeafc; color: #1a5dbb; } /* 提案中 */
.status-badge.status-2 { background: #fdeecd; color: #a06a00; } /* 決定 */
.status-badge.status-3 { background: #eeeeee; color: #777;    } /* 終了 */
.status-badge.status-4 { background: #e7e0fb; color: #5b3fb5; }
.status-badge.status-5 { background: #fde0ea; color: #b52b60; }
.status-badge.status-6 { background: #e0f3f5; color: #157b86; }
.status-badge.status-closed { background: #eeeeee; color: #777; }
.status-badge.status-none { background: #e4e9f0; color: #4a5568; }

/* 一覧のステータス列に置く、色付きインライン選択(案件・要員で共通) */
.status-sel {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #e4e9f0;
  color: #4a5568;
  cursor: pointer;
  max-width: 8.5em;
}
.status-sel.status-0 { background: #dcefdd; color: #1d7a33; }
.status-sel.status-1 { background: #dfeafc; color: #1a5dbb; }
.status-sel.status-2 { background: #fdeecd; color: #a06a00; }
.status-sel.status-3 { background: #eeeeee; color: #777; }
.status-sel.status-4 { background: #e7e0fb; color: #5b3fb5; }
.status-sel.status-5 { background: #fde0ea; color: #b52b60; }
.status-sel.status-6 { background: #e0f3f5; color: #157b86; }
.status-sel.status-closed { background: #eeeeee; color: #777; } /* クローズは両一覧で同じグレー */
.status-sel.status-none { background: #e4e9f0; color: #4a5568; }

/* 管理者設定ブロック(設定モーダル内) */
.admin-block {
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #e3c98a;
  border-radius: 6px;
  background: #fffaf0;
}

.admin-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #8a6d1f;
}

/* ---- 企業情報 ---- */
#view-company {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px;
  gap: 10px;
}

.company-search {
  position: relative;
}

.suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(30, 40, 55, 0.15);
  max-height: 260px;
  overflow-y: auto;
}

.suggest-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.suggest-item:hover {
  background: #f2f7fd;
}

.suggest-empty {
  padding: 10px 12px;
  color: var(--hint);
  font-size: 12px;
}

.modal-body.company-body-modal {
  width: min(1240px, 95vw);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 16px;
}

.company-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: bold;
}

.company-grid .span2 {
  grid-column: span 2;
}

.company-grid .span3 {
  grid-column: span 3;
}

/* 企業一覧: 項目の切れ目に罫線 */
.list-table.bordered th,
.list-table.bordered td {
  border: 1px solid #ccd5e3;
}

/* 企業一覧の列幅: 部署名・担当者1・取引状況・情報共有の手段は84pxで統一、
   余りは備考へ。横スクロールが出ないよう上限を付け、はみ出す文字は「…」で省略 */
#company-table th:nth-child(1) { width: 44px; }
#company-table td:nth-child(2) { max-width: 170px; }
#company-table th:nth-child(3),
#company-table th:nth-child(4),
#company-table th:nth-child(5),
#company-table th:nth-child(6) { width: 84px; }
#company-table td:nth-child(3),
#company-table td:nth-child(4),
#company-table td:nth-child(5),
#company-table td:nth-child(6) { max-width: 84px; }
#company-table td:nth-child(7) { max-width: 520px; }
#company-table th:nth-child(8) { width: 70px; }
/* 「情報共有の手段」の見出しは折り返して84pxに収める */
#company-table th:nth-child(6) { white-space: normal; }

.check-row {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fdfdfd;
  padding: 6px 10px;
}

.check-row .check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  font-size: 13px;
  flex-direction: row;
}

.req {
  color: #b3261e;
  font-size: 10.5px;
  font-weight: normal;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  background: #dce6f5;
}

.sort-mark {
  font-size: 10px;
  color: var(--accent);
}

.recno-line {
  font-size: 12.5px;
  color: #40506a;
  font-weight: bold;
  padding: 2px 0 4px;
}

/* ---- 案件詳細モーダル ---- */
.modal-body.detail-body {
  width: min(720px, 90vw);
}

.detail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#detail-output {
  max-height: 45vh;
  overflow-y: auto;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  font-family: inherit;
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

.inline-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: bold;
}

.btn.danger {
  color: #b3261e;
  border-color: #e3b6b3;
}

.btn.danger:hover {
  background: #fbeeed;
}

/* ---- パートナー情報 ---- */
.partner-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 14px;
}

.partner-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  max-width: 900px;
}

.partner-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #5a6472;
}

/* ---- 3カラム ---- */
.columns {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  min-height: 0;
}

.col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 左: 貼り付け */
.col-paste textarea {
  flex: 1;
  resize: none;
}

/* 中: 編集欄 */
.fields-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.fields-scroll label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: bold;
  font-size: 12px;
}

.inline-row {
  display: flex;
  gap: 6px;
}

.inline-row input {
  flex: 1;
}

/* 右: プレビュー(直接編集できるtextarea) */
#preview,
#y-preview {
  flex: 1;
  overflow-y: auto;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  resize: none;
  width: 100%;
}

.edit-status {
  color: #b26a00;
  font-size: 12px;
  font-weight: bold;
}

.hidden-btn {
  display: none;
}

/* ---- 提案(案件×要員) ---- */
.teian-section {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: #f7fafd;
  border: 1px solid #e2eaf2;
  border-radius: 8px;
}
.teian-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.teian-table {
  width: 100%;
  border-collapse: collapse;
}
.teian-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #e8eef4;
  vertical-align: middle;
}
.teian-name {
  font-weight: bold;
}
.teian-sub {
  display: block;
  font-weight: normal;
  font-size: 11px;
  color: #7a889a;
}
.teian-add {
  margin-top: 10px;
  align-items: center;
  gap: 8px;
}
.teian-add select {
  min-width: 240px;
}

/* ---- スキルシート添付 ---- */
.sheet-name {
  font-size: 12px;
  color: #5a6472;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 要員のパートナー欄は 企業名/担当者/仕入値/スキルシート の4項目 */
#view-youin .partner-fields {
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  max-width: 1200px;
}

/* ---- 提案の詳細(左:案件 右:要員) ---- */
.modal-body.teian-detail-body {
  width: min(1400px, 96vw);
  max-width: 1400px;
}
.teian-detail-head input[type="date"] {
  padding: 4px 6px;
}
.td-memo {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #5a6472;
}
.td-memo textarea {
  width: 100%;
  margin-top: 4px;
}
/* 補足メモ(社内共有) */
.note-inline { display: block; margin-top: 8px; font-size: 12px; color: #5a6472; }
.note-inline textarea { width: 100%; margin-top: 4px; resize: vertical; }
.note-block {
  margin-top: 12px;
  padding: 8px 10px;
  background: #fbfdff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.note-label { font-size: 12px; color: #5a6472; margin-bottom: 4px; display: block; }
.note-block textarea { width: 100%; resize: vertical; }
.note-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
/* 進捗メモ(追記ログ) */
.td-progress { margin-top: 14px; }
.td-progress-head { font-size: 12px; color: #5a6472; margin-bottom: 4px; }
.td-progress-add { display: flex; gap: 8px; align-items: flex-start; }
.td-progress-add textarea { flex: 1; resize: vertical; }
.td-progress-add .btn { white-space: nowrap; }
.td-progress-log { margin-top: 10px; max-height: 220px; overflow-y: auto; }
.pglog-empty { font-size: 12px; color: #90a0b3; padding: 4px 2px; }
.pglog-item {
  border-left: 3px solid #cdd8e6;
  background: #f7fafc;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.pglog-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.pglog-by { font-weight: bold; font-size: 12px; color: #33475b; }
.pglog-at { font-size: 11px; color: #8b98a8; }
.pglog-text { font-size: 13px; color: #2b3440; white-space: pre-wrap; word-break: break-word; }
.teian-detail-head {
  display: flex;
  align-items: flex-end; /* ステータス/提案日(ラベル上・操作下)を保存等のボタンと下端で揃える */
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.teian-detail-head h2 { margin: 0; }
.teian-detail-head .spacer { flex: 1; }
.teian-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch; /* 左右の枠の高さを揃える(見比べやすくするため) */
}
.td-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f7fafd;
  border: 1px solid #e2eaf2;
  border-radius: 8px;
  padding: 10px 12px;
}
.td-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.td-col-head h3 { margin: 0; font-size: 14px; }
.td-col h3 { margin: 0 0 8px; font-size: 14px; }
.td-col pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.6;
  flex: 1;               /* 枠いっぱいに広げて左右の高さを揃える */
  min-height: 300px;     /* 内容が短くても潰れないように */
  max-height: 60vh;      /* 長い内容だけスクロール */
  overflow: auto;
  margin: 0;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 6px;
  padding: 10px;
}

/* ---- 入力部品 ---- */
input[type="text"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fdfdfd;
  color: var(--text);
  font-weight: normal;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9cc3e8;
  border-color: var(--blue);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

/* ---- ボタン ---- */
.btn {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap; /* 幅が足りなくても「コ・ピ・ー」と縦に折れないようにする */
}

.btn:hover {
  background: #f0f4f9;
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: bold;
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
}

.btn.small {
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* 幅が足りないときは各要素を縮めるのではなく次の行へ折り返す。
   これでボタンやプルダウンが最小幅まで潰れて縦書きになるのを防ぐ */
.btn-row > * {
  flex-shrink: 0;
  max-width: 100%;
}

/* 詳細モーダルはステータスがラベル上・プルダウン下の2段になるため、
   ボタンを下端に揃えてプルダウンと同じ行に並べる(ラベルだけ一段上に出る) */
.modal-body .btn-row {
  align-items: flex-end;
}

/* 編集中の注意書き・コピー結果は幅が足りないと1文字ずつ縦に潰れるため、
   常に自分の行に回して横書きで表示する */
.btn-row .edit-status:not(:empty),
.btn-row .copy-status:not(:empty) {
  flex: 1 0 100%;
}

.copy-status {
  color: #1d8a44;
  font-size: 12px;
  font-weight: bold;
}

/* ---- 設定モーダル ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-body {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* ---- 提案タブ: 管理者向けの担当者別集計 ---- */
.teian-summary {
  margin: 4px 0 6px;
  padding: 8px 12px 10px;
  background: #fbfcfe;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  overflow-x: auto; /* ステータス列が増えても横スクロールで収める */
}
.teian-summary-title {
  font-size: 13px;
  font-weight: bold;
  color: #33475b;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.teian-summary-title .ts-sub {
  font-size: 11px;
  font-weight: normal;
  color: var(--hint);
}
.teian-summary-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.teian-summary-table th,
.teian-summary-table td {
  padding: 2px 12px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #eef2f6;
}
.teian-summary-table th.ts-name,
.teian-summary-table td.ts-name {
  text-align: left;
  font-weight: bold;
  color: #40506a;
  min-width: 88px;
}
.teian-summary-table th.ts-h {
  font-size: 12px;
}
/* ステータスごとの色分け(見出し) */
.teian-summary-table th.ts-honnin  { background: #e4e9f0; color: #4a5568; }
.teian-summary-table th.ts-teian   { background: #e6effc; color: #1a5dbb; }
.teian-summary-table th.ts-mendan  { background: #fdeecd; color: #a06a00; }
.teian-summary-table th.ts-seiyaku { background: #dcefdd; color: #1d7a33; }
.teian-summary-table th.ts-miokuri { background: #ececec; color: #6b7280; }
.teian-summary-table th.ts-close { background: #dcdee3; color: #4b5563; }
.teian-summary-table td.ts-num {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #2b3440;
}
.teian-summary-table td.ts-zero { color: #ccd4de; } /* 0件は薄く見せる */
/* 合計列を強調 */
.teian-summary-table th.ts-total { background: #33475b; color: #fff; }
.teian-summary-table td.ts-total {
  background: #f2f7fb;
  font-weight: bold;
  font-size: 13px;
}
/* 合計行を強調 */
.teian-summary-table tr.ts-totalrow td {
  border-top: 2px solid #c3d3e2;
  background: #eef4fa;
  font-weight: bold;
}

/* ---- 一覧のページ送り ---- */
.pager-btn {
  padding: 3px 9px;
  min-width: 28px;
}
.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
#list-pageinfo, #youin-pageinfo, #teianlist-pageinfo, #company-pageinfo {
  min-width: 150px;
  text-align: center;
}

/* ---- 提案分析タブ ---- */
.ta-title { margin: 0; font-size: 16px; }
.ta-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ta-block {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
.ta-h {
  margin: 0 0 8px;
  font-size: 14px;
  color: #33475b;
  border-bottom: 2px solid #eef2f6;
  padding-bottom: 6px;
}
.ta-sub {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: bold;
  color: #607089;
}
.ta-tables { overflow-x: auto; }
.ta-week-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ta-week-row select { padding: 3px 6px; }
/* ①全体: 案件/要員パートナーを左右2列に */
.ta-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}
.ta-two .ta-sub { margin-top: 0; }
/* ②担当者別: カードを横に並ぶグリッドに(空白を詰める) */
#ta-owner-anken,
#ta-owner-youin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  align-items: start;
}
.ta-owner {
  margin: 0;
  padding: 8px 10px;
  background: #f7fafc;
  border-radius: 6px;
  overflow-x: auto;
}
.ta-owner-name {
  font-size: 13px;
  font-weight: bold;
  color: #40506a;
  margin-bottom: 4px;
}
.ta-empty {
  font-size: 12px;
  color: #90a0b3;
  padding: 6px 2px;
}

/* ---- 読み込みインジケータ(各一覧の「読み込み中」の横に小さく) ---- */
.mini-loading {
  display: inline-block;
  vertical-align: middle;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: #e6edf5;
  overflow: hidden;
  position: relative;
}
.mini-loading.hidden { display: none; }
.mini-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: #2f6fed;
  animation: mini-loading-move 1s ease-in-out infinite;
}
@keyframes mini-loading-move {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ---- ログイン画面 ---- */
.login-screen {
  position: fixed; inset: 0; z-index: 3000;
  background: #1e2761;
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 340px; max-width: 90vw;
  background: #fff; border-radius: 12px; padding: 28px 26px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 12px;
}
.login-title { font-size: 18px; font-weight: bold; color: #1e2761; }
.login-sub { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.login-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: bold; color: #40506a; }
.login-field input {
  font-size: 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
}
.login-error { color: #b3261e; font-size: 12px; min-height: 16px; }
.login-btn { margin-top: 6px; padding: 10px; font-size: 15px; }
