/* Application shell for the interactive legal-workspace demonstration. */
#demo-panel { height: 780px; min-height: 0; display: grid; grid-template-columns: 218px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) auto; border: 1px solid #cdd7cc; border-radius: 12px; background: #f6f8f3; box-shadow: 0 18px 50px #193b3112; overflow: hidden; }
#demo-panel .workspace-appbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid #dce3d8; background: #fffefb; min-width: 0; }
#demo-panel .workspace-app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; line-height: 1.5; }
#demo-panel .workspace-app-brand > strong { font-family: Manrope, sans-serif; font-size: 15px; white-space: nowrap; letter-spacing: -.4px; }
#demo-panel .mini-mark { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; font-size: 17px; color: #e8f0df; background: #214c3d; }
#demo-panel .workspace-app-divider { height: 18px; width: 1px; background: #d8e0d2; margin-inline: 4px; }
#demo-panel #workspace-name { color: #6d7e6f; font-size: 12px; }
#demo-panel .workspace-app-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
#demo-panel .workspace-demo-badge { border: 1px solid #d5dfc8; border-radius: 5px; background: #eef3e6; color: #587343; font-size: 10px; padding: 3px 7px; line-height: 1.5; }
#demo-panel .workspace-focus { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; color: #5c6f60; min-height: 34px; border-radius: 5px; padding: 6px 8px; }
#demo-panel .workspace-focus:hover { background: #edf2e9; color: #193b31; }
#demo-panel .workspace-focus .icon { width: 15px; height: 15px; }
#demo-panel .demo-sidebar { grid-row: 2; grid-column: 1; padding: 24px 12px 18px; background: #1c3e33; color: #e4ebdf; border: 0; min-height: 0; overflow-y: auto; }
#demo-panel .sidebar-caption { font: 500 10px/1.7 var(--sans); text-transform: uppercase; letter-spacing: 1px; color: #9eb4a0; margin: 0 12px 14px; }
#demo-panel .workflow-options { display: flex; flex-direction: column; gap: 7px; }
#demo-panel .workflow-option { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 48px; padding: 11px 12px; margin: 0; font-size: 12px; line-height: 1.6; border: 1px solid transparent; border-radius: 6px; color: #c1d0bf; text-align: left; }
#demo-panel .workflow-option > .icon { flex-shrink: 0; width: 16px; height: 16px; color: #95b38c; }
#demo-panel .workflow-option > span:nth-child(2) { flex: 1; }
#demo-panel .workflow-option > span:last-child { display: inline; margin-left: auto; opacity: 0; font-size: 16px; }
#demo-panel .workflow-option:hover { background: #294c3f; color: #fffef8; }
#demo-panel .workflow-option.active { background: #dce9ca; border-color: #dce9ca; color: #203f30; font-weight: 600; box-shadow: 0 2px 5px #10271f1a; }
#demo-panel .workflow-option.active > .icon { color: #4c733a; }
#demo-panel .workflow-option.active > span:last-child { opacity: 1; }
#demo-panel .sidebar-footer { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 22px 12px 0; color: #a4b7a5; font-size: 10px; line-height: 1.8; border: 0; }
#demo-panel .sidebar-footer > .icon { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; color: #bfd0af; }
#demo-panel .demo-content { grid-row: 2; grid-column: 2; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: #f8f9f5; }
#demo-panel .demo-content-heading { flex-shrink: 0; padding: 22px 25px 21px; min-height: 104px; display: block; border-bottom: 1px solid #dce3d8; background: #fcfdf9; }
#demo-panel .workspace-case-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
#demo-panel .workspace-case-index { font: 10px/1.5 var(--mono); color: #59714d; letter-spacing: .2px; white-space: nowrap; }
#demo-panel .demo-content-heading .eyebrow { font: 10px/1.6 var(--sans); letter-spacing: .1px; text-transform: none; color: #81907c; margin: 0; }
#demo-panel #workflow-title { font-size: 22px; letter-spacing: -.65px; line-height: 1.45; font-weight: 600; overflow-wrap: normal; }
#demo-panel #workflow-title br { display: none; }
#demo-panel #workflow-title br::after { content: " "; }
#demo-panel .demo-body { display: grid; grid-template-columns: minmax(260px, .92fr) minmax(0, 1.25fr); flex: 1; min-height: 0; overflow: hidden; }
#demo-panel .demo-input { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-right: 1px solid #dce3d8; background: #f6f8f2; }
#demo-panel .workspace-input-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 22px; }
#demo-panel .workspace-runbar { flex: 0 0 auto; padding: 14px 22px 15px; border-top: 1px solid #e0e6d8; background: #f6f8f2; }
#demo-panel .input-label { display: flex; align-items: center; gap: 8px; font: 600 12px/1.6 var(--sans); color: #526c50; letter-spacing: 0; text-transform: none; margin: 0; }
#demo-panel .input-label > .icon { width: 15px; height: 15px; color: #7b926b; }
#demo-panel .workspace-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border: 1px solid #dce4d2; border-radius: 5px; color: #6b805e; background: #edf2e7; font-size: 10px; line-height: 1; font-weight: 500; }
#demo-panel .source-file { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 0; width: 100%; padding: 13px 12px; margin: 13px 0 0; border: 1px solid #d6e0cd; border-radius: 7px; background: #fffefb; box-shadow: 0 1px 2px #203e3008; }
#demo-panel .source-file > span { flex: 1; min-width: 0; }
#demo-panel .source-file strong { font-size: 12px; line-height: 1.65; font-weight: 600; }
#demo-panel .source-file small { font-size: 10px; line-height: 1.7; margin-top: 4px; color: #85937b; }
#demo-panel .source-file > .icon { flex-shrink: 0; width: 13px; height: 13px; color: #789268; }
#demo-panel .workspace-source-list { padding: 8px 0 0; }
#demo-panel .workspace-source { display: flex; gap: 9px; align-items: flex-start; width: 100%; text-align: left; padding: 8px 4px; color: #72846a; font: 11px/1.65 var(--sans); border-radius: 4px; }
#demo-panel .workspace-source:hover { background: #e9efe1; color: #284c34; }
#demo-panel .workspace-source-index { font: 9px/1.9 var(--mono); color: #92a283; margin-top: 1px; }
#demo-panel .workspace-source > span:nth-child(2) { flex: 1; min-width: 0; }
#demo-panel .workspace-source > .icon { width: 11px; height: 11px; flex-shrink: 0; margin-top: 3px; color: #839c70; }
#demo-panel .instruction-label { margin-top: 25px; }
#demo-panel .workspace-preset { margin-left: auto; font-size: 9px; font-weight: 400; color: #8a9980; }
#demo-panel .sample-prompt { border: 1px solid #dce4d3; border-radius: 7px; background: #fffefb; padding: 14px; color: #4e6650; font-size: 13px; line-height: 1.85; margin: 11px 0 0; }
#demo-panel .run-button { flex-shrink: 0; display: flex; width: 100%; min-height: 44px; margin: 0; padding: 12px 14px; border-radius: 6px; font-size: 12px; line-height: 1.5; gap: 9px; }
#demo-panel .run-button > .icon { width: 14px; height: 14px; flex-shrink: 0; }
#demo-panel .run-button > .icon:last-child { margin-left: auto; }
#demo-panel .simulation-note { margin: 10px 0 0; font-size: 10px; line-height: 1.8; color: #87977c; }
#demo-panel .demo-output { min-height: 0; min-width: 0; overflow-y: auto; padding: 0 22px 20px; background: #fffefb; scrollbar-gutter: stable; }
#demo-panel .output-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; padding: 22px 0 16px; margin: 0 0 4px; background: #fffefbf5; z-index: 1; border-bottom: 1px solid #ecf0e6; }
#demo-panel #output-state { display: inline-flex; align-items: center; gap: 5px; font: 9px/1.6 var(--sans); color: #8c9d7f; text-transform: none; }
#demo-panel #output-state > i { width: 5px; height: 5px; border-radius: 50%; background: #99b77f; flex-shrink: 0; }
#demo-panel .result-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 18px 0 16px; font-size: 12px; line-height: 1.7; color: #435e43; }
#demo-panel .result-summary > .workspace-result-label { border: 0; background: transparent; padding: 0; color: inherit; font: 600 12px/1.7 var(--sans); white-space: normal; margin: 0; }
#demo-panel .result-summary > .workspace-source-badge { border: 0; background: transparent; padding: 0; font: 9px/1.6 var(--mono); color: #8b9a7e; margin: 0; }
#demo-panel .result-item { border: 1px solid #dfe6d6; border-radius: 8px; background: #fff; padding: 15px 15px 13px; margin: 0 0 12px; box-shadow: 0 2px 3px #29432603; }
#demo-panel .result-item:last-child { margin-bottom: 0; }
#demo-panel .result-topline { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 7px; margin: 0 0 9px; }
#demo-panel .workspace-result-index { display: inline-grid; place-items: center; width: 21px; height: 21px; flex-shrink: 0; border: 1px solid #e5ebdd; border-radius: 5px; background: #f4f7ed; font: 9px/1 var(--mono); color: #87a06e; }
#demo-panel .result-topline h4 { flex: 1; min-width: 110px; color: #294b37; font-size: 13px; font-weight: 600; line-height: 1.65; letter-spacing: -.15px; overflow-wrap: normal; }
#demo-panel .severity { font: 9px/1.5 var(--sans); padding: 3px 6px; border-radius: 4px; background: #f5ebd6; color: #92723b; margin-left: auto; }
#demo-panel .severity.low { background: #edf3e4; color: #738b52; }
#demo-panel .result-item p { font-size: 13px; line-height: 1.85; color: #6c7f66; margin: 0; }
#demo-panel .citation { display: inline-flex; gap: 7px; align-items: center; max-width: 100%; padding: 8px 0 0; margin: 9px 0 0; border: 0; border-top: 1px solid #edf0e8; border-radius: 0; background: transparent; color: #789259; font: 10px/1.7 var(--sans); text-align: left; }
#demo-panel .citation:hover { color: #315d36; }
#demo-panel .citation > .icon { width: 12px; height: 12px; flex-shrink: 0; }
#demo-panel .citation > .icon:last-child { width: 10px; height: 10px; }
#demo-panel .demo-bottom { grid-column: 1 / -1; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 20px; border-top: 1px solid #dbe3d3; background: #eff3e8; font: 10px/1.7 var(--sans); color: #8a9a7b; }
#demo-panel .demo-bottom > span:first-child { color: #688257; gap: 6px; flex-shrink: 0; }
#demo-panel .demo-bottom .icon { width: 13px; height: 13px; }
#demo-panel .processing { display: grid; gap: 20px; padding: 30px 5px; font-size: 12px; line-height: 1.7; }
#demo-panel .processing-line { gap: 12px; }
#demo-panel button:focus-visible, #demo-panel .demo-output:focus-visible { outline: 2px solid #89a66d; outline-offset: 2px; }
#workspace-focus-dialog { width: calc(100% - 36px); height: calc(100dvh - 36px); max-width: 1600px; max-height: calc(100dvh - 36px); padding: 0; border-radius: 12px; overflow: hidden; }
#workspace-focus-mount { height: 100%; }
#workspace-focus-dialog #demo-panel { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 1100px) and (min-width: 801px) {
  #demo-panel { grid-template-columns: 178px minmax(0, 1fr); }
  #demo-panel .demo-body { grid-template-columns: minmax(235px, .9fr) minmax(0, 1fr); }
  #demo-panel .workspace-input-scroll, #demo-panel .workspace-runbar, #demo-panel .demo-output { padding-inline: 16px; }
  #demo-panel .workflow-option { padding-inline: 9px; gap: 8px; font-size: 11px; }
  #demo-panel .demo-content-heading { padding-inline: 18px; }
  #demo-panel #workflow-title { font-size: 20px; }
  #demo-panel .workspace-app-divider, #demo-panel #workspace-name { display: none; }
}
@media (max-width: 800px) {
  #demo-panel { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  #demo-panel .workspace-appbar { min-height: 54px; padding: 10px 15px; gap: 8px; }
  #demo-panel .workspace-app-brand { gap: 8px; }
  #demo-panel .workspace-app-brand > strong { font-size: 14px; }
  #demo-panel .workspace-app-divider, #demo-panel #workspace-name { display: none; }
  #demo-panel .workspace-app-actions { gap: 6px; }
  #demo-panel .workspace-focus { font-size: 10px; }
  #demo-panel .demo-sidebar { grid-column: 1; grid-row: 2; padding: 13px 12px; overflow: hidden; }
  #demo-panel .sidebar-caption, #demo-panel .sidebar-footer { display: none; }
  #demo-panel .workflow-options { flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #6b876c transparent; }
  #demo-panel .workflow-option { width: auto; flex: 0 0 auto; max-width: 230px; padding: 9px 12px; min-height: 42px; font-size: 11px; gap: 8px; }
  #demo-panel .workflow-option > span:last-child { display: none; }
  #demo-panel .workflow-option > .icon { width: 14px; height: 14px; }
  #demo-panel .demo-content { grid-column: 1; grid-row: 3; overflow: visible; }
  #demo-panel .demo-content-heading { padding: 19px 18px; min-height: 0; }
  #demo-panel #workflow-title { font-size: 21px; }
  #demo-panel .demo-body { grid-template-columns: minmax(230px, .9fr) minmax(0, 1.1fr); overflow: visible; }
  #demo-panel .demo-input { padding: 0; overflow: visible; }
  #demo-panel .workspace-input-scroll { padding: 20px 16px; overflow: visible; }
  #demo-panel .workspace-runbar { padding: 14px 16px 18px; }
  #demo-panel .demo-output { padding: 0 16px 20px; overflow: visible; }
  #demo-panel .demo-bottom { grid-row: 4; flex-wrap: wrap; gap: 4px 14px; padding: 10px 17px; font-size: 9px; }
  #demo-panel .output-heading { position: static; }
  #workspace-focus-dialog #workspace-focus-mount { overflow-y: auto; }
  #workspace-focus-dialog #demo-panel { height: auto; min-height: 100%; overflow: visible; }
  #workspace-focus-dialog .workspace-appbar { position: sticky; top: 0; z-index: 5; }
}
@media (max-width: 600px) {
  #demo-panel .workspace-appbar { padding-inline: 12px; }
  #demo-panel .workspace-focus span { max-width: 120px; font-size: 10px; }
  #demo-panel .workspace-demo-badge { display: none; }
  #demo-panel .demo-body { grid-template-columns: minmax(0, 1fr); }
  #demo-panel .demo-input { border-right: 0; border-bottom: 1px solid #dce3d8; padding: 0; }
  #demo-panel .workspace-input-scroll { padding: 20px 18px; }
  #demo-panel .workspace-runbar { padding-inline: 18px; }
  #demo-panel .workspace-source-list { display: grid; grid-template-columns: 1fr; }
  #demo-panel .workspace-source { padding-block: 7px; font-size: 11px; }
  #demo-panel .instruction-label { margin-top: 20px; }
  #demo-panel .sample-prompt { font-size: 12px; line-height: 1.85; }
  #demo-panel .demo-output { padding: 0 18px 20px; }
  #demo-panel .result-item p { font-size: 13px; }
  #demo-panel .workspace-case-meta { flex-wrap: wrap; gap: 4px 9px; }
  #demo-panel .result-topline h4 { font-size: 13px; }
  #workspace-focus-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 9px; }
}
