/* 상담업무 / 업무지원 공통 */
#view-ai-knowhow,
#view-tools { background: var(--bg-ai-page); margin: -20px -24px 0; padding: 20px 24px 0; border-radius: 0; height: calc(100vh - 56px - 28px); overflow: hidden; flex-direction: column; }
#view-ai-knowhow.is-visible { display: flex; }
#view-tools.is-visible { display: flex; }
.layout-ai-knowhow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: stretch; flex: 1; min-height: 0; overflow: hidden; }
@media (max-width: 960px) { .layout-ai-knowhow { grid-template-columns: 1fr; } }
.ai-lnb {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; background: var(--lnb-bg); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-card); align-self: start; min-width: 248px;
}
.ai-lnb.ai-lnb--icons {
  min-width: 56px; width: 56px; padding: 10px 8px; gap: 6px; align-self: stretch;
}
.ai-lnb.ai-lnb--icons button {
  position: relative; justify-content: center; padding: 11px 8px; align-items: center;
}
.ai-lnb.ai-lnb--icons .ai-lnb__text {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0; min-width: max-content; max-width: 240px;
  padding: 8px 12px; border-radius: 8px; background: var(--text); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, visibility .15s; z-index: 50;
}
.ai-lnb.ai-lnb--icons button:hover .ai-lnb__text,
.ai-lnb.ai-lnb--icons button:focus-visible .ai-lnb__text {
  opacity: 1; visibility: visible;
}
/* 상담업무/업무지원 LNB 펼침/접힘 공통 */
#view-tools .layout-ai-knowhow,
#view-ai-knowhow .layout-ai-knowhow { grid-template-columns: 160px minmax(0, 1fr); transition: grid-template-columns 0.2s ease; }
#view-tools.lnb-collapsed .layout-ai-knowhow,
#view-ai-knowhow.lnb-collapsed .layout-ai-knowhow { grid-template-columns: 56px minmax(0, 1fr); }
.ai-lnb.ai-lnb--icons.tools-lnb,
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb { width: 160px; min-width: 160px; transition: width 0.2s ease, min-width 0.2s ease; }
.ai-lnb.ai-lnb--icons.tools-lnb.is-collapsed,
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb.is-collapsed { width: 56px; min-width: 56px; }
.ai-lnb.ai-lnb--icons.tools-lnb:not(.is-collapsed) button:not(.tools-lnb-toggle),
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb:not(.is-collapsed) button:not(.ai-knowhow-lnb-toggle) { justify-content: flex-start; padding: 11px 12px; }
.ai-lnb.ai-lnb--icons.tools-lnb:not(.is-collapsed) .ai-lnb__text,
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb:not(.is-collapsed) .ai-lnb__text {
  position: static; opacity: 1; visibility: visible; background: transparent; color: inherit;
  padding: 0; border-radius: 0; box-shadow: none; transform: none; min-width: 0; pointer-events: auto; transition: opacity 0.1s ease 0.18s, visibility 0s linear 0.18s; white-space: nowrap;
}
.tools-lnb-toggle,
.ai-knowhow-lnb-toggle {
  display: flex; align-items: center; justify-content: flex-start;
  width: 100%; padding: 4px 6px; border: none; border-radius: 8px;
  background: transparent; cursor: pointer; color: var(--text-muted); margin-top: auto;
}
.tools-lnb-toggle:hover,
.ai-knowhow-lnb-toggle:hover { background: rgba(0,0,0,0.05); }
.tools-lnb-toggle__icon,
.ai-knowhow-lnb-toggle__icon {
  width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s;
}
.tools-lnb.is-collapsed .tools-lnb-toggle__icon,
.ai-knowhow-lnb.is-collapsed .ai-knowhow-lnb-toggle__icon { transform: rotate(180deg); }
.ai-lnb.ai-lnb--icons.tools-lnb.is-collapsed .ai-lnb__text,
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb.is-collapsed .ai-lnb__text { transition: opacity 0s, visibility 0s; }
.ai-lnb.ai-lnb--icons.tools-lnb button.tools-lnb-toggle,
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb button.ai-knowhow-lnb-toggle { padding: 4px 8px; justify-content: flex-start; margin-top: auto; }
.ai-lnb.ai-lnb--icons.tools-lnb.is-collapsed button.tools-lnb-toggle,
.ai-lnb.ai-lnb--icons.ai-knowhow-lnb.is-collapsed button.ai-knowhow-lnb-toggle { justify-content: center; }
.ai-lnb button {
  display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; margin: 0; border: none; border-radius: 12px;
  background: transparent; font-size: 13px; cursor: pointer; color: var(--text); font-family: inherit;
  border: 1px solid transparent;
}
.ai-lnb__icon { flex-shrink: 0; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-lnb__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.ai-lnb__label { font-weight: 600; font-size: 13px; line-height: 1.3; }
.ai-lnb button:hover { background: rgba(255,255,255,.75); border-width: 0.5px; border-style: solid; border-color: rgba(0, 0, 0, 0.08); }
.ai-lnb button:focus:not(:focus-visible) { outline: none; }
.ai-lnb button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.ai-lnb button.is-active {
  background: #fff; color: var(--text); font-weight: 700;
  border-width: 0.5px; border-style: solid; border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
}
.ai-lnb button.stub { color: var(--text-muted); cursor: not-allowed; opacity: .85; }
.ai-lnb button:disabled { cursor: not-allowed; opacity: .75; }
.ai-coming-soon-center {
  min-height: min(70vh, 680px); display: flex; align-items: center; justify-content: center;
  padding: 32px 20px; font-size: 15px; font-weight: 600; color: var(--text-muted);
}
.ai-knowhow-panel-wrap {
  min-width: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-card); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.ai-knowhow-panel-wrap #ai-knowhow-body,
.ai-knowhow-panel-wrap #tools-body {
  flex: 1; min-height: 0;
  padding: 10px 12px;
  display: flex; flex-direction: column;
}
.ai-stub-card { min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ai-stub-inner { text-align: center; max-width: 360px; }
.ai-stub-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.ai-stub-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0 0 12px; }
.ai-stub-note { font-size: 13px; color: var(--text-muted); margin: 0; }
.policy-layout-ai {
  display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); gap: 10px; align-items: stretch;
  flex: 1; min-height: 0;
}
.policy-layout-ai.inquiry-workspace-only { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .policy-layout-ai { grid-template-columns: 1fr; } }
.policy-col-filters {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.policy-col-filters--compact .policy-filters-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.policy-col-filters--compact .policy-filters-head__title {
  font-size: 13px; font-weight: 700; color: var(--text); margin-right: auto;
}
.policy-col-filters--compact .policy-filters-inline {
  flex: 1; min-height: 0; max-height: none;
  overflow-x: hidden; overflow-y: auto;
}
@media (max-width: 960px) {
  .layout-ai-knowhow .ai-lnb.ai-lnb--icons {
    flex-direction: row; flex-wrap: wrap; width: 100%; min-width: 0; justify-content: center;
    padding: 10px; gap: 8px;
  }
  .layout-ai-knowhow .ai-lnb.ai-lnb--icons button { width: auto; min-width: 44px; }
  .layout-ai-knowhow .ai-lnb.ai-lnb--icons .ai-lnb__text {
    left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  }
}
.policy-gpt-center {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bg-app);
}
.policy-gpt-landing-head { text-align: center; max-width: 520px; margin: 0 auto; align-self: center; }
.policy-gpt-landing-title {
  margin: 0 0 10px; font-size: clamp(22px, 3.5vw, 30px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--text);
}
.policy-gpt-landing-desc {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted);
}
.policy-gpt-center.is-landing .policy-gpt-landing-head { margin-bottom: 0; }
.policy-gpt-center.is-landing {
  justify-content: center; padding: 32px 20px; gap: 28px;
}
.policy-gpt-center.is-landing .policy-chat-panel-wrap { display: none; }
.policy-gpt-center:not(.is-landing) .policy-gpt-landing-head { display: none; }
.policy-gpt-center:not(.is-landing) { padding: 0; }
.policy-chat-panel-wrap {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.policy-gpt-center.is-landing .policy-search-shell {
  max-width: 720px; width: 100%; margin: 0 auto; align-self: center;
  border-top: none; background: transparent; padding-top: 0;
}
.policy-gpt-center:not(.is-landing) .policy-search-shell {
  flex-shrink: 0; border-top: 1px solid var(--border); background: var(--surface);
}
.policy-col-filters.is-collapsed { display: none; }
.policy-col-filters .policy-doc-list-wrap { flex: 1; min-height: 120px; display: flex; flex-direction: column; }
.policy-col-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; padding: 0 !important; flex: 1; }
.policy-col-chat .policy-center { flex: 1; min-height: 0; min-width: 0; border-right: 1px solid var(--border); }
.policy-col-chat .policy-main-split {
  flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: stretch; min-height: 0;
}
@media (max-width: 1100px) {
  .policy-col-chat .policy-main-split { flex-direction: column; }
  .policy-col-chat .policy-center { border-right: none; border-bottom: 1px solid var(--border); }
}
.policy-root {
  display: flex; flex-direction: row; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); min-height: 520px;
}
@media (max-width: 1100px) { .policy-root { flex-direction: column; } }
.policy-root .policy-left-col {
  flex: 0 0 minmax(200px, 280px); max-width: 300px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; min-width: 0;
}
.policy-root .policy-left-col.is-collapsed { display: none !important; }
.policy-main-split {
  flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: stretch; min-height: 0;
}
@media (max-width: 1100px) { .policy-main-split { flex-direction: column; } }
.policy-filters-inline {
  flex-shrink: 0; overflow-x: hidden; overflow-y: auto;
  padding: 8px 10px 10px; border-bottom: 1px solid var(--border); background: var(--bg-app);
}
.policy-filters-inline .filter-group { margin-bottom: 10px; }
.policy-filters-inline .filter-group:last-child { margin-bottom: 2px; }
.policy-filters-inline .filter-group .fg-title {
  font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .02em;
}
.policy-filters-inline .chk-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px; align-items: stretch;
}
@media (max-width: 340px) { .policy-filters-inline .chk-row { grid-template-columns: 1fr; } }
.policy-filters-inline .filter-chip { display: flex; align-items: center; cursor: pointer; margin: 0; min-width: 0; }
.policy-filters-inline .filter-chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.policy-filters-inline .filter-chip span {
  display: flex; align-items: center; justify-content: center; text-align: center; width: 100%;
  padding: 7px 6px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 500; transition: background .15s, border-color .15s, color .15s;
  min-height: 34px; line-height: 1.2;
}
.policy-filters-inline .filter-chip:hover span { border-color: #cdd4db; }
.policy-filters-inline .filter-chip input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 1px; }
.policy-filters-inline .filter-chip input:checked + span {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  border-color: var(--accent-border-subtle);
  box-shadow: 0 1px 3px var(--accent-shadow);
}
.policy-filters-inline .filter-chip input:checked + span:hover {
  border-color: var(--accent-border);
  box-shadow: 0 1px 4px var(--accent-shadow);
}
.policy-doc-list-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; transition: flex-basis .2s; }
.policy-doc-list-wrap.is-collapsed { flex: 0 0 0; overflow: hidden; max-height: 0; border: none; padding: 0; }
.policy-layout-ai .policy-doc-list-wrap { max-height: none !important; }
.policy-doc-list-wrap .dl-hd {
  padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface);
}
.policy-doc-list-wrap .dl-hd .dl-hd-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.policy-doc-list-wrap .dl-hd .dl-hd-sub { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.btn-sm { font-size: 12px; padding: 6px 10px; border-radius: 6px; }
.policy-doc-list { flex: 1; overflow-y: auto; padding: 10px 12px 12px; font-size: 12px; background: var(--lnb-bg); }
.doc-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); transition: box-shadow .15s, border-color .15s, background .15s;
}
.doc-row:last-child { margin-bottom: 0; }
.doc-row:hover { border-color: #cdd4db; box-shadow: var(--shadow-sm); }
.doc-row:focus-within { outline: 1px solid var(--accent); outline-offset: 0; }
.doc-row:has(.doc-pick:checked) { border-color: var(--doc-selected-border); background: var(--doc-selected-bg); box-shadow: none; }
.doc-row .doc-pick-wrap { flex-shrink: 0; padding-top: 2px; align-self: flex-start; }
.doc-row .doc-pick {
  margin: 0; width: 17px; height: 17px; cursor: pointer; accent-color: var(--accent);
  opacity: .38;
}
.doc-row:has(.doc-pick:checked) .doc-pick { opacity: .72; }
.doc-row-body { flex: 1; min-width: 0; }
.doc-row-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.doc-row-meta { font-size: 12px; color: var(--text-muted); margin: 0; }
.doc-kind-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--bg-app); color: var(--text-muted); border: 1px solid var(--border); flex-shrink: 0; }
.policy-root .policy-center { flex: 1; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.policy-center .toolbar { padding: 8px 12px; border-bottom: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.policy-center .chat-panel { flex: 1; max-height: none; min-height: 0; border-radius: 0; margin: 0; }
.policy-center .chat-thread { flex: 1; min-height: 0; overflow-y: auto; background: var(--bg-app); }
.policy-composer-area { padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.citation-panel {
  display: none; flex-direction: column; flex: 0 0 minmax(260px, 340px); max-width: 380px;
  border-left: 1px solid var(--border); background: var(--bg-app); min-height: 0;
}
.policy-layout-ai.cite-open .citation-panel,
.policy-root.cite-open .citation-panel { display: flex; }
.citation-panel .cp-hd { padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--surface); }
.citation-panel .cp-hd .cp-hd-title { color: var(--accent); cursor: pointer; user-select: none; }
.citation-panel .cp-hd .cp-hd-title:hover { text-decoration: underline; }
.citation-panel .cp-hd .cp-hd-full-label { font-size: 14px; font-weight: 700; color: var(--text); }
.citation-panel .cp-bd { flex: 1; overflow-y: auto; padding: 14px 14px 16px; font-size: 13px; line-height: 1.55; }
.policy-cite-feed { display: flex; flex-direction: column; gap: 0; }
.policy-cite-feed--readable { gap: 12px; padding: 4px 0 8px; }
.policy-cite-feed--readable .policy-cite-row {
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 0; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.policy-cite-feed--readable .policy-cite-row:last-child { border-bottom: 1px solid var(--border); }
.policy-cite-row {
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.policy-cite-feed:not(.policy-cite-feed--readable) .policy-cite-row:last-child { border-bottom: none; }
.policy-cite-kind { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.policy-cite-name { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text); }
.policy-cite-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.policy-cite-desc {
  font-size: 13px; line-height: 1.55; margin-top: 8px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.policy-cite-more {
  margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.policy-cite-more:hover { text-decoration: underline; }
.policy-cite-full-prose { font-size: 13px; line-height: 1.6; color: var(--text); }
.policy-cite-full-prose h5 { margin: 0 0 8px; font-size: 12px; color: var(--accent); }
.policy-cite-full-prose p { margin: 0 0 0.85rem; }
.mock-doc-html { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.mock-doc-html h5 { margin: 0 0 8px; font-size: 12px; color: var(--accent); }
.toggle-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.policy-center .policy-search-shell {
  display: block; padding: 12px 14px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.policy-center .policy-search-shell .chat-composer-inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 52px; padding: 8px 60px 8px 14px; border-radius: 14px;
}
.policy-center .policy-search-shell .chat-composer-inner .chat-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: 140px;
  resize: none;
}
.policy-center .policy-search-shell .chat-input {
  min-height: 48px; font-size: 15px; line-height: 1.5; border: none; box-shadow: none; background: transparent;
  padding: 10px 6px 10px 2px;
}
.policy-gpt-center.is-landing .policy-search-shell .chat-composer-inner {
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); background: #fff;
}
.policy-gpt-center.is-landing .policy-search-shell .chat-input {
  min-height: 52px; font-size: 15px;
}

/* Policy 원문 — 전역 modal-root (login.css .modal-overlay 공유) */
.policy-doc-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(960px, 96vw);
  max-height: min(92vh, 900px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.policy-doc-modal-card .modal-title {
  flex-shrink: 0;
  margin: 0;
  padding: 20px 52px 12px 22px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.policy-doc-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 28px;
  font-size: 14px;
  line-height: 1.65;
}
.policy-doc-modal-body.mock-doc-html {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* PDF.js 뷰어 모달 — 전역 #modal-root 재사용 */
.pdf-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1200px, 98vw);
  height: min(94vh, 1000px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface, #fff);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.pdf-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-app, #f6f8fb);
}
.pdf-modal-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pdf-modal-actions .btn-ghost {
  text-decoration: none;
}
.pdf-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #525659;
  display: flex;
}
.pdf-modal-iframe {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  display: block;
}


/* =================================================================
 * 보험금청구 Agent — 설계사용 1차 지급액 시뮬레이터
 * ================================================================= */

.claim-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.claim-col-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.claim-col-side {
  display: none;
}

.claim-col-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.claim-col-title__text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.claim-col-title__desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* 케이스 세팅 바 */
.claim-case-bar {
  position: relative;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surface);
  transition: padding 0.35s ease, gap 0.35s ease;
}

.claim-case-bar.is-collapsed {
  gap: 0;
  padding-top: 11px;
  padding-bottom: 11px;
}

/* 행 묶음 — grid trick으로 높이 부드럽게 접힘 */
.claim-case-inputs-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.38s ease;
}

.claim-case-bar.is-collapsed .claim-case-inputs-wrap {
  grid-template-rows: 0fr;
}

.claim-case-inputs-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 52px;
}

/* 요약 줄 */
.claim-case-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease 0.28s, opacity 0.22s ease 0.32s;
  user-select: none;
}

.claim-case-bar.is-collapsed .claim-case-summary {
  max-height: 36px;
  opacity: 1;
}

.claim-case-summary__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.claim-case-summary__badge {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border-subtle);
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.6;
}

.claim-case-summary__badge--neutral {
  background: var(--bg-app);
  color: var(--text-muted);
  border-color: var(--border);
  font-weight: 400;
}

.claim-case-bar-toggle {
  position: absolute;
  top: 10px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s, background 0.12s;
  z-index: 1;
}

.claim-case-bar-toggle:hover {
  background: var(--hover-bg, rgba(0,0,0,0.05));
  color: var(--text);
}

.claim-toggle-chevron {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.claim-case-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.claim-case-row--conditions {
  display: flex;
  gap: 0;
  align-items: center;
  min-height: 32px;
}

.claim-conditions-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.claim-case-row--conditions .claim-diagnosis-chips {
  padding-left: 16px;
}

.claim-field--grow {
  flex: 1 1 0;
  min-width: 0;
}

.claim-case-row--top {
  align-items: flex-end;
  gap: 0;
}

.claim-field--type {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.claim-case-row--top .claim-field--grow {
  padding-left: 16px;
}


.claim-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.claim-field-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.claim-field-label--inline {
  padding-top: 8px;
  flex-shrink: 0;
}

.claim-req {
  color: var(--danger);
  font-style: normal;
  margin-left: 2px;
}

.claim-input {
  width: 100%;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-app);
  color: var(--text);
  box-sizing: border-box;
  font-family: inherit;
  height: 32px;
}

.claim-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-shadow);
}

.claim-input:disabled {
  background: var(--bg-app);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.claim-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.claim-product-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 3px 0;
}

.claim-case-row--product-chips {
  min-height: 0;
  padding-top: 2px;
  border-top: 1px solid var(--border);
}

.claim-case-row--product-chips .claim-product-chips {
  flex: 1 1 0;
  min-width: 0;
}


.claim-diagnosis-chips {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.claim-kcd-input {
  width: 100%;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-app);
  color: var(--text);
  box-sizing: border-box;
  font-family: inherit;
  height: 32px;
  outline: none;
}

.claim-kcd-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-shadow);
}

.claim-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border-subtle);
  border-radius: 8px;
  line-height: 1.2;
}

.claim-chip__close {
  border: none;
  background: transparent;
  color: currentColor;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
}

.claim-chip__close:hover {
  opacity: 1;
}

.claim-input--chip {
  padding: 6px 10px;
  font-size: 13px;
  height: auto;
}

.claim-field--age {
  width: 88px;
  flex-shrink: 0;
}

.claim-toggle-group {
  display: flex;
  gap: 4px;
}

.claim-toggle-btn {
  padding: 5px 11px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-app);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  line-height: 1.3;
}

.claim-toggle-btn:hover {
  border-color: var(--accent-border-subtle);
  color: var(--text);
  background: var(--accent-soft);
}

.claim-toggle-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-border-subtle);
  font-weight: 600;
}

.claim-kcd-combobox {
  position: relative;
}

.claim-kcd-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  max-height: 220px;
  overflow-y: auto;
}

.claim-kcd-item {
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.claim-kcd-item:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.claim-kcd-item__code {
  font-weight: 600;
  margin-right: 4px;
}

.claim-chip__version {
  font-size: 11px;
  padding: 1px 4px;
  border: 1px solid var(--accent-border-subtle);
  border-radius: 4px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-family: inherit;
  max-width: 120px;
}

.claim-chip__version:focus {
  outline: none;
  border-color: var(--accent);
}

.claim-chip__version-static {
  font-size: 11px;
  opacity: 0.75;
}

/* 대화 영역 */
.claim-chat-thread {
  flex: 0 0 auto;
  max-height: 280px;
  min-height: 48px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-app);
}

.claim-col-main .chat-input-wrap {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--surface);
}

/* 랜딩 메시지 */
.claim-chat-landing {
  margin: 32px auto 0;
  max-width: 420px;
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}

.claim-chat-landing__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--accent);
}

.claim-chat-landing__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.claim-chat-landing h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.claim-chat-landing p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
}

.claim-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.claim-example-chip {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.claim-example-chip:hover {
  border-color: var(--accent-border);
  color: var(--accent-hover);
}

/* 예시 케이스 카드 그리드 */
.claim-example-cards {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.claim-example-cards.is-hidden {
  display: none;
}

.claim-example-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.claim-example-card:hover:not(:disabled) {
  border-color: var(--accent-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.claim-example-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.claim-example-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.claim-example-card__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info-text);
  letter-spacing: 0.3px;
}

.claim-example-card--high .claim-example-card__badge {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
}

.claim-example-card--warn .claim-example-card__badge {
  background: rgba(240, 68, 82, 0.1);
  color: var(--danger);
}

.claim-example-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.claim-example-card__summary {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.claim-example-card__product {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* 응답 카드 영역 */
.claim-result-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px;
  background: var(--bg-app);
}

.claim-result-empty {
  margin: 24px auto;
  max-width: 360px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 범용 숨김 */
.is-hidden {
  display: none !important;
}

/* 대화창에서 구조화 카드(클레임 Agent 응답)는 bubble 래퍼 없이 .chat-row에 직접 들어간다. */
.claim-chat-thread .chat-row--rich {
  align-self: stretch;
  width: 100%;
  display: block;
  padding: 0;
}

/* Agent 응답 카드 */
.claim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
  color: var(--text);
  max-width: 100%;
}

.claim-card__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.claim-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-card__bd {
  display: flex;
  flex-direction: column;
}

.claim-card__section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.claim-card__section:last-of-type {
  border-bottom: none;
}

.claim-card__section-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
}

.claim-card__empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* 예상 지급액 — 강조 섹션 */
.claim-card__estimate {
  padding: 14px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.claim-card__estimate-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-hover);
  letter-spacing: 0.3px;
}

.claim-card__estimate-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-hover);
  line-height: 1.2;
}

.claim-card__estimate-range {
  font-size: 12px;
  color: var(--accent-hover);
  opacity: 0.85;
}

.claim-card__estimate-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 조항 리스트 */
.claim-clause-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.claim-clause-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.claim-clause-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.claim-clause-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border-subtle);
  border-radius: 4px;
}

.claim-clause-quote {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  font-style: normal;
}

.claim-clause-reason {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.claim-clause-source {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10px;
  color: var(--accent-hover);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.claim-clause-source:hover {
  filter: brightness(1.1);
}

/* 인수지침 블록 */
.claim-guideline-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-guideline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 4px 0 4px 10px;
  border-left: 3px solid var(--border);
}

.claim-guideline--approve {
  border-left-color: var(--info-text);
}

.claim-guideline--deny {
  border-left-color: var(--danger);
}

.claim-guideline-lbl {
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 1px;
}

.claim-guideline--approve .claim-guideline-lbl {
  color: var(--info-text);
}

.claim-guideline--deny .claim-guideline-lbl {
  color: var(--danger);
}

.claim-guideline-txt {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

/* 확인 필요 항목 */
.claim-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.claim-check-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--viz-amber);
  margin-top: 5px;
  flex-shrink: 0;
}

/* 면책 고지 */
.claim-card__disclaimer {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

/* 우측 컨텍스트 패널 (유사 선례) */
.claim-side-hd {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.claim-side-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.claim-side-desc {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.claim-side-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-side-empty {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.claim-precedent {
  padding: 4px 2px;
}

.claim-precedent + .claim-precedent {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

.claim-precedent__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.claim-precedent__kcd {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-hover);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.claim-verdict {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.claim-verdict--pay {
  background: var(--info-bg);
  color: var(--info-text);
}

.claim-verdict--deny {
  background: rgba(240, 68, 82, 0.1);
  color: var(--danger);
}

.claim-verdict--cond {
  background: rgba(234, 179, 8, 0.12);
  color: #92400e;
}

.claim-precedent__name {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.claim-precedent__reason {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 카드 섹션 fade-in 애니메이션 */
@keyframes claimSectionIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.claim-card__anim-block {
  opacity: 0;
  animation: claimSectionIn 0.32s ease both;
}

/* 예시 카드 헤더 (접기/펼치기) */
.claim-example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 6px;
  cursor: pointer;
  user-select: none;
}

.claim-example-header__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.claim-example-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}

.claim-example-toggle:hover {
  background: var(--hover-bg, rgba(0,0,0,0.05));
  color: var(--text);
}

.claim-example-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.claim-example-cards--collapsed .claim-example-toggle svg {
  transform: rotate(-90deg);
}

.claim-example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 12px;
}

.claim-example-cards--collapsed .claim-example-grid {
  display: none;
}

@media (max-width: 720px) {
  .claim-example-grid {
    grid-template-columns: 1fr;
  }
}

/* 업무지원 > 문의: 예시 드롭다운 */
#inquiry-workspace-root .policy-search-shell .chat-composer-inner {
  padding-right: 112px;
}
#inquiry-workspace-root .chat-composer-send {
  right: 56px;
}
.inquiry-example-dropdown {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
}
.inquiry-example-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text, #333);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.inquiry-example-toggle:hover:not(:disabled) {
  background: var(--accent-soft, rgba(0, 97, 180, 0.08));
  border-color: var(--accent, #0061b4);
  color: var(--accent, #0061b4);
}
.inquiry-example-toggle:focus:not(:focus-visible) {
  outline: none;
}
.inquiry-example-toggle:focus-visible {
  outline: 1px solid var(--accent, #0061b4);
  outline-offset: 1px;
}
.inquiry-example-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.inquiry-example-caret {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.inquiry-example-toggle[aria-expanded="true"] .inquiry-example-caret {
  transform: rotate(180deg);
}
.inquiry-example-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 140px;
  width: max-content;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  z-index: 20;
}
.inquiry-example-menu[hidden] {
  display: none;
}
.inquiry-example-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.inquiry-example-item {
  display: block;
  width: 100%;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #222);
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease;
}
.inquiry-example-item:hover:not(:disabled) {
  background: var(--accent-soft, rgba(0, 97, 180, 0.08));
  color: var(--accent, #0061b4);
}
.inquiry-example-item:focus:not(:focus-visible) {
  outline: none;
}
.inquiry-example-item:focus-visible {
  outline: 1px solid var(--accent, #0061b4);
  outline-offset: -1px;
}
.inquiry-example-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 고객대응 답변 말풍선: 콘텐츠 너비에 맞게 조정 */
#inquiry-chat-panel .chat-bubble--rich {
  width: auto;
  max-width: 80%;
}

/* 업무지원 > 약관분석: 예시 드롭다운 */
#policy-workspace-root .policy-search-shell .chat-composer-inner {
  padding-right: 112px;
}
#policy-workspace-root .chat-composer-send {
  right: 56px;
}
.policy-example-dropdown {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
}
.policy-example-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text, #333);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.policy-example-toggle:hover:not(:disabled) {
  background: var(--accent-soft, rgba(0, 97, 180, 0.08));
  border-color: var(--accent, #0061b4);
  color: var(--accent, #0061b4);
}
.policy-example-toggle:focus:not(:focus-visible) {
  outline: none;
}
.policy-example-toggle:focus-visible {
  outline: 1px solid var(--accent, #0061b4);
  outline-offset: 1px;
}
.policy-example-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.policy-example-caret {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.policy-example-toggle[aria-expanded="true"] .policy-example-caret {
  transform: rotate(180deg);
}
.policy-example-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  z-index: 20;
}
.policy-example-menu[hidden] {
  display: none;
}
.policy-example-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.policy-example-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #222);
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease;
}
.policy-example-item:hover:not(:disabled) {
  background: var(--accent-soft, rgba(0, 97, 180, 0.08));
  color: var(--accent, #0061b4);
}
.policy-example-item:focus:not(:focus-visible) {
  outline: none;
}
.policy-example-item:focus-visible {
  outline: 1px solid var(--accent, #0061b4);
  outline-offset: -1px;
}
.policy-example-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 고객대응 퀵링크 */
.inquiry-quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 6px;
  margin-top: 6px;
}
.inquiry-quick-row {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
html[data-brand="dy"]  .inquiry-quick-row--dy  { display: flex; }
html[data-brand="abl"] .inquiry-quick-row--abl { display: flex; }
html[data-brand="42"]  .inquiry-quick-row--42  { display: flex; }
.inquiry-quick-faq-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.inquiry-quick-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}
.inquiry-call-label {
  font-size: 12px;
  color: var(--text-primary, #1a1a1a);
  font-weight: 500;
}
.inquiry-call-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.inquiry-call-icon-wrap svg {
  width: 10px;
  height: 10px;
}
.inquiry-call-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
}
.inquiry-call-time {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 예시 카드 보험사 미니 칩 */
.claim-example-card__product { display: flex; flex-wrap: wrap; gap: 3px; }
.claim-product-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-raised, #f0f2f5);
  border: 1px solid var(--border-subtle, #e0e3e8);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 보험사별 지급액 — 카드 그리드 */
.claim-estimate-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.claim-estimate-card {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.claim-estimate-insurer {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.claim-estimate-basis {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}
.claim-estimate-amt {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.claim-estimate-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 6px 0 4px;
}
.claim-estimate-total-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

/* 보험사 그룹 헤더 (약관 조항·인수지침 공통) */
.claim-insurer-group { margin-bottom: 10px; }
.claim-insurer-group:last-child { margin-bottom: 0; }
.claim-insurer-group-hd {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-hover, #004fa3);
  padding: 3px 0 5px;
  border-bottom: 1px solid var(--accent-border-subtle, #c5d9f5);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

/* 중복보장 인수지침 */
.claim-guideline--overlap {
  border-left: 3px solid var(--accent, #0061b4);
  border-style: dashed;
}
.claim-guideline--overlap .claim-guideline-lbl { color: var(--accent, #0061b4); }

/* 업무지원 > 사내지식검색: 예시 드롭다운 */
#ks-workspace-root .policy-search-shell .chat-composer-inner { padding-right: 112px; }
#ks-workspace-root .chat-composer-send { right: 56px; }

/* 사내지식검색: 출처 버튼 */
.ks-source-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.ks-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary, #555);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ks-source-btn:hover {
  background: var(--accent-soft, rgba(0, 97, 180, 0.07));
  border-color: var(--accent, #0061b4);
  color: var(--accent, #0061b4);
}
.ks-source-ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* 사내지식검색: 문서 원문 모달 헤더 + 토글 */
.ks-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 52px 12px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ks-modal-head .modal-title {
  flex: 1;
  margin: 0;
  padding: 0;
  border-bottom: none;
}
.ks-modal-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface-alt, #f0f2f5);
  padding: 3px;
  border-radius: 8px;
  flex-shrink: 0;
}
.ks-toggle-btn {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary, #666);
  font-family: inherit;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ks-toggle-btn.is-active {
  background: #fff;
  color: var(--text, #1a1a1a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* 사내지식검색: PDF 모드일 때 모달 카드 고정 높이 */
.policy-doc-modal-card.ks-pdf-mode { height: min(92vh, 900px); }

/* 사내지식검색: PDF iframe body */
.ks-pdf-body {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
}
.ks-pdf-iframe { display: block; width: 100%; height: 100%; flex: 1; min-height: 0; border: none; }

/* 사내지식검색: 문서 원문 모달 */
.ks-doc-modal-body { padding: 0 !important; }
.ks-doc-wrap {
  padding: 24px 28px 32px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text, #1a1a1a);
}
.ks-doc-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text, #1a1a1a);
}
.ks-doc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ks-doc-meta {
  font-size: 12px;
  color: var(--text-secondary, #666);
}
.ks-doc-chapter {
  font-size: 13px;
  font-weight: 700;
  margin: 20px 0 8px;
  padding: 4px 10px;
  background: var(--surface-alt, #f4f6f8);
  border-radius: 4px;
  color: var(--text-secondary, #555);
  letter-spacing: 0.01em;
}
.ks-doc-article {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: background 0.3s;
}
.ks-doc-article-head {
  font-weight: 600;
  margin-bottom: 3px;
}
.ks-doc-article-body {
  color: var(--text, #1a1a1a);
}
.ks-doc-article.is-highlighted {
  background: rgba(255, 213, 70, 0.35);
}
.ks-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.ks-doc-table th,
.ks-doc-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: center;
  vertical-align: middle;
}
.ks-doc-table thead th {
  background: #f0f0f0;
  font-weight: 700;
}
