.segaswork-shell.iw-standalone-shell {
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: transparent;
}
.iw-standalone-shell .iw-primary-work-center { min-height: 100%; overflow: visible; }
.iw-standalone-shell .sw-work-content { overflow: visible; }
.iw-shell {
  --iw-blue: #2457e6;
  --iw-blue-soft: #edf3ff;
  --iw-ink: #162238;
  --iw-muted: #66758d;
  --iw-line: #dbe4f1;
  position: relative;
  min-height: 100%;
  color: var(--iw-ink);
}
.iw-agent-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) max-content max-content;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #cad8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(34, 67, 120, .07);
}
.iw-agent-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.iw-agent-mark {
  width: 50px;
  height: 50px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #173f9f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 26px rgba(36,87,230,.2);
  font-size: 16px;
  font-weight: 900;
}
.iw-agent-summary { display: grid; min-width: 0; gap: 4px; }
.iw-agent-title-line { display: flex; align-items: baseline; min-width: 0; gap: 10px; }
.iw-agent-identity small { color: var(--iw-blue); font-size: 11px; font-weight: 850; letter-spacing: .05em; }
.iw-agent-identity h2 { overflow: hidden; margin: 0; color: var(--iw-ink); font-size: 21px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.iw-agent-identity p { overflow: hidden; margin: 0; color: var(--iw-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.iw-agent-policy { display: flex; align-items: center; min-width: 0; overflow: hidden; color: #77869b; font-size: 10px; white-space: nowrap; }
.iw-agent-policy span { overflow: hidden; text-overflow: ellipsis; }
.iw-agent-policy span + span { margin-left: 9px; padding-left: 9px; border-left: 1px solid #d9e2ef; }
.iw-agent-health { display: grid; grid-template-columns: repeat(3, minmax(68px, 1fr)); border-left: 1px solid var(--iw-line); }
.iw-agent-health span { min-width: 68px; padding: 3px 12px; color: #77869c; font-size: 10px; text-align: center; }
.iw-agent-health b { display: block; margin-bottom: 1px; color: var(--iw-ink); font-size: 21px; }
.iw-agent-actions { display: flex; gap: 9px; }
.iw-agent-actions button { flex: 0 0 auto; white-space: nowrap; }
.iw-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--iw-line); border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; }
.iw-tabs button { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-bottom: 3px solid transparent; color: #68778e; background: transparent; font-weight: 800; }
.iw-tabs button + button { border-left: 1px solid #edf1f7; }
.iw-tabs button b { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #6a7890; background: #f2f5fa; font-size: 11px; }
.iw-tabs button.active { border-bottom-color: var(--iw-blue); color: var(--iw-blue); background: #f8faff; }
.iw-tabs button.active b { color: #fff; background: var(--iw-blue); }
.iw-toolbar { min-height: 76px; display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; align-items: center; gap: 20px; padding: 14px 22px; border-inline: 1px solid var(--iw-line); background: #fff; }
.iw-toolbar > div { display: grid; gap: 4px; }
.iw-toolbar b { font-size: 15px; }
.iw-toolbar span { color: var(--iw-muted); font-size: 12px; }
.iw-context-copy { min-width: 0; }
.iw-context-copy small { color: var(--iw-blue); font-size: 10px; font-weight: 850; }
.iw-context-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iw-attention-summary { display: grid; grid-template-columns: repeat(3, minmax(54px, auto)); gap: 0 !important; border: 1px solid #e0e7f1; border-radius: 10px; overflow: hidden; }
.iw-attention-summary span { min-width: 62px; padding: 7px 10px; text-align: center; white-space: nowrap; }
.iw-attention-summary span + span { border-left: 1px solid #e7edf5; }
.iw-attention-summary b { display: block; color: var(--iw-ink); font-size: 15px; line-height: 1.05; }
.iw-create-form { display: grid; grid-template-columns: 1fr 150px 210px auto; gap: 10px; padding: 16px 22px; border: 1px solid var(--iw-line); border-bottom: 0; background: #f7f9fd; }
.iw-create-form input, .iw-create-form select, .iw-field select, .iw-voice input { min-height: 42px; border: 1px solid #ccd8e8; border-radius: 9px; padding: 0 12px; color: var(--iw-ink); background: #fff; outline: none; }
.iw-create-form input:focus, .iw-create-form select:focus, .iw-field select:focus, .iw-voice input:focus { border-color: #6f94ed; box-shadow: 0 0 0 3px rgba(36,87,230,.1); }
.iw-content { min-height: 340px; padding: 22px; border: 1px solid var(--iw-line); border-radius: 0 0 14px 14px; background: #f7f9fc; }
.iw-priority-groups { display: grid; gap: 20px; }
.iw-priority-group { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
.iw-priority-group > header { padding: 15px 6px; }
.iw-priority-group > header div { display: flex; align-items: center; gap: 8px; }
.iw-priority-group > header span { font-size: 15px; font-weight: 850; }
.iw-priority-group > header b { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--iw-blue); background: var(--iw-blue-soft); font-size: 11px; }
.iw-priority-group > header small { display: block; margin-top: 8px; color: #7b899d; line-height: 1.55; }
.iw-priority-group > div { display: grid; gap: 9px; }
.iw-item { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 104px; overflow: hidden; padding: 16px 16px 16px 0; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.iw-item:hover { transform: translateY(-1px); border-color: #b4c5e3; box-shadow: 0 12px 30px rgba(33, 61, 108, .07); }
.iw-item-marker { align-self: stretch; background: #7d8ca5; }
.iw-priority-critical .iw-item-marker { background: #e14545; }
.iw-priority-high .iw-item-marker { background: #e58a1f; }
.iw-priority-normal .iw-item-marker { background: var(--iw-blue); }
.iw-priority-routine .iw-item-marker { background: #7d8ca5; }
.iw-item-main { min-width: 0; }
.iw-item-main header, .iw-item-main footer { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #7b899d; font-size: 10px; }
.iw-priority-label { color: #42516a; font-weight: 850; }
.iw-requirement { padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 850; }
.iw-requirement-todo { color: #2457e6; background: #edf3ff; }
.iw-requirement-confirm { color: #8a6218; background: #fff4d8; }
.iw-requirement-decision { color: #a33b3b; background: #fff0f0; }
.iw-item-main h3 { margin: 7px 0 3px; font-size: 15px; }
.iw-item-main > p { margin: 0 0 9px; color: var(--iw-muted); font-size: 12px; line-height: 1.55; }
.iw-item-main details { margin-top: 9px; color: #6f7f95; font-size: 11px; }
.iw-item-main details p { margin: 6px 0 0; }
.iw-item-actions { display: flex; align-items: center; gap: 7px; }
.iw-item-actions .primary-btn, .iw-item-actions .secondary-btn { min-height: 36px; padding-inline: 12px; }
.iw-text-action { color: #6e7d92; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.iw-empty { min-height: 240px; display: grid; place-content: center; gap: 7px; text-align: center; color: #7e8ca0; }
.iw-empty b { color: #43516a; font-size: 16px; }
.iw-empty p { max-width: 480px; margin: 0; }
.iw-empty.compact { min-height: 150px; }
.iw-timeline { position: relative; display: grid; gap: 0; max-width: 920px; margin-inline: auto; }
.iw-timeline::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 20px; width: 1px; background: #cbd7e7; }
.iw-timeline > article { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 17px; padding: 0 0 24px; }
.iw-timeline > article > i { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 16px; border: 4px solid #f7f9fc; border-radius: 50%; background: var(--iw-blue); box-shadow: 0 0 0 1px #91abe2; }
.iw-timeline > article > div { padding: 16px 18px; border: 1px solid #dce4ef; border-radius: 11px; background: #fff; }
.iw-timeline header, .iw-timeline footer { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #8190a4; font-size: 10px; }
.iw-timeline header b { color: var(--iw-blue); }
.iw-timeline header em { color: #8a6420; font-style: normal; }
.iw-timeline h3 { margin: 8px 0 4px; font-size: 15px; }
.iw-timeline p { margin: 0 0 12px; color: var(--iw-muted); font-size: 12px; line-height: 1.6; }
.iw-memory-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.iw-memory-layout > section { min-height: 340px; padding: 22px; border: 1px solid #dce4ef; border-radius: 13px; background: #fff; }
.iw-memory-layout > section > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid #e8edf5; }
.iw-memory-layout header small { color: var(--iw-blue); font-weight: 850; }
.iw-memory-layout header h2 { margin: 4px 0 0; font-size: 19px; }
.iw-memory-layout header > span { color: #7c8ba0; font-size: 10px; }
.iw-habit-list, .iw-memory-list { display: grid; gap: 9px; margin-top: 14px; }
.iw-habit-list article { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px; border: 1px solid #e1e7f0; border-radius: 10px; }
.iw-habit-list p { margin: 4px 0; color: var(--iw-muted); font-size: 11px; }
.iw-habit-list small { color: #8996a8; }
.iw-habit-list article > span { color: #7d8ca1; font-size: 10px; }
.iw-habit-list article > span.confirmed { color: var(--iw-blue); font-weight: 850; }
.iw-habit-list button { grid-column: 1 / -1; justify-self: start; min-height: 34px; }
.iw-memory-list article { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.iw-memory-list article > span, .iw-memory-list small { color: #8492a6; font-size: 10px; }
.iw-voice { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 18px; padding: 20px 22px; border: 1px solid #cedaf0; border-radius: 14px; background: #eef3fd; }
.iw-voice-orb button { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--iw-blue); box-shadow: 0 10px 24px rgba(36,87,230,.22); }
.iw-voice-orb svg { width: 21px; height: 21px; }
.iw-voice-orb.listening button { animation: iw-pulse 1.2s ease-in-out infinite; }
@keyframes iw-pulse { 50% { box-shadow: 0 0 0 10px rgba(36,87,230,.12), 0 10px 24px rgba(36,87,230,.24); } }
.iw-voice-body > b { font-size: 15px; }
.iw-voice-body > p { margin: 4px 0 10px; color: var(--iw-muted); font-size: 12px; }
.iw-voice form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.iw-voice-actions { display: grid; gap: 8px; margin-top: 10px; }
.iw-voice-actions article { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; align-items: center; padding: 12px; border: 1px solid #ccd9ed; border-radius: 10px; background: #fff; }
.iw-voice-actions article > div { display: grid; gap: 3px; }
.iw-voice-actions small, .iw-voice-actions span { color: #7d8ba0; font-size: 10px; }
.iw-settings { position: absolute; z-index: 15; top: 0; right: 0; width: min(430px, calc(100% - 24px)); min-height: 580px; padding: 24px; border: 1px solid #cbd7e9; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(21, 43, 79, .22); }
.iw-settings > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #e5eaf2; }
.iw-settings header small { color: var(--iw-blue); font-weight: 850; }
.iw-settings h2 { margin: 5px 0 0; font-size: 21px; }
.iw-settings header button { color: #6e7c91; background: transparent; font-size: 25px; }
.iw-settings form { display: grid; gap: 16px; margin-top: 18px; }
.iw-channel-list { display: grid; gap: 8px; }
.iw-channel-list label { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; padding: 12px; border: 1px solid #e0e6ef; border-radius: 9px; }
.iw-channel-list input { accent-color: var(--iw-blue); }
.iw-channel-list span { display: grid; gap: 3px; }
.iw-channel-list small { color: #8290a4; }
.iw-field { display: grid; gap: 7px; color: #536178; font-size: 11px; font-weight: 800; }
.iw-settings form > p { margin: 0; color: #738198; font-size: 11px; line-height: 1.6; }
.iw-meeting-domain-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.iw-meeting-plans { display: grid; gap: 11px; }
.iw-meeting-plan { padding: 17px 18px; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(33,61,108,.05); }
.iw-meeting-plan > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.iw-meeting-plan > header div { display: grid; gap: 4px; }
.iw-meeting-plan > header span { color: var(--iw-blue); font-size: 10px; font-weight: 850; }
.iw-meeting-plan h3 { margin: 0; font-size: 16px; }
.iw-meeting-plan > header > b { padding: 5px 8px; border-radius: 999px; background: var(--iw-blue-soft); color: var(--iw-blue); font-size: 10px; }
.iw-meeting-plan > p { margin: 9px 0 13px; color: var(--iw-muted); font-size: 12px; line-height: 1.6; }
.iw-meeting-plan > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #7b899d; font-size: 10px; }
.iw-meeting-plan > footer button { margin-left: auto; min-height: 34px; }

/* Independent intelligent-work pages. Shared tokens stay consistent; page bodies do not share one generic shell. */
.iw-domain-head {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #d2deee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(35, 64, 108, .055);
}
.iw-domain-agent { display: flex; align-items: center; gap: 13px; min-width: 0; }
.iw-domain-agent > span { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: #234eb8; }
.iw-domain-agent > span svg { width: 19px; height: 19px; }
.iw-domain-agent > div { display: grid; min-width: 0; gap: 2px; }
.iw-domain-agent small { color: var(--iw-blue); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.iw-domain-agent b { font-size: 17px; }
.iw-domain-agent p { overflow: hidden; margin: 0; color: var(--iw-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.iw-domain-stats { display: grid; grid-template-columns: repeat(3, minmax(58px, auto)); border-left: 1px solid var(--iw-line); }
.iw-domain-stats span { padding: 2px 13px; color: #7c8a9f; font-size: 10px; text-align: center; }
.iw-domain-stats b { display: block; margin-bottom: 2px; color: var(--iw-ink); font-size: 19px; }
.iw-domain-actions { display: flex; align-items: center; gap: 8px; }
.iw-domain-actions button { flex: 0 0 auto; white-space: nowrap; }
.iw-domain-empty { min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 28px; color: #7b8aa0; text-align: left; }
.iw-domain-empty > span { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #d6e1f2; border-radius: 12px; color: var(--iw-blue); background: #f6f9ff; }
.iw-domain-empty > span svg { width: 19px; height: 19px; }
.iw-domain-empty > div { display: grid; gap: 5px; }
.iw-domain-empty b { color: #41516a; font-size: 15px; }
.iw-domain-empty p { max-width: 520px; margin: 0; line-height: 1.6; }
.iw-domain-empty small { color: var(--iw-blue); }
.iw-compact-item { position: relative; display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 13px; align-items: center; overflow: hidden; padding: 13px 14px 13px 0; border: 1px solid #dce5f0; border-radius: 11px; background: #fff; }
.iw-compact-item > i { align-self: stretch; background: #71829c; }
.iw-compact-item.iw-priority-critical > i { background: #de4141; }
.iw-compact-item.iw-priority-high > i { background: #e28a23; }
.iw-compact-item.iw-priority-normal > i { background: var(--iw-blue); }
.iw-compact-main { min-width: 0; }
.iw-compact-main header, .iw-compact-main footer { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #8190a5; font-size: 9px; }
.iw-compact-main header > span { color: #4d5c73; font-weight: 850; }
.iw-compact-main h3 { margin: 6px 0 3px; font-size: 14px; }
.iw-compact-main > p { display: -webkit-box; overflow: hidden; margin: 0 0 7px; color: var(--iw-muted); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.iw-compact-main details { margin-top: 7px; color: #697991; font-size: 10px; }
.iw-compact-main details p { margin: 5px 0 0; }
.iw-compact-actions { display: flex; gap: 6px; }
.iw-compact-actions button { min-height: 33px; padding-inline: 10px; font-size: 10px; white-space: nowrap; }

.iw-home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 14px; margin-top: 14px; }
.iw-home-focus, .iw-home-brief { border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-home-focus { min-height: 430px; padding: 20px; }
.iw-home-focus > header, .iw-home-brief > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.iw-home-focus > header { margin-bottom: 15px; }
.iw-home-focus > header div { display: grid; gap: 3px; }
.iw-home-focus > header small, .iw-home-brief > header small { color: var(--iw-blue); font-weight: 850; }
.iw-home-focus > header h2 { margin: 0; font-size: 20px; }
.iw-home-focus > header > span { min-width: 48px; padding: 5px 9px; border-radius: 8px; color: var(--iw-blue); background: var(--iw-blue-soft); text-align: center; }
.iw-home-focus .iw-compact-item + .iw-compact-item { margin-top: 8px; }
.iw-home-side { display: grid; gap: 14px; }
.iw-home-brief { padding: 18px; }
.iw-home-brief > header { padding-bottom: 12px; border-bottom: 1px solid #e8edf4; }
.iw-home-brief > header { display: grid; }
.iw-home-brief > header b { font-size: 17px; }
.iw-home-brief article { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid #edf1f6; }
.iw-home-brief article span, .iw-home-brief article small { color: #7e8da2; font-size: 10px; }
.iw-home-brief > p { margin: 16px 0 0; color: #8090a5; font-size: 11px; line-height: 1.6; }

.iw-todo-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; margin-top: 14px; padding: 20px; border: 1px solid #dce5f0; border-radius: 14px; background: #f7f9fc; }
.iw-todo-layout > aside { padding: 16px; border: 1px solid #dde5ef; border-radius: 12px; background: #fff; }
.iw-todo-layout > aside > small { display: block; margin-bottom: 13px; color: var(--iw-blue); font-weight: 850; }
.iw-todo-layout > aside > div { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.iw-todo-layout > aside em { color: #7a899e; font-style: normal; }
.iw-todo-layout > aside p { margin: 15px 0 0; color: #8391a4; font-size: 10px; line-height: 1.6; }
.iw-priority-dot { width: 8px; height: 8px; border-radius: 50%; background: #7d8ca5; }
.iw-dot-critical { background: #de4141; }
.iw-dot-high { background: #e28a23; }
.iw-dot-normal { background: var(--iw-blue); }
.iw-todo-layout .iw-priority-group { grid-template-columns: 150px minmax(0, 1fr); }

.iw-meeting-board { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 14px; margin-top: 14px; }
.iw-meeting-decisions, .iw-meeting-agenda { min-height: 430px; padding: 20px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-meeting-decisions > header, .iw-meeting-agenda > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #e6ecf4; }
.iw-meeting-decisions > header div, .iw-meeting-agenda > header { align-items: flex-start; }
.iw-meeting-decisions > header small, .iw-meeting-agenda > header small { color: var(--iw-blue); font-weight: 850; }
.iw-meeting-decisions > header h2, .iw-meeting-agenda > header h2 { margin: 3px 0 0; font-size: 19px; }
.iw-meeting-decisions > header > span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--iw-blue); }
.iw-meeting-decisions > article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 17px 0; border-bottom: 1px solid #e8edf4; }
.iw-meeting-decisions article small { color: var(--iw-blue); font-weight: 800; }
.iw-meeting-decisions article h3 { margin: 5px 0; font-size: 16px; }
.iw-meeting-decisions article p { margin: 0; color: var(--iw-muted); font-size: 11px; }
.iw-meeting-decisions dl { display: grid; grid-template-columns: auto auto; gap: 4px 10px; color: #7b899d; font-size: 9px; }
.iw-meeting-decisions dt, .iw-meeting-decisions dd { margin: 0; }
.iw-meeting-decisions dd { color: #425169; font-weight: 800; }
.iw-meeting-agenda > p { color: #7c8b9f; line-height: 1.6; }
.iw-meeting-agenda article { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid #e9eef5; }
.iw-meeting-agenda time { color: var(--iw-blue); font-size: 10px; font-weight: 800; }
.iw-meeting-agenda article div { display: grid; gap: 3px; }
.iw-meeting-agenda article span { color: #7d8ba0; font-size: 9px; }
.iw-meeting-agenda article strong { color: #516078; font-size: 9px; }

.iw-project-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid #dbe4ef; border-radius: 14px; background: #fff; }
.iw-project-overview > span { padding: 16px 20px; }
.iw-project-overview > span + span { border-left: 1px solid #e7ecf3; }
.iw-project-overview small { display: block; color: #7d8ca0; font-size: 10px; }
.iw-project-overview b { display: block; margin-top: 3px; font-size: 23px; }
.iw-project-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.iw-project-lane { min-height: 390px; padding: 15px; border: 1px solid #dce5f0; border-radius: 14px; background: #f7f9fc; }
.iw-project-lane > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.iw-project-lane > header div { display: grid; gap: 2px; }
.iw-project-lane > header small { color: #7c8a9e; font-size: 9px; }
.iw-project-lane > header h2 { margin: 0; font-size: 16px; }
.iw-project-lane > header > b { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--iw-blue); background: var(--iw-blue-soft); }
.iw-project-lane .iw-compact-item { grid-template-columns: 4px 1fr; margin-top: 8px; }
.iw-project-lane .iw-compact-actions { grid-column: 2; }
.iw-lane-empty { padding: 28px 10px; color: #8492a5; text-align: center; }

.iw-crm-signal { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-top: 14px; padding: 18px 22px; border-radius: 14px; color: #fff; background: #183f96; }
.iw-crm-signal small { color: #bcd0ff; font-weight: 850; }
.iw-crm-signal h2 { margin: 4px 0; font-size: 20px; }
.iw-crm-signal p { margin: 0; color: #d6e1f8; font-size: 11px; }
.iw-crm-signal ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: crm-step; }
.iw-crm-signal li { padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: #e8efff; font-size: 10px; counter-increment: crm-step; }
.iw-crm-signal li::before { content: counter(crm-step) ". "; color: #8fb0ff; }
.iw-crm-pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.iw-crm-column { min-height: 390px; padding: 15px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-crm-column > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #e8edf4; }
.iw-crm-column > header div { display: grid; gap: 2px; }
.iw-crm-column > header small { color: #7c8a9e; font-size: 9px; }
.iw-crm-column > header h2 { margin: 0; font-size: 16px; }
.iw-crm-column > header > b { color: var(--iw-blue); }
.iw-crm-column > p { color: #8290a4; text-align: center; }
.iw-crm-column .iw-compact-item { grid-template-columns: 4px 1fr; margin-top: 10px; background: #f9fbfe; }
.iw-crm-column .iw-compact-actions { grid-column: 2; }

.iw-contract-track { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; padding: 18px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-contract-track > div { position: relative; display: grid; justify-items: center; gap: 6px; color: #8996a8; }
.iw-contract-track > div:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 22px); width: calc(100% - 44px); height: 1px; background: #d5dfec; }
.iw-contract-track i { width: 28px; height: 28px; display: grid; z-index: 1; place-items: center; border: 1px solid #ccd8e8; border-radius: 50%; background: #fff; font-style: normal; }
.iw-contract-track .active i { border-color: var(--iw-blue); color: #fff; background: var(--iw-blue); }
.iw-contract-track span { font-size: 10px; }
.iw-contract-track b { color: #526178; font-size: 10px; }
.iw-contract-ledger { display: grid; gap: 12px; margin-top: 12px; }
.iw-contract-ledger > section { padding: 18px; border: 1px solid #dce5f0; border-radius: 14px; background: #f8fafc; }
.iw-contract-ledger > section > header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.iw-contract-ledger > section h2 { margin: 0; font-size: 16px; }
.iw-contract-ledger > section > header span { color: #7e8ca0; font-size: 10px; }
.iw-contract-ledger .iw-compact-item + .iw-compact-item { margin-top: 8px; }

.iw-oa-inbox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 14px; margin-top: 14px; }
.iw-oa-decisions, .iw-oa-collaboration { min-height: 430px; padding: 18px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-oa-decisions > header, .iw-oa-collaboration > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #e8edf4; }
.iw-oa-decisions > header div, .iw-oa-collaboration > header div { display: grid; gap: 3px; }
.iw-oa-decisions small, .iw-oa-collaboration small { color: var(--iw-blue); font-weight: 850; }
.iw-oa-decisions h2, .iw-oa-collaboration h2 { margin: 0; font-size: 18px; }
.iw-oa-decisions > header > b, .iw-oa-collaboration > header > b { color: var(--iw-blue); }
.iw-oa-decisions .iw-compact-item, .iw-oa-collaboration .iw-compact-item { margin-top: 9px; }
.iw-oa-collaboration .iw-compact-item { grid-template-columns: 4px 1fr; background: #f8faff; }
.iw-oa-collaboration .iw-compact-actions { grid-column: 2; }
.iw-oa-collaboration > p { color: #8190a4; }

.iw-team-radar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 18px 22px; border: 1px solid #dce5f0; border-radius: 14px; background: #f8faff; }
.iw-team-radar > div { display: flex; align-items: center; gap: 12px; }
.iw-team-radar > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--iw-blue); }
.iw-team-radar small { color: var(--iw-blue); font-weight: 850; }
.iw-team-radar h2 { margin: 3px 0 0; font-size: 18px; }
.iw-team-radar > p { max-width: 520px; margin: 0; color: #6f7e94; font-size: 11px; line-height: 1.6; }
.iw-team-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.iw-team-group { min-height: 390px; padding: 15px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-team-group > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #e8edf4; }
.iw-team-group > header div { display: grid; gap: 2px; }
.iw-team-group small { color: #7d8b9f; }
.iw-team-group h2 { margin: 0; font-size: 16px; }
.iw-team-group > header > b { color: var(--iw-blue); }
.iw-team-group > p { color: #8290a4; text-align: center; }
.iw-team-group .iw-compact-item { grid-template-columns: 4px 1fr; margin-top: 9px; background: #f9fbfe; }
.iw-team-group .iw-compact-actions { grid-column: 2; }

.iw-history-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.iw-history-layout > aside, .iw-history-layout > main { min-height: 460px; padding: 20px; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.iw-history-layout > aside > header small, .iw-history-layout > main > header small { color: var(--iw-blue); font-weight: 850; }
.iw-history-layout h2 { margin: 3px 0 0; font-size: 18px; }
.iw-history-kinds { display: grid; gap: 7px; margin-top: 18px; }
.iw-history-kinds span { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #edf1f6; }
.iw-history-kinds em { color: #7b899d; font-style: normal; }
.iw-history-layout aside dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 22px 0; color: #67768d; }
.iw-history-layout aside dt, .iw-history-layout aside dd { margin: 0; }
.iw-history-layout aside dd { color: var(--iw-ink); font-weight: 850; }
.iw-history-layout aside > p { color: #7d8ba0; font-size: 10px; line-height: 1.65; }
.iw-history-layout > main > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e7edf4; }
.iw-history-layout > main > header div { display: grid; gap: 2px; }
.iw-history-layout > main > header > span { color: #7d8ba0; }
.iw-history-layout .iw-timeline { margin: 0; }
@media (max-width: 1050px) {
  .iw-agent-hero { grid-template-columns: 1fr auto; }
  .iw-agent-health { grid-row: 2; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--iw-line); padding-top: 15px; }
  .iw-priority-group { grid-template-columns: 160px minmax(0, 1fr); }
  .iw-domain-head { grid-template-columns: 1fr auto; }
  .iw-domain-stats { grid-row: 2; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--iw-line); padding-top: 12px; }
  .iw-home-grid, .iw-meeting-board, .iw-oa-inbox { grid-template-columns: 1fr; }
  .iw-project-board, .iw-crm-pipeline, .iw-team-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .iw-agent-hero { grid-template-columns: 1fr; padding: 20px; }
  .iw-agent-title-line { align-items: flex-start; flex-direction: column; gap: 2px; }
  .iw-agent-policy { align-items: flex-start; flex-direction: column; gap: 2px; white-space: normal; }
  .iw-agent-policy span + span { margin-left: 0; padding-left: 0; border-left: 0; }
  .iw-agent-actions { grid-row: auto; }
  .iw-agent-health { grid-row: auto; grid-column: auto; }
  .iw-tabs { grid-template-columns: 1fr 1fr; }
  .iw-tabs button:nth-child(3) { border-left: 0; border-top: 1px solid #edf1f7; }
  .iw-tabs button:nth-child(4) { border-top: 1px solid #edf1f7; }
  .iw-tabs button:nth-child(5) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #edf1f7; }
  .iw-toolbar { grid-template-columns: 1fr; align-items: flex-start; }
  .iw-context-copy span { overflow: visible; white-space: normal; }
  .iw-create-form { grid-template-columns: 1fr; }
  .iw-priority-group { grid-template-columns: 1fr; gap: 4px; }
  .iw-priority-group > header { padding-inline: 0; }
  .iw-item { grid-template-columns: 5px minmax(0, 1fr); }
  .iw-item-actions { grid-column: 2; flex-wrap: wrap; }
  .iw-memory-layout { grid-template-columns: 1fr; }
  .iw-voice { grid-template-columns: 1fr; }
  .iw-voice form, .iw-voice-actions article { grid-template-columns: 1fr; }
  .iw-domain-head { grid-template-columns: 1fr; }
  .iw-domain-agent p { overflow: visible; white-space: normal; }
  .iw-domain-stats { grid-row: auto; grid-column: auto; }
  .iw-domain-actions { flex-wrap: wrap; }
  .iw-compact-item { grid-template-columns: 4px 1fr; }
  .iw-compact-actions { grid-column: 2; flex-wrap: wrap; }
  .iw-home-grid, .iw-todo-layout, .iw-project-board, .iw-crm-pipeline, .iw-oa-inbox, .iw-team-columns, .iw-history-layout { grid-template-columns: 1fr; }
  .iw-meeting-decisions > article { grid-template-columns: 1fr; }
  .iw-project-overview { grid-template-columns: 1fr 1fr; }
  .iw-project-overview > span:nth-child(3) { border-left: 0; border-top: 1px solid #e7ecf3; }
  .iw-project-overview > span:nth-child(4) { border-top: 1px solid #e7ecf3; }
  .iw-crm-signal { grid-template-columns: 1fr; }
  .iw-crm-signal ol { flex-wrap: wrap; }
  .iw-contract-track { grid-template-columns: 1fr; gap: 8px; }
  .iw-contract-track > div { grid-template-columns: auto 1fr auto; justify-items: start; }
  .iw-contract-track > div:not(:last-child)::after { display: none; }
  .iw-team-radar { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .iw-item { transition: none; }
  .iw-voice-orb.listening button { animation: none; }
}
