/* Daewon RollyChat UI, desktop and Touch. No external CDN requests. */
@font-face {
  font-family: "Rolly Icons";
  src: url("../vendor/fontawesome/7.3.1/webfonts/fa-sharp-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
:root {
  --rolly-ink: #242424;
  --rolly-muted: #717171;
  --rolly-line: #d9d9d9;
  --rolly-surface: #f6f6f6;
  --rolly-radius: 6px;
}
/* Licensed FA7 SVG navigation icons only; keep supported uniGUI FA5 IconCls. */
html body .chat-back-to-top::before,
html body .inq-back .fa-arrow-left::before,
html body .rolly-chat-action .fa-arrow-left::before,
html body .rolly-inquiry-titlebar .fa-arrow-left::before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  vertical-align: middle;
  background-color: currentColor;
  font-size: 0 !important;
  pointer-events: none;
  -webkit-mask: url("../vendor/fontawesome/7.3.1/sharp-regular/arrow-left.svg") center / contain no-repeat;
  mask: url("../vendor/fontawesome/7.3.1/sharp-regular/arrow-left.svg") center / contain no-repeat;
}
html body .chat-back-to-top::before {
  width: 14px !important;
  height: 14px !important;
  flex-basis: 14px;
  -webkit-mask-image: url("../vendor/fontawesome/7.3.1/sharp-regular/arrow-up-to-line.svg");
  mask-image: url("../vendor/fontawesome/7.3.1/sharp-regular/arrow-up-to-line.svg");
}
@font-face {
  font-family: "Rolly Status Icons";
  src: url("../vendor/fontawesome/7.3.1/webfonts/fa-sharp-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
/* Keep uniGUI's FA5 class names and codepoints; use the supplied Pro glyphs. */
html body .x-fas, html body .x-fa, html body .fas, html body .fa,
html body .x-fas::before, html body .x-fa::before,
html body .fas::before, html body .fa::before,
html body .rolly-tree-icon .x-tree-node-text::before,
html body .x-tree-expander::before,
html body .x-tree-elbow-plus::before, html body .x-tree-elbow-minus::before {
  font-family: "Rolly Icons", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
/* The initial Pro trial remains a distinct search/chart icon. */
/* Same status glyphs for summary, tree, native inquiry tabs, flow, buttons,
   notifications and employee PC/Touch list/detail. Keep semantic colors. */
html body :is(.x-fas,.x-fa,.fas,.fa):is(.fa-inbox,.fa-hourglass-half,.fa-arrow-up,.fa-check-circle,.fa-lock,.fa-comment-dots,.fa-paper-plane,.fa-comment-alt):not(.x-grid-cell),
html body :is(.x-fas,.x-fa,.fas,.fa):is(.fa-inbox,.fa-hourglass-half,.fa-arrow-up,.fa-check-circle,.fa-lock,.fa-comment-dots,.fa-paper-plane,.fa-comment-alt)::before,
html body .rolly-tree-icon:is(.fa-inbox,.fa-hourglass-half,.fa-arrow-up,.fa-check-circle,.fa-lock,.fa-comment-dots,.fa-paper-plane,.fa-comment-alt) .x-tree-node-text::before {
  font-family: "Rolly Status Icons", "Rolly Icons", "Font Awesome 5 Free" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

html body .pictos-rolly-fa7-search-chart {
  background-image: none !important;
}
html body .pictos-rolly-fa7-search-chart::before {
  display: inline-block !important;
  content: "\e522" !important;
  font: 900 16px/16px "Rolly Icons" !important;
}
body, input, textarea, select, button,
.x-btn-inner, .x-btn-inner-el, .x-btn-text, .x-button-label,
.x-text-el, .x-form-field, .x-input-el, .x-grid-cell-inner,
.x-tab-inner, .x-tab-text, .x-title-text, .x-title-text-el {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}
html body .x-btn, html body .x-button,
html body .x-button .x-inner-el, html body .x-button .x-button-el,
html body .x-tab, html body .x-window, html body .x-panel,
html body .x-toolbar, html body .x-form-trigger-wrap,
html body .x-input-wrap-el {
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}
/* Desktop buttons and Touch buttons share the same quiet outline. */
html body .x-btn, html body .x-button {
  border-radius: var(--rolly-radius) !important;
  border-color: var(--rolly-line) !important;
  background-color: #fff !important;
  color: var(--rolly-ink) !important;
}
html body .x-button .x-inner-el, html body .x-button .x-button-el {
  border-radius: var(--rolly-radius) !important;
  background-color: transparent !important;
  color: inherit !important;
}
html body .x-btn .x-btn-el, html body .x-btn .x-btn-wrap,
html body .x-btn .x-btn-wrap-el, html body .x-btn .x-btn-button,
html body .x-btn .x-btn-button-el {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: inherit !important;
}
html body .x-btn .x-btn-inner, html body .x-btn .x-btn-inner-el,
html body .x-btn .x-btn-text, html body .x-button .x-text-el,
html body .x-btn .x-btn-icon-el, html body .x-button .x-icon-el {
  color: inherit !important;
}
html body .x-btn-over, html body .x-button.x-hovered,
html body .x-button.x-pressing {
  background-color: #f0f0f0 !important;
  border-color: #969696 !important;
}
html body .x-btn-focus, html body .x-button.x-focused {
  outline: 2px solid #555 !important;
  outline-offset: 2px;
}
html body .x-btn-disabled, html body .x-button.x-disabled {
  opacity: .46 !important;
  cursor: default !important;
}
html body .rolly-primary, html body .rolly-primary.x-btn,
html body .rolly-primary.x-button {
  background-color: #292929 !important;
  border-color: #292929 !important;
  color: #fff !important;
}
html body .rolly-primary.x-btn-over, html body .rolly-primary.x-hovered {
  background-color: #444 !important;
}
html body .rolly-refresh-active, html body .rolly-refresh-active.x-btn {
  border-color: #c62828 !important;
  background-color: #fff1f1 !important;
  color: #c62828 !important;
}
html body .x-form-trigger-wrap, html body .x-input-wrap-el {
  border-color: #c9c9c9 !important;
  border-radius: 5px;
}
html body .x-form-text, html body .x-input-el {
  color: var(--rolly-ink);
}
html body .x-form-trigger-wrap-focus,
html body .x-focused > .x-input-wrap-el {
  border-color: #555 !important;
}
html body .x-panel-header-default, html body .x-panel-header-default-framed,
html body .x-window-header, html body .x-titlebar,
html body .x-toolbar, html body .x-tab-bar {
  background-color: var(--rolly-surface) !important;
  background-image: none !important;
  border-color: var(--rolly-line) !important;
  box-shadow: none !important;
}
html body .x-panel-header-title, html body .x-window-header-title,
html body .x-title-text, html body .x-title-text-el {
  color: #333 !important;
}
html body .x-tab {
  border-radius: 5px 5px 0 0 !important;
  background-color: #f3f3f3 !important;
  border-color: #d9d9d9 !important;
  color: #666 !important;
}
html body .x-tab-active {
  background-color: #fff !important;
  border-bottom: 2px solid #333 !important;
  color: #222 !important;
}
html body .x-tab-inner, html body .x-tab-text { color: inherit !important; }
html body .x-grid-item-over, html body .x-grid-item-over .x-grid-cell {
  background-color: #f7f7f7 !important;
}
html body .x-grid-item-selected, html body .x-grid-item-selected .x-grid-cell {
  background-color: #ededed !important;
}
html body .x-grid-cell, html body .x-column-header {
  border-color: #e5e5e5 !important;
}
html body .x-column-header { background: #f5f5f5 !important; }
html body .rolly-paper-memo-edit:focus-within .x-input-wrap-el {
  box-shadow: none !important;
  outline: 1px solid #777;
}
/* Login: a readable white panel over the existing brand background. */
html body .rolly-domain-year, html body .rolly-domain-year .x-panel-body,
html body .rolly-domain-year .x-panel-body-el,
html body .rolly-mobile-domain-year {
  background: #f2f2f2 !important; border-color: #999 !important; color: #292929 !important;
}
html body .rolly-domain-year, html body .rolly-domain-payroll,
html body .rolly-domain-example, html body .rolly-mobile-domain-year,
html body .rolly-mobile-domain-payroll, html body .rolly-mobile-domain-income-tax,
html body .rolly-rounded-button .x-btn-el,
html body .rolly-rounded-button .x-btn-wrap,
html body .rolly-rounded-button .x-button-label {
  border-radius: 6px !important;
}
html body .rolly-role-statusbar, html body .rolly-status-cell {
  background: #f5f5f5 !important; border-color: #dedede !important; color: #666 !important;
}
html body .rolly-login-panel,
html body .rolly-login-panel > .x-panel-body-el,
html body .rolly-login-panel > .x-panel-body {
  background-color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
html body .rolly-login-panel { border: 1px solid #d9d9d9 !important; }
html body .rolly-login-background img { filter: grayscale(1); opacity: .16 !important; }
html body .rolly-login-root {
  background-image: none !important;
  background-color: #f3f3f3 !important;
}
/* HTMLFrame content also uses this sheet (including standalone documents). */
html body .chat-shell { background: #fafafa; color: #242424; }
html body .welcome-card, html body .faq-welcome-card {
  background: #fff; border-color: #dedede; border-radius: 8px;
}
html body .faq-button {
  color: #333; border-color: #dedede; border-radius: 6px;
  min-height: 42px; box-shadow: none;
}
html body .faq-button:hover, html body .faq-button:focus-visible,
html body .yearend-action-ready:not(:disabled):hover,
html body .yearend-action-ready:not(:disabled):focus-visible {
  background: #f5f5f5; border-color: #777; outline: 1px solid #777;
}
html body .faq-number { color: #555; }
html body .suggestion-chip { color: #444; border-color: #d7d7d7; border-radius: 6px; }
html body .user-message {
  background: #ededed; color: #242424; border-color: #d5d5d5; border-radius: 8px;
}
html body .assistant-message {
  background: #fff; color: #242424; border-color: #dedede; border-radius: 8px;
}
html body .qa-q, html body .qa-a {
  background: transparent; color: #4b4b4b; border-color: transparent;
  font-size: 0;
}
html body .qa-q::before, html body .qa-a::before {
  display: block;
  font: 900 22px/1 "Rolly Icons";
  -webkit-font-smoothing: antialiased;
}
html body .qa-q::before { content: "\e11e"; }
html body .qa-a::before { content: "\e0f7"; }
html body .openai-badge, html body .live-ai-badge,
html body .official-source-badge, html body .approved-source-badge,
html body .fixed-response-badge {
  background: #f5f5f5; color: #555; border-color: #d4d4d4; border-radius: 4px;
}
html body .pending-content { color: #555; }
html body .typing-dots span {
  background: #555;
  animation: rolly-wave 1.05s infinite ease-in-out !important;
  will-change: transform, opacity;
}
html body .typing-dots span:nth-child(2) { animation-delay: .14s !important; }
html body .typing-dots span:nth-child(3) { animation-delay: .28s !important; }
@keyframes rolly-wave {
  0%, 60%, 100% { transform: translateY(3px); opacity: .45; }
  30% { transform: translateY(-5px); opacity: 1; }
}
html body .answer-lead { background: #f5f5f5; color: #252525; border-left-color: #666; }
html body .answer-table th, html body .yearend-section th,
html body .yearend-mobile-heading td { background: #efefef; color: #333; }
html body .answer-table .summary-total td, html body .total-row {
  background: #f5f5f5; color: #333; border-color: #d5d5d5;
}
html body .metric-dot { background: #777; }
html body .doc-page, html body .cert-page, html body .inq-page { background: #fafafa; }
html body .doc-button {
  display: flex; align-items: center; gap: 12px;
  border-radius: 6px; border-color: #d8d8d8; cursor: pointer;
}
html body .doc-button::before, html body .cert-page .review::before {
  content: "\f15c"; font: 900 20px/1 "Rolly Icons"; flex: 0 0 24px;
}
html body .doc-button::after {
  content: "\f054"; font: 900 12px/1 "Rolly Icons"; margin-left: auto;
}
html body .cert-page .review { border-radius: 6px; }
html body .cert-page .review::before { content: "\f00c"; margin-right: 9px; font-size: 16px; }
html body .cert-page select, html body .cert-page input { border-radius: 5px; }
html body .inq-item, html body .inq-card { border-radius: 6px; }
html body .rolly-language-tool::before {
  font-family: "Malgun Gothic", Arial, sans-serif !important;
}
html body .doc-button:focus-visible, html body .inq-item:focus-visible,
html body .source-page-button:focus-visible, html body .cert-page .review:focus-visible {
  outline: 2px solid #555; outline-offset: 2px;
}
@media (max-width: 600px) {
  html body .x-uni-window-header .x-center {
    left: 8px !important;
    right: 68px !important;
    width: auto !important;
    max-width: calc(100% - 76px) !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  html body .x-uni-window-header .x-center .x-title,
  html body .x-uni-window-header .x-center .x-innerhtml {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body .x-button .x-inner-el { padding: 6px !important; }
  html body .x-button .x-text-el { font-size: 12px; }
  html body .rolly-mobile-actions .x-button .x-text-el {
    white-space: normal !important; overflow: visible !important;
    text-overflow: clip !important; line-height: 14px !important;
  }
  html body .rolly-mobile-actions .x-button .x-inner-el { padding: 4px 6px !important; }
  html body .x-button .x-icon-el {
    width: 16px !important; height: 16px !important;
    margin-right: 4px !important; font-size: 16px !important;
  }
  html body .x-button .x-icon-el::before { font-size: 16px !important; line-height: 16px !important; }
  html body .rolly-login-panel .rolly-primary .x-text-el { font-size: 16px; }
  html body .x-input-el { font-size: 16px; }
  html body .chat-shell { padding: 12px 10px 24px; }
  html body .faq-button { min-height: 46px; padding: 10px 12px; }
  html body .doc-button { min-height: 60px; }
}
