/* KTS v1.1.1 · Stage 2 — first-use flow and task-focused dashboard */

body.dashboard-v111 {
  --stage2-ink: #1d1811;
  --stage2-muted: #766b5c;
  --stage2-gold: #a9782d;
  --stage2-gold-soft: #f4e7ca;
  --stage2-green: #286557;
  --stage2-line: rgba(69, 51, 27, .13);
  --stage2-panel: #fffdf8;
}

body.dashboard-v111 .test-mode-strip {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 18px;
  border-bottom: 1px solid rgba(154, 105, 32, .15);
  color: #75551f;
  background: #fff4d8;
  font-size: 11px;
  line-height: 1.45;
}

body.dashboard-v111 .test-mode-strip strong { color: #5c3d0e; }
body.dashboard-v111 .test-mode-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bb812c;
  box-shadow: 0 0 0 4px rgba(187, 129, 44, .12);
}

body.dashboard-v111 .app-shell { padding-top: 20px; }
body.dashboard-v111 .app-message:empty { display: none; }
body.dashboard-v111 .app-message:not(:empty) { margin-top: 16px; }

/* Today / next action */
body.dashboard-v111 .workflow-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .65fr);
  margin-bottom: 18px;
  border-radius: 24px;
}

body.dashboard-v111 .workflow-hero-copy { padding: 34px 36px; }
body.dashboard-v111 .today-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

body.dashboard-v111 .text-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(135, 95, 35, .18);
  border-radius: 999px;
  color: #75511b;
  background: #fff9ed;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

body.dashboard-v111 .text-action:hover { background: #f5e7cc; }
body.dashboard-v111 .today-purpose span { position: relative; padding-left: 21px; }
body.dashboard-v111 .today-purpose span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a67931;
  transform: translateY(-50%);
}

body.dashboard-v111 .workflow-actions-card {
  justify-content: flex-start;
  padding: 30px;
  gap: 10px;
}

body.dashboard-v111 .workflow-action-label {
  margin: 0;
  color: rgba(246, 218, 155, .66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

body.dashboard-v111 .workflow-actions-card > strong {
  margin-top: 2px;
  color: #fff2d3;
  font-size: 22px;
  line-height: 1.34;
  word-break: keep-all;
}

body.dashboard-v111 .workflow-actions-card > p:not(.workflow-action-label) {
  margin: 0 0 4px;
  color: rgba(255, 248, 233, .63);
  font-size: 12px;
  line-height: 1.65;
  word-break: keep-all;
}

body.dashboard-v111 #nextActionBtn {
  min-height: 48px;
  margin-top: 5px;
  color: #21170a;
  border-color: #e5c37d;
  background: linear-gradient(180deg, #f4d88f, #d9ac52);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .22);
}

body.dashboard-v111 #nextActionBtn:hover { filter: brightness(1.035); transform: translateY(-1px); }
body.dashboard-v111 .workflow-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.dashboard-v111 .workflow-secondary-actions .btn { min-width: 0; font-size: 11px; }
body.dashboard-v111 .workflow-actions-card .btn:disabled { opacity: .42; cursor: not-allowed; }

/* Onboarding */
body.dashboard-v111 .product-onboarding {
  display: block;
  margin-bottom: 20px;
  padding: 24px;
  border-color: rgba(147, 100, 31, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(189, 140, 57, .14), transparent 19rem),
    linear-gradient(135deg, #fffaf0, #f5ead6);
}

body.dashboard-v111 .product-onboarding.reopened { animation: onboardingPulse 1.5s ease; }
@keyframes onboardingPulse {
  0%, 100% { box-shadow: 0 13px 34px rgba(57,40,18,.055); }
  35% { box-shadow: 0 0 0 5px rgba(180,128,47,.16), 0 18px 42px rgba(57,40,18,.10); }
}

body.dashboard-v111 .product-onboarding-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

body.dashboard-v111 .product-onboarding-intro .eyebrow { margin-bottom: 6px; }
body.dashboard-v111 .product-onboarding-intro strong { font-size: 22px; }
body.dashboard-v111 .product-onboarding-intro span { max-width: 680px; font-size: 12px; }

body.dashboard-v111 .onboarding-progress { width: min(230px, 30%); flex: 0 0 auto; }
body.dashboard-v111 .onboarding-progress > span {
  display: block;
  margin-bottom: 7px;
  color: #6f542a;
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}
body.dashboard-v111 .onboarding-progress-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(94, 68, 31, .11);
}
body.dashboard-v111 .onboarding-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c6123, #d5ae62);
  transition: width .35s ease;
}

body.dashboard-v111 .onboarding-steps-v110 { gap: 10px; }
body.dashboard-v111 .onboarding-step-v110 {
  position: relative;
  min-height: 120px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 6px 11px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.dashboard-v111 .onboarding-step-v110.current {
  border-color: rgba(164, 112, 35, .45);
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(59, 41, 17, .09);
  transform: translateY(-1px);
}
body.dashboard-v111 .onboarding-step-v110.done { border-color: rgba(37, 99, 83, .22); background: rgba(246, 253, 249, .82); }
body.dashboard-v111 .onboarding-step-v110.pending { opacity: .72; }

body.dashboard-v111 .onboarding-step-number {
  grid-row: 1 / span 2;
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
}
body.dashboard-v111 .onboarding-step-v110.done .onboarding-step-number { background: var(--stage2-green); }
body.dashboard-v111 .onboarding-step-copy { min-width: 0; }
body.dashboard-v111 .onboarding-step-v110 strong { font-size: 13px; }
body.dashboard-v111 .onboarding-step-v110 small { font-size: 10px; line-height: 1.55; }
body.dashboard-v111 .onboarding-step-status {
  justify-self: end;
  padding: 4px 7px;
  border-radius: 999px;
  color: #8b6a34;
  background: #f2e7d3;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
body.dashboard-v111 .onboarding-step-v110.done .onboarding-step-status { color: #286557; background: #dfeee9; }
body.dashboard-v111 .onboarding-step-v110.current .onboarding-step-status { color: #fff; background: #8f6323; }
body.dashboard-v111 .onboarding-step-v110 button {
  grid-column: 2 / -1;
  justify-self: stretch;
  min-height: 32px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(121, 84, 29, .16) !important;
  border-radius: 9px !important;
  color: #6f4c18 !important;
  background: #fff9ed !important;
  text-align: center;
  font-size: 10px !important;
}
body.dashboard-v111 .onboarding-step-v110.current button { color: #fff8e8 !important; background: #21180e !important; }
body.dashboard-v111 .onboarding-step-v110.done button { color: #285f51 !important; border-color: rgba(38, 99, 83, .16) !important; background: #eef8f4 !important; }

body.dashboard-v111 .product-onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(88, 64, 31, .10);
}
body.dashboard-v111 .product-onboarding-footer > span { color: #725a35; font-size: 11px; font-weight: 800; }
body.dashboard-v111 .product-onboarding.is-complete .product-onboarding-footer > span { color: var(--stage2-green); }

/* Today tasks */
body.dashboard-v111 .today-task-section { margin-bottom: 18px; }
body.dashboard-v111 .today-task-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  padding: 0 3px;
}
body.dashboard-v111 .today-task-heading .eyebrow { margin: 0 0 4px; }
body.dashboard-v111 .today-task-heading h2 { margin: 0; font-size: 21px; }
body.dashboard-v111 .today-task-heading > span { color: #7b6d5b; font-size: 11px; }
body.dashboard-v111 .today-task-heading > span strong { color: #3d2c12; font-size: 16px; }

body.dashboard-v111 .workflow-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
body.dashboard-v111 .workflow-summary .summary-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 128px;
  border: 1px solid var(--stage2-line);
  color: var(--stage2-ink);
  background: var(--stage2-panel);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body.dashboard-v111 .workflow-summary .summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(160, 111, 35, .32);
  box-shadow: 0 15px 32px rgba(54, 38, 17, .08);
}
body.dashboard-v111 .workflow-summary .summary-card:focus-visible { outline: 3px solid rgba(174, 123, 45, .25); outline-offset: 2px; }
body.dashboard-v111 .workflow-summary .summary-card b {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #87632a;
  font-size: 10px;
}
body.dashboard-v111 .workflow-summary .summary-card b::after { content: " →"; }

/* Workspace hierarchy */
body.dashboard-v111 .dashboard-mode-switch { margin-bottom: 18px; }
body.dashboard-v111 .detail-header-status {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 170px;
  color: #7c6e5b;
  text-align: right;
}
body.dashboard-v111 .detail-header-status span { font-size: 10px; }
body.dashboard-v111 .detail-header-status strong { color: #4e3715; font-size: 12px; }
body.dashboard-v111 .visually-hidden-action { display: none !important; }

body.dashboard-v111 .kts-command-panel {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(42,31,16,.065);
}
body.dashboard-v111 .kts-command-main h3 { font-size: clamp(25px, 2.2vw, 34px); }

body.dashboard-v111 .kts-quick-actionbar {
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  flex-wrap: nowrap;
  padding: 10px;
  border-radius: 16px;
}
body.dashboard-v111 .kts-next-record-action { justify-content: center; }
body.dashboard-v111 .kts-action-more { position: relative; }
body.dashboard-v111 .kts-action-more > summary { list-style: none; cursor: pointer; }
body.dashboard-v111 .kts-action-more > summary::-webkit-details-marker { display: none; }
body.dashboard-v111 .kts-action-more > div {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--stage2-line);
  border-radius: 13px;
  background: #fffdf8;
  box-shadow: 0 18px 38px rgba(34, 24, 11, .16);
}
body.dashboard-v111 .kts-action-more button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #514535;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}
body.dashboard-v111 .kts-action-more button:hover { background: #f4ead8; }
body.dashboard-v111 .kts-action-more button.danger { color: #9a3e32; }

body.dashboard-v111 .kts-detail-tabs {
  top: 58px;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding: 9px;
  border-radius: 17px;
  scrollbar-width: thin;
}
body.dashboard-v111 .kts-detail-tab {
  position: relative;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  min-width: 96px;
  min-height: 58px;
  padding: 8px;
  border-radius: 12px;
  text-align: left;
}
body.dashboard-v111 .kts-detail-tab > b {
  grid-row: 1 / span 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  color: #7d5b24;
  background: #f1e5cf;
  font-size: 9px;
}
body.dashboard-v111 .kts-detail-tab.done > b { color: #fff; background: var(--stage2-green); }
body.dashboard-v111 .kts-detail-tab span { min-width: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dashboard-v111 .kts-detail-tab small { font-size: 9px; }
body.dashboard-v111 .kts-detail-tab.done small { color: #2d6b5a; }
body.dashboard-v111 .kts-detail-tab.active,
body.dashboard-v111 .kts-detail-tab[aria-selected="true"] {
  color: #fff5de;
  border-color: #23190e;
  background: #23190e;
  box-shadow: 0 8px 18px rgba(34, 24, 11, .16);
}
body.dashboard-v111 .kts-detail-tab.active > b,
body.dashboard-v111 .kts-detail-tab[aria-selected="true"] > b { color: #2b1c09; background: #e2bc6b; }
body.dashboard-v111 .kts-detail-tab.active small,
body.dashboard-v111 .kts-detail-tab[aria-selected="true"] small { color: rgba(255,245,222,.68); }

body.dashboard-v111 .detail-output-menu { position: relative; }
body.dashboard-v111 .detail-output-menu > summary { list-style: none; cursor: pointer; }
body.dashboard-v111 .detail-output-menu > summary::-webkit-details-marker { display: none; }
body.dashboard-v111 .detail-output-menu > div { display: grid; gap: 8px; margin-top: 10px; }
body.dashboard-v111 .detail-actions[data-dashboard-pane].active {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Mobile application navigation */
body.dashboard-v111 .mobile-app-nav { display: none; }

@media (max-width: 1180px) {
  body.dashboard-v111 .workflow-hero { grid-template-columns: minmax(0, 1fr) minmax(310px, .68fr); }
  body.dashboard-v111 .workflow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body.dashboard-v111 .test-mode-strip { justify-content: flex-start; }
  body.dashboard-v111 .workflow-hero { grid-template-columns: 1fr; }
  body.dashboard-v111 .workflow-actions-card { padding: 24px; }
  body.dashboard-v111 .product-onboarding-head { align-items: flex-start; }
  body.dashboard-v111 .onboarding-progress { width: 180px; }
  body.dashboard-v111 .kts-command-panel { grid-template-columns: 1fr; }
  body.dashboard-v111 .kts-quick-actionbar { grid-template-columns: 1fr auto auto; }
}

@media (max-width: 720px) {
  body.dashboard-v111 { padding-bottom: 78px; }
  body.dashboard-v111 .product-app-nav { display: none; }
  body.dashboard-v111 .test-mode-strip {
    min-height: 32px;
    padding: 7px 12px;
    white-space: nowrap;
    overflow: hidden;
  }
  body.dashboard-v111 .test-mode-strip span:last-child { overflow: hidden; text-overflow: ellipsis; }
  body.dashboard-v111 .app-shell { width: min(100% - 16px, 680px); padding-top: 10px; padding-bottom: 30px; }

  body.dashboard-v111 .workflow-hero-copy { padding: 24px 20px; }
  body.dashboard-v111 .today-heading-row { display: block; }
  body.dashboard-v111 .today-heading-row .text-action { margin-top: 14px; }
  body.dashboard-v111 .workflow-hero h1 { font-size: 29px; line-height: 1.25; }
  body.dashboard-v111 .workflow-hero-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.7; }
  body.dashboard-v111 .today-purpose { gap: 6px; }
  body.dashboard-v111 .today-purpose span { font-size: 10px; }
  body.dashboard-v111 .workflow-secondary-actions { grid-template-columns: 1fr; }

  body.dashboard-v111 .product-onboarding { padding: 19px 16px; }
  body.dashboard-v111 .product-onboarding-head { display: block; }
  body.dashboard-v111 .onboarding-progress { width: 100%; margin-top: 14px; }
  body.dashboard-v111 .onboarding-progress > span { text-align: left; }
  body.dashboard-v111 .onboarding-step-v110 { min-height: 108px; }
  body.dashboard-v111 .product-onboarding-footer { align-items: flex-start; }

  body.dashboard-v111 .today-task-heading { align-items: center; }
  body.dashboard-v111 .today-task-heading h2 { font-size: 18px; }
  body.dashboard-v111 .workflow-summary { grid-template-columns: 1fr 1fr; }
  body.dashboard-v111 .workflow-summary .summary-card { min-height: 118px; padding: 15px; }

  body.dashboard-v111 .detail-header-status { display: none; }
  body.dashboard-v111 .workflow-detail-toolbar { align-items: flex-start; }
  body.dashboard-v111 .kts-quick-actionbar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px;
  }
  body.dashboard-v111 .kts-quick-actionbar > .btn.secondary { display: none; }
  body.dashboard-v111 .kts-next-record-action { min-width: 0; font-size: 11px; white-space: normal; }
  body.dashboard-v111 .kts-detail-tabs { top: 55px; grid-template-columns: none; display: flex; margin-inline: -2px; }
  body.dashboard-v111 .kts-detail-tab { flex: 0 0 105px; }
  body.dashboard-v111 .kts-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-v111 .detail-actions[data-dashboard-pane].active { flex-direction: column; }
  body.dashboard-v111 .detail-actions[data-dashboard-pane].active > * { width: 100%; }

  body.dashboard-v111 .mobile-app-nav {
    position: fixed;
    z-index: 120;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(236, 209, 154, .18);
    border-radius: 19px;
    background: rgba(24, 19, 13, .96);
    box-shadow: 0 18px 50px rgba(24, 17, 8, .28);
    backdrop-filter: blur(18px);
  }
  body.dashboard-v111 .mobile-app-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    border: 0;
    border-radius: 13px;
    color: rgba(255, 247, 231, .60);
    background: transparent;
    cursor: pointer;
  }
  body.dashboard-v111 .mobile-app-nav button span { font-size: 12px; line-height: 1; }
  body.dashboard-v111 .mobile-app-nav button b { font-size: 9px; white-space: nowrap; }
  body.dashboard-v111 .mobile-app-nav button.active { color: #2a1d0c; background: linear-gradient(180deg, #f2d78f, #d7ad5a); }
}

@media (max-width: 430px) {
  body.dashboard-v111 .workflow-summary { grid-template-columns: 1fr; }
  body.dashboard-v111 .workflow-summary .summary-card { min-height: 105px; }
  body.dashboard-v111 .product-onboarding-footer { display: block; }
  body.dashboard-v111 .product-onboarding-dismiss { margin-top: 10px; padding-left: 0; }
  body.dashboard-v111 .mobile-app-nav button b { font-size: 8px; }
}

@media print {
  body.dashboard-v111 .test-mode-strip,
  body.dashboard-v111 .mobile-app-nav { display: none !important; }
}

/* Desktop record editor: contain the long form without cutting the panel bottom. */
@media (min-width: 1100px) {
  body.dashboard-v111 .workflow-layout { align-items: start; }
  body.dashboard-v111 .record-list-panel {
    position: sticky;
    top: 148px;
    max-height: calc(100vh - 166px);
  }
  body.dashboard-v111 .workflow-detail-panel {
    position: sticky;
    top: 148px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 166px);
    overflow: hidden;
    padding-bottom: 0;
  }
  body.dashboard-v111 .workflow-detail-panel #recordDetail {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 6px 28px 0;
    scrollbar-color: rgba(145, 101, 35, .42) rgba(83, 61, 30, .06);
    scrollbar-width: thin;
  }
  body.dashboard-v111 .workflow-detail-panel #recordDetail::-webkit-scrollbar { width: 9px; }
  body.dashboard-v111 .workflow-detail-panel #recordDetail::-webkit-scrollbar-track { background: rgba(83, 61, 30, .05); border-radius: 99px; }
  body.dashboard-v111 .workflow-detail-panel #recordDetail::-webkit-scrollbar-thumb { background: rgba(145, 101, 35, .36); border: 2px solid transparent; border-radius: 99px; background-clip: padding-box; }
}

/* Simplified customer card */
body.dashboard-v111 .workflow-record-card {
  display: grid;
  gap: 9px;
}
body.dashboard-v111 .workflow-record-card .record-head { margin-bottom: 0; }
body.dashboard-v111 .record-card-meta {
  color: #817361;
  font-size: 10px;
  line-height: 1.45;
}
body.dashboard-v111 .record-card-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
body.dashboard-v111 .record-card-progress > span {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(91, 67, 32, .10);
}
body.dashboard-v111 .record-card-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #956821, #d8af62);
}
body.dashboard-v111 .record-card-progress b {
  color: #6f4c18;
  font-size: 10px;
}
body.dashboard-v111 .record-card-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 8px 9px;
  border-radius: 10px;
  color: #6f5f4b;
  background: #f7efdf;
  font-size: 10px;
  line-height: 1.45;
}
body.dashboard-v111 .record-card-next b { color: #7a5115; }
body.dashboard-v111 .workflow-card-footer { margin-top: 0; padding-top: 7px; }

/* Collapsed full-flow checklist */
body.dashboard-v111 details.workflow-checklist-section {
  padding: 0;
  overflow: hidden;
}
body.dashboard-v111 details.workflow-checklist-section > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}
body.dashboard-v111 details.workflow-checklist-section > summary::-webkit-details-marker { display: none; }
body.dashboard-v111 details.workflow-checklist-section > summary span,
body.dashboard-v111 details.workflow-checklist-section > summary b,
body.dashboard-v111 details.workflow-checklist-section > summary small { display: block; }
body.dashboard-v111 details.workflow-checklist-section > summary b { color: #2f261b; font-size: 13px; }
body.dashboard-v111 details.workflow-checklist-section > summary small { margin-top: 3px; color: #837663; font-size: 10px; }
body.dashboard-v111 details.workflow-checklist-section > summary em {
  color: #7a571f;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
body.dashboard-v111 details.workflow-checklist-section[open] > summary {
  border-bottom: 1px solid rgba(71, 52, 27, .10);
  background: #fbf4e8;
}
body.dashboard-v111 details.workflow-checklist-section[open] > summary em::before { content: "접기"; }
body.dashboard-v111 details.workflow-checklist-section[open] > summary em { font-size: 0; }
body.dashboard-v111 details.workflow-checklist-section[open] > summary em::before { font-size: 10px; }
body.dashboard-v111 details.workflow-checklist-section .workflow-checklist { margin: 0; padding: 14px 16px 16px; }

/* Pure CSS mobile navigation icons */
body.dashboard-v111 .mobile-nav-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  opacity: .86;
}
body.dashboard-v111 .icon-today::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
body.dashboard-v111 .icon-today::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
body.dashboard-v111 .icon-records::before,
body.dashboard-v111 .icon-records::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 5px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}
body.dashboard-v111 .icon-records::before { top: 2px; }
body.dashboard-v111 .icon-records::after { bottom: 2px; }
body.dashboard-v111 .icon-write::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 3px;
  left: 2px;
  top: 7px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(-42deg);
}
body.dashboard-v111 .icon-write::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
}
body.dashboard-v111 .icon-booking::before {
  content: "";
  position: absolute;
  inset: 3px 2px 2px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}
body.dashboard-v111 .icon-booking::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 1.8px;
  background: currentColor;
  box-shadow: 0 4px 0 -0.3px currentColor;
}
body.dashboard-v111 .icon-settings::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px dotted currentColor;
  border-radius: 50%;
}
body.dashboard-v111 .icon-settings::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}


/* v1.1.2 layout stabilization
   Fix left panel crowding, oversized next-action bar, clipped tabs,
   and nested scrolling in the record detail area. */
body.dashboard-v111 .workflow-tabbar {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 0 8px;
}
body.dashboard-v111 .workflow-tabbar::-webkit-scrollbar { display: none; }
body.dashboard-v111 .workflow-tab { flex: 0 0 auto; }
body.dashboard-v111 .workflow-searchbar {
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}
body.dashboard-v111 .workflow-searchbar input,
body.dashboard-v111 .workflow-searchbar select {
  min-height: 52px;
}
body.dashboard-v111 .workflow-record-card {
  padding: 16px 16px 14px;
}
body.dashboard-v111 .workflow-record-card .record-head strong,
body.dashboard-v111 .kts-command-main h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.dashboard-v111 .workflow-card-footer {
  padding-top: 10px;
}
body.dashboard-v111 .kts-command-panel {
  gap: 18px;
  margin-bottom: 16px;
}
body.dashboard-v111 .kts-command-main h3 {
  font-size: clamp(24px, 1.8vw, 32px);
  line-height: 1.15;
}
body.dashboard-v111 .kts-command-metrics {
  align-content: start;
}
body.dashboard-v111 .kts-quick-actionbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}
body.dashboard-v111 .kts-quick-actionbar > * {
  flex: 0 0 auto;
}
body.dashboard-v111 .kts-next-record-action {
  flex: 0 1 360px;
  min-width: 220px;
  max-width: 360px;
  min-height: 54px;
  justify-content: flex-start;
  text-align: left;
  padding: 14px 18px;
  white-space: normal;
  line-height: 1.28;
  border-radius: 16px;
}
body.dashboard-v111 .kts-action-more {
  margin-left: auto;
}
body.dashboard-v111 .kts-detail-tabs {
  position: static;
  top: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 0;
  margin: 12px 0 18px;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}
body.dashboard-v111 .kts-detail-tab {
  min-height: 70px;
  padding: 10px 12px;
}
body.dashboard-v111 .kts-detail-tab span {
  white-space: normal;
  line-height: 1.2;
}
body.dashboard-v111 .kts-detail-tab small {
  margin-top: 2px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}
body.dashboard-v111 .detail-actions[data-dashboard-pane].active {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
body.dashboard-v111 .support-grid {
  margin-top: 24px;
}
@media (min-width: 1100px) {
  body.dashboard-v111 .workflow-layout {
    grid-template-columns: minmax(420px, 0.95fr) minmax(760px, 1.25fr);
    gap: 24px;
    align-items: start;
  }
  body.dashboard-v111 .record-list-panel {
    position: sticky;
    top: 148px;
    max-height: calc(100vh - 170px);
    overflow: hidden;
    padding-bottom: 16px;
  }
  body.dashboard-v111 .record-list {
    max-height: calc(100vh - 360px);
    min-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
  }
  body.dashboard-v111 .workflow-detail-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: 18px;
  }
  body.dashboard-v111 .workflow-detail-panel #recordDetail {
    overflow: visible;
    max-height: none;
    padding: 0;
  }
}
@media (max-width: 1440px) {
  body.dashboard-v111 .workflow-layout {
    grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.18fr);
  }
  body.dashboard-v111 .kts-detail-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  body.dashboard-v111 .kts-quick-actionbar {
    justify-content: flex-start;
  }
  body.dashboard-v111 .kts-action-more {
    margin-left: 0;
  }
  body.dashboard-v111 .kts-detail-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
