:root {
  --forest: #173f37;
  --forest-2: #24594d;
  --mint: #e8f3ef;
  --accent: #168767;
  --ink: #17211e;
  --muted: #68756f;
  --line: #dce4e0;
  --soft-line: #e9eeeb;
  --surface: #ffffff;
  --canvas: #eef2f0;
  --blue: #3869bd;
  --orange: #b26b20;
  --purple: #7550a6;
  --red: #b94e52;
  --shadow: 0 18px 60px rgba(27, 55, 46, .18);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(22, 135, 103, .2);
  outline-offset: 1px;
}

.hidden { display: none !important; }

.demo-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1440px);
  justify-content: center;
  background: var(--canvas);
}

.employee-workspace {
  min-width: 0;
  height: 100vh;
  position: relative;
  display: none;
  grid-template-rows: 62px minmax(0, 1fr);
  background: #f5f7f6;
  overflow: hidden;
}
body[data-active-employee="employee-a"] #workspace-employee-a,
body[data-active-employee="employee-b"] #workspace-employee-b,
body[data-active-employee="employee-c"] #workspace-employee-c { display: grid; }

.workspace-header {
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.employee-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--forest-2);
  font-size: 12px;
  font-weight: 700;
}
.employee-workspace:nth-child(2) .employee-avatar { background: #496d9c; }
.workspace-title { min-width: 0; }
.workspace-title strong { display: block; font-size: 13px; }
.workspace-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.workspace-sync { margin-left: auto; color: var(--accent); font-size: 9px; font-weight: 700; }
.workspace-sync.offline { color: #a66a21; }
.employee-switcher-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.employee-switcher { height: 29px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 24px 4px 8px; color: var(--ink); background: #fff; font-size: 9px; font-weight: 700; }

.account-selection {
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: 24px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #f7fbf9 0, #e8f0ec 55%, #dce7e2 100%);
}
.account-selection-card { width: min(420px, 100%); padding: 32px; border: 1px solid #d6e2dc; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(23, 63, 55, .18); }
.account-selection-mark { width: 46px; height: 46px; margin-bottom: 19px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.account-selection-card h1 { margin: 0; color: var(--forest); font-size: 21px; }
.account-selection-card > p { margin: 8px 0 22px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.account-selection-options { display: grid; gap: 9px; }
.account-option { width: 100%; padding: 11px 13px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.account-option:hover { border-color: #86b7a8; background: #f1f8f5; transform: translateY(-1px); }
.account-option-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--forest-2); font-size: 13px; font-weight: 700; }
.account-option-2 .account-option-avatar { background: #496d9c; }
.account-option-3 .account-option-avatar { background: #8a6a43; }
.account-option strong, .account-option small { display: block; }
.account-option strong { font-size: 12px; }
.account-option small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.account-option-arrow { color: #7c9188; font-size: 22px; }
body.account-selection-active { overflow: hidden; }
body.account-selection-active .demo-split { visibility: hidden; }

.workspace-body { min-height: 0; display: grid; grid-template-columns: 116px minmax(0, 1fr); }
.workspace-nav {
  min-width: 0;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #d8e5e0;
  background: #203f37;
}
.nav-label { padding: 5px 9px 8px; color: #839f96; font-size: 8px; letter-spacing: .08em; }
.nav-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b9cbc5;
  background: transparent;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
}
.nav-button:hover { background: rgba(255,255,255,.06); }
.nav-button.active { color: #fff; background: #315d51; }
.nav-icon { width: 19px; text-align: center; font-size: 15px; }
.nav-count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; color: #fff; background: #d56758; text-align: center; line-height: 18px; font-size: 8px; }
.nav-help { margin-top: auto; padding: 10px 8px; border-top: 1px solid #36554c; color: #8ca69d; font-size: 8px; line-height: 1.6; }
.demo-reset-button {
  width: 100%;
  margin-top: 2px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 180, 174, .42);
  border-radius: 7px;
  color: #ffd2ce;
  background: rgba(130, 39, 42, .18);
  font-size: 8px;
  font-weight: 700;
}
.demo-reset-button:hover { background: rgba(150, 45, 48, .32); }
.demo-reset-button:disabled { cursor: wait; opacity: .62; }

.workspace-main { min-width: 0; min-height: 0; position: relative; overflow: hidden; }
.talk-layout { height: 100%; display: grid; grid-template-columns: minmax(210px, 31%) minmax(0, 1fr); }

.conversation-list {
  min-width: 0;
  overflow-y: auto;
  background: #fafbfa;
  border-right: 1px solid var(--line);
}
.list-head { position: sticky; top: 0; z-index: 3; padding: 13px 12px 10px; background: rgba(250,251,250,.96); border-bottom: 1px solid var(--soft-line); }
.list-head-row { display: flex; align-items: center; justify-content: space-between; }
.list-head h2 { margin: 0; font-size: 14px; }
.list-head small { color: var(--muted); font-size: 8px; }
.mini-search { width: 100%; margin-top: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; background: #fff; font-size: 9px; }

.conversation-card {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  padding: 11px 11px 10px;
  display: block;
  color: inherit;
  background: #fff;
  text-align: left;
}
.conversation-card:hover { background: #f3f8f6; }
.conversation-card.active { background: #e8f3ef; box-shadow: inset 3px 0 0 var(--accent); }
.conversation-top { display: flex; align-items: center; gap: 6px; }
.company-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--forest); background: #e3ece8; font-size: 10px; font-weight: 700; }
.conversation-card.active .company-avatar { color: #fff; background: var(--accent); }
.company-name { min-width: 0; flex: 1; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-time { color: var(--muted); font-size: 8px; }
.unread-count { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; color: #fff; background: #d65e52; text-align: center; line-height: 17px; font-size: 8px; }
.latest-message { margin: 7px 0 6px 34px; color: #5f6c66; font-size: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.presence-line { margin: 0 0 6px 34px; color: var(--accent); font-size: 8px; font-weight: 700; }
.mini-orders { margin-left: 34px; display: grid; gap: 4px; }
.mini-order { min-width: 0; display: flex; align-items: center; gap: 5px; color: #596761; font-size: 7.5px; }
.mini-order span:first-child { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-items { margin-left: 34px; margin-top: 4px; color: var(--muted); font-size: 7.5px; }
.conversation-update { margin: 7px 0 0 34px; color: #8a958f; font-size: 7.5px; }

.conversation-view { min-width: 0; min-height: 0; display: grid; grid-template-rows: 56px minmax(0, 1fr); background: #f6f8f7; }
.conversation-empty { height: 100%; display: grid; place-items: center; color: var(--muted); text-align: center; }
.empty-illustration { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 17px; color: var(--accent); background: var(--mint); font-size: 24px; }
.conversation-empty strong { display: block; color: #3d4b45; font-size: 12px; }
.conversation-empty small { display: block; margin-top: 4px; font-size: 9px; }
.chat-header { padding: 0 13px; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-header h2 { margin: 0; font-size: 13px; }
.chat-header p { margin: 2px 0 0; color: var(--accent); font-size: 8px; }
.chat-header-actions { margin-left: auto; display: flex; gap: 6px; }
.subtle-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; color: #51605a; background: #fff; font-size: 8px; font-weight: 700; }
.subtle-button:hover { background: #f4f7f5; }

.chat-and-items { min-height: 0; }
.chat-column { height: 100%; min-width: 0; min-height: 0; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.image-drop-overlay {
  position: absolute;
  inset: 8px;
  z-index: 12;
  display: none;
  place-content: center;
  border: 2px dashed var(--accent);
  border-radius: 11px;
  color: var(--forest);
  background: rgba(232, 243, 239, .95);
  text-align: center;
  pointer-events: none;
}
.image-drop-overlay strong { display: block; font-size: 12px; }
.image-drop-overlay span { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.chat-column.is-image-dragging .image-drop-overlay { display: grid; }
.message-list { min-height: 0; overflow-y: auto; padding: 14px 12px; background: #edf3f0; }
.date-divider { margin: 3px 0 12px; color: #79867f; font-size: 8px; text-align: center; }
.message-row { margin: 8px 0; display: flex; align-items: flex-end; gap: 6px; }
.message-row.employee { justify-content: flex-end; }
.message-avatar { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #7c9289; font-size: 8px; font-weight: 700; }
.message-content { max-width: 82%; }
.message-sender { margin: 0 3px 3px; color: #6d7a74; font-size: 7px; }
.employee .message-sender { text-align: right; }
.message-bubble { padding: 8px 10px; border-radius: 3px 11px 11px 11px; background: #fff; box-shadow: 0 1px 2px rgba(20,47,38,.07); font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.employee .message-bubble { color: #173a30; background: #cbead9; border-radius: 11px 3px 11px 11px; }
.message-time { margin-top: 3px; color: #849089; font-size: 7px; }
.employee .message-time { text-align: right; }
.delivery-state { margin-left: 3px; font-weight: 700; }
.delivery-state.pending { color: #8a5f19; }
.delivery-state.sent { color: #55726a; }
.delivery-state.failed { color: var(--red); }
.message-image { display: block; width: min(180px, 100%); max-height: 150px; border-radius: 7px; object-fit: cover; }
.message-composer { padding: 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; background: #fff; border-top: 1px solid var(--line); }
.message-input { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 9px; }
.send-button { border: 0; border-radius: 7px; padding: 0 12px; color: #fff; background: var(--accent); font-size: 9px; font-weight: 700; }
.inline-orders { max-height: 170px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); }
.inline-orders-head { padding: 7px 10px 5px; display: flex; align-items: center; gap: 6px; }
.inline-orders-head strong { font-size: 9px; }
.inline-orders-head span { color: var(--muted); font-size: 7px; }
.inline-order-labels, .inline-order-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(100px, .85fr) minmax(55px, .55fr); gap: 8px; align-items: center; }
.inline-order-labels { padding: 4px 10px; color: #829089; background: #f7f9f8; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); font-size: 7px; }
.inline-order-row { width: 100%; min-height: 34px; padding: 4px 10px; border-bottom: 1px solid var(--soft-line); color: #53615b; background: #fff; text-align: left; font-size: 8px; }
.inline-order-row:hover { background: #f2f8f5; }
.inline-name-input, .inline-status-select, .inline-updater-select { width: 100%; min-width: 0; height: 26px; border: 1px solid transparent; border-radius: 5px; padding: 3px 5px; color: var(--ink); background: transparent; font-size: 8px; }
.inline-name-input { font-weight: 700; text-overflow: ellipsis; }
.inline-name-input:hover, .inline-status-select:hover, .inline-updater-select:hover { border-color: #bfd0c9; background: #fff; }
.inline-name-input:focus, .inline-status-select:focus, .inline-updater-select:focus { border-color: var(--accent); background: #fff; outline: 2px solid rgba(22, 135, 103, .13); }
.inline-status-select { font-weight: 700; }
.inline-status-select.unhandled { color: #58655f; background: #edf0ee; }
.inline-status-select.confirming { color: var(--blue); background: #e8effb; }
.inline-status-select.stock { color: var(--orange); background: #fff0da; }
.inline-status-select.estimate { color: var(--purple); background: #f0e9f8; }
.inline-status-select.confirmed { color: #187851; background: #e0f3e9; }
.inline-status-select.cancelled { color: var(--red); background: #f8e5e6; }
.inline-orders-empty { padding: 10px; color: var(--muted); border-top: 1px solid var(--soft-line); font-size: 8px; text-align: center; }
.inline-registration { background: #f8faf9; border-top: 1px solid var(--line); }
.inline-registration-toggle { width: 100%; padding: 7px 10px; display: flex; align-items: center; gap: 6px; border: 0; color: var(--accent); background: transparent; font-size: 8px; font-weight: 700; text-align: left; }
.inline-registration-toggle:hover { background: #edf7f2; }
.inline-registration-toggle span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 12px; line-height: 1; }
.inline-registration-form { max-height: 150px; padding: 0 9px 8px; overflow-x: hidden; overflow-y: auto; }
.inline-draft-labels, .inline-draft-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(76px, .8fr) 22px; gap: 5px; align-items: center; }
.inline-draft-labels { padding: 1px 2px 4px; color: var(--muted); font-size: 7px; }
.inline-draft-row { margin-bottom: 5px; }
.inline-draft-row input, .inline-draft-row select { width: 100%; min-width: 0; height: 27px; border: 1px solid #d2ddd8; border-radius: 5px; padding: 4px 6px; color: var(--ink); background: #fff; font-size: 8px; }
.inline-draft-row input:focus, .inline-draft-row select:focus { border-color: var(--accent); outline: 2px solid rgba(22, 135, 103, .13); }
.inline-draft-row button { width: 22px; height: 22px; border: 1px solid #ead1d2; border-radius: 5px; color: var(--red); background: #fff; font-size: 11px; }
.inline-registration-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inline-registration-actions small { margin-left: auto; color: var(--muted); font-size: 6.5px; }
.inline-add-row { border: 1px dashed #9fc4b7; border-radius: 5px; padding: 4px 7px; color: var(--accent); background: #fff; font-size: 7px; font-weight: 700; }
.inline-register-button { border: 0; border-radius: 5px; padding: 5px 9px; color: #fff; background: var(--accent); font-size: 8px; font-weight: 700; }
.no-order-items { margin: 22px 8px; padding: 16px 8px; border: 1px dashed #cbd7d2; border-radius: 8px; color: #78857f; text-align: center; font-size: 8px; line-height: 1.7; }
.editing-pill { flex: 0 0 auto; border-radius: 8px; padding: 2px 5px; color: #a65b15; background: #fff0d8; font-size: 6.5px; }

.status-badge { display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 10px; padding: 2px 6px; white-space: nowrap; font-size: 7px; font-weight: 700; }
.status-badge.unhandled { color: #58655f; background: #edf0ee; }
.status-badge.confirming { color: var(--blue); background: #e8effb; }
.status-badge.stock { color: var(--orange); background: #fff0da; }
.status-badge.estimate { color: var(--purple); background: #f0e9f8; }
.status-badge.confirmed { color: #187851; background: #e0f3e9; }
.status-badge.cancelled { color: var(--red); background: #f8e5e6; }

.overview-page { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); background: #f6f8f7; }
.page-header { padding: 14px 15px 10px; display: flex; align-items: flex-end; gap: 10px; }
.page-header h2 { margin: 0; font-size: 15px; }
.page-header p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.page-count { margin-left: auto; color: var(--forest); font-size: 10px; font-weight: 700; }
.overview-filters { margin: 0 12px 9px; padding: 9px; display: grid; grid-template-columns: 1.4fr repeat(4, minmax(84px, .8fr)); gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.overview-filters input, .overview-filters select { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 6px 7px; background: #fff; font-size: 8px; }
.filter-checks { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; color: #56645e; font-size: 8px; }
.filter-checks label { display: flex; align-items: center; gap: 5px; }
.filter-reset { margin-left: auto; border: 0; color: var(--accent); background: none; font-size: 8px; font-weight: 700; }
.overview-table-wrap { min-height: 0; margin: 0 12px 12px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.overview-table { width: 100%; border-collapse: collapse; font-size: 8px; }
.overview-table th { position: sticky; top: 0; z-index: 2; padding: 8px 7px; color: #68756f; background: #f5f8f6; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.overview-table td { padding: 8px 7px; border-bottom: 1px solid var(--soft-line); vertical-align: top; }
.overview-table tr[data-order-id] { cursor: pointer; }
.overview-table tr[data-order-id]:hover { background: #f0f7f4; }
.overview-table .cell-name { max-width: 130px; font-weight: 700; }
.overview-table .cell-muted { color: var(--muted); }
.viewer-text { color: var(--accent); font-weight: 700; }
.empty-table { padding: 40px !important; color: var(--muted); text-align: center; }

.modal-root { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(14, 31, 26, .65); backdrop-filter: blur(3px); }
.modal-card { width: min(640px, 96vw); max-height: 92vh; overflow: auto; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.modal-card.wide { width: min(820px, 96vw); }
.modal-header { position: sticky; top: 0; z-index: 5; padding: 16px 18px; display: flex; align-items: flex-start; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.modal-close { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 7px; color: #66736d; background: #f1f4f2; font-size: 18px; }
.modal-body { padding: 17px 18px; }
.modal-footer { position: sticky; bottom: 0; z-index: 5; padding: 12px 18px; display: flex; justify-content: flex-end; gap: 7px; background: #fff; border-top: 1px solid var(--line); }
.secondary-button, .primary-button, .danger-button { border-radius: 7px; padding: 8px 12px; font-size: 9px; font-weight: 700; }
.secondary-button { border: 1px solid var(--line); color: #53615b; background: #fff; }
.primary-button { border: 1px solid var(--accent); color: #fff; background: var(--accent); }
.danger-button { border: 1px solid #ecc9ca; color: var(--red); background: #fff7f7; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.field { min-width: 0; display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #46534e; font-size: 8px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #d5ded9; border-radius: 7px; padding: 8px 9px; background: #fff; font-size: 9px; }
.field textarea { min-height: 70px; resize: vertical; }
.required { color: var(--red); }
.form-note { margin-bottom: 12px; padding: 9px 10px; color: #52615b; background: #f0f6f3; border-radius: 7px; font-size: 8px; line-height: 1.6; }

.detail-summary { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.detail-summary .status-badge { font-size: 8px; padding: 4px 8px; }
.editing-warning { margin-left: auto; padding: 6px 8px; border-radius: 7px; color: #9a5518; background: #fff1dd; font-size: 8px; font-weight: 700; }
.progress-readonly { margin: 0 0 13px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 8px; color: #53615b; background: #f0f6f3; }
.progress-readonly strong { font-size: 8px; }
.progress-readonly span { margin-left: auto; color: var(--muted); font-size: 7px; }
.detail-meta { margin: 12px 0; padding: 9px 11px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; border-radius: 8px; background: #f5f7f6; }
.detail-meta small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 7px; }
.detail-meta strong { font-size: 9px; }
.history-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.history-section h3 { margin: 0 0 8px; font-size: 10px; }
.history-list { display: grid; gap: 8px; }
.history-item { position: relative; padding-left: 17px; color: #3d4a45; font-size: 8px; line-height: 1.55; }
.history-item::before { content: ""; position: absolute; left: 3px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.history-item::after { content: ""; position: absolute; left: 5.5px; top: 13px; bottom: -10px; width: 1px; background: #d9e4df; }
.history-item:last-child::after { display: none; }
.history-item small { display: block; color: var(--muted); font-size: 7px; }

.toast { position: fixed; left: 50%; bottom: 23px; z-index: 200; transform: translate(-50%, 20px); padding: 9px 14px; border-radius: 8px; color: #fff; background: #173f37; box-shadow: 0 8px 25px rgba(12,34,27,.25); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 9px; font-weight: 700; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.live-login-gate { min-height: 0; display: grid; place-items: center; background: #f0f5f2; }
.live-login-card { width: min(260px, calc(100% - 28px)); padding: 22px; display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 35px rgba(20, 47, 38, .12); text-align: center; }
.live-login-card strong { font-size: 13px; }
.live-login-card small { color: var(--muted); font-size: 8px; }
.live-login-card input { height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 9px; }
.live-login-card button { height: 34px; border: 0; border-radius: 7px; color: #fff; background: var(--accent); font-size: 9px; font-weight: 700; }
.live-spinner { width: 24px; height: 24px; margin: 5px auto 0; border: 3px solid #d9e6e1; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .employee-workspace { min-height: 760px; height: 100vh; }
}

@media (max-width: 800px) {
  .employee-workspace { height: auto; min-height: 900px; }
  .workspace-body { grid-template-columns: 84px minmax(0, 1fr); }
  .nav-button { padding: 9px 5px; font-size: 8px; }
  .talk-layout { grid-template-columns: 165px minmax(0, 1fr); }
  .chat-column { min-height: 620px; }
  .overview-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inline-draft-labels { display: none; }
  .inline-draft-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 105px 24px; }
  .workspace-sync { display: none; }
  .employee-switcher-label span { display: none; }
  .account-selection { padding: 15px; }
  .account-selection-card { padding: 24px 19px; }
}
