/* Prototype workspace only. Shared concept and requirements pages stay independent. */
.app-body {
  --ink: #202d44;
  --muted: #607087;
  --line: #e1e7ef;
  --blue: #3768d7;
  --violet: #7655c5;
  --mint: #c7eddf;
  --coral: #ef8d7d;
  background: #f4f6fa;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.app-body h1, .app-body h2, .app-body h3, .app-body .tag { font-family: var(--sans); }
.app-body button, .app-body input, .app-body select, .app-body textarea { font-family: var(--sans); }
.app-body :focus-visible { outline: 3px solid #3768d7; outline-offset: 3px; }
.app-body .app-top {
  height: 72px;
  min-height: 72px;
  padding: 0 28px;
  gap: 24px;
  background: #fff;
  border-bottom-color: var(--line);
}
.app-body .app-top .wordmark { font-size: 15px; letter-spacing: -.045em; color: #27344c; }
.app-body .app-top .wordmark .braces { color: var(--blue); }
.app-body .app-top-right { gap: 22px; }
.app-body .app-top-right > a { font-size: 14px; text-decoration: none; color: #66748a; }
.app-body .app-top-right > a:hover { color: var(--blue); }
.app-body .workspace-label { padding-left: 20px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.app-body .app-account { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.app-body .avatar { width: 36px; height: 36px; border-radius: 50%; background: #e8edfc; color: #4061ae; font: 650 14px var(--sans); flex: 0 0 auto; }
.app-body .account-detail { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.app-body .account-detail strong { font-size: 14px; font-weight: 650; }
.app-body .account-detail small { color: var(--muted); font-size: 12px; }
.app-body .app-frame { grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.app-body .app-sidebar { padding: 28px 14px 20px; gap: 5px; position: sticky; top: 72px; height: calc(100dvh - 72px); }
.app-body .app-sidebar .sidebar-label { font: 600 12px var(--sans); letter-spacing: .11em; color: #7a889c; margin: 7px 14px 15px; }
.app-body .app-sidebar button { min-height: 44px; padding: 11px 13px; gap: 11px; border-radius: 7px; font-size: 14px; color: #5a6980; }
.app-body .app-sidebar button:hover { background: #f4f6fa; color: #304c7e; }
.app-body .app-sidebar button.active { color: #315fc5; background: #edf2fd; font-weight: 650; }
.app-body .nav-icon { color: #8090a8; font-size: 17px; width: 20px; }
.app-body .active .nav-icon { color: #3768d7; }
.app-body .sidebar-foot { padding: 18px 12px 0; color: #78869a; font-size: 12px; line-height: 1.65; }
.app-body .sidebar-foot strong { color: #42516a; font-size: 14px; font-weight: 600; }
.app-body .sidebar-foot .text-btn { padding: 8px 0; min-height: 36px; color: #62728a; font-size: 14px !important; margin-top: 8px !important; }
.app-body .app-main { max-width: 1560px; padding: 32px 34px 42px; }
.app-body .app-page-head { margin-bottom: 25px; gap: 24px; align-items: center; }
.app-body .app-page-head h1 { font-size: 26px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; margin-bottom: 7px; }
.app-body .app-page-head p { font-size: 14px; color: #708096; line-height: 1.5; max-width: 640px; }
.app-body .campaign-header { align-items: end; }
.app-body .campaign-header .workspace-label { padding: 0; border: 0; margin: 0 0 8px; color: #8a96a8; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.app-body .campaign-select { min-width: 245px; max-width: 360px; }
.app-body .campaign-select label { font-size: 14px; color: #6c7a90; font-weight: 600; }
.app-body .campaign-select select { min-height: 42px; font-weight: 600; font-size: 14px; width: 100%; }
.app-body .btn { min-height: 41px; padding: 10px 16px; border-radius: 7px; background: var(--blue); border-color: var(--blue); font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px #17294408; }
.app-body .btn:hover { background: #2d59bf; border-color: #2d59bf; }
.app-body .btn.small { min-height: 35px; padding: 8px 12px; font-size: 14px; }
.app-body .btn.light, .app-body .btn.ghost { color: #4a5c76; background: #fff; border-color: #dce3ed; }
.app-body .btn.light:hover, .app-body .btn.ghost:hover { background: #f5f8fd; border-color: #c2d0e5; }
.app-body .btn.coral { color: #fff; background: var(--blue); border-color: var(--blue); }
.app-body .btn.coral:hover { background: #2d59bf; }
.app-body .btn.danger { background: #fff3f0; border-color: #f2c7be; color: #ad4e3e; }
.app-body .btn.danger:hover { background: #ffe9e3; }
.app-body button:disabled { opacity: .45; box-shadow: none; }
.app-body .actions { gap: 9px; }
.app-body .panel { border-color: var(--line); border-radius: 10px; margin-bottom: 22px; box-shadow: 0 2px 5px #21365003; }
.app-body .panel-head { padding: 18px 22px; border-bottom-color: #edf0f5; }
.app-body .panel-head h2 { font-size: 14px; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; }
.app-body .panel-head p { font-size: 14px; }
.app-body .panel-content { padding: 22px; }
.app-body .campaign-overview { background: #fff; padding: 23px 24px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.app-body .campaign-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-body .campaign-overview .panel-head { padding: 0; border: 0; margin-bottom: 18px; }
.app-body .campaign-overview h2 { font-size: 17px; font-weight: 650; letter-spacing: -.025em; margin: 0 0 5px; }
.app-body .campaign-overview p { font-size: 14px; margin: 0; }
.app-body .campaign-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: #738197; font-size: 14px; }
.app-body .campaign-meta strong { color: #475c78; font-weight: 600; }
.app-body .campaign-progress { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto; align-items: center; gap: 15px; padding-top: 18px; margin-top: 18px; border-top: 1px solid #edf0f5; font-size: 14px; }
.app-body .campaign-progress > div:first-child:not(.progress-track) { display: flex; flex-direction: column; gap: 4px; color: #8190a5; font-size: 14px; }
.app-body .campaign-progress > div:first-child strong { font-size: 14px; font-weight: 600; color: #536782; }
.app-body .campaign-progress > strong { color: #4d5e78; font-weight: 600; }
.app-body .campaign-progress > small { color: #6b7c93; font-size: 14px; }
.app-body .progress-track { background: #edf1f7; border-radius: 6px; height: 7px; }
.app-body .progress-fill { background: var(--blue); border-radius: inherit; }
.app-body .metrics { gap: 16px; margin-bottom: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-body .metric { padding: 19px 21px 17px; border-color: var(--line); border-radius: 9px; }
.app-body .metric::before { display: none; }
.app-body .metric-label { color: #64748b; font-size: 14px; font-weight: 500; }
.app-body .metric strong { font: 650 31px/1.25 var(--sans); letter-spacing: -.045em; margin-top: 10px; margin-bottom: 7px; color: var(--blue); }
.app-body .metric small { font-size: 12px; color: #7b889a; line-height: 1.45; display: block; }
.app-body .metric:nth-child(2) strong, .app-body .metric-violet strong { color: #7655c5; }
.app-body .metric:nth-child(3) strong, .app-body .metric-mint strong { color: #2f8c70; }
.app-body .metric:nth-child(4) strong, .app-body .metric-coral strong { color: #bd6556; }
.app-body .metric-blue strong { color: var(--blue); }
.app-body .campaign-analysis, .app-body .panel-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.app-body .campaign-analysis > .panel { min-width: 0; }
.app-body .outcome-bars { gap: 17px; padding-top: 24px; padding-bottom: 25px; }
.app-body .outcome-row { grid-template-columns: 103px minmax(0, 1fr) 24px; gap: 15px; font-size: 14px; color: #607087; }
.app-body .outcome-row strong { font-weight: 650; color: #3d4e67; text-align: right; }
.app-body .outcome-row .progress-track { height: 8px; background: #f0f3f8; }
.app-body .outcome-row:nth-child(1) .progress-fill { background: #62b69d; }
.app-body .outcome-row:nth-child(2) .progress-fill { background: #a18acb; }
.app-body .outcome-row:nth-child(3) .progress-fill { background: #7b9bdc; }
.app-body .outcome-row:nth-child(4) .progress-fill { background: #c1b7da; }
.app-body .outcome-row:nth-child(5) .progress-fill, .app-body .outcome-row:nth-child(6) .progress-fill { background: #df9c8f; }
.app-body .outcome-row.outcome-interested .progress-fill { background: #62b69d; }
.app-body .outcome-row.outcome-nurture .progress-fill { background: #a18acb; }
.app-body .outcome-row.outcome-unanswered .progress-fill { background: #7b9bdc; }
.app-body .outcome-row.outcome-voicemail .progress-fill { background: #c1b7da; }
.app-body .outcome-row.outcome-not-interested .progress-fill, .app-body .outcome-row.outcome-do-not-call .progress-fill { background: #df9c8f; }
.app-body .outcome-row.outcome-not-called .progress-fill { background: #c5cedc; }
.app-body .sync-summary { display: block; color: #728096; font-size: 14px; }
.app-body .sync-summary .mini-list { margin-bottom: 18px; }
.app-body .sync-summary .notice { margin-bottom: 12px; }
.app-body .sync-summary > .helper { margin-top: 17px; }
.app-body .sync-summary strong { color: #3e526e; font-size: 15px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.app-body .sync-summary .mini-row:nth-child(2) strong { color: #2f8c70; }
.app-body .sync-summary .mini-row:nth-child(3) strong { color: #bd6556; }
.app-body .mini-list { gap: 10px; }
.app-body .mini-row { border-color: #e9edf4; border-radius: 7px; padding: 11px 13px; }
.app-body .mini-row strong { font-size: 14px; font-weight: 600; }
.app-body .mini-row p { font-size: 14px; line-height: 1.45; margin: 3px 0 0; }
.app-body .tag { font-size: 14px; font-weight: 550; letter-spacing: 0; border-radius: 5px; padding: 4px 7px; gap: 4px; line-height: 1.4; }
.app-body .tag.interested, .app-body .tag.success, .app-body .tag.synced, .app-body .tag.complete { background: #e8f6ef; color: #2b7c60; }
.app-body .tag.nurture { background: #f0ecf9; color: #7554aa; }
.app-body .tag.unanswered, .app-body .tag.running { background: #eaf0fc; color: #416bb7; }
.app-body .tag.new, .app-body .tag.not-applicable { background: #f0f3f7; color: #7b8798; }
.app-body .tag.voicemail, .app-body .tag.pending, .app-body .tag.paused { background: #fcf3df; color: #977325; }
.app-body .tag.dnc, .app-body .tag.do-not-call, .app-body .tag.failed, .app-body .tag.not-interested { background: #fbeeea; color: #ad604e; }
.app-body .table-scroll, .app-body .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.app-body .table-scroll table { min-width: 700px; }
.app-body table { font-size: 14px; }
.app-body th { background: #f9fafc; color: #8490a3; font-size: 14px; font-weight: 600; letter-spacing: .01em; padding: 12px 22px; border-bottom-color: #e8edf4; }
.app-body td { padding: 15px 22px; color: #5d6f88; border-bottom-color: #edf1f6; vertical-align: middle; }
.app-body tbody tr:hover { background: #fbfcff; }
.app-body .text-btn { color: #355c99; font-size: inherit; font-weight: 600; text-decoration: none; }
.app-body .text-btn:hover { text-decoration: underline; }
.app-body td .text-btn { display: inline-block; padding: 3px 0; color: #354761; }
.app-body .table-sub, .app-body .lead-sub { display: block; font-size: 12px; color: #8b97a7; margin-top: 3px; line-height: 1.5; }
.app-body .toolbar { padding: 17px 22px; gap: 15px; border-bottom-color: #edf0f5; background: #fff; }
.app-body .field label { font-size: 14px; color: #6a7b92; }
.app-body input:not([type=checkbox]), .app-body select, .app-body textarea { border-color: #dce3ec; border-radius: 6px; font-size: 14px; min-height: 40px; padding: 9px 11px; background-color: #fff; }
.app-body select { padding-right: 34px; }
.app-body input[type=checkbox] { accent-color: var(--blue); }
.app-body input::placeholder, .app-body textarea::placeholder { color: #8b98aa; }
.app-body .helper, .app-body .empty-note { color: #7b899c; font-size: 13px; line-height: 1.6; }
.app-body .empty-note { margin: 0; padding: 8px 0; }
.app-body .notice { background: #f0f4fc; color: #59708f; font-size: 14px; border-radius: 7px; line-height: 1.65; }
.app-body .notice.mint { background: #edf8f2; color: #467861; }
.app-body .notice.amber { background: #fff7e6; color: #897141; }
.app-body .notice.error { background: #fdf0ec; color: #ac604d; }
.app-body .empty { padding: 38px 24px; font-size: 14px; }
.app-body .empty strong { font-size: 14px; font-weight: 600; }
.app-body .call-progress { padding: 18px 0; font-size: 14px; }
.app-body .call-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.app-body .check-line { font-size: 14px; line-height: 1.6; }
.app-body .selection-box { border-color: var(--line); }
.app-body .selection-box h3 { font-size: 14px; font-weight: 600; }
.app-body .selected-summary { background: #eef2fc; color: #496aa8; font: 600 14px var(--sans); }
.app-body .settings-row h3 { font-size: 14px; font-weight: 600; }
.app-body .settings-row p { font-size: 14px; max-width: 640px; }
.app-body .code-area { font: 14px/1.7 var(--mono) !important; }
.app-body dialog { border-radius: 12px; border-color: #dce3ed; box-shadow: 0 25px 85px #1f2e482b; }
.app-body dialog::backdrop { background: #26375366; backdrop-filter: blur(2px); }
.app-body .dialog-head { padding: 21px 25px; border-bottom-color: #e8edf4; }
.app-body .dialog-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.app-body .dialog-body { padding: 23px 25px; }
.app-body .dialog-actions { padding: 17px 25px; gap: 10px; flex-wrap: wrap; background: #fafbfd; }
.app-body .close-button { color: #75849a; border-color: #e1e7ef; border-radius: 7px; width: 35px; height: 35px; }
.app-body .fact { border: 1px solid #edf0f5; border-radius: 7px; background: #f9fafc; padding: 12px; }
.app-body .fact span { font-size: 14px; color: #8390a2; }
.app-body .fact strong { font-size: 14px; font-weight: 600; }
.app-body .transcript { background: #f5f7fb; border: 1px solid #e7edf5; color: #65768e; font-size: 14px; }
.app-body .transcript p { color: #65768e; }
.app-body .transcript b { color: #497a69; }
.app-body .transcript b.homeowner { color: #7a61a4; }
.app-body .subheading { font-size: 14px; font-weight: 650; color: #4a5d77; }
.app-body .toast { background: #293c58; font-size: 14px; border-radius: 8px; }
.app-body .menu-toggle { min-width: 38px; min-height: 38px; border-color: #dce3ed; color: #526782; }
@media (min-width: 1550px) {
  .app-body .app-main { padding: 38px 44px 48px; }
}
@media (max-width: 1150px) {
  .app-body .app-main { padding: 28px 25px 35px; }
  .app-body .app-frame { grid-template-columns: 190px minmax(0, 1fr); }
  .app-body .app-sidebar { padding-inline: 10px; }
  .app-body .app-top-right { gap: 16px; }
  .app-body .app-top .workspace-label { display: none; }
  .app-body .metrics { gap: 12px; }
  .app-body .metric { padding: 17px; }
  .app-body .campaign-analysis, .app-body .panel-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
  .app-body .outcome-row { grid-template-columns: 92px minmax(0, 1fr) 20px; gap: 10px; }
}
@media (max-width: 900px) {
  .app-body .app-top { height: 68px; min-height: 68px; padding: 0 20px; gap: 14px; }
  .app-body .menu-toggle { display: block; }
  .app-body .app-frame { display: block; min-height: calc(100dvh - 68px); }
  .app-body .app-sidebar { display: none; position: fixed; top: 68px; bottom: 0; left: 0; width: 232px; height: calc(100dvh - 68px); padding: 24px 14px 20px; z-index: 20; box-shadow: 12px 0 35px #243a5c1a; }
  .app-body .app-sidebar.open { display: flex; }
  .app-body .app-main { padding: 25px 24px 35px; }
  .app-body .app-page-head h1 { font-size: 24px; }
  .app-body .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-body .metric { padding: 17px 15px; }
  .app-body .metric-label { font-size: 14px; }
  .app-body .metric strong { font-size: 27px; }
  .app-body .metric small { font-size: 12px; }
}
@media (max-width: 720px) {
  .app-body .app-top-right > a { display: none; }
  .app-body .app-account { padding-left: 0; border: 0; }
  .app-body .app-top-right > .avatar { display: grid; }
  .app-body .app-main { padding: 24px 20px 32px; }
  .app-body .app-page-head { gap: 16px; align-items: start; }
  .app-body .app-page-head p { max-width: none; font-size: 14px; }
  .app-body .campaign-header { flex-direction: column; align-items: stretch; gap: 19px; }
  .app-body .campaign-select { min-width: 0; max-width: none; width: 100%; }
  .app-body .campaign-overview { padding: 20px; }
  .app-body .campaign-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-body .campaign-overview .panel-head { flex-wrap: wrap; align-items: start; gap: 12px; }
  .app-body .campaign-progress { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .app-body .campaign-progress > div:first-child:not(.progress-track) { gap: 5px; }
  .app-body .campaign-progress > .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .app-body .campaign-progress > small { text-align: left; grid-row: 3; }
  .app-body .campaign-analysis, .app-body .panel-grid { grid-template-columns: 1fr; gap: 0; }
  .app-body .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-body .metric { padding: 17px 18px; }
  .app-body .metric-label { font-size: 14px; }
  .app-body .metric strong { font-size: 29px; }
  .app-body .metric small { font-size: 12px; }
  .app-body .panel-head, .app-body .panel-content { padding: 18px 20px; }
  .app-body .panel-head { flex-wrap: wrap; gap: 10px; }
  .app-body .panel-head h2 { font-size: 14px; }
  .app-body .outcome-row { grid-template-columns: 105px minmax(0, 1fr) 25px; gap: 14px; }
  .app-body .toolbar { padding: 17px 20px; gap: 12px; }
  .app-body .toolbar .field { min-width: 135px; }
  .app-body .toolbar .field:has(input[type=search]) { flex-basis: 100%; }
  .app-body td, .app-body th { padding-left: 20px; padding-right: 20px; }
  .app-body .settings-row { align-items: start; gap: 14px; }
  .app-body .selection-grid, .app-body .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .app-body .dialog-body { padding: 21px 20px; }
  .app-body .dialog-head, .app-body .dialog-actions { padding: 18px 20px; }
}
@media (max-width: 480px) {
  .app-body .app-top { padding: 0 15px; gap: 10px; }
  .app-body .app-top .wordmark { font-size: 14px; }
  .app-body .app-top-right { gap: 0; }
  .app-body .account-detail { display: none; }
  .app-body .avatar { width: 32px; height: 32px; font-size: 14px; }
  .app-body .app-main { padding: 22px 15px 30px; }
  .app-body .app-page-head h1 { font-size: 23px; }
  .app-body .app-page-head:not(.campaign-header) { flex-wrap: wrap; }
  .app-body .app-page-head .btn { min-height: 38px; font-size: 14px; }
  .app-body .campaign-overview { padding: 18px; }
  .app-body .campaign-overview h2 { font-size: 16px; }
  .app-body .campaign-meta { gap: 7px 12px; font-size: 14px; }
  .app-body .metric { padding: 15px; }
  .app-body .metric-label { font-size: 14px; }
  .app-body .metric small { font-size: 12px; }
  .app-body .panel-head, .app-body .panel-content { padding: 17px 18px; }
  .app-body .toolbar { padding: 16px 18px; }
  .app-body .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .app-body .fact { padding: 10px; }
  .app-body .dialog-actions { justify-content: start; }
}
.app-body.embed .app-top, .app-body.embed .sidebar-foot { display: none; }
.app-body.embed .app-frame { min-height: 600px; grid-template-columns: 180px minmax(0, 1fr); }
.app-body.embed .app-sidebar { top: 0; height: 100dvh; }
.app-body.embed .app-main { padding: 24px; }
@media (max-width: 900px) {
  .app-body.embed .app-frame { display: block; }
  .app-body.embed .app-sidebar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-body *, .app-body *::before, .app-body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width:720px){
  .app-body .campaign-overview-head{flex-direction:column;align-items:stretch;gap:16px}
  .app-body .campaign-overview-head>.actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;width:100%;gap:8px}
  .app-body .campaign-overview-head>.actions .btn{flex:0 1 auto;width:auto}
  .app-body .campaign-overview-head>.actions .tag{flex:none}
}
