@font-face {
  font-family: "Noto Emoji Local";
  src: url("./assets/fonts/noto-emoji/Noto-COLRv1.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #17213b;
  --muted: #75829a;
  --line: #e3e7f0;
  --violet: #705cf1;
  --violet-soft: #f0eeff;
  --mint: #1ca681;
  --mint-soft: #e5f7f1;
  --amber: #a66b12;
  --amber-soft: #fff6df;
  --coral: #d66168;
  --glass: rgba(255,255,255,.78);
  --shadow: 0 18px 48px rgba(37, 47, 83, .1);
  --radius-sm: 10px;
  --radius-row: 14px;
  --radius-card: 18px;
  --radius-sheet: 24px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 18% -8%, #eeeaff 0, transparent 31%), radial-gradient(circle at 88% 4%, #e7f8f2 0, transparent 28%), linear-gradient(180deg, #fbfbfe 0, #f2f4f9 100%); font: 15px/1.5 "IBM Plex Sans Thai", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { opacity: .44; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(112, 92, 241, .2); outline-offset: 2px; }
svg { width: 19px; height: 19px; stroke-width: 1.9; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card { width: min(100%, 360px); display: grid; gap: 13px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.login-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 4px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #806cf4, #5947da); box-shadow: 0 10px 24px rgba(76,58,187,.25); font-size: 24px; font-weight: 700; }
.login-card h1 { margin: 0 0 3px; text-align: center; font-size: 24px; }
.login-card .field { margin: 0; }
.login-card .primary-button { width: 100%; margin-top: 4px; }

.app { width: min(100%, 1060px); min-height: 100vh; margin: 0 auto; background: var(--glass); box-shadow: var(--shadow); overflow: hidden; }
.app-bar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid rgba(227,231,240,.88); background: rgba(255,255,255,.82); backdrop-filter: blur(16px); }
.app-title { color: var(--ink); font-size: 13px; font-weight: 800; }
.app-title small { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.header-actions { display: flex; gap: 8px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }
.icon-button:hover { background: #f7f7fd; color: var(--violet); }
.workspace { min-height: calc(100vh - 56px); padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }

.sync-state { min-height: 520px; display: grid; align-content: center; justify-items: center; text-align: center; }
.sync-orb, .kim-orb { position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from 20deg, #e7e2ff, #d9e5ff, #ddfaf2, #e8ddff); box-shadow: 0 0 40px rgba(105,85,219,.18); overflow: hidden; }
.sync-orb { width: 152px; height: 152px; }
.sync-orb::before, .kim-orb::before { content: ""; position: absolute; inset: -65%; background: conic-gradient(from 150deg, transparent 34%, rgba(255,255,255,.95) 52%, rgba(126,154,255,.66) 68%, transparent 84%); animation: orbit-spin 1.8s linear infinite; }
.sync-orb::after, .kim-orb::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.96); border-radius: 50%; background: rgba(255,255,255,.38); }
.sync-core { z-index: 1; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7662ca; box-shadow: 0 0 27px rgba(89,69,167,.43); }
.sync-state h1 { margin: 24px 0 5px; font-size: 22px; }
.sync-state p { margin: 0; color: var(--muted); }

.kim-profile { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 13px; max-width: 520px; margin: 0 auto 14px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius-card); background: rgba(255,255,255,.7); box-shadow: 0 10px 28px rgba(52,58,92,.07); text-align: left; backdrop-filter: blur(14px); }
.kim-orb { width: 58px; height: 58px; margin: 0; box-shadow: 0 0 23px rgba(105,85,219,.16); }
.kim-orb::after { inset: 5px; }
.kim-orb > img, .kim-orb > span { z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; color: #fff; background: linear-gradient(145deg, #806cf4, #5947da); box-shadow: 0 6px 14px rgba(65,51,171,.2); font-size: 17px; font-weight: 700; }
.kim-profile-copy { min-width: 0; }
.kim-profile-copy > small { display: block; color: var(--violet); font: 700 8px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; }
.kim-profile h1 { margin: 2px 0 0; font-size: 18px; line-height: 1.2; }
.kim-profile p { display: flex; align-items: center; gap: 7px; margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #21bf82; box-shadow: 0 0 0 4px #e2f9ee; }
.executive-assistant-hero {
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  max-width: none;
  margin: 0 0 16px;
  padding: 17px 18px;
  border-color: rgba(221,216,255,.78);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,248,255,.82));
  box-shadow: 0 14px 34px rgba(70,60,140,.07);
}
.executive-assistant-hero .kim-orb { width: 68px; height: 68px; }
.executive-assistant-hero .kim-orb > img,
.executive-assistant-hero .kim-orb > span { width: 50px; height: 50px; }
.executive-assistant-copy > small { color: var(--violet); font-size: 9px; }
.executive-assistant-copy h1 { margin-top: 4px; font-size: clamp(24px, 4vw, 31px); line-height: 1.18; }
.executive-assistant-copy .executive-assistant-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.4;
}
.executive-assistant-status strong { color: var(--ink); font-weight: 800; }
.assistant-status-divider { color: #b1b8c8; }
.executive-assistant-refresh { align-self: center; }

.main-tabs { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 15; width: min(calc(100% - 24px), 520px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid rgba(222,226,237,.92); border-radius: 18px; background: rgba(246,248,252,.88); box-shadow: 0 14px 34px rgba(32,42,74,.2); transform: translateX(-50%); backdrop-filter: blur(18px); }
.main-tabs button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.main-tabs button.active { color: var(--violet); background: #fff; box-shadow: 0 2px 5px rgba(27,38,71,.08); }

.executive-view { display: grid; gap: 0; padding-top: 8px; }
.executive-eyebrow, .executive-kicker { margin: 0; color: var(--violet); font: 600 10px/1.35 "IBM Plex Mono", monospace; text-transform: uppercase; }
.executive-priority { margin-bottom: 16px; padding: 17px; border: 1px solid rgba(221,216,255,.9); border-radius: var(--radius-card); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,247,255,.88)); box-shadow: 0 14px 34px rgba(70,60,140,.08); }
.priority-head { align-items: center; margin-bottom: 12px; }
.priority-head .executive-kicker { margin-bottom: 4px; }
.priority-count { min-width: 34px; padding: 6px 10px; border-radius: 999px; color: var(--violet); background: var(--violet-soft); font: 800 12px "IBM Plex Mono", monospace; text-align: center; }
.executive-priority-list { display: grid; gap: 8px; }
.priority-item { width: 100%; min-height: 64px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-row); color: var(--ink); background: #fff; text-align: left; }
button.priority-item:hover { border-color: #cfc6ff; background: #fcfbff; }
.priority-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--violet); background: var(--violet-soft); }
.priority-item.decision .priority-icon { color: var(--amber); background: var(--amber-soft); }
.priority-item.risk .priority-icon { color: var(--coral); background: #fff0f2; }
.priority-copy { min-width: 0; }
.priority-copy small, .priority-copy strong, .priority-copy > span { display: block; }
.priority-copy small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.priority-copy strong { margin-top: 2px; font-size: 12px; line-height: 1.4; }
.priority-copy > span { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.priority-open { color: #a5aec0; }
.priority-clear { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #d9eee7; border-radius: var(--radius-row); color: var(--mint); background: #f7fcfa; }
.priority-clear > span:first-child { width: 24px; height: 24px; }
.priority-clear strong, .priority-clear small { display: block; }
.priority-clear strong { font-size: 12px; }
.priority-clear small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.executive-brief-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255,255,255,.88); }
.executive-brief-band h3 { max-width: 680px; margin: 7px 0 0; font-size: clamp(20px, 4vw, 29px); line-height: 1.32; }
#executive-brief-copy { max-width: 680px; margin: 8px 0 0; color: #59677f; font-size: 14px; line-height: 1.65; }
.executive-brief-copy.has-points { color: var(--muted); font-size: 12px !important; }
.executive-brief-points { display: grid; gap: 6px; margin: 13px 0 0; padding: 0; list-style: none; }
.executive-brief-points li { position: relative; padding-left: 16px; color: #48546c; font-size: 12px; line-height: 1.5; }
.executive-brief-points li::before { content: ""; position: absolute; top: .62em; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.executive-counts { display: grid; grid-template-columns: repeat(3, minmax(76px, 1fr)); align-items: stretch; }
.executive-counts > button { min-width: 76px; padding: 9px 14px; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.executive-counts > button:hover { color: var(--violet); background: #faf9ff; }
.executive-counts strong, .executive-counts small { display: block; }
.executive-counts strong { font-size: 26px; line-height: 1.1; }
.executive-counts small { margin-top: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.executive-section { padding: 25px 2px 0; }
.executive-section + .executive-section { margin-top: 4px; }
.executive-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.executive-section-head h3 { margin: 0; font-size: 17px; }
.executive-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.executive-group-list, .executive-decision-list { border-top: 1px solid var(--line); }
.executive-group-row { width: 100%; min-height: 70px; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto 19px; gap: 11px; align-items: center; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.executive-group-row:hover { color: var(--violet); background: #fbfaff; }
.executive-row-avatar { width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border: 2px solid #e9e5ff; border-radius: 50%; color: var(--violet); background: var(--violet-soft); font-weight: 700; }
.executive-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.executive-row-copy { min-width: 0; }
.executive-row-copy strong, .executive-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.executive-row-copy strong { font-size: 13px; }
.executive-row-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.executive-row-meta { min-width: 42px; color: var(--muted); font: 600 9px "IBM Plex Mono", monospace; text-align: right; white-space: nowrap; }
.executive-row-meta.has-work { padding: 4px 6px; border-radius: 999px; color: var(--violet); background: var(--violet-soft); }
.executive-group-row > svg { color: #a4adbd; }
.executive-decision-row { min-height: 78px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.executive-decision-row > svg { color: #b17b16; }
.executive-decision-row strong, .executive-decision-row small { display: block; }
.executive-decision-row strong { font-size: 13px; }
.executive-decision-row small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.executive-decision-row .secondary-button { min-height: 35px; padding: 7px 10px; font-size: 10px; }

.executive-top-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 14px; align-items: stretch; }
.executive-top-grid > section { min-width: 0; margin: 0; }
.executive-priority { display: flex; flex-direction: column; padding: 16px; }
.executive-priority-list { gap: 7px; }
.priority-item { min-height: 54px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; padding: 8px 9px; }
.priority-icon { width: 34px; height: 34px; border-radius: 10px; }
.priority-icon svg { width: 16px; height: 16px; }
.priority-copy small { font-size: 10px; }
.priority-copy strong { font-size: 13px; line-height: 1.35; }
.priority-copy > span { display: none; }
.executive-view-all { width: 100%; min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; padding: 8px 11px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--violet), #5f91db); box-shadow: 0 8px 18px rgba(94,75,211,.16); font-size: 12px; font-weight: 800; }
.executive-view-all:hover { filter: brightness(.98); transform: translateY(-1px); }
.executive-view-all svg { width: 15px; height: 15px; }
.executive-brief-band { position: relative; display: block; overflow: hidden; padding: 18px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,249,255,.9)); }
.executive-brief-content { position: relative; z-index: 1; }
.executive-brief-art { position: absolute; right: -20%; bottom: -7%; z-index: 0; width: 105%; max-width: none; opacity: .18; pointer-events: none; }
.executive-brief-band h3 { max-width: none; margin-top: 6px; font-size: clamp(18px, 3vw, 23px); }
#executive-brief-copy { display: -webkit-box; max-width: none; margin-top: 7px; overflow: hidden; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.executive-brief-copy.has-points { color: #59677f; font-size: 13px !important; }
.executive-brief-more { margin-top: 9px; }
.executive-brief-more > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-size: 10px; font-weight: 800; cursor: pointer; }
.executive-brief-more > summary span { min-width: 20px; padding: 2px 5px; border-radius: 999px; color: #fff; background: var(--violet); text-align: center; }
.executive-brief-more[open] > summary { margin-bottom: 8px; }
.executive-brief-points { max-height: 118px; gap: 4px; margin: 0; overflow: auto; padding-right: 4px; }
.executive-brief-points li { font-size: 11px; line-height: 1.45; }
.executive-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.executive-counts > button { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 6px; align-items: center; padding: 8px; border: 1px solid rgba(221,216,255,.82); border-radius: 11px; background: rgba(255,255,255,.82); text-align: left; backdrop-filter: blur(8px); }
.executive-counts > button:hover { border-color: #cfc6ff; background: #fff; }
.executive-counts > button > svg { grid-row: 1 / 3; width: 16px; height: 16px; color: var(--violet); }
.executive-counts > button:nth-child(2) > svg { color: var(--amber); }
.executive-counts > button:nth-child(3) > svg { color: var(--coral); }
.executive-counts strong { font-size: 19px; line-height: 1; }
.executive-counts small { margin-top: 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.brief-output-actions { margin-top: 10px; }
.brief-output-actions .secondary-button { min-height: 35px; padding: 6px 9px; font-size: 11px; }
.executive-group-pulse { padding-top: 18px; }
.executive-section-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border: 0; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font-size: 11px; font-weight: 800; }
.executive-section-link svg { width: 13px; height: 13px; }
.executive-group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 0; }
.executive-group-row { min-height: 64px; grid-template-columns: 36px minmax(0, 1fr) auto 14px; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.76); }
.executive-row-avatar { width: 36px; height: 36px; border-width: 1px; }
.executive-row-copy strong { font-size: 13px; }
.executive-row-copy small { max-width: 100%; margin-top: 1px; font-size: 11px; }
.executive-row-pulse { height: 3px; display: block; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #eceef4; }
.executive-row-pulse i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--mint)); }
.executive-row-meta { min-width: 36px; font-size: 10px; }
.executive-group-row > svg { width: 14px; height: 14px; }

.executive-urgent-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.executive-urgent-list li { min-width: 0; }
.executive-urgent-list button, .executive-urgent-list article { width: 100%; min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(222,225,237,.85); color: var(--ink); background: transparent; text-align: left; }
.executive-urgent-list li:last-child button, .executive-urgent-list li:last-child article { border-bottom: 0; }
.executive-urgent-list button:hover { color: var(--violet); }
.executive-urgent-list svg { width: 17px; height: 17px; margin-top: 2px; }
.executive-urgent-list .risk > svg { color: var(--coral); }
.executive-urgent-list .decision > svg { color: var(--amber); }
.executive-urgent-list .important > svg { color: var(--violet); }
.executive-urgent-list .work > svg { color: #487dcc; }
.executive-urgent-list small, .executive-urgent-list strong { display: block; }
.executive-urgent-list small { color: var(--muted); font-size: 9px; font-weight: 800; }
.executive-urgent-list strong { margin-top: 1px; font-size: 12px; line-height: 1.42; }
.executive-brief-more { margin-top: 10px; padding-top: 7px; border-top: 1px solid rgba(222,225,237,.82); }
.executive-brief-more > summary { font-size: 10px; }
.executive-brief-more #executive-brief-copy { margin-top: 8px; font-size: 12px !important; -webkit-line-clamp: 5; }

.executive-inline-work { display: grid; gap: 11px; margin-top: 15px; padding: 16px; border: 1px solid rgba(221,216,255,.9); border-radius: var(--radius-card); background: rgba(255,255,255,.88); box-shadow: 0 14px 34px rgba(70,60,140,.06); }
.executive-inline-work .executive-section-head { margin: 0; }
.executive-inline-work .executive-counts { margin: 0; }
.executive-inline-work .executive-counts > button { min-height: 58px; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.executive-inline-work .executive-counts > button:hover { transform: translateY(-1px); }
.executive-inline-work .executive-counts > button.active { border-color: var(--violet); background: #f3f0ff; box-shadow: 0 0 0 2px rgba(105,88,218,.1); }
.executive-inline-list { display: grid; border-top: 1px solid var(--line); }
.executive-inline-row { width: 100%; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; gap: 9px; align-items: center; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
button.executive-inline-row:hover { color: var(--violet); background: rgba(246,244,255,.66); }
.executive-inline-row > span:nth-child(2) { min-width: 0; }
.executive-inline-row small, .executive-inline-row strong, .executive-inline-row > span:nth-child(2) > span { display: block; }
.executive-inline-row small { color: var(--muted); font-size: 9px; font-weight: 800; }
.executive-inline-row strong { margin-top: 1px; font-size: 12px; line-height: 1.4; }
.executive-inline-row > span:nth-child(2) > span { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.executive-inline-row > svg { width: 14px; color: #a4adbd; }
.executive-inline-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; }
.executive-inline-icon svg { width: 15px; height: 15px; }
.executive-inline-icon.decision { color: var(--amber); background: var(--amber-soft); }
.executive-inline-icon.risk { color: var(--coral); background: var(--coral-soft); }
.executive-inline-icon.important { color: var(--violet); background: var(--violet-soft); }
.executive-inline-icon.work { color: #487dcc; background: #edf4ff; }
.executive-inline-more { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 800; }
.executive-inline-more:hover { border-color: #cfc6ff; color: var(--violet); }
.executive-inline-more svg { width: 15px; height: 15px; }

.executive-unified-workspace {
  margin-top: 0;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(249,249,255,.9));
  box-shadow: 0 16px 38px rgba(70,60,140,.07);
}
.executive-unified-head { align-items: flex-end; padding-bottom: 2px; }
.executive-unified-head h3 { margin: 3px 0 0; font-size: clamp(22px, 4vw, 28px); line-height: 1.2; }
.executive-unified-head p:last-child { margin-top: 5px; }
.executive-unified-workspace .executive-counts { gap: 8px; }
.executive-unified-workspace .executive-counts > button { min-height: 68px; }
.executive-priority-zone {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(221,216,255,.82);
  border-radius: 16px;
  background: rgba(249,248,255,.76);
}
.unified-subhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.unified-subhead h3 { margin: 3px 0 0; font-size: 18px; line-height: 1.25; }
.unified-subhead p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.executive-priority-zone .priority-head { margin: 0; }
.executive-priority-zone .executive-priority-list { gap: 8px; }
.executive-priority-zone .priority-item { background: rgba(255,255,255,.94); }
.executive-all-zone {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.unified-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.unified-list-head strong, .unified-list-head small { display: block; }
.unified-list-head strong { font-size: 13px; }
.unified-list-head small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.executive-all-zone .executive-inline-list { border-top: 0; }
.executive-summary-drawer {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.executive-summary-drawer > summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.executive-summary-drawer > summary span {
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.executive-summary-drawer > summary svg { width: 16px; height: 16px; transition: transform .16s ease; }
.executive-summary-drawer[open] > summary svg { transform: rotate(180deg); }
.executive-summary-drawer #executive-brief-copy {
  display: block;
  max-width: none;
  margin-top: 10px;
  overflow: visible;
  font-size: 12px !important;
  line-height: 1.6;
  -webkit-line-clamp: unset;
}

.groups-overview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 10px; }
.groups-overview-head h2 { margin: 4px 0 0; font-size: 24px; }
.groups-overview-head p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.groups-overview-head > strong { min-width: 44px; padding: 8px 10px; border-radius: 13px; color: var(--violet); background: var(--violet-soft); text-align: center; font: 700 17px "IBM Plex Mono", monospace; }
.quiet-groups { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255,255,255,.72); }
.quiet-groups > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--ink); cursor: pointer; list-style: none; }
.quiet-groups > summary::-webkit-details-marker { display: none; }
.quiet-groups > summary > span { display: inline-flex; align-items: center; gap: 8px; }
.quiet-groups > summary svg { width: 17px; height: 17px; color: var(--muted); }
.quiet-groups > summary > span:last-child > span:first-child { min-width: 28px; padding: 4px 7px; border-radius: 999px; color: #687187; background: #eef0f5; text-align: center; font: 700 10px "IBM Plex Mono", monospace; }
.quiet-groups > summary > span:last-child svg { transition: transform .16s ease; }
.quiet-groups[open] > summary { border-bottom: 1px solid var(--line); }
.quiet-groups[open] > summary > span:last-child svg { transform: rotate(180deg); }
.quiet-group-grid { padding: 14px; opacity: .88; }

.work-view { display: grid; gap: 18px; padding-top: 10px; }
.work-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.work-header h2 { margin: 4px 0 0; font-size: 24px; }
.work-header p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.work-header > strong { min-width: 44px; padding: 8px 10px; border-radius: 13px; color: var(--violet); background: var(--violet-soft); text-align: center; font: 700 17px "IBM Plex Mono", monospace; }
.work-status-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.work-status-overview > button { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.9); text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.work-status-overview > button:hover { transform: translateY(-1px); border-color: #cfc6ff; }
.work-status-overview > button.active { border-color: var(--violet); background: #f6f3ff; box-shadow: 0 0 0 2px rgba(105,88,218,.1); }
.work-status-overview strong, .work-status-overview small { display: block; }
.work-status-overview strong { font: 700 20px "IBM Plex Mono", monospace; }
.work-status-overview small { margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 800; }
.work-mood { position: relative; width: 44px; height: 44px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 45% 42%, #fff 0 32%, #eeeafd 66%, #d8d2f8 100%); box-shadow: inset 0 0 0 1px rgba(112,95,199,.14), 0 5px 12px rgba(67,57,128,.1); }
.work-mood::before { content: ""; position: absolute; top: 15px; left: 12px; width: 4px; height: 4px; border-radius: 50%; background: #2f2a35; box-shadow: 16px 0 0 #2f2a35; }
.work-mood i { position: absolute; left: 50%; bottom: 10px; width: 16px; height: 7px; border: 2px solid #2f2a35; transform: translateX(-50%); }
.work-mood.mood-happy { background: radial-gradient(circle at 45% 42%, #fff 0 32%, #fff1c8 66%, #f0d88f 100%); }
.work-mood.mood-happy i { border-top: 0; border-radius: 0 0 12px 12px; }
.work-mood.mood-neutral { background: radial-gradient(circle at 45% 42%, #fff 0 32%, #f5e8e7 66%, #e5c6c2 100%); }
.work-mood.mood-neutral i { bottom: 11px; height: 2px; border: 0; border-radius: 999px; background: #2f2a35; }
.work-mood.mood-sad i { border-bottom: 0; border-radius: 12px 12px 0 0; }
.work-filter-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.74); }
.work-filter-panel > summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 8px; align-items: center; padding: 11px 13px; cursor: pointer; list-style: none; }
.work-filter-panel > summary::-webkit-details-marker { display: none; }
.work-filter-panel > summary > svg { width: 16px; color: var(--violet); }
.work-filter-panel > summary > svg:last-child { color: #98a1b4; transition: transform .16s ease; }
.work-filter-panel[open] > summary > svg:last-child { transform: rotate(180deg); }
.work-filter-panel > summary strong, .work-filter-panel > summary small { display: block; }
.work-filter-panel > summary strong { font-size: 11px; }
.work-filter-panel > summary small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.work-filter-panel .work-filters { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.work-filters { display: grid; grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(120px, .75fr)); gap: 8px; padding: 12px; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius-card); background: rgba(255,255,255,.72); backdrop-filter: blur(14px); }
.work-filters label { display: grid; gap: 4px; min-width: 0; }
.work-filters label > span { color: var(--muted); font-size: 8px; font-weight: 800; }
.work-filters input, .work-filters select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 10px; }
.work-decision-block { padding: 15px; border: 1px solid #ead9a7; border-radius: var(--radius-card); background: rgba(255,249,229,.82); }
.work-decision-block .executive-section-head { margin-bottom: 7px; }
.work-decision-block .executive-section-head > strong { min-width: 30px; padding: 4px 7px; border-radius: 999px; color: var(--amber); background: #fff; text-align: center; font-size: 10px; }
.work-decision-list { display: grid; gap: 7px; }
.work-decision-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 17px; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(218,189,111,.45); border-radius: var(--radius-row); color: var(--ink); background: rgba(255,255,255,.78); text-align: left; }
.work-decision-row:hover { border-color: #cfa957; background: #fff; }
.work-decision-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--amber); background: var(--amber-soft); }
.work-decision-row strong, .work-decision-row small { display: block; }
.work-decision-row strong { font-size: 13px; }
.work-decision-row small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.work-decision-row > svg { width: 15px; color: #a99568; }
.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.work-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255,255,255,.9); box-shadow: 0 10px 24px rgba(41,49,79,.045); }
.work-card > header { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.work-group-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border: 2px solid #e7e3ff; border-radius: 50%; color: var(--violet); background: var(--violet-soft); font-weight: 800; }
.work-group-avatar img { width: 100%; height: 100%; object-fit: cover; }
.work-card-heading { min-width: 0; }
.work-card-heading small, .work-card-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-card-heading small { color: var(--violet); font-size: 10px; font-weight: 800; }
.work-card-heading strong { margin-top: 2px; font-size: 13px; line-height: 1.35; }
.work-description { min-height: 39px; margin: 10px 0 0; color: #566178; font-size: 11px; line-height: 1.5; }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 9px; }
.work-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.work-meta svg { width: 12px; height: 12px; }
.work-meta .delivery-failed { color: #a64050; }
.work-meta .delivery-sent { color: #08784c; }
.work-source { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 7px; align-items: start; margin-top: 11px; padding: 9px; border-radius: 10px; background: #f7f8fb; }
.work-source > svg { width: 16px; color: var(--violet); }
.work-source strong, .work-source small { display: block; }
.work-source strong { font-size: 10px; }
.work-source small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.work-open-button { width: 100%; justify-content: center; margin-top: 10px; }
.work-open-button svg { width: 14px; }

.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding-top: 20px; }
.group-card { min-width: 0; min-height: 255px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.92); text-align: center; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.group-card:hover { transform: translateY(-2px); border-color: #cbc2fb; box-shadow: 0 14px 30px rgba(55,57,100,.09); }
.group-card.disabled { background: #fbfcfe; }
.group-card-button { width: 100%; min-height: 255px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 10px 14px; border: 0; color: var(--ink); background: transparent; text-align: center; }
.group-orb { width: 82px; height: 82px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from 20deg, #eeeaff, #dce8ff, #e4f8f2, #ded8ff); box-shadow: 0 0 22px rgba(107,90,218,.16); transition: transform .18s ease, box-shadow .18s ease; }
.group-card-button:hover .group-orb { transform: scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--violet), 0 0 28px rgba(107,90,218,.24); }
.group-orb::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.95); border-radius: 50%; }
.group-logo { z-index: 1; width: 59px; height: 59px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: var(--ink); background: #edf0f5; font-size: 20px; font-weight: 700; }
.group-logo img { width: 100%; height: 100%; object-fit: cover; }
.group-card.disabled .group-orb { filter: grayscale(.9); opacity: .6; }
.group-card-name { width: 100%; margin: 12px 0 3px; overflow: hidden; font-size: 14px; font-weight: 800; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.category { max-width: 100%; margin: 0; overflow: hidden; color: var(--violet); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.group-signals { width: 100%; min-height: 37px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; }
.group-signal { max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; overflow: hidden; font-size: 10px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.group-signal svg { width: 13px; height: 13px; flex: 0 0 auto; }
.group-signal.risk { color: #c44d5c; }
.group-signal.decision { color: #9a6b19; }
.group-signal.task { color: var(--violet); }
.group-signal.clear { color: #138a68; }
.group-signal.running { color: #177d85; }
.group-signal.running svg { animation: orbit-spin 1.1s linear infinite; }
.group-signal.empty { color: var(--muted); font-weight: 600; }
.group-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.group-status span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.group-status .message-count { padding-left: 8px; border-left: 1px solid #dfe3ec; font-variant-numeric: tabular-nums; }
.group-status .message-count svg { width: 14px; height: 14px; }
.group-status .active { color: var(--mint); font-weight: 700; }
.group-status .active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.group-status .off { color: var(--muted); }
.empty-state { padding: 56px 18px; color: var(--muted); text-align: center; }
.empty-state svg { width: 38px; height: 38px; margin: 0 auto 13px; }
.empty-state strong { display: block; color: var(--ink); }
.empty-state p { max-width: 330px; margin: 4px auto 0; font-size: 13px; }

.global-view { display: grid; gap: 13px; padding-top: 20px; }
.settings-hub-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 2px; }
.settings-hub-header h2 { margin: 4px 0 0; font-size: 24px; }
.settings-hub-header > div > p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.settings-search { width: min(100%, 310px); display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.86); backdrop-filter: blur(12px); }
.settings-search svg { width: 16px; }
.settings-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.settings-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-hub-grid > button { min-height: 86px; display: grid; grid-template-columns: 43px minmax(0, 1fr) 18px; gap: 11px; align-items: center; padding: 13px; border: 1px solid rgba(225,229,239,.94); border-radius: var(--radius-card); color: var(--ink); background: rgba(255,255,255,.84); box-shadow: 0 9px 24px rgba(42,49,79,.045); text-align: left; backdrop-filter: blur(14px); }
.settings-hub-grid > button:hover { transform: translateY(-1px); border-color: #ccc4fa; background: #fff; }
.settings-hub-grid > button > span:nth-child(2) { min-width: 0; }
.settings-hub-grid strong, .settings-hub-grid small { display: block; }
.settings-hub-grid strong { font-size: 12px; }
.settings-hub-grid small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.settings-hub-grid > button > svg { width: 16px; color: #a6aebe; }
.settings-hub-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; }
.settings-hub-icon.violet { color: var(--violet); background: var(--violet-soft); }
.settings-hub-icon.mint { color: var(--mint); background: var(--mint-soft); }
.settings-hub-icon.blue { color: #376cc3; background: #eaf2ff; }
.settings-hub-icon.amber { color: var(--amber); background: var(--amber-soft); }
.settings-hub-icon.coral { color: var(--coral); background: #fff0f2; }
.settings-hub-icon.slate { color: #5c687d; background: #edf0f5; }
.settings-detail-head { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 5px 0 3px; }
.settings-detail-head .icon-button { flex: 0 0 auto; }
.settings-detail-head small { display: block; color: var(--muted); font-size: 8px; font-weight: 700; }
.settings-detail-head h2 { margin: 1px 0 0; font-size: 19px; }
.settings-search-empty { margin: 18px 0; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-card); color: var(--muted); background: rgba(255,255,255,.7); text-align: center; font-size: 11px; }
.settings-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.settings-card form.is-dirty::before { content: "มีการเปลี่ยนแปลงที่ยังไม่บันทึก"; display: block; margin: 10px 0 0; padding: 7px 9px; border: 1px solid #ead9a7; border-radius: 9px; color: #8c621a; background: var(--amber-soft); font-size: 9px; font-weight: 700; }
.settings-card form > button[type="submit"]:last-child { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 2; box-shadow: 0 7px 18px rgba(39,47,75,.12); }
.settings-card-head { display: flex; align-items: flex-start; gap: 12px; }
.settings-card-head > div { min-width: 0; flex: 1; }
.setting-symbol { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--violet); background: var(--violet-soft); }
.setting-symbol.mint { color: var(--mint); background: var(--mint-soft); }
.runtime-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 3px solid #e9e5ff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #806cf4, #5947da); font-size: 16px; font-weight: 700; }
.runtime-avatar img { width: 100%; height: 100%; object-fit: cover; }
.runtime-status-chip { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #6f788b; background: #eef1f5; font-size: 10px; font-weight: 700; white-space: nowrap; }
.runtime-status-chip.connected { color: #16775e; background: #e2f7f0; }
.runtime-status-chip.degraded { color: #99671d; background: #fff2d5; }
.runtime-status-chip.disconnected { color: #a84050; background: #ffe8ec; }
#runtime-status-message { margin-top: 14px; color: var(--ink); font-weight: 600; }
#runtime-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
#runtime-details span { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
#runtime-details small, #runtime-details strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#runtime-details small { color: var(--muted); font-size: 9px; font-weight: 600; }
#runtime-details strong { margin-top: 2px; color: var(--ink); font-size: 11px; }
#runtime-storage-summary, #runtime-policy-summary { margin-top: 12px; }
#runtime-storage-summary .ready { color: #138a68; }
#runtime-storage-summary .failed { color: var(--danger); }
#line-runtime-card .secondary-button { margin-top: 13px; }
.settings-card h2 { margin: 0; font-size: 16px; }
.settings-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.catalog-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9fc; }
.catalog-summary span { min-width: 0; display: grid; }
.catalog-summary strong { font-size: 13px; }
.catalog-summary small { color: var(--muted); font-size: 10px; }
.catalog-mode { margin-top: 13px; }
.sticker-upload-form { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sticker-id-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sticker-file-picker { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px dashed #bbb3f8; border-radius: 10px; color: #5e50c5; background: #faf9ff; font-size: 11px; font-weight: 700; cursor: pointer; }
.sticker-file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sticker-catalog-list { display: grid; gap: 7px; margin-top: 14px; }
.knowledge-inbox-list { display: grid; gap: 9px; margin-top: 14px; }
.knowledge-inbox-item { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(248,247,255,.72); }
.knowledge-inbox-item small, .knowledge-inbox-item strong { display: block; }
.knowledge-inbox-item small { color: var(--muted); font-size: 9px; }
.knowledge-inbox-item strong { margin-top: 3px; font-size: 12px; }
.knowledge-inbox-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.knowledge-inbox-item > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
.sticker-catalog-item { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sticker-catalog-preview { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; color: var(--violet); background: #f3f1ff; }
.sticker-catalog-preview img { width: 100%; height: 100%; object-fit: contain; }
.sticker-catalog-item > span:nth-child(2) { min-width: 0; display: grid; }
.sticker-catalog-item strong, .sticker-catalog-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticker-catalog-item strong { font-size: 12px; }
.sticker-catalog-item small { color: var(--muted); font-size: 9px; }
.executive-settings-form { margin-top: 18px; }
.executive-settings-form fieldset { margin-top: 0; }
.executive-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.executive-toggle-grid label { min-height: 70px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; cursor: pointer; }
.executive-toggle-grid input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--violet); }
.executive-toggle-grid strong, .executive-toggle-grid small { display: block; }
.executive-toggle-grid strong { color: var(--ink); font-size: 11px; }
.executive-toggle-grid small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.executive-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 4px; }
.executive-scope-fieldset, .executive-rules { margin-top: 18px !important; padding-top: 17px; border-top: 1px solid var(--line); }
.executive-scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.executive-scope-list label { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcff; cursor: pointer; }
.executive-scope-list input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--violet); }
.executive-scope-list span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.executive-rules textarea { min-height: 86px; font-size: 11px; }
.executive-toggle-grid.compact { margin-top: 17px; }
.executive-save { margin-top: 17px; }
.automation-count { min-width: 31px; padding: 5px 8px; border-radius: 999px; color: var(--violet); background: var(--violet-soft); text-align: center; font-size: 11px; }
.automation-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.automation-filters label { min-width: 0; }
.automation-filters label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.automation-filters select { width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 11px; }
.automation-list { display: grid; gap: 9px; margin-top: 14px; }
.automation-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #fff, #fbfcff); }
.automation-row-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.automation-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--mint); background: var(--mint-soft); }
.automation-row-head > div { min-width: 0; }
.automation-row-head strong, .automation-row-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-row-head strong { font-size: 12px; }
.automation-row-head small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.automation-status { padding: 4px 7px; border-radius: 999px; color: #697488; background: #edf0f5; font-size: 9px; font-weight: 700; white-space: nowrap; }
.automation-status.active { color: #16775e; background: #e2f7f0; }
.automation-status.configured { color: #5750b7; background: #eeebff; }
.automation-status.paused { color: #99671d; background: #fff2d5; }
.automation-status.disabled { color: #a84050; background: #ffe8ec; }
.automation-run-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.automation-run-grid > span { min-width: 0; padding: 8px 9px; border-radius: 9px; background: #f4f6fa; }
.automation-run-grid small, .automation-run-grid strong { display: block; }
.automation-run-grid small { color: var(--muted); font-size: 8px; }
.automation-run-grid strong { margin-top: 2px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.automation-ledger-note, .automation-error { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px; padding: 8px 9px; border-radius: 9px; font-size: 9px !important; }
.automation-ledger-note { color: #645c7b !important; background: #f5f3ff; }
.automation-ledger-note svg { width: 13px; height: 13px; flex: 0 0 auto; }
.automation-error { margin-top: 8px !important; color: var(--danger) !important; background: #fff1f3; }
.automation-open { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 9px; font-weight: 700; }
.automation-open:hover { border-color: #cfc7fb; color: var(--violet); background: #faf9ff; }
.ui-build-id { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; color: var(--muted) !important; font-size: 9px !important; }
.ui-build-id code { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: #5d50c4; background: #f6f4ff; font: 600 9px/1.2 "IBM Plex Mono", monospace; }
.system-flow-list { display: grid; margin-top: 16px; }
.system-flow-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
.system-flow-step:last-child { padding-bottom: 0; }
.system-flow-icon { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #697488; background: #f3f5f8; }
.system-flow-step.healthy .system-flow-icon { border-color: #bde8db; color: #16775e; background: #e8f8f2; }
.system-flow-step.configured .system-flow-icon { border-color: #d7d1fb; color: #5d50c4; background: #f1efff; }
.system-flow-step.paused .system-flow-icon { border-color: #f1dca4; color: #99671d; background: #fff6df; }
.system-flow-step.degraded .system-flow-icon { border-color: #efc1c8; color: #a84050; background: #fff0f3; }
.system-flow-step > div { min-width: 0; padding-top: 1px; }
.system-flow-step header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.system-flow-step header strong { font-size: 11px; }
.system-flow-step header span { padding: 3px 6px; border-radius: 999px; color: var(--muted); background: #eef1f5; font-size: 8px; font-weight: 700; white-space: nowrap; }
.system-flow-step.healthy header span { color: #16775e; background: #e2f7f0; }
.system-flow-step.configured header span { color: #5750b7; background: #eeebff; }
.system-flow-step.paused header span { color: #99671d; background: #fff2d5; }
.system-flow-step.degraded header span { color: #a84050; background: #ffe8ec; }
.system-flow-step p { margin-top: 4px; font-size: 10px; }
.system-flow-connector { position: absolute; top: 36px; bottom: 0; left: 17px; width: 2px; background: linear-gradient(#d8d3f8, #dceee8); }
.system-flow-note { display: flex; align-items: center; gap: 6px; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 9px !important; }
.system-flow-note svg { width: 14px; height: 14px; color: var(--mint); }
.ai-profile-list { display: grid; gap: 7px; margin-top: 16px; }
.ai-profile-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfcff; text-align: left; }
.ai-profile-row:hover { border-color: #cdc6fb; background: #f9f8ff; }
.ai-profile-row > svg { color: var(--mint); }
.ai-profile-row strong, .ai-profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-profile-row strong { font-size: 11px; }
.ai-profile-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.ai-profile-row code { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-profile-form { margin-top: 15px; padding-top: 3px; border-top: 1px solid var(--line); }
.ai-profile-form .secondary-button { margin-top: 16px; }
.password-form { display: grid; gap: 0; padding-top: 4px; }
.password-form .field { margin-top: 12px; }
.password-form .secondary-button { justify-self: start; margin-top: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
code { color: #6651d6; font: 11px "IBM Plex Mono", monospace; }
.switch { position: relative; flex: 0 0 auto; width: 48px; height: 29px; padding: 0; border: 0; border-radius: 999px; background: #cbd3df; transition: background .18s ease; }
.switch span { position: absolute; top: 4px; left: 4px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .18s ease; }
.switch[aria-checked="true"] { background: var(--violet); }
.switch[aria-checked="true"] span { transform: translateX(19px); }
.inline-info { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.inline-info:hover { color: var(--violet); }
.inline-info svg { width: 15px; height: 15px; }
.info-popover { position: relative; margin-top: 10px; padding: 11px 12px; border: 1px solid #dcd5ff; border-radius: 11px; color: #625f78; background: #f8f7ff; font-size: 12px; line-height: 1.55; }
.info-popover::before { content: ""; position: absolute; top: -6px; left: 16px; width: 10px; height: 10px; border-top: 1px solid #dcd5ff; border-left: 1px solid #dcd5ff; background: #f8f7ff; transform: rotate(45deg); }
.secondary-button, .primary-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 11px; font-weight: 700; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.primary-button { border: 0; color: #fff; background: linear-gradient(112deg, #5641e4, #735ef1 55%, #35a39a); box-shadow: 0 8px 18px rgba(86,65,228,.19); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(20,27,48,.52); backdrop-filter: blur(4px); }
.group-sheet { width: min(760px, 100%); height: min(760px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: #fff; box-shadow: 0 24px 76px rgba(20,27,48,.3); }
.sheet-grip { display: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 16px 12px; }
.sheet-group-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sheet-avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 3px solid #eeeaff; border-radius: 50%; color: var(--violet); background: #f0eeff; font-weight: 700; }
.sheet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sheet-head h2 { margin: 0; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.sheet-tabs { display: flex; gap: 3px; padding: 0 13px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tabs button { flex: 0 0 auto; min-height: 39px; padding: 7px 11px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.sheet-tabs button.active { border-color: var(--violet); color: var(--violet); }
.sheet-body { min-height: 0; overflow-y: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); position: relative; }
.sheet-body.loading-group { min-height: 320px; }
.sheet-body.loading-group > * { visibility: hidden; }
.sheet-body.loading-group::before { content: "กำลังโหลดข้อมูลของกลุ่มนี้…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 800; background: var(--surface); visibility: visible; z-index: 2; }
.sheet-panel { padding-top: 17px; }
.group-flow-map, .group-profile-editor, .group-knowledge-map, .group-learning-settings { margin-bottom: 16px; padding: 14px; border: 1px solid #dcd6ff; border-radius: 15px; background: linear-gradient(145deg, #fbfaff, #f8fcfb); }
.group-flow-map > header, .group-profile-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.group-flow-map > header span { color: var(--violet); font: 700 9px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.group-flow-map h3 { margin: 3px 0 0; font-size: 15px; }
.group-flow-map > header small { max-width: 180px; color: var(--muted); font-size: 9px; text-align: right; }
.group-flow-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.group-flow-step { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 8px; font-weight: 700; text-align: center; }
.group-flow-step svg { width: 16px; height: 16px; }
.group-flow-step.on { border-color: #cfc6ff; color: var(--violet); background: #f3f0ff; }
.group-flow-step.warn { color: #a36a12; background: #fff8e8; }
.group-profile-editor > header > div { display: flex; gap: 9px; align-items: center; }
.group-profile-editor > header svg { width: 24px; height: 24px; color: var(--violet); }
.group-profile-editor > header strong, .group-profile-editor > header small { display: block; }
.group-profile-editor > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.group-profile-editor > header b { padding: 4px 7px; border-radius: 999px; color: #9b6512; background: #fff1cf; font-size: 9px; white-space: nowrap; }
.group-profile-editor > header b.configured { color: #14745b; background: #e1f7ef; }
.group-profile-editor textarea { min-height: 74px; }
.profile-field-grid, .profile-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.profile-scope-grid .allow textarea { border-color: #bfe6d9; background: #f8fdfa; }
.profile-scope-grid .block textarea { border-color: #f2cbd1; background: #fffafb; }
.profile-scope-grid .field > span { display: flex; align-items: center; gap: 5px; }
.profile-scope-grid .field > span svg { width: 14px; height: 14px; }
.group-knowledge-map > header, .group-learning-settings > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.group-knowledge-map > header > div, .group-learning-settings > header > div { display: flex; align-items: center; gap: 9px; }
.group-knowledge-map > header svg, .group-learning-settings > header svg { width: 23px; height: 23px; color: var(--violet); }
.group-knowledge-map > header strong, .group-knowledge-map > header small, .group-learning-settings > header strong, .group-learning-settings > header small { display: block; }
.group-knowledge-map > header small, .group-learning-settings > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.group-knowledge-map > header b, .group-learning-settings > header b { padding: 4px 7px; border-radius: 999px; color: #9b6512; background: #fff1cf; font-size: 9px; white-space: nowrap; }
.group-knowledge-map > header b.configured { color: #14745b; background: #e1f7ef; }
.knowledge-route { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.knowledge-route-step { position: relative; min-width: 0; display: grid; grid-template-columns: 18px 1fr; gap: 4px 6px; align-items: center; padding: 9px 7px; border: 1px solid #e0dcf6; border-radius: 11px; background: rgba(255,255,255,.9); }
.knowledge-route-step > svg { width: 17px; color: var(--violet); }
.knowledge-route-step > span:last-child { grid-column: 1 / -1; min-width: 0; }
.knowledge-route-step strong, .knowledge-route-step small { display: block; }
.knowledge-route-step strong { color: #27314a; font-size: 9px; }
.knowledge-route-step small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.knowledge-route-number { position: absolute; top: 4px; right: 5px; color: #9a91c5; font: 700 7px "IBM Plex Mono", monospace; }
.knowledge-freshness { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; padding: 9px 10px; border: 1px solid #d9e9e3; border-radius: 11px; background: #f5fcf9; }
.knowledge-freshness.warning { border-color: #f0dfbd; background: #fffaf0; }
.knowledge-freshness > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #168269; }
.knowledge-freshness.warning > svg { color: #b67719; }
.knowledge-freshness strong, .knowledge-freshness small, .knowledge-freshness code, .knowledge-freshness em { display: block; }
.knowledge-freshness strong { color: #244338; font-size: 9px; }
.knowledge-freshness small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.knowledge-freshness code { margin-top: 3px; color: #66718b; font-size: 7px; overflow-wrap: anywhere; }
.knowledge-freshness em { margin-top: 3px; color: #9a5d13; font-size: 8px; font-style: normal; line-height: 1.4; }
.knowledge-guard { display: flex; gap: 8px; align-items: flex-start; margin-top: 9px; padding: 9px; border: 1px solid #f2cbd1; border-radius: 11px; background: #fffafb; color: #9b3d4a; }
.knowledge-guard > svg { width: 18px; flex: 0 0 auto; }
.knowledge-guard strong, .knowledge-guard small { display: block; }
.knowledge-guard strong { font-size: 9px; }
.knowledge-guard small { margin-top: 2px; color: #7d6870; font-size: 8px; line-height: 1.4; }
.learning-lifecycle { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.learning-lifecycle span { display: flex; gap: 6px; align-items: center; padding: 8px; border: 1px solid #ded8fb; border-radius: 10px; background: #fff; color: #4f5870; font-size: 8px; font-weight: 700; }
.learning-lifecycle i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--violet); font: 700 8px "IBM Plex Mono", monospace; font-style: normal; }
.learning-safety { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; color: #14745b; font-size: 8px; }
.learning-safety svg { width: 15px; }
.group-learning-settings .learning-candidate { background: #fff; }
.learning-settings-link { width: 100%; display: grid; grid-template-columns: 26px minmax(0,1fr) 18px; gap: 8px; align-items: center; margin-bottom: 16px; padding: 11px; border: 1px solid #dfd8ff; border-radius: 12px; color: var(--ink); background: #fbfaff; text-align: left; }
.learning-settings-link > svg { color: var(--violet); }
.learning-settings-link strong, .learning-settings-link small { display: block; }
.learning-settings-link small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.profile-document-card { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; margin-bottom: 18px; padding: 12px; border: 1px solid #bfe6d9; border-radius: 13px; background: #f6fcfa; }
.profile-document-card > svg { color: var(--mint); }
.profile-document-card strong, .profile-document-card p { display: block; margin: 0; }
.profile-document-card p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-document-card button { padding: 7px 9px; border: 1px solid #bfe6d9; border-radius: 8px; color: #16775e; background: #fff; font-size: 9px; font-weight: 700; }
.learning-candidates { margin-bottom: 20px; }
.learning-candidate { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 8px; padding: 11px; border: 1px solid #dfd8ff; border-radius: 12px; background: #fbfaff; }
.learning-candidate strong, .learning-candidate p, .learning-candidate small { display: block; margin: 0; }
.learning-candidate p { margin-top: 4px; color: #555e73; font-size: 10px; line-height: 1.45; }
.learning-candidate small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.learning-candidate-actions { display: flex; gap: 5px; align-items: flex-start; }
.learning-candidate-actions button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.learning-candidate-actions button.approve { color: #14745b; border-color: #bfe6d9; }
.learning-candidate-actions button.reject { color: var(--coral); border-color: #f2cbd1; }
.field { display: block; margin-top: 16px; }
.field > span, legend { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.field input, .field select, textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d4dbe7; border-radius: 10px; color: var(--ink); background: #fff; }
textarea { min-height: 138px; resize: vertical; line-height: 1.55; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.code-row { display: grid; grid-template-columns: auto minmax(0,1fr) 30px; gap: 8px; align-items: center; margin-top: 15px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.code-row > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.code-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-row button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--violet); background: var(--violet-soft); }
.code-row svg { width: 15px; height: 15px; }
.session-binding { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; gap: 10px; align-items: center; margin-top: 10px; padding: 11px; border: 1px solid #d9e9e4; border-radius: 11px; background: #f8fcfb; }
.session-binding.unbound { border-color: var(--line); background: #fafbfe; }
.session-binding-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--mint); background: var(--mint-soft); }
.session-binding.unbound .session-binding-icon { color: var(--muted); background: #eef1f5; }
.session-binding-icon svg { width: 18px; height: 18px; }
.session-binding-copy { min-width: 0; }
.session-binding-copy > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.session-binding-copy b { padding: 2px 5px; border-radius: 5px; color: #16775e; background: #e2f7f0; font-size: 9px; }
.session-binding.unbound .session-binding-copy b { color: #6f788b; background: #eceff4; }
.session-binding-copy code, .session-binding-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-binding-copy code { margin-top: 3px; color: var(--ink); font-size: 11px; }
.session-binding-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
#copy-session-id { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--mint); background: #e2f7f0; }
#copy-session-id svg { width: 15px; height: 15px; }
fieldset { margin: 19px 0 0; padding: 0; border: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode-option { min-height: 76px; display: grid; grid-template-columns: 20px 1fr; gap: 2px 7px; align-content: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; text-align: left; }
.mode-option svg { grid-row: 1 / span 2; align-self: center; }
.mode-option strong, .mode-option small { display: block; }
.mode-option small { font-size: 10px; line-height: 1.3; }
.mode-option.selected { border-color: var(--violet); color: var(--violet); background: var(--violet-soft); }
.command-editor { min-height: 46px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 7px; border: 1px solid #d4dbe7; border-radius: 10px; }
.command-editor input { min-width: 100px; flex: 1; min-height: 28px; padding: 2px; border: 0; outline: 0; }
.command-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font: 11px "IBM Plex Mono", monospace; }
.command-chip button { width: 16px; height: 16px; display: grid; place-items: center; padding: 0; border: 0; color: inherit; background: transparent; }
.command-chip svg { width: 12px; height: 12px; }
.sheet-actions { position: sticky; bottom: -24px; display: flex; justify-content: flex-end; margin: 24px -16px -24px; padding: 13px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.form-error { margin-top: 10px; color: var(--coral); font-size: 12px; }

.group-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.group-summary-head > div { min-width: 0; }
.summary-actions { display: flex; align-items: center; gap: 8px; }
.summary-actions .secondary-button { white-space: nowrap; }
.brief-output-actions, .summary-output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.summary-output-actions .secondary-button:disabled, .brief-output-actions .secondary-button:disabled { opacity: .48; cursor: not-allowed; }
.action-dialog { width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(251,251,253,.96); box-shadow: 0 28px 80px rgba(28,34,59,.24); }
.action-dialog::backdrop { background: rgba(29,34,54,.28); backdrop-filter: blur(7px); }
.action-dialog-card { display: grid; gap: 14px; padding: 20px; }
.action-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.action-dialog-card > header small { color: var(--violet); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.action-dialog-card > header h2 { margin: 2px 0 0; font-size: 21px; }
.action-dialog-card textarea { min-height: 104px; }
.action-dialog-card footer { display: flex; justify-content: flex-end; gap: 8px; }
.task-dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.notification-trigger { position: relative; }
.notification-badge { min-width: 18px; height: 18px; position: absolute; top: -5px; right: -5px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--coral); font-size: 8px; font-weight: 800; line-height: 1; }
.notification-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(820px, calc(100dvh - 28px)); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(249,250,253,.97); box-shadow: 0 30px 90px rgba(28,34,59,.28); }
.notification-dialog::backdrop { background: rgba(29,34,54,.3); backdrop-filter: blur(8px); }
.notification-dialog-card { max-height: min(820px, calc(100dvh - 28px)); display: flex; flex-direction: column; }
.notification-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 20px 15px; border-bottom: 1px solid var(--line); }
.notification-dialog-card > header small { color: var(--violet); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.notification-dialog-card > header h2 { margin: 2px 0 0; font-size: 22px; }
.notification-dialog-card > header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.62); }
.notification-filters { display: flex; gap: 5px; padding: 3px; border-radius: 10px; background: #ebeef5; }
.notification-filters button { min-height: 32px; padding: 6px 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; }
.notification-filters button.active { color: var(--violet); background: #fff; box-shadow: 0 3px 10px rgba(37,43,72,.08); }
.notification-list { min-height: 0; display: grid; gap: 8px; padding: 14px 20px 22px; overflow-y: auto; }
.notification-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.9); }
.notification-item.unread { border-color: #cfc7ff; background: #fbfaff; box-shadow: 0 7px 18px rgba(88,71,190,.07); }
.notification-item-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #667085; background: #edf0f5; }
.notification-item-icon svg { width: 18px; height: 18px; }
.notification-item.urgent .notification-item-icon { color: #b53f50; background: #fff0f2; }
.notification-item.high .notification-item-icon { color: #9a6818; background: #fff6df; }
.notification-item-copy { min-width: 0; }
.notification-item-copy > small { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.notification-item-copy > small span { padding: 2px 5px; border-radius: 5px; color: var(--violet); background: var(--violet-soft); font-weight: 750; }
.notification-item-copy strong { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; line-height: 1.45; }
.notification-item-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-item-actions { display: flex; gap: 4px; }
.notification-preferences-form { display: grid; gap: 13px; margin-top: 14px; }
.notification-time-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.notification-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.notification-category-grid label { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: #3e485e; background: #fff; font-size: 11px; font-weight: 650; }
.secondary-button.danger { color: #b43b4a; border-color: #efc7cd; background: #fff8f9; }
.secondary-button.danger:hover { color: #922d3b; border-color: #eaaeb7; background: #fff1f3; }
.summary-kicker { margin: 0 0 4px; color: var(--violet); font-size: 10px; font-weight: 800; }
.group-summary-head h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.group-summary-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.group-summary-copy { margin: 17px 0 0; color: #364158; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.summary-job-status { margin-top: 14px; padding: 10px 12px; border: 1px solid #ddd6ff; border-radius: 10px; color: #6155b8; background: #f8f7ff; font-size: 11px; font-weight: 700; line-height: 1.45; }
.summary-job-status.running { color: #176f70; border-color: #cdebea; background: #f0fbfa; }
.summary-job-status.retry, .summary-job-status.failed, .summary-job-status.cancel_requested, .summary-job-status.cancelled { color: #9c4a55; border-color: #f1d1d6; background: #fff7f8; }
.summary-facts { display: grid; gap: 9px; margin-top: 16px; }
.summary-fact-group { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.summary-fact-group h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; }
.summary-fact-group h4 svg { width: 16px; height: 16px; color: var(--mint); }
.summary-fact-group.decision h4 svg { color: #9a6b19; }
.summary-fact-group.risk h4 svg { color: var(--coral); }
.summary-fact-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: start; }
.summary-fact-row + .summary-fact-row { margin-top: 5px; }
.summary-fact-group p { margin: 0; padding-left: 13px; position: relative; color: #4f5a70; font-size: 11px; line-height: 1.5; }
.summary-fact-group p::before { content: ""; position: absolute; top: .58em; left: 1px; width: 4px; height: 4px; border-radius: 50%; background: #9aa4b5; }
.summary-fact-row > button { min-height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #d8d2fb; border-radius: 8px; color: var(--violet); background: #fff; font-size: 9px; font-weight: 750; }
.summary-fact-row > button svg { width: 13px; height: 13px; }
.checklist-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.checklist-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.checklist-intro p { margin: 0 0 2px; color: var(--violet); font-family: "IBM Plex Mono", monospace; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.checklist-intro h3 { margin: 0; font-size: 17px; }
.checklist-intro > svg { width: 20px; height: 20px; color: var(--violet); }
.task-suggestions { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px; border: 1px solid #dcd6ff; border-radius: 16px; background: linear-gradient(145deg, rgba(249,248,255,.98), rgba(244,250,249,.94)); }
.task-suggestions > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-suggestions > header strong, .task-suggestions > header small { display: block; }
.task-suggestions > header strong { font-size: 12px; }
.task-suggestions > header small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.task-suggestions > header button { min-height: 36px; white-space: nowrap; font-size: 9px; }
.task-suggestions > header button:disabled svg { animation: orbit-spin 1s linear infinite; }
.task-suggestion-status { padding: 8px 10px; border-radius: 9px; color: #6c58bd; background: #f0edff; font-size: 9px; font-weight: 700; }
.task-suggestion-status.failed { color: #a13d4c; background: #fff0f3; }
.task-suggestion-groups { display: grid; gap: 9px; }
.task-suggestion-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.88); }
.task-suggestion-group > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.task-suggestion-group > header > div { display: flex; align-items: center; gap: 7px; }
.task-suggestion-group > header svg { width: 17px; color: var(--mint); }
.task-suggestion-group.owner > header svg { color: #a66d16; }
.task-suggestion-group > header strong, .task-suggestion-group > header small { display: block; }
.task-suggestion-group > header strong { font-size: 10px; }
.task-suggestion-group > header small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.task-suggestion-group > header button { min-height: 28px; padding: 4px 8px; border: 1px solid #c9e8dd; border-radius: 8px; color: #16745b; background: #f5fcfa; font-size: 8px; font-weight: 750; }
.task-suggestion-row { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px; align-items: start; padding: 9px 10px; cursor: pointer; }
.task-suggestion-row + .task-suggestion-row { border-top: 1px solid var(--line); }
.task-suggestion-row > input { position: absolute; opacity: 0; pointer-events: none; }
.task-suggestion-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #cfd5e2; border-radius: 6px; color: transparent; background: #fff; }
.task-suggestion-check svg { width: 12px; }
.task-suggestion-row > input:checked + .task-suggestion-check { color: #fff; border-color: var(--violet); background: var(--violet); }
.task-suggestion-row strong, .task-suggestion-row small, .task-suggestion-row em { display: block; }
.task-suggestion-row strong { font-size: 10px; line-height: 1.35; }
.task-suggestion-row small { margin-top: 2px; color: #566178; font-size: 9px; line-height: 1.45; }
.task-suggestion-row em { margin-top: 4px; color: #7a8499; font-size: 8px; font-style: normal; font-weight: 700; }
.task-suggestions > footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.task-suggestions > footer > span { color: var(--muted); font-size: 9px; }
.task-suggestions > footer button { min-height: 38px; font-size: 9px; }
.task-suggestion-empty { margin: 0; padding: 8px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.5; }
.group-summary-context { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.group-summary-context > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; color: #556079; cursor: pointer; list-style: none; font-size: 11px; font-weight: 750; }
.group-summary-context > summary::-webkit-details-marker { display: none; }
.group-summary-context > summary > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.group-summary-context > summary svg { width: 16px; height: 16px; color: var(--violet); transition: transform .16s ease; }
.group-summary-context[open] > summary > svg:last-child { transform: rotate(180deg); }
.group-summary-context-body { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.group-summary-context-body .group-summary-copy { margin-top: 12px; }
.group-summary-context-body .summary-output-actions { margin-top: 10px; }
.checklist-list { display: grid; gap: 8px; }
.checklist-item { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.checklist-item > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 10px; align-items: start; padding: 11px; cursor: pointer; list-style: none; }
.checklist-item > summary::-webkit-details-marker { display: none; }
.checklist-item > summary > button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #d5cdfd; border-radius: 9px; color: var(--violet); background: var(--violet-soft); }
.checklist-item > summary > button svg { width: 16px; height: 16px; }
.task-summary-copy, .task-summary-copy strong, .task-summary-copy small { display: block; min-width: 0; }
.task-summary-copy strong { font-size: 12px; line-height: 1.4; }
.task-summary-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.task-expand { width: 16px; height: 16px; color: var(--muted); transition: transform .18s ease; }
.checklist-item[open] .task-expand { transform: rotate(180deg); }
.task-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.task-chip, .task-delivery-status { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; text-decoration: none !important; }
.task-chip { color: #566078; background: #f0f2f7; }
.task-chip.status-in_progress, .task-delivery-status.queued, .task-delivery-status.sending { color: #7b5d00; background: #fff4c7; }
.task-chip.status-waiting { color: #34637f; background: #e7f5fb; }
.task-chip.status-done, .task-delivery-status.sent { color: #08784c; background: #e4f8ef; }
.task-chip.priority-high, .task-chip.priority-urgent, .task-delivery-status.failed { color: #a33b30; background: #fff0ed; }
.task-chip.authority-agent_allowed { color: #08784c; background: #e4f8ef; }
.task-chip.authority-owner_required { color: #8e6318; background: #fff4d8; }
.task-chip.lifecycle-gathering, .task-chip.lifecycle-verified { color: #34637f; background: #e7f5fb; }
.task-chip.lifecycle-awaiting_owner { color: #8e6318; background: #fff4d8; }
.task-chip.lifecycle-authorized, .task-chip.lifecycle-executing { color: #5942c8; background: #eeeaff; }
.task-chip.lifecycle-delivered, .task-chip.lifecycle-closed { color: #08784c; background: #e4f8ef; }
.task-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(245px, .92fr); gap: 10px; padding: 10px; border-top: 1px solid var(--line); background: #fbfbfe; }
.task-evidence { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px; border: 1px solid #dce5e2; border-radius: 15px; background: rgba(247,252,250,.94); }
.task-evidence > header { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 7px; align-items: center; }
.task-evidence > header > svg { width: 20px; color: #18856a; }
.task-evidence > header strong, .task-evidence > header small { display: block; }
.task-evidence > header strong { font-size: 10px; }
.task-evidence > header small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.task-evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; }
.task-evidence-card { min-width: 0; padding: 7px; border: 1px solid rgba(208,222,217,.9); border-radius: 11px; background: #fff; }
.task-evidence-card > p, .task-evidence-card > small { display: block; margin: 6px 1px 0; overflow-wrap: anywhere; }
.task-evidence-card > p { color: #465267; font-size: 9px; line-height: 1.45; }
.task-evidence-card > small { color: var(--muted); font-size: 8px; }
.task-evidence-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 8px; background: #eef2f1; }
.task-evidence-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.task-evidence-image > span { position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 999px; color: #fff; background: rgba(20,30,37,.72); backdrop-filter: blur(5px); font-size: 7px; font-weight: 700; }
.task-evidence-image svg { width: 10px; }
.task-evidence-file { display: grid; grid-template-columns: 18px minmax(0,1fr) 13px; gap: 6px; align-items: center; min-height: 44px; padding: 7px; border-radius: 8px; color: #385a55; background: #eef9f6; font-size: 8px; font-weight: 700; text-decoration: none; }
.task-evidence-file svg { width: 14px; }
.task-evidence-missing { display: flex !important; align-items: center; gap: 5px; padding: 7px; border-radius: 8px; color: #9c4a55 !important; background: #fff2f4; }
.task-evidence-missing svg { width: 14px; }
.task-command-surface { display: grid; gap: 10px; padding: 12px; border: 1px solid #dcd6ff; border-radius: 17px; background: linear-gradient(145deg, rgba(251,250,255,.98), rgba(245,248,255,.98)); box-shadow: 0 12px 30px rgba(70,58,137,.08); }
.task-command-surface > header { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; }
.task-command-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--violet); background: var(--violet-soft); }
.task-command-icon svg { width: 18px; height: 18px; }
.task-command-surface > header strong, .task-command-surface > header small { display: block; }
.task-command-surface > header strong { font-size: 12px; }
.task-command-surface > header small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.task-suggestion-inline { padding: 9px; border: 1px solid #ddd6ff; border-radius: 11px; background: rgba(244,241,255,.76); }
.task-suggestion-inline > header { display: flex; align-items: center; gap: 5px; }
.task-suggestion-inline > header svg { width: 15px; color: var(--violet); }
.task-suggestion-inline > header strong { flex: 1; font-size: 9px; }
.task-suggestion-inline > header span { color: #6355aa; font-size: 8px; font-weight: 750; }
.task-suggestion-inline p { margin: 5px 0 0; color: #505a70; font-size: 9px; line-height: 1.45; }
.task-suggestion-inline small, .task-suggestion-inline em { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-style: normal; }
.task-suggestion-inline.accepted { border-color: #bfe7da; background: #f0faf7; }
.task-review-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.task-review-picker legend { grid-column: 1 / -1; margin-bottom: 1px; color: var(--muted); font-size: 8px; font-weight: 700; }
.task-review-picker label { min-width: 0; display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 6px; align-items: center; padding: 7px; border: 1px solid #dfe3ed; border-radius: 10px; color: #596378; background: #fff; cursor: pointer; }
.task-review-picker label.active { color: #5542c7; border-color: #9a8cf7; background: #f0edff; box-shadow: 0 0 0 2px rgba(112,92,241,.08); }
.task-review-picker input { position: absolute; opacity: 0; pointer-events: none; }
.task-review-picker label > svg { width: 16px; }
.task-review-picker strong, .task-review-picker small { display: block; }
.task-review-picker strong { font-size: 8px; }
.task-review-picker small { margin-top: 1px; color: var(--muted); font-size: 7px; }
.task-intent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.task-intent { min-width: 0; min-height: 56px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 6px 3px; border: 1px solid #dfe3ed; border-radius: 13px; color: #586277; background: rgba(255,255,255,.96); box-shadow: 0 5px 14px rgba(30,42,71,.04); font-size: 9px; font-weight: 750; line-height: 1.2; text-align: center; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.task-intent:hover { border-color: #cfc7fb; color: var(--violet); transform: translateY(-1px); }
.task-intent svg { width: 20px; height: 20px; stroke-width: 2.2; }
.task-intent.active { border-color: #8977f8; color: #5c49d6; background: #efecff; box-shadow: 0 0 0 2px rgba(112,92,241,.11), 0 8px 18px rgba(91,70,207,.1); }
.task-intent[data-task-intent="approve"].active { border-color: #82d7bb; color: #087756; background: #e9f9f3; box-shadow: 0 0 0 2px rgba(34,176,130,.1), 0 8px 18px rgba(34,176,130,.08); }
.task-intent[data-task-intent="reject"].active { border-color: #ecaab4; color: #aa4050; background: #fff0f3; box-shadow: 0 0 0 2px rgba(222,91,111,.08), 0 8px 18px rgba(222,91,111,.07); }
.task-intent[data-task-intent="revise"].active { border-color: #e9c879; color: #93620b; background: #fff7df; box-shadow: 0 0 0 2px rgba(193,133,27,.08), 0 8px 18px rgba(193,133,27,.06); }
.task-intent[data-task-intent="ask_more"].active { border-color: #99bee9; color: #31699e; background: #eef6ff; box-shadow: 0 0 0 2px rgba(63,122,183,.08), 0 8px 18px rgba(63,122,183,.06); }
.task-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-fields label, .task-response-field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 9px; font-weight: 700; }
.task-fields input, .task-fields select, .task-response-field select, .task-response-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.task-response-field > span small { margin-left: 3px; color: #8a94a7; font-size: 8px; font-weight: 600; }
.task-response-field textarea { min-height: 58px; max-height: 128px; resize: vertical; line-height: 1.5; }
.task-agent-promise { display: flex; flex-wrap: wrap; gap: 5px 9px; color: #6e7890; font-size: 8px; font-weight: 650; }
.task-agent-promise > span { display: inline-flex; align-items: center; gap: 3px; }
.task-agent-promise svg { width: 11px; height: 11px; color: var(--violet); }
.task-agent-send { width: 100%; min-height: 48px; justify-content: center; border: 0; border-radius: 14px; background: linear-gradient(100deg, #6542ed, #3ca2a7); box-shadow: 0 12px 24px rgba(85,71,207,.2); font-size: 12px; }
.task-agent-send:hover { filter: saturate(1.08) brightness(1.02); transform: translateY(-1px); }
.task-agent-send:disabled { opacity: .65; cursor: wait; transform: none; }
.task-agent-send:disabled svg { animation: orbit-spin 1s linear infinite; }
.task-admin-details { overflow: hidden; align-self: start; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.task-admin-details > summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #505b70; cursor: pointer; list-style: none; font-size: 10px; font-weight: 750; }
.task-admin-details > summary::-webkit-details-marker { display: none; }
.task-admin-details > summary > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.task-admin-details > summary svg { width: 15px; height: 15px; color: var(--violet); transition: transform .16s ease; }
.task-admin-details[open] > summary > svg:last-child { transform: rotate(180deg); }
.task-admin-body { display: grid; gap: 10px; padding: 0 11px 11px; border-top: 1px solid var(--line); }
.task-admin-body .task-fields { padding-top: 10px; }
.task-source { margin-top: 11px; padding: 10px; border-radius: 10px; background: #f7f8fb; }
.task-source header { display: grid; grid-template-columns: 16px 1fr; column-gap: 6px; align-items: center; }
.task-source header svg { width: 15px; color: var(--violet); }
.task-source header strong { font-size: 10px; }
.task-source header small { grid-column: 2; color: var(--muted); font-size: 9px; }
.task-source blockquote { margin: 9px 0 0; padding-left: 9px; border-left: 2px solid #cfc6ff; color: #4f5870; font-size: 10px; line-height: 1.5; }
.task-source p { margin: 7px 0 0; font-size: 9px; }
.task-source .quote-ready { color: #08784c; }
.task-source .quote-missing { color: #9c6722; }
.task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 11px; }
.task-actions button { min-height: 38px; font-size: 10px; }
.checklist-item.is-done > summary .task-summary-copy > strong { color: var(--muted); text-decoration: line-through; }
.completed-checklist { margin-top: 12px; border-top: 1px solid var(--line); }
.completed-checklist summary { padding: 12px 2px; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.completed-checklist .checklist-list { padding-bottom: 8px; }
.completed-checklist .section-empty { padding: 18px 8px; font-size: 11px; }
.archive-count { min-width: 28px; padding: 4px 8px; border-radius: 999px; color: #6554c0; background: var(--violet-soft); text-align: center; font-size: 11px; }
.archive-search { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 7px; align-items: center; margin: 0 0 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.archive-search svg { width: 15px; }
.archive-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.archived-group-list { display: grid; gap: 7px; }
.archived-group-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 10px; align-items: center; width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; }
.archived-group-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #6658ad; background: var(--violet-soft); font-weight: 700; }
.archived-group-avatar img { width: 100%; height: 100%; object-fit: cover; }
.archived-group-row strong, .archived-group-row small { display: block; }
.archived-group-row strong { font-size: 11px; }
.archived-group-row small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.archived-group-row > svg { width: 16px; color: var(--muted); }
.summary-schedule-form { display: grid; gap: 9px; margin-top: 15px; }
.summary-enable-row { min-height: 61px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; cursor: pointer; }
.summary-enable-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--violet); }
.summary-enable-row strong, .summary-enable-row small { display: block; }
.summary-enable-row strong { font-size: 12px; }
.summary-enable-row small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.summary-schedule-form textarea { min-height: 96px; }
.advanced-schedules { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.advanced-schedules > summary { color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.advanced-schedules[open] > summary { margin-bottom: 12px; }
.schedule-draft-note { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 12px !important; padding: 9px 10px; border: 1px solid #dcd6ff; border-radius: 10px; color: #5b5375 !important; background: #f7f5ff; font-size: 10px !important; line-height: 1.45; }
.schedule-draft-note svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--violet); }

.internal-chat-panel { min-height: 100%; }
.internal-chat-notice { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border: 1px solid rgba(82,190,159,.35); border-radius: 13px; color: #24594b; background: linear-gradient(140deg, rgba(225,249,241,.9), rgba(244,241,255,.82)); }
.internal-chat-notice > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; color: #18856a; background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px rgba(82,190,159,.18); }
.internal-chat-notice strong, .internal-chat-notice small { display: block; }
.internal-chat-notice strong { font-size: 12px; }
.internal-chat-notice small { margin-top: 2px; color: #58746d; font-size: 9px; line-height: 1.45; }
.internal-chat-context { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(250,251,254,.8); font-size: 9px; }
.internal-chat-context svg { width: 15px; color: var(--violet); }
.internal-chat-list { display: grid; gap: 11px; margin-top: 18px; }
.internal-chat-message { width: min(88%, 590px); display: grid; gap: 6px; justify-self: start; }
.internal-chat-message.user { justify-self: end; }
.internal-chat-bubble { padding: 11px 12px; border: 1px solid var(--line); border-radius: 15px 15px 15px 5px; color: #344057; background: rgba(248,249,253,.9); box-shadow: 0 5px 16px rgba(35,43,71,.05); }
.internal-chat-message.user .internal-chat-bubble { border-color: #cec5ff; border-radius: 15px 15px 5px 15px; color: #322872; background: linear-gradient(140deg, #f1eeff, #faf9ff); }
.internal-chat-bubble header { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 5px; }
.internal-chat-bubble header strong { font-size: 10px; }
.internal-chat-bubble header time { color: var(--muted); font-size: 8px; }
.internal-chat-bubble p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.internal-chat-status { display: inline-flex; align-items: center; gap: 5px; color: #8a6421; font-size: 9px; font-weight: 700; }
.internal-chat-status svg { width: 13px; height: 13px; animation: orbit-spin 1.1s linear infinite; }
.internal-chat-status.failed { color: var(--danger); }
.internal-chat-draft { display: grid; gap: 5px; padding: 9px; border: 1px solid #e1ddf8; border-radius: 11px; background: rgba(249,248,255,.86); }
.internal-chat-draft label { color: #655ba0; font-size: 8px; font-weight: 700; }
.internal-chat-draft textarea { min-height: 76px; padding: 8px 9px; border: 1px solid #d9d4f3; border-radius: 9px; background: rgba(255,255,255,.92); font-size: 10px; line-height: 1.55; }
.internal-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.internal-chat-actions button { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 9px; font-weight: 700; }
.internal-chat-actions button:hover { border-color: #cfc7fb; color: var(--violet); }
.internal-chat-actions button.send-line { color: #0f745a; border-color: #bfe7da; background: #f5fcfa; }
.internal-chat-actions svg { width: 13px; height: 13px; }
.internal-chat-form { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); z-index: 2; margin: 20px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(218,222,233,.85); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.internal-chat-form > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.internal-chat-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.internal-chat-form textarea { min-height: 64px; max-height: 150px; resize: vertical; font-size: 11px; }
.internal-chat-form .primary-button { min-width: 94px; }
.internal-chat-form .primary-button:disabled { opacity: .58; cursor: wait; }

.history-list, .document-list, .file-list, .member-list, .schedule-list { display: grid; gap: 9px; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.history-head h3 { margin: 0; font-size: 16px; }
.history-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.history-import-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.history-import-button:hover { color: var(--violet); border-color: #cfc8fb; }
.history-import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.history-import-button svg, .history-undo-button svg { width: 15px; height: 15px; }
.history-undo-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid #f0ced3; border-radius: 9px; color: #a64050; background: #fff8f9; font-size: 11px; font-weight: 700; }
.history-undo-button:hover { border-color: #df9faa; background: #fff1f3; }
.history-undo-button:disabled { opacity: .5; cursor: wait; }
#history-import-form.loading { opacity: .5; pointer-events: none; }
.history-import-latest { margin: -5px 0 12px; color: var(--muted); font-size: 10px; }
.history-import-summary { margin: -4px 0 12px; padding: 8px 10px; border: 1px solid #d8d2fb; border-radius: 9px; color: #5e52b8; background: #f8f7ff; font-size: 11px; }
.history-entry { width: min(92%, 620px); display: flex; align-items: flex-end; gap: 7px; justify-self: start; }
.history-entry.owner-message { justify-self: end; justify-content: flex-end; }
.history-avatar { width: 31px; height: 31px; position: relative; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid #e1e5ed; border-radius: 50%; color: #6651d6; background: #f0eeff; font-size: 11px; font-weight: 700; }
.history-entry.owner-message .history-avatar { color: #17351e; border-color: #59c968; background: #72df7d; }
.history-avatar img, .member-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.history-bubble { min-width: 0; max-width: calc(100% - 38px); padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; background: #fbfcfe; }
.history-entry.owner-message .history-bubble { border-color: #59c968; border-radius: 12px 12px 4px; color: #17351e; background: #72df7d; }
.history-media { display: block; margin: -3px -3px 9px; overflow: hidden; border-radius: 9px; background: #eef1f8; }
.history-media img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.history-media-state { margin: -3px -3px 9px; padding: 12px; border-radius: 9px; color: #725717; background: #fff4cf; font-size: 10px; font-weight: 700; text-align: center; }
.history-media-state.failed { color: #a1424c; background: #fff0f1; }
.history-media-state.skipped { color: #667085; background: #eef1f5; }
.history-bubble p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.history-list:not(.use-native-emoji) .emoji-glyph { font-family: "Noto Emoji Local", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.history-quote { min-width: 0; display: grid; gap: 1px; margin: -2px 0 8px; padding: 6px 8px; border-left: 3px solid #9b8ff7; border-radius: 4px; color: #5b6476; background: rgba(112,92,241,.07); font-size: 9px; }
.history-quote strong, .history-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-sticker { width: 150px; max-width: 100%; display: grid; justify-items: center; gap: 4px; margin: -3px 0 8px; }
.history-sticker img { width: 128px; height: 128px; object-fit: contain; }
.history-sticker small { color: var(--muted); font-size: 9px; text-align: center; }
.history-sticker.placeholder { min-height: 92px; place-content: center; padding: 13px; border: 1px dashed #cbc4fa; border-radius: 12px; color: #6554d2; background: #f8f7ff; text-align: center; }
.history-sticker.placeholder svg { width: 30px; height: 30px; }
.history-sticker.placeholder strong { font-size: 11px; }
.history-unsent { color: var(--muted); font-style: italic; }
.history-bubble small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.history-bubble small strong { color: inherit; }
.history-bubble small time { flex-basis: 100%; }
.history-entry.owner-message .history-bubble small { color: rgba(23,53,30,.72); }
.history-tag { padding: 2px 4px; border-radius: 5px; color: #5d50b7; background: #edeaff; font-size: 8px; font-weight: 700; }
.history-tag.pending { color: #8a6421; background: #fff2cd; }
.history-tag.quiet { color: #667085; background: #eceff4; }
.history-entry.ignored { opacity: .68; }
.section-intro h3 { margin: 0; font-size: 16px; }
.section-intro p { margin: 3px 0 14px; color: var(--muted); font-size: 12px; }
.notes-intro { margin-top: 26px; }
.document-item, .file-item, .member-item, .schedule-item { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.document-item > span, .file-preview, .member-picture { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 10px; color: var(--violet); background: var(--violet-soft); }
.file-preview.image, .member-picture { border-radius: 50%; background: #eef1f5; }
.file-preview img, .member-picture img { width: 100%; height: 100%; object-fit: cover; }
.document-copy, .file-copy, .member-copy, .schedule-copy { min-width: 0; flex: 1; }
.document-copy strong, .file-copy strong, .member-copy strong, .schedule-copy strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.document-copy small, .file-copy small, .member-copy small, .schedule-copy small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-actions, .file-actions { display: flex; gap: 4px; }
.small-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; }
.small-button:hover { color: var(--violet); border-color: #cfc8fb; }
.small-button.danger:hover { color: var(--coral); border-color: #ffd5da; }
.small-button svg { width: 16px; height: 16px; }
.editor-form, .schedule-form { display: grid; gap: 9px; margin-top: 14px; padding: 13px; border: 1px dashed #cfc8fb; border-radius: 13px; background: #fbfaff; }
.editor-form input, .schedule-form input { min-height: 40px; padding: 8px 10px; border: 1px solid #d5dbea; border-radius: 9px; background: #fff; }
.editor-form textarea, .schedule-form textarea { min-height: 118px; }
.quota-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; }
.quota-row strong, .quota-row small { display: block; }
.quota-row small { color: var(--muted); font-size: 11px; }
.quota-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #e8ebf1; }
.quota-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--mint)); transition: width .2s ease; }
.file-tabs { display: flex; gap: 5px; margin-top: 14px; padding-bottom: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.file-tabs::-webkit-scrollbar { display: none; }
.file-tabs button { flex: 0 0 auto; min-height: 32px; padding: 5px 9px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.file-tabs button.active { border-color: #d5cdfd; color: var(--violet); background: var(--violet-soft); }
.compact-intro { margin-top: 16px; }
.compact-intro p { margin-bottom: 10px; }
.upload-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 14px; }
.upload-picker { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 6px; padding: 8px 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; }
.upload-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-picker span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-hint { margin: 8px 0 14px; color: var(--muted); font-size: 10px; }
.link-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto; gap: 8px; margin-top: 14px; }
.link-form input { min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.member-item { align-items: flex-start; }
.member-picture { width: 39px; height: 39px; position: relative; color: var(--violet); font-size: 13px; font-weight: 700; }
.member-note { width: 100%; min-height: 58px; margin-top: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.member-save { width: 100%; min-height: 30px; margin-top: 7px; border: 0; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font-size: 11px; font-weight: 700; }
.schedule-item { align-items: flex-start; }
.schedule-draft-badge { display: inline-flex; margin-bottom: 5px; padding: 3px 6px; border-radius: 999px; color: #5d50c4; background: #eeebff; font-size: 8px; font-weight: 700; }
.schedule-draft-badge.active { color: #14745b; background: #dff7ee; }
.schedule-draft-badge.paused { color: #6b6287; background: #efedf7; }
.schedule-item code { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.schedule-item .schedule-copy > small { margin-top: 4px; white-space: normal; }
.schedule-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.schedule-toggle.activate { color: #14745b; border-color: #b9e6d8; background: #edf9f5; }
.schedule-toggle.pause { color: #956312; border-color: #ecd7ac; background: #fff8e9; }
.schedule-run-error { display: block; margin-top: 5px; color: #b54c55; font-size: 8px; font-style: normal; line-height: 1.35; overflow-wrap: anywhere; }

.identity-form { margin-top: 18px; }
.identity-section { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.identity-section + .identity-section { padding-top: 18px; }
.identity-section h3 { margin: 0; color: var(--ink); font-size: 14px; }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.identity-form textarea { min-height: 112px; }
.identity-save { margin-top: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; max-width: calc(100vw - 28px); padding: 10px 13px; border-radius: 11px; color: #fff; background: #1e2a47; box-shadow: 0 12px 28px rgba(20,27,48,.25); font-size: 12px; transform: translateX(-50%); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (min-width: 600px) { .app { min-height: calc(100vh - 30px); margin: 15px auto; border: 1px solid var(--line); border-radius: 18px; } .workspace { padding: 24px clamp(24px, 5vw, 54px) 42px; } .kim-profile { margin-bottom: 16px; } .main-tabs { position: static; width: 100%; margin-bottom: 10px; transform: none; box-shadow: none; } .main-tabs button { min-height: 43px; font-size: 12px; } .group-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; } .group-card, .group-card-button { min-height: 265px; } }
@media (max-width: 860px) { .work-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work-filters label:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .executive-brief-band { grid-template-columns: 1fr; gap: 18px; align-items: start; } .executive-counts { width: 100%; } .executive-counts > button:first-child { border-left: 0; } .work-list { grid-template-columns: 1fr; } .settings-hub-header { align-items: stretch; flex-direction: column; } .settings-search { width: 100%; } }
@media (max-width: 520px) { .main-tabs button { gap: 4px; font-size: 10px; } .main-tabs svg { width: 16px; height: 16px; } .executive-view { padding-top: 8px; } .executive-priority { padding: 14px; } .executive-brief-band { padding: 16px; } .executive-counts > button { min-width: 0; padding: 8px 9px; } .executive-counts strong { font-size: 22px; } .executive-counts small { font-size: 8px; } .executive-row-copy small { max-width: 49vw; } .priority-copy > span { white-space: normal; } .executive-decision-row { grid-template-columns: 28px minmax(0, 1fr); } .executive-decision-row .secondary-button { grid-column: 2; justify-self: start; } .work-header { align-items: flex-start; } .work-header h2 { font-size: 21px; } .work-filters { grid-template-columns: 1fr; } .work-filters label:first-child { grid-column: auto; } .settings-hub-grid { grid-template-columns: 1fr; } .settings-hub-grid > button { min-height: 76px; } .executive-toggle-grid, .executive-settings-grid, .executive-scope-list, .sticker-id-grid, .automation-filters, .automation-run-grid, .task-dialog-grid, .notification-time-grid, .notification-category-grid { grid-template-columns: 1fr; } .automation-row-head { grid-template-columns: 34px minmax(0, 1fr); } .automation-status { grid-column: 2; justify-self: start; } .system-flow-step header { align-items: flex-start; flex-direction: column; gap: 4px; } .group-sheet { height: calc(100dvh - 24px); } .group-summary-head { align-items: stretch; flex-direction: column; } .summary-actions { width: 100%; } .summary-actions .secondary-button { width: 100%; } .summary-output-actions .secondary-button { flex: 1 1 calc(50% - 4px); } .internal-chat-message { width: 96%; } .internal-chat-form > div { grid-template-columns: 1fr; } .internal-chat-form .primary-button { width: 100%; } .history-entry { width: 100%; } .history-head { align-items: flex-start; } .link-form { grid-template-columns: 1fr; } .link-form .secondary-button { width: 100%; } .identity-grid { grid-template-columns: 1fr; } .identity-save { width: 100%; } .task-detail { padding-left: 11px; } .task-fields { grid-template-columns: 1fr; } .task-actions button { width: 100%; } .action-dialog-card footer button { flex: 1; } .notification-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; } .notification-dialog-card { height: 100dvh; max-height: none; padding-top: env(safe-area-inset-top); } .notification-toolbar { align-items: stretch; flex-direction: column; } .notification-toolbar .secondary-button { width: 100%; } .notification-item { grid-template-columns: 34px minmax(0,1fr); } .notification-item-icon { width: 34px; height: 34px; } .notification-item-actions { grid-column: 2; } }
@media (max-width: 390px) { .group-card, .group-card-button { min-height: 245px; } .group-orb { width: 72px; height: 72px; } .group-logo { width: 52px; height: 52px; } .group-card-name { font-size: 13px; } #runtime-details { grid-template-columns: 1fr; } .runtime-status-chip { padding-inline: 6px; } }
@media (max-width: 780px) {
  .executive-top-grid { grid-template-columns: 1fr; }
  .executive-group-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .executive-assistant-hero { grid-template-columns: 58px minmax(0, 1fr) 40px; gap: 10px; padding: 13px; }
  .executive-assistant-hero .kim-orb { width: 56px; height: 56px; }
  .executive-assistant-hero .kim-orb > img, .executive-assistant-hero .kim-orb > span { width: 42px; height: 42px; }
  .executive-assistant-copy > small { font-size: 8px; }
  .executive-assistant-copy h1 { font-size: 22px; }
  .executive-assistant-copy .executive-assistant-status { gap: 3px 5px; margin-top: 5px; font-size: 9px; }
  .executive-assistant-refresh { width: 40px; height: 40px; }
  .executive-top-grid { gap: 10px; }
  .executive-priority, .executive-brief-band { padding: 13px; }
  .priority-head { margin-bottom: 9px; }
  .priority-item { min-height: 50px; }
  .executive-view-all { min-height: 38px; margin-top: 9px; }
  .executive-brief-art { right: -32%; bottom: 2%; width: 132%; opacity: .15; }
  .executive-counts > button { padding: 7px 6px; }
  .executive-counts > button > svg { width: 14px; height: 14px; }
  .executive-counts strong { font-size: 17px; }
  .executive-counts small { font-size: 10px; }
  .brief-output-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-output-actions .secondary-button { justify-content: center; }
  .executive-group-pulse { padding-top: 15px; }
  .executive-group-row { min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) auto 13px; padding: 8px; }
  .executive-row-avatar { width: 34px; height: 34px; }
  .executive-row-copy small { max-width: 100%; }
  .executive-inline-work { padding: 13px; }
  .executive-unified-workspace { gap: 11px; padding: 13px; }
  .executive-unified-head h3 { font-size: 21px; }
  .executive-unified-workspace .executive-counts { gap: 6px; }
  .executive-inline-work .executive-counts > button { min-height: 58px; grid-template-columns: 1fr; justify-items: start; gap: 2px; }
  .executive-inline-work .executive-counts > button > svg { grid-row: auto; }
  .executive-priority-zone { gap: 8px; padding: 10px; border-radius: 14px; }
  .unified-subhead h3 { font-size: 16px; }
  .unified-list-head { align-items: flex-start; }
  .executive-inline-row { grid-template-columns: 31px minmax(0, 1fr) 13px; gap: 8px; padding: 9px 2px; }
  .executive-inline-icon { width: 30px; height: 30px; }
  .executive-urgent-list strong, .executive-inline-row strong { font-size: 11px; }
  .groups-overview-head, .work-header { align-items: flex-start; }
  .groups-overview-head h2, .work-header h2 { font-size: 21px; }
  .quiet-groups > summary { padding-inline: 11px; }
  .quiet-group-grid { padding: 10px; }
  .work-status-overview { gap: 6px; }
  .work-status-overview > button { grid-template-columns: 1fr; justify-items: center; gap: 5px; padding: 9px 5px; text-align: center; }
  .work-mood { width: 38px; height: 38px; }
  .work-mood::before { top: 13px; left: 10px; box-shadow: 14px 0 0 #2f2a35; }
  .work-mood i { bottom: 8px; width: 14px; }
  .work-mood.mood-neutral i { bottom: 9px; }
  .work-status-overview strong { font-size: 17px; }
  .work-status-overview small { font-size: 9px; }
  .work-card > header { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
  .work-decision-row { grid-template-columns: 38px minmax(0, 1fr) 15px; gap: 8px; }
}

@media (max-width: 520px) {
  .task-summary-copy small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .task-detail { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .task-command-surface { padding: 10px; border-radius: 15px; }
  .task-command-surface > header small { display: none; }
  .task-intent { min-height: 54px; padding-inline: 2px; }
  .task-intent svg { width: 19px; height: 19px; }
  .task-agent-send { min-height: 50px; font-size: 12px; }
  .task-admin-details > summary { min-height: 48px; }
  .task-admin-body .task-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-source blockquote { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
}

@media (max-width: 350px) {
  .task-intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-admin-body .task-fields { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .mode-grid { grid-template-columns: 1fr; }
  .group-flow-steps { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .profile-field-grid, .profile-scope-grid { grid-template-columns: 1fr; }
  .knowledge-route { grid-template-columns: 1fr; }
  .knowledge-route-step { grid-template-columns: 20px minmax(0,1fr); }
  .knowledge-route-step > span:last-child { grid-column: auto; }
  .learning-lifecycle { grid-template-columns: 1fr; }
  .profile-document-card { grid-template-columns: 32px minmax(0,1fr); }
  .profile-document-card button { grid-column: 2; justify-self: start; }
}

.group-authority-map { margin: 18px 0; padding: 18px; border: 1px solid #dcd8ff; border-radius: 24px; background: linear-gradient(145deg, rgba(248,247,255,.96), rgba(242,251,249,.9)); box-shadow: 0 16px 36px rgba(77,61,175,.07); }
.group-authority-map > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.group-authority-map > header > div { display: flex; align-items: center; gap: 12px; }
.group-authority-map > header > div > svg { width: 24px; color: #6754f5; }
.group-authority-map header strong { display: block; color: #18213d; font-size: 1.03rem; }
.group-authority-map header small { display: block; margin-top: 3px; color: #78839d; }
.group-authority-map > header > b { white-space: nowrap; border-radius: 999px; padding: 7px 10px; background: #fff4d8; color: #946500; font-size: .77rem; }
.group-authority-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.authority-column { padding: 14px; border: 1px solid #e2e6ef; border-radius: 18px; background: rgba(255,255,255,.82); }
.authority-column h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #1f2945; font-size: .92rem; }
.authority-column h4 svg { width: 19px; }
.authority-column.allowed h4 { color: #087c63; }
.authority-column.owner h4 { color: #8b5d00; }
.authority-policy { padding: 10px 0; border-top: 1px solid #e8ebf2; }
.authority-policy:first-child { padding-top: 0; border-top: 0; }
.authority-policy strong { font-size: .89rem; color: #26304a; }
.authority-policy p { margin: 4px 0; color: #58657e; font-size: .82rem; line-height: 1.45; }
.authority-policy small { color: #8993a7; font-size: .73rem; }
.group-authority-note { display: flex; align-items: center; gap: 8px; margin: 13px 2px 0; color: #6d7890; font-size: .78rem; }
.group-authority-note svg { width: 17px; color: #6754f5; }
@media (max-width: 720px) {
  .group-authority-map { padding: 15px; border-radius: 20px; }
  .group-authority-map > header { align-items: flex-start; }
  .group-authority-map > header > b { font-size: .7rem; }
  .group-authority-columns { grid-template-columns: 1fr; }
  .authority-column { padding: 13px; }
}
