:root {
  --forest: #17382e;
  --forest-2: #0f2b23;
  --green: #286b50;
  --lime: #bfd276;
  --ink: #27322d;
  --muted: #7d8982;
  --line: #e3e8e1;
  --paper: #f5f6f2;
  --panel: #ffffff;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

/* T-521 production calendar: mirrors the confirmed T-519 V4 hierarchy. */
.schedule-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  height: min(860px, calc(100dvh - 28px));
  max-height: none;
  border: 0;
  border-radius: 18px;
  background: #f4f6f2;
  padding: 0;
  overflow: auto;
}
.schedule-calendar-workbench { padding: 24px 27px 14px; }
.schedule-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.schedule-page-heading p {
  margin: 0 0 7px;
  color: #729078;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
}
.schedule-page-heading h2 {
  margin: 0;
  color: #2e4037;
  font-size: 25px;
  letter-spacing: -.035em;
}
.schedule-page-heading small { display: block; margin-top: 7px; color: #7d8982; font-size: 10px; }
.schedule-page-heading > div:last-child { display: flex; align-items: center; gap: 9px; }
.schedule-page-heading button {
  height: 34px;
  border: 1px solid #d7e1d7;
  border-radius: 8px;
  color: #486756;
  background: #fff;
  padding: 0 11px;
  cursor: pointer;
  font-size: 9px;
}
.schedule-page-heading #closeScheduleDialog { width: 34px; padding: 0; font-size: 19px; }
.schedule-scope-proof {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: #60776a;
  background: #e8efe6;
  padding: 7px 10px;
  font-size: 8px;
}
.schedule-scope-proof i { width: 6px; height: 6px; border-radius: 50%; background: #75b67e; box-shadow: 0 0 0 4px rgba(117,182,126,.12); }
.schedule-controls { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr); gap: 12px; margin-bottom: 12px; }
.schedule-scope-selectors { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 7px; min-width: 0; }
.schedule-scope-multiselect { position: relative; min-width: 0; }
.schedule-scope-trigger {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  grid-template-rows: auto auto;
  gap: 1px 9px;
  align-items: center;
  border: 1px solid #dce5db;
  border-radius: 12px;
  color: #607168;
  background: #fff;
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
}
.schedule-scope-trigger > span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #587261; background: #edf3eb; font-size: 9px; }
.schedule-scope-trigger > b,
.schedule-scope-trigger > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-scope-trigger > b { color: #42544a; font-size: 9px; }
.schedule-scope-trigger > small { color: #8a958f; font-size: 7px; }
.schedule-scope-trigger > i { grid-column: 3; grid-row: 1 / 3; width: 6px; height: 6px; border-right: 1px solid #658072; border-bottom: 1px solid #658072; transform: translateY(-2px) rotate(45deg); }
.schedule-scope-trigger.active { border-color: #8faf9a; background: #f4f8f2; box-shadow: inset 3px 0 #397257; }
.schedule-scope-trigger.active > span { color: #fff; background: #397257; }
.schedule-scope-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 0;
  width: 270px;
  border: 1px solid #dbe4da;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(22,52,39,.17);
  overflow: hidden;
}
.schedule-scope-multiselect:last-child .schedule-scope-popover { right: 0; left: auto; }
.schedule-scope-popover > header,
.schedule-scope-popover > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f8faf7; padding: 9px; }
.schedule-scope-popover > header { border-bottom: 1px solid #e4eae2; }
.schedule-scope-popover > header strong { color: #405249; font-size: 9px; }
.schedule-scope-popover > header small { color: #89948e; font-size: 7px; }
.schedule-scope-option-list { display: grid; gap: 2px; max-height: 260px; overflow: auto; padding: 6px; }
.schedule-scope-option-list label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 9px; border-radius: 8px; padding: 8px; cursor: pointer; }
.schedule-scope-option-list label:hover { background: #f2f6f0; }
.schedule-scope-option-list input { width: 14px; height: 14px; margin: 0; accent-color: #397257; }
.schedule-scope-option-list b,
.schedule-scope-option-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-scope-option-list b { color: #405249; font-size: 8px; }
.schedule-scope-option-list small { margin-top: 3px; color: #8a958f; font-size: 7px; }
.schedule-scope-popover > footer { justify-content: flex-end; border-top: 1px solid #e4eae2; }
.schedule-scope-popover > footer button { border: 1px solid #d7e1d7; border-radius: 7px; color: #486756; background: #fff; padding: 6px 10px; cursor: pointer; font-size: 7px; }
.schedule-scope-popover > footer button.primary { color: #fff; border-color: #397257; background: #397257; }
.schedule-calendar-filters { display: grid; grid-template-columns: 120px 120px minmax(140px, 1fr) auto; align-items: end; gap: 7px; border: 1px solid #e0e6de; border-radius: 12px; background: rgba(255,255,255,.72); padding: 8px; }
.schedule-calendar-filters label { min-width: 0; display: grid; gap: 4px; }
.schedule-calendar-filters label > span { color: #7e8b84; font-size: 7px; }
.schedule-calendar-filters select,
.schedule-calendar-filters input { width: 100%; min-width: 0; height: 32px; border: 1px solid #dce3db; border-radius: 8px; color: #405249; background: #fff; padding: 0 9px; font-size: 8px; }
.schedule-calendar-filters > button { height: 32px; border: 1px solid #d7e1d7; border-radius: 8px; color: #486756; background: #fff; padding: 0 10px; cursor: pointer; font-size: 8px; }
.schedule-calendar-board { overflow: hidden; border: 1px solid #dfe6dc; border-radius: 15px; background: #fff; box-shadow: 0 14px 35px rgba(28,55,42,.07); }
.schedule-calendar-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e5eae3; padding: 10px 13px; }
.schedule-month-navigation { display: flex; align-items: center; gap: 6px; }
.schedule-month-navigation > button { width: 31px; height: 31px; border: 1px solid #dce4db; border-radius: 8px; color: #587162; background: #fff; cursor: pointer; }
.schedule-month-navigation > button:nth-child(2) { width: auto; padding: 0 10px; font-size: 8px; }
.schedule-month-navigation > div { margin-left: 5px; }
.schedule-month-navigation h3 { margin: 0; color: #344a3e; font-size: 14px; }
.schedule-month-navigation small { display: block; margin-top: 3px; color: #87928c; font-size: 7px; }
.schedule-toolbar-right,
.schedule-status-legend,
.schedule-view-switcher { display: flex; align-items: center; gap: 8px; }
.schedule-status-legend span { display: flex; align-items: center; gap: 4px; color: #7c8981; font-size: 7px; }
.schedule-status-legend i { width: 6px; height: 6px; border-radius: 50%; }
.schedule-status-legend .future { background: #7ca58a; }
.schedule-status-legend .submitted { background: #d3a746; }
.schedule-status-legend .succeeded { background: #4f9b68; }
.schedule-status-legend .failed { background: #bd6b5c; }
.schedule-view-switcher { gap: 2px; border: 1px solid #dfe5dd; border-radius: 9px; background: #f6f8f5; padding: 3px; }
.schedule-view-switcher button { min-width: 35px; height: 26px; border: 0; border-radius: 6px; color: #718077; background: transparent; cursor: pointer; font-size: 8px; }
.schedule-view-switcher button.active { color: #315f49; background: #fff; box-shadow: 0 2px 8px rgba(36,61,47,.1); }
.schedule-calendar-status { margin: 0; border-bottom: 1px solid #edf0eb; color: #718077; background: #fafbf9; padding: 7px 13px; font-size: 8px; }
.schedule-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid #e6ebe4; background: #fafbf9; }
.schedule-weekdays span { padding: 8px; color: #7d8982; font-size: 7px; text-align: center; }
.schedule-calendar-layout { display: block; padding: 0; }
.schedule-month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); border: 0; border-radius: 0; }
.schedule-calendar-day { min-height: 102px; }
.schedule-calendar-event { border: 0; border-left: 3px solid #7ca58a; border-radius: 5px; background: #edf5ed; padding: 5px 6px; }
.schedule-calendar-event i { display: none; }
.schedule-calendar-event.run-submitted { border-left-color: #d3a746; background: #fff7df; }
.schedule-calendar-event.run-completed { border-left-color: #4f9b68; background: #eaf6ed; }
.schedule-calendar-event.run-failed,
.schedule-calendar-event.run-uncertain { border-left-color: #bd6b5c; background: #fff0ed; }
.schedule-agenda { display: block; max-height: none; overflow: visible; padding: 8px 13px 15px; }
.schedule-agenda[hidden] { display: none; }
.schedule-agenda > section { display: grid; grid-template-columns: 120px minmax(0, 1fr); border: 0; border-bottom: 1px solid #e8ece6; border-radius: 0; padding: 13px 4px; }
.schedule-agenda > section > header { display: block; }
.schedule-agenda > section > div { margin-top: 0; }
.schedule-occurrence-detail { position: sticky; bottom: 0; z-index: 20; padding: 0 27px 14px; }
.schedule-occurrence-detail article { border: 1px solid #cfddd1; border-radius: 14px; background: rgba(246,250,245,.98); box-shadow: 0 -10px 35px rgba(26,53,40,.12); padding: 14px; }
.schedule-occurrence-detail dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-management { margin: 0 27px 24px; border: 1px solid #dfe6dc; border-radius: 12px; background: #fff; }

@media (max-width: 760px) {
  .schedule-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .schedule-calendar-workbench { padding: 16px 10px 10px; }
  .schedule-page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .schedule-page-heading h2 { font-size: 22px; }
  .schedule-page-heading > div:last-child { width: 100%; }
  .schedule-scope-proof { flex: 1; }
  .schedule-controls { grid-template-columns: 1fr; }
  .schedule-scope-selectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-scope-trigger { grid-template-columns: 24px minmax(0, 1fr); padding: 8px 6px; }
  .schedule-scope-trigger > span { width: 24px; height: 24px; }
  .schedule-scope-trigger > i { display: none; }
  .schedule-scope-popover { position: fixed; top: auto; right: 10px !important; bottom: 12px; left: 10px !important; width: auto; max-height: calc(100dvh - 90px); }
  .schedule-calendar-filters { grid-template-columns: 1fr 1fr; }
  .schedule-calendar-filters .schedule-keyword { grid-column: 1 / 3; }
  .schedule-calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .schedule-toolbar-right { width: 100%; justify-content: space-between; }
  .schedule-status-legend { display: none; }
  .schedule-month-grid,
  .schedule-weekdays { display: none !important; }
  .schedule-agenda { display: block !important; }
  .schedule-calendar-layout { overflow: hidden; }
  .schedule-agenda > section { grid-template-columns: 82px minmax(0, 1fr); }
  .schedule-occurrence-detail { position: static; padding: 0 10px 10px; }
  .schedule-occurrence-detail dl { grid-template-columns: 1fr; }
  .schedule-management { margin: 0 10px 18px; }
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; font-size: 15px; }
button, input, textarea, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: not-allowed !important; }
[hidden] { display: none !important; }

.auth-gate {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr);
  background: #f4f6f1;
}
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 38px 48px 54px;
  color: #ecf3ef;
  background:
    radial-gradient(circle at 15% 0%, rgba(190,210,118,.17), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(100,151,118,.16), transparent 38%),
    linear-gradient(145deg, #183b31, #0e2922);
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute; inset: 16% -18% auto auto;
  width: 420px; height: 420px;
  border: 1px solid rgba(220,233,199,.08);
  border-radius: 48% 52% 42% 58%;
  transform: rotate(18deg);
}
.auth-brand { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { color: #fff; font-size: 17px; letter-spacing: .05em; }
.auth-brand small { color: #89a69a; margin-top: 3px; font-size: 9px; letter-spacing: .22em; }
.auth-copy { position: relative; z-index: 1; width: min(560px, 90%); margin: auto 0; }
.auth-copy > p { color: #b8cf7c; font-size: 10px; font-weight: 750; letter-spacing: .2em; }
.auth-copy h1 { margin: 18px 0 44px; color: #fff; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
.auth-copy ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.auth-copy li { display: flex; gap: 15px; align-items: center; }
.auth-copy li > i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(214,229,194,.13); border-radius: 12px; color: #bdd278; background: rgba(255,255,255,.04); font-size: 9px; font-style: normal; }
.auth-copy li strong, .auth-copy li small { display: block; }
.auth-copy li strong { color: #eef4f0; font-size: 12px; }
.auth-copy li small { color: #809c91; margin-top: 4px; font-size: 10px; }
.auth-form-panel { display: grid; place-items: center; padding: 38px; }
.auth-card { width: min(420px, 100%); padding: 34px; border: 1px solid #dfe5dc; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(38,58,47,.09); }
.auth-kicker { color: #66836b; font-size: 9px; font-weight: 780; letter-spacing: .18em; }
.auth-card h2 { margin: 10px 0 8px; font-size: 27px; letter-spacing: -.035em; }
.auth-card > p:not(.form-error) { margin: 0 0 25px; color: #818d86; font-size: 11px; line-height: 1.65; }
.auth-card label, .member-create label { display: grid; gap: 7px; margin-top: 14px; color: #5e6b64; font-size: 10px; font-weight: 650; }
.auth-card input, .member-create input { width: 100%; border: 1px solid #dbe3da; border-radius: 11px; outline: 0; color: #27322d; background: #fafbf8; padding: 11px 12px; font-size: 13px; }
.auth-card input:focus, .member-create input:focus { border-color: #83a28d; background: #fff; box-shadow: 0 0 0 3px rgba(83,129,101,.08); }
.auth-card > button { width: 100%; margin-top: 22px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #2f7558, #225a45); padding: 12px 15px; cursor: pointer; font-size: 12px; box-shadow: 0 8px 22px rgba(35,91,69,.18); }
.auth-card > button b { float: right; }
.tenant-choice-list { display: grid; gap: 9px; }
.tenant-choice-list .auth-secondary-button {
  width: 100%;
  margin: 0;
  border: 1px solid #dbe3da;
  border-radius: 11px;
  color: #315f49;
  background: #f7faf6;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}
.form-error { margin: 12px 0 0 !important; padding: 9px 11px; border-radius: 9px; color: #9a4f45; background: #fff1ee; font-size: 10px; line-height: 1.5; }
.form-error.success { color: #397157; background: #eef7ec; }
.identity-command {
  display: block;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  border-radius: 10px;
  color: #315f49;
  background: #eef6ed;
  padding: 11px;
  font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

#app { display: flex; background: var(--paper); }
.sidebar {
  position: relative;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 18px;
  color: #dce8e1;
  background: linear-gradient(180deg, var(--forest), var(--forest-2));
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  top: -150px; left: -90px;
  border-radius: 50%;
  background: rgba(193, 214, 119, .08);
}
.brand { position: relative; display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px 9px 13px 9px;
  color: #17372d;
  background: linear-gradient(145deg, #d9e7aa, #aeca72);
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { color: #fff; font-size: 17px; letter-spacing: .05em; }
.brand small { color: #8ba39a; font-size: 9px; letter-spacing: .24em; margin-top: 3px; }
.sidebar nav { position: relative; display: grid; gap: 6px; }
.sidebar nav button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px;
  border: 0; border-radius: 11px;
  color: #91a89e; background: transparent;
  cursor: pointer; text-align: left;
}
.sidebar nav button.active { color: #fff; background: rgba(223, 235, 182, .12); box-shadow: inset 3px 0 var(--lime); }
.sidebar nav button > span { font-size: 17px; }
.sidebar nav button > i { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #91ca74; box-shadow: 0 0 0 4px rgba(145,202,116,.1); }
.sidebar nav button em { margin-left: auto; color: #607b70; font-size: 9px; font-style: normal; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 9px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { color: #e9f0eb; font-size: 11px; }
.sidebar-note small { color: #789287; margin-top: 3px; font-size: 9px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #75b67e; box-shadow: 0 0 0 4px rgba(117,182,126,.12); }

.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar {
  flex: 0 0 65px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 22px 0 27px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb b { color: #c3cbc6; }
.shop-picker { display: flex; align-items: center; gap: 9px; }
.device-picker { display: flex; align-items: center; gap: 9px; }
.shop-picker label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.shop-picker select { padding: 9px 34px 9px 12px; border: 1px solid #dce3db; border-radius: 10px; color: var(--ink); background: #f8faf7; font-size: 11px; }
.shop-picker .hy-select { min-width: 150px; max-width: 240px; }
.device-picker .hy-select { min-width: 185px; max-width: 280px; }

.hy-select {
  position: relative;
  display: inline-block;
  min-width: 120px;
  max-width: 100%;
  vertical-align: middle;
}
.native-select-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.hy-select-trigger {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e3db;
  border-radius: 10px;
  padding: 8px 9px 8px 11px;
  color: #2f493d;
  background: linear-gradient(180deg, #fff, #f8faf7);
  box-shadow: 0 1px 2px rgba(31,61,47,.04);
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  line-height: 1.3;
}
.hy-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hy-select-trigger > i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #edf3ed;
  transition: transform .14s ease, background .14s ease;
}
.hy-select-trigger > i::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #567163;
  border-bottom: 1.5px solid #567163;
  transform: translateY(-2px) rotate(45deg);
}
.hy-select.open .hy-select-trigger {
  border-color: #82a08d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57,114,87,.09);
}
.hy-select.open .hy-select-trigger > i {
  background: #e3eee6;
  transform: rotate(180deg);
}
.hy-select-trigger:disabled {
  color: #8c9791;
  background: #f1f4f0;
  cursor: not-allowed;
  opacity: .7;
}
.hy-select-menu {
  position: absolute;
  z-index: 180;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: max(100%, 190px);
  max-width: min(340px, calc(100vw - 28px));
  max-height: min(310px, 48vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid #dce5dd;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 38px rgba(22,52,39,.16), 0 3px 10px rgba(22,52,39,.06);
  backdrop-filter: blur(14px);
  animation: select-menu-enter .12s ease-out both;
}
.hy-select.drop-up .hy-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
}
.hy-select-menu[hidden] { display: none !important; }
.hy-select-menu button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px 7px 10px;
  color: #3e5549;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  line-height: 1.4;
}
.hy-select-menu button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hy-select-menu button > i {
  color: transparent;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}
.hy-select-menu button:hover,
.hy-select-menu button:focus-visible {
  color: #244b38;
  background: #f0f5ef;
  outline: 0;
  transform: none;
}
.hy-select-menu button:active { transform: scale(.99); }
.hy-select-menu button[aria-selected="true"] {
  color: #24543d;
  background: #e8f1e8;
  font-weight: 680;
}
.hy-select-menu button[aria-selected="true"] > i { color: #397257; }
.hy-select-menu button:disabled {
  color: #a1aaa5;
  cursor: not-allowed;
  opacity: .65;
}
.memory-create .hy-select,
.workspace-preferences .hy-select,
.agent-channel-row .hy-select { width: 100%; }
#deviceSelect { width: 235px; }
#shopSelect { width: 285px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; color: #397057; background: #ecf4e9; border: 1px solid #dce9d8; border-radius: 99px; padding: 7px 10px; font-size: 9px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #59a376; }
.member-menu-button {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid #dae3da; border-radius: 10px;
  color: #42534a; background: #fff;
  padding: 5px 9px 5px 6px; cursor: pointer;
}
.member-menu-button span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #2f6f55; font-size: 9px; }
.member-menu-button b { max-width: 82px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; white-space: nowrap; }

.workbench { min-height: 0; flex: 1; display: flex; padding: 20px; gap: 0; overflow: hidden; }
.chat-panel {
  width: min(72%, 1050px);
  min-width: 520px;
  display: flex; flex-direction: column;
  border: 1px solid #dfe5dd;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(45, 64, 54, .07);
  overflow: hidden;
}
.agent-header {
  flex: 0 0 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid #e8ece6;
  background: rgba(255,255,255,.96);
}
.agent-identity { display: flex; gap: 11px; align-items: center; }
.agent-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #235e48, #3c7c5f);
  border-radius: 13px 9px 13px 9px;
  font-size: 12px; font-weight: 750;
  box-shadow: 0 6px 16px rgba(33,92,69,.17);
}
.agent-avatar i { position: absolute; right: -2px; bottom: -1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #91cb71; }
.agent-avatar.small { width: 32px; height: 32px; border-radius: 11px 8px 11px 8px; font-size: 10px; }
.agent-identity strong, .agent-identity small { display: block; }
.agent-identity strong { font-size: 13px; }
.agent-identity small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.agent-meta { display: flex; align-items: center; gap: 9px; }
.agent-meta > span { color: #718078; background: #f3f6f1; border-radius: 99px; padding: 6px 9px; font-size: 9px; }
.agent-meta button { border: 1px solid #dce5dd; border-radius: 9px; color: #376b54; background: #f8faf7; padding: 7px 10px; font-size: 10px; cursor: pointer; }
.agent-meta button b { display: inline-grid; min-width: 17px; height: 17px; place-items: center; margin-left: 4px; border-radius: 99px; color: #fff; background: #5f8b70; padding: 0 5px; font-size: 8px; }

.conversation { min-height: 0; flex: 1; overflow: auto; padding: 26px 28px 18px; scroll-behavior: auto; }
.empty-state { max-width: 780px; margin: 7vh auto 0; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-orbit { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid #dce7d8; border-radius: 22px 14px 22px 14px; background: linear-gradient(145deg, #eef5e8, #dce9cf); color: #2b694f; box-shadow: 0 12px 28px rgba(48, 86, 63, .09); }
.empty-orbit b { font-size: 18px; }
.eyebrow { color: #73906f !important; font-size: 9px !important; font-weight: 750; letter-spacing: .17em; }
.empty-state h1 { margin: 8px 0 9px; font-size: 30px; letter-spacing: -.04em; }
.empty-state > p:not(.eyebrow) { max-width: 620px; margin: auto; color: var(--muted); font-size: 13px; line-height: 1.7; }
.starter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 28px; text-align: left; }
.starter-grid button {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 11px 13px;
  border: 1px solid #e3e9e0; border-radius: 13px;
  color: #48564f; background: #fafbf8;
  cursor: pointer; font-size: 11px; line-height: 1.4;
  transition: .18s ease;
}
.starter-grid button:hover { transform: translateY(-1px); border-color: #bdcebf; background: #fff; box-shadow: 0 8px 20px rgba(51,78,62,.07); }
.starter-grid button span { flex: 0 0 auto; color: #5f806d; font-size: 9px; }

.message { display: flex; gap: 11px; margin-bottom: 22px; }
.message.user { justify-content: flex-end; padding-left: 12%; }
.message.assistant { padding-right: 5%; }
.message-stack { max-width: min(88%, 860px); min-width: 0; }
.message.user .message-stack { display: grid; justify-items: end; }
.work-context-banner { display: flex; align-items: baseline; gap: 8px; margin: 0 0 7px 4px; color: #68776e; font-size: 10px; }
.work-context-banner span { flex: 0 0 auto; padding: 2px 7px; border: 1px solid #dbe5d8; border-radius: 999px; color: #50705c; background: #f2f7ef; font-weight: 700; }
.work-context-banner strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.bubble { border-radius: 16px; font-size: 14px; line-height: 1.72; }
.message.user .bubble { color: #fff; background: linear-gradient(145deg, #2d7155, #255f49); border-radius: 16px 7px 16px 16px; padding: 11px 15px; box-shadow: 0 7px 18px rgba(39,100,75,.13); }
.message.assistant .bubble { background: #f8faf7; border: 1px solid #e4e9e2; border-radius: 7px 17px 17px 17px; padding: 15px 17px; }
.bubble p { margin: 0 0 10px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h2, .bubble h3, .bubble h4 { margin: 15px 0 7px; line-height: 1.35; }
.bubble h2:first-child, .bubble h3:first-child { margin-top: 0; }
.bubble h2 { font-size: 18px; }
.bubble h3 { font-size: 16px; }
.bubble h4 { font-size: 14px; }
.bubble ul { margin: 8px 0; padding-left: 20px; }
.bubble li { margin: 4px 0; }
.bubble blockquote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid #88aa82; color: #5c6b63; background: #f0f5ed; border-radius: 0 9px 9px 0; }
.bubble code { color: #3e654f; background: #eaf0e7; border-radius: 5px; padding: 2px 5px; font-size: .88em; }
.md-code { margin: 12px 0; border: 1px solid #dfe6dc; border-radius: 11px; background: #f3f6f1; overflow: hidden; }
.md-code-label { padding: 6px 11px; border-bottom: 1px solid #dfe6dc; color: #75827a; background: #eaf0e7; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bubble .md-code pre { margin: 0; padding: 13px 14px; overflow-x: auto; color: #34463c; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; white-space: pre; tab-size: 2; }
.bubble .md-code pre code { display: block; min-width: max-content; color: inherit; background: transparent; border-radius: 0; padding: 0; font: inherit; }
.logic-diagram {
  margin: 14px 0;
  border: 1px solid #dce5dc;
  border-radius: 15px;
  background:
    radial-gradient(circle at 95% 0%, rgba(190, 210, 121, .16), transparent 32%),
    linear-gradient(145deg, #fbfcf9, #f2f6ef);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(50, 76, 61, .055);
}
.logic-diagram figcaption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8df;
  color: #506259; background: rgba(255,255,255,.72);
}
.logic-diagram figcaption span { font-size: 10px; font-weight: 760; letter-spacing: .04em; }
.logic-diagram figcaption small { color: #8a968f; font-size: 9px; }
.logic-lanes { display: grid; gap: 11px; padding: 13px; }
.logic-lane {
  min-width: 0;
  border: 1px solid #e1e7df;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  overflow: hidden;
}
.logic-lane header {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0eb;
  color: #526159;
}
.logic-lane header i { width: 7px; height: 7px; border-radius: 50%; background: #8ba397; box-shadow: 0 0 0 4px rgba(139,163,151,.11); }
.logic-lane header strong { font-size: 10px; }
.logic-track {
  display: flex; align-items: stretch;
  gap: 7px;
  padding: 11px;
  overflow-x: auto;
}
.logic-node {
  flex: 1 0 126px;
  min-width: 126px;
  display: grid; place-items: center;
  padding: 10px 11px;
  border: 1px solid #dce4da;
  border-radius: 11px;
  color: #415049;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 5px 13px rgba(45,69,55,.045);
}
.logic-arrow {
  flex: 0 0 auto;
  display: grid; place-items: center;
  color: #8fa198;
  font-size: 15px;
}
.tone-risk header { color: #95584d; background: #fff8f5; }
.tone-risk header i { background: #cc7564; box-shadow: 0 0 0 4px rgba(204,117,100,.12); }
.tone-risk .logic-node { border-color: #ead8d3; background: #fffaf8; }
.tone-risk .logic-arrow { color: #c68b7d; }
.tone-positive header { color: #397159; background: #f3f9f1; }
.tone-positive header i { background: #62a27b; box-shadow: 0 0 0 4px rgba(98,162,123,.12); }
.tone-positive .logic-node { border-color: #d4e5d6; background: #f9fcf7; }
.tone-positive .logic-arrow { color: #76a68a; }
.structure-rows { display: grid; gap: 10px; padding: 14px; }
.structure-row {
  display: grid;
  grid-template-columns: minmax(118px, 1.25fr) minmax(120px, 3fr) 42px;
  gap: 11px;
  align-items: center;
}
.structure-label {
  min-width: 0;
  color: #526159;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}
.structure-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee6;
  box-shadow: inset 0 1px 2px rgba(55, 78, 64, .07);
}
.structure-bar i {
  display: block;
  width: var(--share);
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #789a80, #b8c974);
}
.structure-row.is-primary .structure-bar i {
  background: linear-gradient(90deg, #b86658, #d78d6e);
}
.structure-row strong {
  color: #526159;
  font-size: 11px;
  text-align: right;
}
.structure-row.is-primary strong { color: #a85348; }
.metric-bar-rows { display: grid; gap: 10px; padding: 14px; }
.metric-bar-row {
  display: grid;
  grid-template-columns: minmax(108px, 1.1fr) minmax(130px, 2.4fr) minmax(118px, 1.4fr);
  gap: 11px;
  align-items: center;
}
.metric-bar-label {
  min-width: 0;
  overflow: hidden;
  color: #526159;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ede5;
  box-shadow: inset 0 1px 2px rgba(55, 78, 64, .07);
}
.metric-bar-track i {
  display: block;
  width: var(--share);
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #668d77, #b9c976);
}
.metric-bar-row.is-primary .metric-bar-track i {
  background: linear-gradient(90deg, #3f775d, #8eae77);
}
.metric-bar-row.is-empty .metric-bar-track i { min-width: 0; }
.metric-bar-row.is-empty .metric-bar-track::after {
  content: "";
  display: block;
  width: 6px;
  height: 100%;
  border-radius: inherit;
  background: #d5ddd4;
}
.metric-bar-row strong {
  min-width: 0;
  color: #5f6d65;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}
.logic-tree { padding: 16px; overflow-x: auto; }
.tree-node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dce4da;
  border-radius: 11px;
  color: #44534b;
  background: #fff;
  text-align: center;
  box-shadow: 0 5px 13px rgba(45,69,55,.045);
}
.tree-node strong { font-size: 10px; line-height: 1.45; }
.tree-root {
  width: min(340px, 70%);
  margin: 0 auto;
  border-color: #afc5ad;
  color: #2f654c;
  background: linear-gradient(145deg, #f8fbf5, #edf4e9);
  box-shadow: 0 7px 17px rgba(48,92,66,.08);
}
.tree-children {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--child-count), minmax(125px, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #cad7cc;
}
.tree-children::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  height: 11px;
  border-left: 1px solid #cad7cc;
}
.tree-branch { position: relative; min-width: 0; }
.tree-branch::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  height: 12px;
  border-left: 1px solid #cad7cc;
}
.tree-node.tone-positive {
  border-color: #d1e2d2;
  color: #397159;
  background: #f7fbf5;
}
.tree-node.tone-risk {
  border-color: #ead7d1;
  color: #95584d;
  background: #fff9f7;
}
.message time { display: block; margin-top: 6px; color: #9aa29d; font-size: 9px; }
.typing-caret::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 4px; background: #6d927d; vertical-align: -2px; animation: blink .8s infinite; }

.suggestions { margin-top: 12px; }
.suggestions > span { display: block; color: #8a948e; margin-bottom: 7px; font-size: 9px; }
.suggestions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestions button { max-width: 320px; display: flex; align-items: center; gap: 7px; border: 1px solid #d6e2d5; border-radius: 10px; color: #366a52; background: #fff; padding: 8px 10px; cursor: pointer; font-size: 10px; }
.suggestions button:hover { border-color: #94b096; background: #f4f8f1; }
.suggestions button:focus-visible { outline: 3px solid rgba(44, 110, 77, .28); outline-offset: 2px; }
.suggestions button:disabled { cursor: not-allowed; color: #87928c; background: #f4f5f4; border-color: #dde2df; opacity: .78; }
.suggestions button b { color: #96a69c; font-size: 11px; }
.suggestions button em { font-style: normal; color: #6f8176; background: #eef4ed; border-radius: 999px; padding: 2px 6px; white-space: nowrap; }

.thinking { display: flex; gap: 11px; align-items: center; padding: 10px 28px 12px; }
.thinking[hidden] { display: none; }
.thinking > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.thinking strong { color: #4d5a53; font-size: 11px; }
.thinking small { grid-column: 2; color: #909993; margin-top: 3px; font-size: 9px; }
.dots { display: flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #6e997e; animation: jump 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .13s; }
.dots i:nth-child(3) { animation-delay: .26s; }

.composer { flex: 0 0 auto; padding: 12px 20px 13px; border-top: 1px solid #e8ebe6; background: rgba(255,255,255,.96); }
.composer-box { border: 1px solid #d9e2d8; border-radius: 15px; background: #fbfcfa; box-shadow: 0 6px 20px rgba(49,75,60,.05); overflow: hidden; transition: .18s; }
.composer-blocker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 9px 11px; border: 1px solid #ead7b8; border-radius: 10px; color: #76562d; background: #fff8ea; font-size: 10px; line-height: 1.5; }
.composer-blocker[hidden] { display: none; }
.composer-blocker button { flex: none; border: 1px solid #cba96e; border-radius: 8px; color: #684b26; background: #fff; padding: 5px 9px; cursor: pointer; font-size: 10px; }
.composer-box:focus-within { border-color: #86a88f; background: #fff; box-shadow: 0 8px 24px rgba(49,87,64,.09); }
.composer textarea { width: 100%; min-height: 58px; max-height: 150px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; padding: 13px 15px 8px; font-size: 14px; line-height: 1.5; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 7px 14px; }
.composer-foot span { color: #99a19c; font-size: 9px; }
.composer-foot button { border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #2e7356, #245f48); padding: 8px 12px; cursor: pointer; font-size: 10px; box-shadow: 0 5px 13px rgba(38,97,73,.17); }
.composer-foot button b { margin-left: 5px; }
.powered { display: flex; align-items: center; justify-content: center; gap: 6px; color: #9aa39d; padding-top: 8px; font-size: 8px; }
.powered strong { color: #68756e; font-weight: 650; }
.powered i { font-style: normal; }

.resize-handle { flex: 0 0 16px; width: 16px; border: 0; background: transparent; cursor: col-resize; display: grid; place-items: center; touch-action: none; }
.resize-handle span { width: 3px; height: 52px; border-radius: 99px; background: #cbd5cc; opacity: .55; transition: .18s; }
.resize-handle:hover span, .resizing .resize-handle span { opacity: 1; background: #82a38d; }
.resizing { cursor: col-resize; user-select: none; }
.resizing .chat-panel,
.resizing .context-panel { transition: none !important; }

.context-panel { min-width: 280px; flex: 1; overflow: auto; display: grid; align-content: start; gap: 13px; padding: 2px 2px 10px 7px; }
.welcome-card, .info-card, .shop-card { border: 1px solid #e2e7df; border-radius: 17px; background: #fff; box-shadow: 0 8px 26px rgba(45,64,54,.035); }
.welcome-card { padding: 24px; background: linear-gradient(145deg, #fff, #f8faf5); }
.welcome-card h2 { margin: 6px 0 9px; font-size: 24px; letter-spacing: -.04em; }
.welcome-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.info-card { padding: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: #58665f; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.section-title small { color: #929c96; font-size: 8px; font-weight: 560; letter-spacing: 0; }
.workspace-settings-button { border: 1px solid #d9e4da; border-radius: 999px; padding: 5px 9px; color: #4f705e; background: #f8fbf8; cursor: pointer; font-size: 9px; font-weight: 700; }
.quick-actions-card { padding: 15px; }
.quick-action-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: -3px 0 13px;
  padding: 3px;
  border: 1px solid #e2e8df;
  border-radius: 11px;
  background: #f4f7f2;
}
.quick-action-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  color: #829087;
  background: transparent;
  padding: 7px 4px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 680;
  white-space: nowrap;
}
.quick-action-tabs button.active {
  color: #31684f;
  background: #fff;
  box-shadow: 0 3px 10px rgba(46,77,59,.08);
}
.quick-action-groups { display: grid; gap: 14px; }
.quick-action-group { min-width: 0; }
.quick-action-group > header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #5d6b63;
}
.quick-action-group > header i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #397158;
  background: #edf4e9;
  font-size: 8px;
  font-style: normal;
  font-weight: 760;
}
.quick-action-group > header strong { font-size: 9px; letter-spacing: .025em; }
.quick-action-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.quick-action-group button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #dde6dc;
  border-radius: 10px;
  color: #3d6250;
  background: linear-gradient(145deg, #fff, #f8faf6);
  padding: 8px 8px 8px 10px;
  cursor: pointer;
  font-size: 9px;
  line-height: 1.25;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.quick-action-group button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-action-group button b { flex: 0 0 auto; color: #9aaa9f; font-size: 9px; }
.quick-action-group button:hover {
  border-color: #9fb8a2;
  background: #f3f8f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(43, 80, 59, .065);
}
.quick-action-group button:disabled { opacity: .46; cursor: not-allowed; transform: none; box-shadow: none; }
.workspace-density-comfortable .quick-action-group > div { grid-template-columns: 1fr; gap: 8px; }
.workspace-density-comfortable .quick-action-group button { min-height: 42px; padding: 10px 12px; }
.workspace-font-large .context-panel,
.workspace-font-large .quick-action-group button { font-size: 1.12em; }

.creator-profile-view {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 28px clamp(20px, 4vw, 54px) 42px;
  background:
    radial-gradient(circle at 88% 8%, rgba(199, 222, 154, .22), transparent 28%),
    linear-gradient(180deg, #f8faf7 0%, #f1f5f1 100%);
}
.creator-profile-view[hidden] { display: none; }
.workbench[hidden],
.fulfillment-view[hidden],
.creator-profile-empty[hidden],
.creator-profile-loading[hidden],
.creator-profile-result[hidden] { display: none; }
.creator-profile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto 22px;
}
.creator-profile-header h1 {
  margin: 5px 0 8px;
  color: #18392b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
}
.creator-profile-header > div > p:last-child {
  max-width: 620px;
  margin: 0;
  color: #718078;
  font-size: 11px;
  line-height: 1.7;
}
.creator-profile-header > button {
  flex: 0 0 auto;
  border: 1px solid #d5e0d6;
  border-radius: 999px;
  padding: 9px 14px;
  color: #426352;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  font-size: 10px;
}
.creator-profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}
.creator-profile-search-card,
.creator-profile-result-card {
  border: 1px solid #dfe7df;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 50px rgba(32, 65, 48, .08);
}
.creator-profile-search-card {
  align-self: start;
  position: sticky;
  top: 0;
  overflow: hidden;
}
.creator-profile-search-card form {
  display: grid;
  gap: 13px;
  padding: 20px;
}
.creator-profile-search-card label,
.creator-profile-next-form label {
  display: grid;
  gap: 6px;
}
.creator-profile-search-card label > span,
.creator-profile-next-form label > span {
  color: #66766e;
  font-size: 9px;
  font-weight: 700;
}
.creator-profile-search-card input,
.creator-profile-search-card textarea,
.creator-profile-next-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e2d9;
  border-radius: 10px;
  padding: 10px 11px;
  outline: none;
  color: #243d31;
  background: #fbfcfb;
  font: inherit;
  font-size: 11px;
}
.creator-profile-search-card input:focus,
.creator-profile-search-card textarea:focus,
.creator-profile-next-form input:focus {
  border-color: #78a48a;
  box-shadow: 0 0 0 3px rgba(76, 126, 96, .1);
}
.creator-profile-search-card textarea { resize: vertical; line-height: 1.5; }
.creator-profile-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.creator-profile-search-card button.primary {
  border: 0;
  border-radius: 11px;
  padding: 11px 14px;
  color: #fff;
  background: #315f49;
  cursor: pointer;
  font-weight: 700;
}
.creator-profile-search-card button.primary:disabled { opacity: .55; cursor: wait; }
.creator-profile-error {
  margin: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #9a5048;
  background: #fff2ef;
  font-size: 9px;
}
.creator-profile-rules {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e8eee8;
  padding: 15px 20px 18px;
  background: #f7faf7;
}
.creator-profile-rules p { display: flex; align-items: center; gap: 8px; margin: 0; color: #61736a; font-size: 9px; }
.creator-profile-rules i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #426651;
  background: #e6efe7;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
}
.creator-profile-result-card {
  min-height: 600px;
  overflow: hidden;
}
.creator-profile-empty,
.creator-profile-loading {
  display: grid;
  min-height: 560px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}
.creator-profile-empty > span { color: #87a291; font-size: 46px; }
.creator-profile-empty h2 { margin: 16px 0 7px; color: #345041; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.creator-profile-empty p { max-width: 420px; margin: 0; color: #849088; font-size: 10px; line-height: 1.7; }
.creator-profile-loading strong { margin-top: 16px; color: #355845; font-size: 13px; }
.creator-profile-loading small { margin-top: 6px; color: #88958e; font-size: 9px; }
.creator-profile-result > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e7ece7;
  padding: 17px 22px;
  background: #f9fbf9;
}
.creator-profile-result > header span,
.creator-profile-result > header strong { display: block; }
.creator-profile-result > header span { color: #89958e; font-size: 8px; }
.creator-profile-result > header strong { margin-top: 3px; color: #2f4e3d; font-size: 12px; }
.creator-profile-result > header time { color: #849088; font-size: 8px; }
.creator-profile-answer {
  max-height: min(64vh, 720px);
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: 24px;
  background: #fff;
}
.creator-profile-answer .md-table { margin-block: 12px; }
.creator-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e8ede8;
  padding: 14px 22px;
  background: #fafcfa;
}
.creator-profile-actions button,
.creator-profile-next-form button,
.creator-profile-feedback button {
  border: 1px solid #d4e0d6;
  border-radius: 9px;
  padding: 8px 11px;
  color: #41624f;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
}
.creator-profile-actions button:first-child,
.creator-profile-next-form button {
  color: #fff;
  border-color: #39634d;
  background: #39634d;
}
.creator-profile-actions button:disabled { opacity: .45; cursor: not-allowed; }
.creator-profile-next-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
  border-top: 1px solid #edf1ed;
  padding: 14px 22px;
}
.creator-profile-next-form[hidden] { display: none; }
.creator-profile-feedback {
  border-top: 1px solid #edf1ed;
  padding: 14px 22px 18px;
}
.creator-profile-feedback > span { color: #62746a; font-size: 9px; font-weight: 700; }
.creator-profile-feedback > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.creator-profile-feedback button.selected { color: #fff; border-color: #568069; background: #568069; }
.creator-profile-feedback small { display: block; min-height: 13px; margin-top: 7px; color: #75867c; font-size: 8px; }

.fulfillment-view {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 28px clamp(20px, 4vw, 54px) 42px;
  background:
    radial-gradient(circle at 90% 0%, rgba(180, 207, 137, .2), transparent 28%),
    linear-gradient(180deg, #f8faf7, #eef3ef);
}
.fulfillment-header { align-items: flex-end; }
.fulfillment-shell {
  display: grid;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}
.fulfillment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 6px;
  border: 1px solid #dfe7df;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}
.fulfillment-tabs button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #6c7b73;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.fulfillment-tabs button.active {
  color: #fff;
  background: #315f49;
  box-shadow: 0 7px 18px rgba(38,88,64,.17);
}
.fulfillment-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(110px, 1fr)) auto;
  align-items: end;
  gap: 9px;
  padding: 15px;
  border: 1px solid #dfe7df;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 36px rgba(32,65,48,.06);
}
.fulfillment-filters label,
.fulfillment-actions label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.fulfillment-filters label > span,
.fulfillment-actions label > span {
  color: #6b7a72;
  font-size: 8px;
  font-weight: 700;
}
.fulfillment-filters input,
.fulfillment-filters select,
.fulfillment-actions input,
.fulfillment-actions select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d8e2d9;
  border-radius: 9px;
  padding: 8px 9px;
  outline: none;
  color: #294236;
  background: #fbfcfb;
  font: inherit;
  font-size: 9px;
}
.fulfillment-filters input:focus,
.fulfillment-filters select:focus,
.fulfillment-actions input:focus,
.fulfillment-actions select:focus {
  border-color: #78a48a;
  box-shadow: 0 0 0 3px rgba(76,126,96,.1);
}
.fulfillment-filter-actions {
  display: flex;
  gap: 6px;
}
.fulfillment-filter-actions button,
.fulfillment-retry {
  min-height: 36px;
  border: 1px solid #d5e0d6;
  border-radius: 9px;
  padding: 8px 11px;
  color: #466655;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-size: 9px;
}
.fulfillment-filter-actions button.primary {
  color: #fff;
  border-color: #315f49;
  background: #315f49;
}
.fulfillment-filters > .creator-profile-error { grid-column: 1 / -1; }
.fulfillment-result {
  min-height: 560px;
  border: 1px solid #dfe7df;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 50px rgba(32,65,48,.08);
  overflow: hidden;
}
.fulfillment-result > .creator-profile-empty,
.fulfillment-result > .creator-profile-loading { min-height: 560px; }
.fulfillment-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e6ece7;
  padding: 15px 19px;
  background: #f8faf8;
}
.fulfillment-result-head span,
.fulfillment-result-head strong,
.fulfillment-result-head time,
.fulfillment-result-head small { display: block; }
.fulfillment-result-head span,
.fulfillment-result-head time,
.fulfillment-result-head small { color: #87938c; font-size: 8px; }
.fulfillment-result-head strong { margin-top: 3px; color: #31503f; font-size: 11px; }
.fulfillment-result-head > div:last-child { text-align: right; }
.fulfillment-result-head small { margin-top: 3px; }
.fulfillment-answer {
  max-height: 340px;
  overflow: auto;
  border: 0;
  border-bottom: 1px solid #e8ede8;
  border-radius: 0;
  padding: 19px;
  background: #fff;
}
.fulfillment-object-panel { background: #fff; }
.fulfillment-object-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #f6f9f6;
}
.fulfillment-object-panel > header strong,
.fulfillment-object-panel > header small { display: block; }
.fulfillment-object-panel > header strong { color: #3e5549; font-size: 10px; }
.fulfillment-object-panel > header small { margin-top: 3px; color: #87928b; font-size: 8px; }
.fulfillment-object-panel > header button {
  border: 1px solid #d6e1d7;
  border-radius: 8px;
  padding: 6px 9px;
  color: #476554;
  background: #fff;
  cursor: pointer;
  font-size: 8px;
}
.fulfillment-object-list {
  display: grid;
  max-height: 370px;
  overflow: auto;
}
.fulfillment-object-row {
  display: grid;
  grid-template-columns: 26px minmax(160px, 1.5fr) minmax(90px, .6fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-top: 1px solid #edf1ed;
}
.fulfillment-object-row > label {
  display: grid;
  place-items: center;
}
.fulfillment-object-row input { accent-color: #397257; }
.fulfillment-object-row strong,
.fulfillment-object-row small { display: block; }
.fulfillment-object-row strong {
  overflow: hidden;
  color: #354b40;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fulfillment-object-row small { margin-top: 3px; color: #8a958f; font-size: 8px; }
.fulfillment-object-row > em {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 7px;
  color: #52715f;
  background: #edf4e9;
  font-size: 8px;
  font-style: normal;
}
.fulfillment-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.fulfillment-row-actions button {
  border: 1px solid #d9e3da;
  border-radius: 7px;
  padding: 5px 7px;
  color: #50705f;
  background: #fff;
  cursor: pointer;
  font-size: 8px;
}
.fulfillment-list-empty {
  padding: 34px 18px;
  color: #849088;
  text-align: center;
  font-size: 10px;
}
.fulfillment-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e8ede8;
  padding: 10px 15px;
  color: #75857c;
  background: #fafcfa;
  font-size: 8px;
}
.fulfillment-pagination button {
  border: 1px solid #d7e1d8;
  border-radius: 7px;
  padding: 5px 8px;
  color: #496a58;
  background: #fff;
  cursor: pointer;
  font-size: 8px;
}
.fulfillment-actions {
  display: grid;
  grid-template-columns: minmax(150px,.7fr) minmax(220px,1.5fr) auto;
  align-items: end;
  gap: 9px;
  border-top: 1px solid #e7ece7;
  padding: 14px 16px;
  background: #f7faf7;
}
.fulfillment-actions > button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  color: #fff;
  background: #315f49;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}
.fulfillment-retry { margin: 0 16px 16px; }
.hide-runtime-cards .runtime-explainer-card { display: none; }
.cli-maintenance {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dce6dc;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(191,210,118,.15), transparent 36%),
    linear-gradient(145deg, #fbfcf9, #f3f7f0);
}
.cli-maintenance > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cli-maintenance > header span,
.cli-maintenance > header strong { display: block; }
.cli-maintenance > header span {
  color: #87958c;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .14em;
}
.cli-maintenance > header strong {
  margin-top: 3px;
  color: #41564b;
  font-size: 10px;
}
.cli-maintenance > header i {
  border-radius: 99px;
  color: #3f745a;
  background: #e8f2e5;
  padding: 5px 7px;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}
.cli-maintenance > header i[data-phase="update_available"] {
  color: #8a682b;
  background: #f7efd9;
}
.cli-maintenance > header i[data-phase="failed"] {
  color: #97584e;
  background: #fff0ec;
}
.cli-maintenance > header i[data-phase="checking"],
.cli-maintenance > header i[data-phase="updating"] {
  color: #426a79;
  background: #e9f1f3;
}
.cli-version-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 11px;
}
.cli-version-row p {
  margin: 0;
  padding: 8px 9px;
  border: 1px solid #e0e7de;
  border-radius: 9px;
  background: rgba(255,255,255,.8);
}
.cli-version-row p span,
.cli-version-row p strong { display: block; }
.cli-version-row p span { color: #929d97; font-size: 7px; }
.cli-version-row p strong { margin-top: 3px; color: #42604f; font-size: 10px; }
.cli-version-row > b { color: #96a49b; font-size: 9px; }
.cli-update-message {
  margin: 8px 1px 0;
  color: #728079;
  font-size: 8px;
  line-height: 1.55;
}
.cli-auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e7de;
}
.cli-auto-row strong,
.cli-auto-row small { display: block; }
.cli-auto-row strong { color: #506158; font-size: 9px; }
.cli-auto-row small { margin-top: 3px; color: #8b9790; font-size: 7px; }
.switch { position: relative; flex: 0 0 auto; width: 32px; height: 18px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #cfd8d0;
  cursor: pointer;
  transition: .18s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(34,54,43,.18);
  transition: .18s;
}
.switch input:checked + span { background: #559171; }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.cli-update-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.cli-update-actions button,
.cli-update-dialog footer button {
  border: 1px solid #d9e3d9;
  border-radius: 9px;
  color: #426650;
  background: #fff;
  padding: 7px 8px;
  cursor: pointer;
  font-size: 8px;
}
.cli-update-actions button.primary,
.cli-update-dialog footer button.primary {
  border-color: #306b51;
  color: #fff;
  background: linear-gradient(135deg, #36795b, #286248);
}
.cli-admin-note {
  display: block;
  margin-top: 8px;
  color: #8a958f;
  font-size: 7px;
  line-height: 1.45;
}
.runtime-flow { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.runtime-flow li { display: flex; gap: 10px; align-items: center; }
.runtime-flow li > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #48745e; background: #edf4e9; font-size: 9px; }
.runtime-flow strong, .runtime-flow small { display: block; }
.runtime-flow strong { font-size: 11px; }
.runtime-flow small { color: #929b95; margin-top: 3px; font-size: 9px; }
.boundary-list { display: grid; gap: 9px; }
.boundary-list p { display: flex; align-items: center; gap: 9px; margin: 0; color: #66736c; font-size: 10px; }
.boundary-list i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; font-style: normal; font-size: 9px; }
.check { color: #397258; background: #e9f3e6; }
.pause { color: #9b7432; background: #f7eed9; }
.shop-card { padding: 17px 18px; }
.shop-card span, .shop-card strong, .shop-card small { display: block; }
.shop-card span { color: #8b948f; font-size: 9px; }
.shop-card strong { margin: 7px 0 5px; font-size: 12px; }
.shop-card small { color: #929b96; font-size: 9px; line-height: 1.45; }

.md-table { margin: 12px 0; border: 1px solid #e0e6de; border-radius: 11px; background: #fff; overflow: hidden; }
.table-scroll { width: 100%; overflow: auto; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.md-table th { color: #68766f; background: #f2f5f0; text-align: left; padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid #dfe5dd; }
.md-table td { padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid #edf0eb; }
.md-table td:not(:first-child), .md-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.table-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 10px; color: #7d8881; background: #fafbf8; font-size: 9px; }
.table-pager span { margin-right: auto; }
.table-pager select { border: 1px solid #dbe2da; border-radius: 6px; background: #fff; padding: 3px 5px; font-size: 9px; }
.table-pager button { width: 24px; height: 24px; border: 1px solid #dbe2da; border-radius: 6px; background: #fff; color: #49715d; cursor: pointer; }

.artifact-selectors { display: grid; gap: 8px; margin-top: 10px; }
.artifact-selector {
  overflow: hidden; border: 1px solid #dce5dc; border-radius: 12px;
  background: #fbfcfa;
}
.artifact-selector > summary {
  display: grid; grid-template-columns: auto auto auto minmax(0,1fr); gap: 8px;
  align-items: center; padding: 10px 12px; cursor: pointer; list-style: none;
}
.artifact-selector > summary::-webkit-details-marker { display: none; }
.artifact-selector > summary::before {
  content: "›"; color: #65806f; font-size: 12px; transition: transform .15s ease;
}
.artifact-selector[open] > summary::before { transform: rotate(90deg); }
.artifact-selector > summary span {
  border-radius: 99px; color: #4e705c; background: #eaf2e8;
  padding: 4px 7px; font-size: 8px; font-weight: 700;
}
.artifact-selector > summary strong { color: #405249; font-size: 10px; }
.artifact-selector > summary i {
  overflow: hidden; color: #849089; font-size: 8px; font-style: normal;
  text-align: right; text-overflow: ellipsis; white-space: nowrap;
}
.artifact-selector > summary i.expired { color: #9a6a45; }
.artifact-selector-body { border-top: 1px solid #e4e9e2; }
.artifact-selector-filter {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  background: #f5f8f3;
}
.artifact-selector-filter input,
.artifact-selector-action input {
  min-width: 0; flex: 1; border: 1px solid #d9e2d8; border-radius: 8px;
  color: #35483f; background: #fff; padding: 7px 9px; font-size: 9px;
  outline: none;
}
.artifact-selector-filter input:focus,
.artifact-selector-action input:focus {
  border-color: #90aa96; box-shadow: 0 0 0 2px rgba(80,119,92,.08);
}
.artifact-selector-filter span { color: #7f8a84; font-size: 8px; white-space: nowrap; }
.artifact-table-scroll { max-height: 360px; overflow: auto; background: #fff; }
.artifact-selector table { width: 100%; border-collapse: collapse; font-size: 9px; }
.artifact-selector th {
  position: sticky; top: 0; z-index: 1; color: #6d7972; background: #f1f5ef;
  padding: 7px 8px; border-bottom: 1px solid #dde5dc; text-align: left;
  white-space: nowrap;
}
.artifact-selector td {
  padding: 7px 8px; border-bottom: 1px solid #edf0eb; color: #526159;
  white-space: nowrap;
}
.artifact-selector tr[hidden] { display: none; }
.artifact-selector td strong,
.artifact-selector td small { display: block; }
.artifact-selector td strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.artifact-selector td small { margin-top: 2px; color: #8a958f; font-size: 8px; }
.artifact-selector td span {
  border-radius: 99px; color: #557361; background: #edf4e9;
  padding: 3px 6px; font-size: 8px;
}
.artifact-selector td code { color: #647269; font-size: 8px; }
.artifact-selector input[type="checkbox"] { accent-color: #397257; cursor: pointer; }
.artifact-selector-pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 7px;
  padding: 8px 10px; color: #7d8881; background: #fafbf8; font-size: 8px;
}
.artifact-selector-pager > span { margin-right: auto; }
.artifact-selector-pager select,
.artifact-selector-pager button {
  border: 1px solid #dbe2da; border-radius: 6px; color: #49715d;
  background: #fff; padding: 3px 5px; font-size: 8px;
}
.artifact-selector-pager button { width: 23px; height: 23px; cursor: pointer; }
.artifact-selector-pager button:disabled { opacity: .45; cursor: default; }
.artifact-selector-action {
  display: flex; gap: 8px; padding: 9px 10px;
  border-top: 1px solid #e5eae3; background: #f7faf5;
}
.artifact-selector-action button {
  flex: 0 0 auto; border: 1px solid #397257; border-radius: 8px;
  color: #fff; background: #397257; padding: 7px 10px;
  cursor: pointer; font-size: 9px;
}
.artifact-selector-action button b { margin-left: 4px; }
.artifact-selector-action button:disabled { opacity: .45; cursor: not-allowed; }

.fatal { max-width: 560px; margin: 18vh auto; padding: 28px; border: 1px solid #e1e6df; border-radius: 18px; background: #fff; }
.fatal h1 { font-size: 22px; }
.fatal p { color: var(--muted); line-height: 1.6; }

.auth-security-note {
  display: block;
  margin: -2px 0 14px;
  color: #77867e;
  font-size: 10px;
  line-height: 1.6;
}
.auth-card .auth-secondary-button {
  margin-top: 9px;
  border: 1px solid #d9e3db;
  color: #5f7268;
  background: #fff;
  box-shadow: none;
}

.member-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #dce4db;
  border-radius: 20px;
  color: var(--ink);
  background: #f8faf6;
  box-shadow: 0 30px 90px rgba(24,54,42,.24);
  overflow: auto;
}
.member-dialog::backdrop { background: rgba(12,31,24,.48); backdrop-filter: blur(4px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 21px 24px 17px; border-bottom: 1px solid #e1e7df; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.dialog-head span { color: #75907c; font-size: 8px; font-weight: 760; letter-spacing: .18em; }
.dialog-head h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.025em; }
.dialog-head button { width: 31px; height: 31px; border: 1px solid #dce3db; border-radius: 9px; color: #6f7a74; background: #fff; cursor: pointer; font-size: 18px; }
.dialog-intro { margin: 18px 24px 10px; color: #77827c; font-size: 10px; line-height: 1.6; }
.member-list { display: grid; gap: 8px; padding: 10px 24px 18px; }
.member-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #e0e6de; border-radius: 12px; background: #fff; }
.member-row > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #376f58; font-size: 10px; font-style: normal; }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: 11px; }
.member-row small { color: #8b958f; margin-top: 3px; font-size: 9px; }
.member-row > em { border-radius: 99px; color: #4c745f; background: #edf4e9; padding: 5px 8px; font-size: 8px; font-style: normal; }
.member-row.inactive { opacity: .66; background: #f7f8f5; }
.member-row-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.member-row-actions button,
.identity-actions button {
  border: 1px solid #dce4dc;
  border-radius: 8px;
  color: #557064;
  background: #fff;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 8px;
}
.member-row-actions button.danger,
.identity-actions button.danger {
  border-color: #ead9d5;
  color: #9a5b51;
  background: #fff8f6;
}
.member-security {
  margin: 0 24px 18px; overflow: hidden; border: 1px solid #dee5dc;
  border-radius: 15px; background: #fff;
}
.member-security > header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 13px 15px; border-bottom: 1px solid #e5eae3; background: #f7faf5;
}
.member-security > header span {
  color: #75907c; font-size: 7px; font-weight: 760; letter-spacing: .16em;
}
.member-security > header h3 { margin: 4px 0 0; font-size: 12px; }
.member-security > header small {
  max-width: 250px; color: #89928d; font-size: 8px; line-height: 1.45;
  text-align: right;
}
.member-security-events {
  display: grid; gap: 0; max-height: 280px; overflow: auto;
}
.member-security-event {
  display: grid; grid-template-columns: 27px minmax(0,1fr) auto;
  align-items: start; gap: 9px; padding: 10px 13px;
  border-bottom: 1px solid #edf0eb;
}
.member-security-event:last-child { border-bottom: 0; }
.member-security-event > i {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; color: #557361; background: #edf4e9;
  font-size: 8px; font-style: normal;
}
.member-security-event strong,
.member-security-event small,
.member-security-event span { display: block; }
.member-security-event strong { color: #43554c; font-size: 10px; }
.member-security-event small {
  margin-top: 3px; color: #6f7d75; font-size: 8px; line-height: 1.45;
}
.member-security-event span { margin-top: 4px; color: #969e99; font-size: 7px; }
.member-security-event > em {
  border-radius: 99px; color: #5c7366; background: #eef3ed;
  padding: 4px 6px; font-size: 7px; font-style: normal;
}
.member-security-event.warning > i,
.member-security-event.warning > em { color: #8a6546; background: #faf0e3; }
.member-security-event.error > i,
.member-security-event.error > em { color: #98584e; background: #faece9; }
.member-run-metric small { line-height: 1.55; }
.member-run-metric span { line-height: 1.5; }
.member-create { margin: 0 24px 18px; padding: 18px; border: 1px solid #dee5dc; border-radius: 15px; background: #fff; }
.member-create h3 { margin: 0 0 12px; font-size: 13px; }
.member-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.member-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; }
.member-form-actions small { color: #8a948e; font-size: 8px; line-height: 1.5; }
.member-form-actions button { flex: 0 0 auto; border: 0; border-radius: 9px; color: #fff; background: #2c6c51; padding: 9px 12px; cursor: pointer; font-size: 9px; }
.member-dialog > footer { display: flex; justify-content: flex-end; padding: 0 24px 22px; }
.member-dialog > footer button { border: 1px solid #e1d7d4; border-radius: 9px; color: #9a5b51; background: #fff8f6; padding: 8px 11px; cursor: pointer; font-size: 9px; }
.member-dialog > footer.member-dialog-footer {
  align-items: center;
  justify-content: space-between;
}
.member-dialog-footer > div { display: flex; gap: 7px; }
.member-dialog > footer button.neutral {
  border-color: #d9e3db;
  color: #527061;
  background: #fff;
}
.edge-registration-list {
  display: grid; gap: 8px; padding: 10px 24px 18px;
}
.edge-registration-row {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center; gap: 11px; padding: 12px;
  border: 1px solid #dfe5df; border-radius: 12px; background: #fff;
}
.edge-registration-row > i {
  width: 8px; height: 8px; border-radius: 50%; background: #afb5b1;
}
.edge-registration-row > i.online {
  background: #353a37; box-shadow: 0 0 0 4px rgba(53,58,55,.1);
}
.edge-registration-row > i.stale {
  background: #a88443; box-shadow: 0 0 0 4px rgba(168,132,67,.1);
}
.edge-registration-row > i.offline {
  background: #a35f55; box-shadow: 0 0 0 4px rgba(163,95,85,.1);
}
.edge-registration-row strong,
.edge-registration-row small { display: block; }
.edge-registration-row strong { font-size: 11px; }
.edge-registration-row small {
  margin-top: 4px; overflow: hidden; color: #818b85;
  font-size: 8px; text-overflow: ellipsis; white-space: nowrap;
}
.edge-registration-row small.edge-update-ready {
  color: #5b5140; font-weight: 700;
}
.edge-registration-row > div:last-child { display: flex; gap: 6px; }
.edge-registration-row button {
  border: 1px solid #dce4dc; border-radius: 8px; color: #557064;
  background: #fff; padding: 6px 8px; cursor: pointer; font-size: 8px;
}
.edge-registration-row button.danger {
  border-color: #ead9d5; color: #9a5b51; background: #fff8f6;
}
.edge-checkbox {
  display: flex !important; grid-template-columns: 16px 1fr;
  align-items: center; gap: 8px !important; color: #68746e !important;
}
.member-create .edge-checkbox input {
  width: 15px; height: 15px; margin: 0; padding: 0;
}
.identity-list { display: grid; gap: 8px; padding: 10px 24px 18px; }
.identity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dfe6de;
  border-radius: 13px;
  background: #fff;
}
.identity-row.default {
  border-color: #8faf9a;
  box-shadow: inset 3px 0 0 #397257;
}
.identity-row > i {
  border-radius: 8px;
  color: #4b735d;
  background: #edf4e9;
  padding: 6px 8px;
  font-size: 8px;
  font-style: normal;
}
.identity-row strong,
.identity-row small { display: block; }
.identity-row strong { font-size: 11px; }
.identity-row small { margin-top: 4px; color: #87928c; font-size: 9px; }
.identity-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.password-dialog { width: min(520px, calc(100vw - 32px)); }

.history-dialog {
  width: min(640px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid #dce4db;
  border-radius: 20px;
  color: var(--ink);
  background: #f7f9f5;
  box-shadow: 0 30px 90px rgba(24,54,42,.24);
  overflow: auto;
}
.history-dialog::backdrop { background: rgba(12,31,24,.48); backdrop-filter: blur(4px); }
.history-list { display: grid; gap: 8px; padding: 10px 20px 22px; transition: opacity .15s ease; }
.history-list.loading { opacity: .58; pointer-events: none; }
.history-row {
  width: 100%;
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px;
  align-items: center; padding: 13px 14px;
  border: 1px solid #dfe6dc; border-radius: 13px;
  color: #35483f; background: #fff;
  text-align: left; cursor: pointer; transition: .16s ease;
}
.history-row:hover { border-color: #b8cdbb; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45,76,59,.07); }
.history-row.active { border-color: #7fa58b; background: #f0f6ed; box-shadow: inset 3px 0 0 #397257; }
.history-row > span, .history-row strong, .history-row small { min-width: 0; display: block; }
.history-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.history-row small { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #849089; font-size: 9px; }
.history-row > em { display: grid; justify-items: end; gap: 6px; color: #88938d; font-size: 8px; font-style: normal; white-space: nowrap; }
.history-row > em b { border-radius: 99px; color: #4f745f; background: #edf4e9; padding: 4px 7px; font-size: 8px; font-weight: 650; }
.history-empty { margin: 8px 0; padding: 28px 18px; border: 1px dashed #d8e1d7; border-radius: 13px; color: #89938d; background: #fff; text-align: center; font-size: 10px; }
.history-empty.error { color: #9a5b51; border-color: #ead8d3; background: #fff8f6; }

.schedule-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid #dce4db;
  border-radius: 20px;
  color: var(--ink);
  background: #f7f9f5;
  box-shadow: 0 30px 90px rgba(24,54,42,.24);
  overflow: auto;
}
.schedule-dialog::backdrop { background: rgba(12,31,24,.48); backdrop-filter: blur(4px); }
.schedule-calendar-workbench {
  margin: 0 20px 16px; overflow: hidden;
  border: 1px solid #dce6db; border-radius: 15px; background: #fff;
}
.schedule-calendar-toolbar {
  display: grid; grid-template-columns: auto minmax(150px,1fr) auto; gap: 14px;
  align-items: center; padding: 13px 14px; border-bottom: 1px solid #e2e9e0;
  background: linear-gradient(145deg,#f0f6ed,#fbfcfa);
}
.schedule-calendar-toolbar > div:nth-child(2) { min-width: 0; text-align: center; }
.schedule-calendar-toolbar h3 { margin: 0; color: #344a3e; font-size: 15px; }
.schedule-calendar-toolbar small { display: block; margin-top: 3px; color: #7c8981; font-size: 8px; }
.schedule-month-navigation,
.schedule-dimension-tabs { display: flex; align-items: center; gap: 5px; }
.schedule-month-navigation button,
.schedule-dimension-tabs button {
  min-height: 30px; border: 1px solid #d8e2d8; border-radius: 8px;
  color: #486756; background: #fff; padding: 0 9px; cursor: pointer; font-size: 8px;
}
.schedule-month-navigation button:first-child,
.schedule-month-navigation button:last-child { width: 30px; padding: 0; font-size: 17px; }
.schedule-dimension-tabs {
  padding: 3px; border-radius: 10px; background: #e7eee5;
}
.schedule-dimension-tabs button { border-color: transparent; background: transparent; }
.schedule-dimension-tabs button.active {
  border-color: #d3dfd3; color: #315e48; background: #fff;
  box-shadow: 0 2px 7px rgba(40,70,54,.08);
}
.schedule-calendar-status {
  min-height: 26px; margin: 0; padding: 8px 14px 0; color: #76837c;
  font-size: 8px; text-align: right;
}
.schedule-calendar-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 12px;
  align-items: start; padding: 8px 14px 14px;
}
.schedule-month-grid {
  display: grid; grid-template-columns: repeat(7,minmax(0,1fr));
  border: 1px solid #e0e7de; border-radius: 11px; overflow: hidden;
}
.schedule-month-grid > .history-empty { grid-column: 1 / -1; margin: 0; border: 0; border-radius: 0; }
.schedule-weekday {
  padding: 7px 4px; border-bottom: 1px solid #e1e8df;
  color: #7f8d85; background: #f6f8f4; font-size: 7px; text-align: center;
}
.schedule-calendar-day {
  min-width: 0; min-height: 99px; padding: 5px;
  border-right: 1px solid #e7ece5; border-bottom: 1px solid #e7ece5;
  background: #fff;
}
.schedule-calendar-day:nth-of-type(7n) { border-right: 0; }
.schedule-calendar-day.outside { background: #fafbf9; }
.schedule-calendar-day.selected { box-shadow: inset 0 0 0 2px #86aa90; }
.schedule-day-number {
  display: grid; place-items: center; width: 23px; height: 23px;
  border: 0; border-radius: 50%; color: #53655b; background: transparent;
  padding: 0; cursor: pointer; font-size: 8px;
}
.schedule-calendar-day.outside .schedule-day-number { color: #adb5b0; }
.schedule-calendar-day.today .schedule-day-number { color: #fff; background: #397257; font-weight: 700; }
.schedule-day-events { display: grid; gap: 3px; margin-top: 3px; }
.schedule-calendar-event,
.schedule-more {
  min-width: 0; width: 100%; border: 1px solid #dbe7dc; border-radius: 5px;
  color: #456251; background: #f0f6ed; padding: 3px 4px; cursor: pointer;
  font-size: 6px; text-align: left;
}
.schedule-calendar-event {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 4px;
}
.schedule-calendar-event time { font-variant-numeric: tabular-nums; }
.schedule-calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-calendar-event i {
  grid-column: 1 / -1; color: #668071; font-size: 6px; font-style: normal;
}
.schedule-calendar-event.run-submitted { border-color: #e8d5a7; color: #7f642e; background: #fff8e8; }
.schedule-calendar-event.run-failed,
.schedule-calendar-event.run-uncertain { border-color: #ead4cf; color: #93584f; background: #fff7f5; }
.schedule-calendar-event.run-completed { border-color: #cbe0cf; color: #35634a; background: #edf7ef; }
.schedule-calendar-event.planned-paused,
.schedule-calendar-event.planned-cancelled { color: #747f79; background: #f1f3f1; }
.schedule-more { border-style: dashed; color: #64786c; background: #fff; text-align: center; }
.schedule-agenda {
  display: grid; gap: 8px; max-height: 620px; overflow: auto;
}
.schedule-agenda > section {
  border: 1px solid #e0e8de; border-radius: 10px; background: #fafcf9; padding: 9px;
}
.schedule-agenda > section.selected { border-color: #a8c3ae; background: #f3f8f1; }
.schedule-agenda section > header {
  display: flex; justify-content: space-between; gap: 8px; color: #50665a; font-size: 8px;
}
.schedule-agenda section > header span { color: #8a958f; }
.schedule-agenda section > div { display: grid; gap: 5px; margin-top: 8px; }
.schedule-agenda section > p { margin: 8px 0 0; color: #8a958f; font-size: 8px; }
.schedule-agenda-event {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px;
  align-items: start; width: 100%; border: 1px solid #e0e8de; border-radius: 8px;
  color: #4d6257; background: #fff; padding: 8px; cursor: pointer; text-align: left;
}
.schedule-agenda-event time { color: #397257; font-size: 8px; font-variant-numeric: tabular-nums; }
.schedule-agenda-event strong,
.schedule-agenda-event small { display: block; min-width: 0; }
.schedule-agenda-event strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-agenda-event small { margin-top: 3px; color: #7d8982; font-size: 7px; line-height: 1.4; }
.schedule-agenda-event i {
  border-radius: 99px; color: #587363; background: #edf4e9;
  padding: 3px 5px; font-size: 6px; font-style: normal;
}
.schedule-occurrence-detail { padding: 0 14px 14px; }
.schedule-occurrence-detail > p {
  margin: 0; border: 1px dashed #dbe4d9; border-radius: 10px;
  color: #87928c; background: #fafcf9; padding: 12px; font-size: 8px; text-align: center;
}
.schedule-occurrence-detail article {
  border: 1px solid #dbe5da; border-radius: 11px; background: #f8fbf7; padding: 12px;
}
.schedule-occurrence-detail header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.schedule-occurrence-detail header span { color: #75907f; font-size: 7px; letter-spacing: .06em; }
.schedule-occurrence-detail h4 { margin: 4px 0 0; color: #344a3e; font-size: 12px; }
.schedule-occurrence-detail header b {
  border-radius: 99px; color: #426651; background: #eaf3e8;
  padding: 5px 8px; font-size: 7px; white-space: nowrap;
}
.schedule-occurrence-detail dl {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: 11px 0 0;
}
.schedule-occurrence-detail dl div { min-width: 0; border-radius: 8px; background: #fff; padding: 8px; }
.schedule-occurrence-detail dt { color: #8a958f; font-size: 7px; }
.schedule-occurrence-detail dd {
  margin: 4px 0 0; overflow: hidden; color: #4b5e54;
  font-size: 8px; line-height: 1.45; text-overflow: ellipsis;
}
.schedule-occurrence-detail article > p,
.schedule-occurrence-detail article > small { display: block; margin: 9px 0 0; color: #718078; font-size: 8px; }
.schedule-occurrence-detail article > p.failure { color: #9a5b51; }
.schedule-occurrence-detail article > button {
  display: block; margin: 10px 0 0 auto; border: 1px solid #d1dfd2; border-radius: 8px;
  color: #3f654f; background: #fff; padding: 7px 9px; cursor: pointer; font-size: 8px;
}
.schedule-management { border-top: 1px solid #e0e7de; }
.schedule-management > summary {
  margin: 0 20px; padding: 12px 0; color: #52675b; cursor: pointer;
  font-size: 9px; font-weight: 650;
}
.schedule-filters {
  display: grid; grid-template-columns: minmax(190px,1.5fr) repeat(4,minmax(120px,1fr)) auto;
  gap: 9px; align-items: end; padding: 12px 20px;
  border-top: 1px solid #e1e8df; border-bottom: 1px solid #e1e8df;
  background: rgba(255,255,255,.72);
}
.schedule-filters label { display: grid; gap: 5px; min-width: 0; }
.schedule-filters label > span { color: #77857d; font-size: 8px; }
.schedule-filters input,
.schedule-filters select {
  min-width: 0; height: 34px; border: 1px solid #d7e1d7; border-radius: 8px;
  color: #405249; background: #fff; padding: 0 9px; font-size: 9px;
}
.schedule-filter-actions { display: flex; gap: 6px; }
.schedule-filter-actions button,
.schedule-pagination button {
  height: 34px; border: 1px solid #d7e1d7; border-radius: 8px;
  color: #486756; background: #fff; padding: 0 10px; cursor: pointer; font-size: 8px;
}
.schedule-filter-actions button.primary { color: #fff; border-color: #397257; background: #397257; }
.schedule-trends {
  margin: 14px 20px 4px; padding: 14px; border: 1px solid #dce6db;
  border-radius: 14px; background: linear-gradient(145deg,#f0f6ed,#fbfcfa);
}
.schedule-trends > header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.schedule-trends > header span { color: #729078; font-size: 7px; letter-spacing: .08em; }
.schedule-trends > header h3 { margin: 3px 0 0; color: #354a3e; font-size: 12px; }
.schedule-trends > header > small {
  max-width: 55%; color: #718078; font-size: 8px; line-height: 1.5; text-align: right;
}
.schedule-trend-loading { margin: 0; color: #7d8982; font-size: 9px; text-align: center; }
.schedule-trend-cards {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 12px;
}
.schedule-trend-cards article {
  padding: 10px 11px; border: 1px solid #e0e9de; border-radius: 10px; background: rgba(255,255,255,.82);
}
.schedule-trend-cards span,
.schedule-trend-cards small { display: block; color: #7b8981; font-size: 8px; }
.schedule-trend-cards strong { display: block; margin: 5px 0 3px; color: #315e48; font-size: 17px; }
.schedule-trend-detail {
  display: grid; grid-template-columns: minmax(240px,.8fr) minmax(300px,1.2fr);
  gap: 12px; margin-top: 12px;
}
.schedule-trend-bars {
  display: flex; align-items: end; gap: 5px; height: 98px; padding: 9px 9px 5px;
  border: 1px solid #e1e9df; border-radius: 10px; background: #fff;
}
.schedule-trend-bars > span {
  display: grid; grid-template-rows: minmax(0,1fr) auto; justify-items: center;
  flex: 1; height: 100%; min-width: 0;
}
.schedule-trend-bars i {
  align-self: end; width: min(18px,70%); min-height: 6px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#78a389,#397257);
}
.schedule-trend-bars b { margin-top: 4px; color: #859088; font-size: 6px; font-weight: 500; }
.schedule-trend-bars p,
.schedule-trend-runs p { margin: auto; color: #89958e; font-size: 8px; }
.schedule-trend-runs { display: grid; gap: 5px; }
.schedule-trend-runs button {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px;
  align-items: center; width: 100%; border: 1px solid #e0e8de; border-radius: 8px;
  color: #52665b; background: #fff; padding: 7px 9px; cursor: pointer; text-align: left;
}
.schedule-trend-runs button span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-trend-runs button b { color: #456f58; font-size: 7px; font-weight: 600; }
.schedule-trend-runs button small { color: #87928c; font-size: 7px; }
.schedule-bulk-toolbar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin: 10px 20px 0; padding: 9px 11px;
  border: 1px solid #cadcca; border-radius: 10px; background: rgba(244,249,242,.96);
  box-shadow: 0 8px 22px rgba(43,78,58,.08);
}
.schedule-bulk-toolbar[hidden] { display: none; }
.schedule-bulk-toolbar > span { color: #52665b; font-size: 9px; }
.schedule-bulk-toolbar > div { display: flex; gap: 6px; }
.schedule-bulk-toolbar button,
.schedule-run-actions button {
  border: 1px solid #d3e0d4; border-radius: 7px; color: #426651;
  background: #fff; padding: 6px 9px; cursor: pointer; font-size: 8px;
}
.schedule-bulk-toolbar button.danger { color: #98574f; border-color: #e7d4d0; }
.schedule-bulk-toolbar button:disabled { opacity: .55; cursor: wait; }
.schedule-list { display: grid; gap: 10px; padding: 10px 20px 22px; }
.schedule-row {
  padding: 15px;
  border: 1px solid #dfe6dc; border-radius: 14px;
  background: #fff;
}
.schedule-row > header {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: flex-start; gap: 10px;
}
.schedule-row > header div { min-width: 0; }
.schedule-select { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; }
.schedule-select input { width: 14px; height: 14px; accent-color: #397257; cursor: pointer; }
.schedule-select-spacer { width: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.schedule-row > header span {
  display: inline-block; margin-bottom: 6px; border-radius: 99px;
  color: #557361; background: #edf4e9; padding: 4px 7px;
  font-size: 8px;
}
.schedule-row > header strong {
  display: block; overflow: hidden; color: #34473d;
  font-size: 13px; text-overflow: ellipsis; white-space: nowrap;
}
.schedule-row > header i {
  border-radius: 99px; color: #397257; background: #edf5ee;
  padding: 5px 8px; font-size: 8px; font-style: normal; white-space: nowrap;
}
.schedule-row.paused > header i { color: #8a6c32; background: #faf1dc; }
.schedule-row.cancelled > header i,
.schedule-row.completed > header i { color: #77827c; background: #edf0ed; }
.schedule-row > p {
  margin: 11px 0; color: #627068; font-size: 10px; line-height: 1.65;
}
.schedule-row dl {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px;
  margin: 0;
}
.schedule-row dl div {
  min-width: 0; padding: 9px; border-radius: 9px; background: #f6f8f4;
}
.schedule-row dt { color: #8a958f; font-size: 8px; }
.schedule-row dd {
  margin: 4px 0 0; overflow: hidden; color: #44574d;
  font-size: 9px; line-height: 1.45; text-overflow: ellipsis;
}
.schedule-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px;
  margin-top: 12px;
}
.schedule-actions button,
.created-schedule-card button {
  border: 1px solid #d9e3da; border-radius: 8px; color: #466957;
  background: #f8faf7; padding: 6px 9px; cursor: pointer; font-size: 8px;
}
.schedule-actions button.danger { color: #9a5b51; border-color: #eadbd7; background: #fff9f7; }
.schedule-actions button:disabled { opacity: .55; cursor: wait; }
.schedule-runs {
  display: grid; gap: 7px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #e4eae2;
}
.schedule-runs > p { margin: 0; color: #8a958f; font-size: 9px; text-align: center; }
.schedule-run {
  border: 1px solid #e2e8e0; border-radius: 9px; background: #fafcf9;
  padding: 8px 9px;
}
.schedule-run summary {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px;
  align-items: center; color: #53665c; cursor: pointer; font-size: 8px;
}
.schedule-run summary b { font-size: 8px; font-weight: 600; }
.schedule-run p.failure { margin: 9px 0 0; color: #9a5b51; font-size: 9px; }
.schedule-run pre {
  max-height: 280px; margin: 9px 0 0; overflow: auto; white-space: pre-wrap;
  border-radius: 8px; color: #42534a; background: #f1f5ef;
  padding: 10px; font: 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.schedule-run > small { display: block; margin-top: 7px; color: #7d8a83; font-size: 8px; }
.schedule-run-jobs { display: grid; gap: 6px; margin-top: 9px; }
.schedule-run-jobs p {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 9px;
  margin: 0; border-radius: 7px; background: #f1f5ef; padding: 7px 8px;
  color: #65746c; font-size: 8px;
}
.schedule-run-jobs strong { color: #42534a; }
.schedule-run-jobs small { grid-column: 1 / -1; }
.schedule-run-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.schedule-pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 20px 20px; color: #76837c; font-size: 8px;
}
.schedule-pagination button:disabled { opacity: .45; cursor: default; }

.created-schedule-card {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px;
  align-items: center; margin-top: 9px; padding: 10px 11px;
  border: 1px solid #dce7dc; border-radius: 11px; background: #f4f8f2;
}

.schedule-conflict-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d9b879;
  border-radius: 12px;
  background: #fff9ec;
}

.schedule-conflict-card > span {
  color: #8a5a00;
  font-weight: 700;
}

.schedule-conflict-card strong,
.schedule-conflict-card small {
  display: block;
}

.schedule-conflict-card small {
  margin-top: 3px;
  color: #6e6250;
}
.created-schedule-card > span {
  border-radius: 99px; color: #557361; background: #e7f0e5;
  padding: 5px 7px; font-size: 8px;
}
.created-schedule-card strong,
.created-schedule-card small { display: block; }
.created-schedule-card strong { color: #3b4d43; font-size: 10px; }
.created-schedule-card small { margin-top: 3px; color: #7e8a83; font-size: 8px; }

.notification-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid #dce4db;
  border-radius: 20px;
  color: var(--ink);
  background: #f7f9f5;
  box-shadow: 0 30px 90px rgba(24,54,42,.24);
  overflow: auto;
}
.notification-dialog::backdrop { background: rgba(12,31,24,.48); backdrop-filter: blur(4px); }
.notification-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px 10px;
}
.notification-toolbar > div {
  display: flex; gap: 5px; padding: 3px; border-radius: 9px; background: #e9eee7;
}
.notification-toolbar button {
  border: 1px solid transparent; border-radius: 7px; color: #65736c;
  background: transparent; padding: 6px 9px; cursor: pointer; font-size: 9px;
}
.notification-toolbar > div button.active {
  border-color: #d8e1d7; color: #38634e; background: #fff;
  box-shadow: 0 2px 7px rgba(40,70,54,.08);
}
.notification-toolbar > button {
  border-color: #d9e3da; color: #466957; background: #fff;
}
.notification-list { display: grid; gap: 8px; padding: 0 20px 22px; }
.notification-row {
  display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 11px;
  align-items: start; padding: 13px 14px;
  border: 1px solid #dfe6dc; border-radius: 13px; background: #fff;
}
.notification-row.unread {
  border-color: #a9c3ae;
  box-shadow: inset 3px 0 0 #397257;
}
.notification-row > i {
  width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #8c9891;
}
.notification-row.success > i { background: #4f8b67; }
.notification-row.warning > i { background: #c2933e; }
.notification-row.error > i { background: #ba6557; }
.notification-row header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 5px;
}
.notification-row header span {
  color: #56705f; font-size: 8px; font-weight: 700; letter-spacing: .05em;
}
.notification-row header time { color: #929c96; font-size: 8px; }
.notification-row strong {
  display: block; color: #35483f; font-size: 11px; line-height: 1.45;
}
.notification-row p {
  margin: 5px 0 0; color: #6d7972; font-size: 9px; line-height: 1.6;
}
.notification-row aside {
  display: flex; flex-direction: column; align-items: stretch; gap: 5px;
}
.notification-row aside button {
  white-space: nowrap; border: 1px solid #d9e3da; border-radius: 7px;
  color: #466957; background: #f8faf7; padding: 5px 7px;
  cursor: pointer; font-size: 8px;
}
.notification-row aside button:disabled { opacity: .55; cursor: wait; }

.memory-status-grid { display: grid; gap: 8px; }
.memory-status-grid p {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 8px 9px;
  border: 1px solid #e5ebe3; border-radius: 9px;
  background: #fafcf8;
}
.memory-status-grid span { color: #7b8881; font-size: 9px; }
.memory-status-grid strong { max-width: 145px; overflow: hidden; color: #496a58; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.edge-status-copy { display: grid; gap: 4px; }
.edge-status-copy strong { color: #303733; font-size: 11px; }
.edge-status-copy small { color: #7b8580; font-size: 9px; line-height: 1.55; }
.edge-capabilities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.edge-capabilities span {
  padding: 5px 8px; border: 1px solid #dfe5df; border-radius: 8px;
  color: #4f5a54; background: #f8faf8; font-size: 8px;
}
.edge-status-card.offline .online-dot { background: #a5aaa7; box-shadow: none; }
.edge-status-card.offline .edge-status-copy strong { color: #6f7471; }

.memory-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid #dce4db;
  border-radius: 20px;
  color: var(--ink);
  background: #f7f9f5;
  box-shadow: 0 30px 90px rgba(24,54,42,.24);
  overflow: auto;
}
.memory-dialog::backdrop { background: rgba(12,31,24,.48); backdrop-filter: blur(4px); }
.memory-create {
  display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 9px;
  margin: 8px 20px 12px; padding: 13px;
  border: 1px solid #dde6dc; border-radius: 13px;
  background: #fff;
}
.memory-create select, .memory-create input {
  min-width: 0; border: 1px solid #dbe3da; border-radius: 9px;
  outline: 0; color: #34473d; background: #fafbf8;
  padding: 9px 10px; font-size: 10px;
}
.memory-create input:focus { border-color: #83a28d; box-shadow: 0 0 0 3px rgba(83,129,101,.08); }
.memory-create button {
  border: 0; border-radius: 9px; color: #fff; background: #2c6c51;
  padding: 9px 13px; cursor: pointer; font-size: 9px;
}
.memory-dialog > .form-error { margin: 0 20px 10px !important; }
.memory-list { display: grid; gap: 8px; padding: 2px 20px 22px; }
.memory-row {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px;
  align-items: center; padding: 12px 13px;
  border: 1px solid #dfe6dc; border-radius: 12px; background: #fff;
}
.memory-row > i {
  border-radius: 99px; color: #557361; background: #edf4e9;
  padding: 5px 8px; font-size: 8px; font-style: normal; white-space: nowrap;
}
.memory-row strong, .memory-row small { display: block; }
.memory-row strong { color: #3b4d43; font-size: 11px; line-height: 1.55; }
.memory-row small { margin-top: 4px; color: #8b958f; font-size: 8px; }
.memory-row button {
  border: 1px solid #eadbd7; border-radius: 8px; color: #9a5b51;
  background: #fff9f7; padding: 6px 8px; cursor: pointer; font-size: 8px;
}
.memory-actions { display: flex; gap: 5px; align-items: center; }
.memory-row button.approve {
  border-color: #cddbd2; color: #355c46; background: #f3f8f4;
}
.memory-row.status-pending { border-style: dashed; background: #fffdfa; }
.memory-row.status-rejected { opacity: .68; }
.memory-status { font-weight: 700; color: #6d786f; }
.run-list { display: grid; gap: 9px; padding: 2px 20px 22px; }
.review-section-label {
  margin: 14px 2px 2px;
  color: #737a76;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.runtime-release-current {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e0e3e1;
  border-radius: 10px;
  background: #f8f9f8;
}
.runtime-release-current span,
.runtime-release-current small {
  color: #858b88;
  font-size: 8px;
}
.runtime-release-current strong {
  color: #343937;
  font-size: 11px;
}
.runtime-quality-current {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #e0e3e1;
  border-radius: 10px;
  background: #fff;
}
.runtime-quality-current > div,
.runtime-quality-current p { margin: 0; min-width: 0; }
.runtime-quality-current span,
.runtime-quality-current small {
  display: block;
  color: #858b88;
  font-size: 8px;
}
.runtime-quality-current > div span {
  color: #4f5753;
  font-size: 9px;
  font-weight: 800;
}
.runtime-quality-current > div span[data-status="healthy"] { color: #496555; }
.runtime-quality-current > div span[data-status="tripped"] { color: #9a554d; }
.runtime-quality-current strong {
  display: block;
  margin-top: 2px;
  color: #343937;
  font-size: 9px;
}
.runtime-gate-toggle { margin-top: 9px; }
.runtime-gate-settings { margin-bottom: 0; }
.run-row {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px;
  align-items: center; padding: 13px; border: 1px solid #dfe4df;
  border-radius: 12px; background: #fff;
}
.run-row > i {
  border-radius: 999px; padding: 5px 8px; font-size: 8px;
  font-style: normal; color: #59635d; background: #f0f2f0;
}
.run-row strong, .run-row small { display: block; }
.run-row strong { color: #38423c; font-size: 11px; line-height: 1.5; }
.run-row small { margin-top: 4px; color: #858d88; font-size: 8px; }
.run-actions { display: flex; gap: 5px; }
.run-actions button {
  border: 1px solid #d9dfda; border-radius: 8px; background: #fafbfa;
  color: #4b554f; padding: 6px 8px; cursor: pointer; font-size: 8px;
}
.run-actions button.danger { color: #925b55; border-color: #eadbd7; background: #fff9f7; }

.cli-update-dialog {
  width: min(500px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  border: 1px solid #d9e2d8;
  border-radius: 19px;
  color: var(--ink);
  background: #fff;
  padding: 0;
  box-shadow: 0 28px 90px rgba(18,46,35,.24);
}
.cli-update-dialog::backdrop {
  background: rgba(12,31,24,.48);
  backdrop-filter: blur(4px);
}
.cli-update-confirm { padding: 20px 24px 10px; }
.cli-update-confirm > p {
  margin: 0;
  color: #66756d;
  font-size: 11px;
  line-height: 1.7;
}
.cli-update-confirm > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}
.cli-update-confirm > div span {
  padding: 11px 12px;
  border: 1px solid #dfe7dd;
  border-radius: 11px;
  color: #3e5b4b;
  background: #f7faf5;
  font-size: 10px;
  text-align: center;
}
.cli-update-confirm > div b { color: #8a9b91; font-size: 11px; }
.cli-update-confirm > small {
  display: block;
  color: #8a958e;
  font-size: 9px;
  line-height: 1.55;
}
.cli-update-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 24px 22px;
}
.cli-update-dialog > footer button { padding: 9px 13px; font-size: 9px; }
.agent-maintenance { margin-top: 12px; }
.agent-channel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.agent-channel-row > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #687a70; font-size: 9px; }
.agent-channel-row select { border: 1px solid #d9e3da; border-radius: 8px; padding: 6px 8px; color: #315342; background: #fff; font-size: 9px; }
.agent-channel-row .switch-row { justify-content: flex-end; }

.quick-input-dialog {
  width: min(520px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid #dfe7df;
  border-radius: 18px;
  color: #20342b;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 41, 29, .2);
}
.quick-input-dialog::backdrop {
  background: rgba(12,31,24,.48);
  backdrop-filter: blur(4px);
}
.quick-input-dialog form { padding: 20px 24px 22px; }
.quick-input-dialog label { display: grid; gap: 8px; }
.quick-input-dialog label > span {
  color: #66766d;
  font-size: 10px;
  font-weight: 700;
}
.quick-input-dialog input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9e3da;
  border-radius: 12px;
  padding: 13px 14px;
  color: #20342b;
  background: #f9fbf9;
  outline: none;
  font: inherit;
  font-size: 14px;
}
.quick-input-dialog input:focus {
  border-color: #72a087;
  box-shadow: 0 0 0 3px rgba(65,126,95,.11);
}
.quick-input-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.quick-input-chips button {
  border: 1px solid #dbe5dc;
  border-radius: 999px;
  padding: 7px 10px;
  color: #567063;
  background: #f7faf7;
  cursor: pointer;
  font-size: 10px;
}
.quick-input-dialog form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.quick-input-dialog form > footer small {
  color: #89958e;
  font-size: 9px;
  line-height: 1.5;
}
.quick-input-dialog form > footer button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  color: #fff;
  background: #2c6c51;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.workspace-config-dialog,
.agent-update-dialog {
  width: min(860px, calc(100vw - 28px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid #dfe7df;
  border-radius: 18px;
  color: #20342b;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 41, 29, .2);
}
.agent-update-dialog { width: min(570px, calc(100vw - 28px)); }
.workspace-config-dialog::backdrop,
.agent-update-dialog::backdrop { background: rgba(12,31,24,.48); backdrop-filter: blur(4px); }
.workspace-config-dialog form { padding: 10px 24px 24px; }
.workspace-preferences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid #e1e8e1; border-radius: 13px; background: #f8faf8; }
.workspace-preferences label { display: grid; gap: 6px; color: #6c7a73; font-size: 9px; }
.workspace-preferences select { min-width: 0; border: 1px solid #d8e2d9; border-radius: 8px; padding: 8px; color: #29493a; background: #fff; font-size: 10px; }
.workspace-preferences .workspace-toggle { display: flex; align-items: center; padding-top: 18px; }
.workspace-action-editor { display: grid; gap: 16px; max-height: 50vh; overflow: auto; margin-top: 16px; padding-right: 5px; }
.workspace-editor-group > header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.workspace-editor-group > header i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #fff; background: #4d7963; font-style: normal; font-size: 9px; }
.workspace-editor-group > header strong { font-size: 11px; }
.workspace-editor-row { display: grid; grid-template-columns: 28px minmax(110px, .8fr) minmax(240px, 2fr) 58px; gap: 8px; align-items: center; padding: 8px; border-top: 1px solid #edf1ed; }
.workspace-editor-row input[type="text"],
.workspace-editor-row textarea,
.workspace-editor-row input[type="number"] { width: 100%; box-sizing: border-box; border: 1px solid #dbe4dc; border-radius: 8px; padding: 8px; color: #263c31; background: #fff; font: inherit; font-size: 10px; }
.workspace-editor-row textarea { min-height: 56px; resize: vertical; line-height: 1.45; }
.workspace-config-dialog form > footer,
.agent-update-dialog > footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.agent-update-dialog > footer { padding: 0 24px 22px; }
.workspace-config-dialog form > footer button,
.agent-update-dialog > footer button { border: 1px solid #dce4dd; border-radius: 9px; padding: 9px 13px; color: #5f6f66; background: #fff; cursor: pointer; font-size: 9px; }
.workspace-config-dialog form > footer button.primary,
.agent-update-dialog > footer button.primary { border-color: #2c6c51; color: #fff; background: #2c6c51; }
.memory-governance-settings {
  margin: 0 24px 24px;
  border: 1px solid #dfe7df;
  border-radius: 14px;
  background: #f8faf8;
  overflow: hidden;
}
.memory-governance-settings > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e9e3;
}
.memory-governance-settings > header span,
.memory-governance-settings > header small {
  color: #7c8981;
  font-size: 8px;
}
.memory-governance-settings > header h3 {
  margin: 3px 0 0;
  font-size: 12px;
}
.memory-governance-settings > header > small {
  align-self: center;
  text-align: right;
}
.memory-governance-settings form { padding: 0 16px 16px; }
.memory-policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e7ece7;
}
.memory-policy-row > span:first-child { min-width: 0; }
.memory-policy-row strong,
.memory-policy-row small { display: block; }
.memory-policy-row strong { color: #334a3e; font-size: 10px; }
.memory-policy-row small {
  margin-top: 4px;
  color: #7e8b84;
  font-size: 8px;
  line-height: 1.5;
}
.memory-governance-settings form > footer {
  align-items: center;
}
.memory-governance-settings form > footer > small {
  color: #7e8b84;
  font-size: 8px;
  line-height: 1.5;
}

dialog[open] {
  transform-origin: 50% 42%;
  animation: dialog-enter .16s cubic-bezier(.2,.72,.3,1) both;
}
dialog[open]::backdrop {
  animation: backdrop-enter .14s ease-out both;
}
dialog[open].is-closing {
  pointer-events: none;
  animation: dialog-exit .13s ease-in both;
}
dialog[open].is-closing::backdrop {
  animation: backdrop-exit .13s ease-in both;
}

dialog button,
.starter-grid button,
.quick-actions button,
.quick-action-tabs button,
.agent-meta button,
.member-menu-button {
  transition:
    transform .14s ease,
    border-color .14s ease,
    background-color .14s ease,
    color .14s ease,
    box-shadow .14s ease,
    opacity .14s ease;
}
dialog button:active,
.starter-grid button:active,
.quick-actions button:active,
.quick-action-tabs button:active,
.agent-meta button:active,
.member-menu-button:active {
  transform: translateY(0) scale(.985);
}
dialog button:focus-visible,
.starter-grid button:focus-visible,
.quick-actions button:focus-visible,
.quick-action-tabs button:focus-visible,
.agent-meta button:focus-visible,
.member-menu-button:focus-visible {
  outline: 2px solid rgba(55,111,88,.32);
  outline-offset: 2px;
}

@media (hover: hover) {
  dialog button:not(:disabled):hover,
  .starter-grid button:not(:disabled):hover,
  .quick-actions button:not(:disabled):hover,
  .quick-action-tabs button:not(:disabled):hover,
  .agent-meta button:not(:disabled):hover,
  .member-menu-button:not(:disabled):hover {
    transform: translateY(-1px);
  }
}

@keyframes jump { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dialog-exit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(5px) scale(.99); }
}
@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes backdrop-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes select-menu-enter {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1100px) {
  .sidebar { flex-basis: 78px; width: 78px; padding-inline: 10px; }
  .brand { padding-inline: 9px; }
  .brand > div, .sidebar nav button:not(.active), .sidebar nav button.active:not(:first-child), .sidebar nav button { font-size: 0; }
  .sidebar nav button { justify-content: center; }
  .sidebar nav button > span { font-size: 18px; }
  .sidebar nav button i, .sidebar nav button em, .sidebar-note div { display: none; }
  .sidebar-note { justify-content: center; }
  .chat-panel { min-width: 500px; }
  .context-panel { min-width: 250px; }
}

@media (max-width: 820px) {
  .auth-gate { grid-template-columns: 1fr; }
  .auth-visual { min-height: auto; padding: 25px 22px; }
  .auth-copy { display: none; }
  .auth-form-panel { padding: 22px 14px; }
  .auth-card { padding: 25px 20px; }
  .workspace-preferences { grid-template-columns: 1fr 1fr; }
  .memory-governance-settings { margin: 0 14px 18px; }
  .memory-governance-settings > header,
  .memory-policy-row { align-items: flex-start; }
  .workspace-editor-row { grid-template-columns: 26px 1fr 54px; }
  .workspace-editor-row textarea { grid-column: 2 / -1; }
  body { overflow: auto; }
  #app { min-height: 100%; height: auto; }
  .sidebar { display: none; }
  .workspace { min-height: 100vh; }
  .topbar { position: sticky; top: 0; z-index: 20; padding: 10px 13px; height: auto; flex-wrap: wrap; }
  .breadcrumb { display: none; }
  .shop-picker { width: 100%; }
  .shop-picker { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .device-picker { min-width: 0; }
  .shop-picker label, .live-badge { display: none; }
  .shop-picker .hy-select,
  .device-picker .hy-select { width: 100%; min-width: 0; max-width: none; }
  .hy-select-trigger,
  .hy-select-menu { display: none !important; }
  .native-select-control {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 9px 30px 9px 10px !important;
    border: 1px solid #dce3db !important;
    border-radius: 10px;
    opacity: 1;
    pointer-events: auto;
    color: var(--ink);
    background: #f8faf7;
  }
  .member-menu-button { position: fixed; right: 14px; bottom: 14px; z-index: 40; border-radius: 12px; box-shadow: 0 9px 25px rgba(29,67,52,.2); }
  .member-menu-button b { display: none; }
  .workbench { min-height: calc(100vh - 60px); padding: 8px; }
  .chat-panel { width: 100% !important; min-width: 0; border-radius: 16px; }
  .context-panel, .resize-handle { display: none; }
  .agent-meta > span { display: none; }
  .conversation { padding: 18px 14px 12px; }
  .starter-grid { grid-template-columns: 1fr; }
  .message.assistant { padding-right: 0; }
  .message.user { padding-left: 10%; }
  .message-stack { max-width: 92%; }
  .logic-track { flex-direction: column; align-items: stretch; overflow: visible; }
  .logic-node { flex-basis: auto; min-width: 0; }
  .logic-arrow { min-height: 14px; transform: rotate(90deg); }
  .structure-row { grid-template-columns: minmax(92px, 1.2fr) minmax(80px, 2fr) 38px; gap: 8px; }
  .metric-bar-row { grid-template-columns: minmax(84px, 1fr) minmax(82px, 1.4fr); gap: 8px; }
  .metric-bar-row strong { grid-column: 1 / -1; padding-left: 92px; color: #7a857f; font-size: 9px; }
  .logic-tree { padding: 13px; overflow: visible; }
  .tree-root { width: auto; }
  .tree-children { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .tree-children::before { display: none; }
  .tree-branch { padding-left: 14px; }
  .tree-branch::before { top: -10px; bottom: auto; left: 2px; width: 10px; height: 31px; border-left: 1px solid #cad7cc; border-bottom: 1px solid #cad7cc; }
  .composer { padding: 10px; }
  .composer-foot > span { display: none; }
  .member-form-grid { grid-template-columns: 1fr; }
  .member-form-actions { align-items: stretch; flex-direction: column; }
  .member-security > header { align-items: flex-start; flex-direction: column; }
  .member-security > header small { text-align: left; }
  .identity-row { grid-template-columns: auto minmax(0, 1fr); }
  .identity-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .agent-meta { gap: 6px; }
  .agent-meta button { padding-inline: 8px; }
  .history-row { grid-template-columns: 1fr; gap: 8px; }
  .history-row > em { grid-auto-flow: column; justify-content: space-between; }
  .schedule-filters { grid-template-columns: 1fr 1fr; }
  .schedule-calendar-toolbar { grid-template-columns: auto minmax(120px,1fr); }
  .schedule-dimension-tabs { grid-column: 1 / -1; justify-content: stretch; }
  .schedule-dimension-tabs button { flex: 1; }
  .schedule-calendar-layout { grid-template-columns: 1fr; }
  .schedule-agenda { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 360px; }
  .schedule-occurrence-detail dl { grid-template-columns: 1fr 1fr; }
  .schedule-keyword,
  .schedule-filter-actions { grid-column: 1 / -1; }
  .schedule-filter-actions button { flex: 1; }
  .schedule-trend-cards { grid-template-columns: 1fr; }
  .schedule-trend-detail { grid-template-columns: 1fr; }
  .schedule-trends > header { flex-direction: column; }
  .schedule-trends > header > small { max-width: none; text-align: left; }
  .schedule-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .schedule-bulk-toolbar > div { display: grid; grid-template-columns: repeat(3,1fr); }
  .schedule-row dl { grid-template-columns: 1fr; }
  .schedule-run summary { grid-template-columns: 1fr auto; }
  .schedule-run summary b { grid-column: 1 / -1; }
  .created-schedule-card { grid-template-columns: auto minmax(0,1fr); }
  .created-schedule-card button { grid-column: 2; justify-self: start; }
  .schedule-conflict-card { grid-template-columns: 1fr; align-items: start; }
  .artifact-selector > summary { grid-template-columns: auto auto minmax(0,1fr); }
  .artifact-selector > summary i { grid-column: 2 / -1; text-align: left; }
  .artifact-selector-action { flex-direction: column; }
  .artifact-selector-action button { width: 100%; }
  .artifact-selector-pager { flex-wrap: wrap; }
  .artifact-selector-pager > span { width: 100%; }
  .memory-create { grid-template-columns: 1fr; }
  .memory-row { grid-template-columns: auto minmax(0,1fr); }
  .memory-row button { grid-column: 2; justify-self: start; }
  .creator-profile-view { min-height: calc(100vh - 60px); padding: 18px 12px 32px; }
  .creator-profile-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .creator-profile-layout { grid-template-columns: 1fr; }
  .creator-profile-search-card { position: static; }
  .creator-profile-result-card { min-height: 480px; }
  .creator-profile-empty,
  .creator-profile-loading { min-height: 440px; }
  .creator-profile-answer { max-height: none; }
  .fulfillment-view { min-height: calc(100vh - 60px); padding: 18px 12px 32px; }
  .fulfillment-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fulfillment-filters { grid-template-columns: 1fr 1fr; }
  .fulfillment-filters .wide,
  .fulfillment-filter-actions { grid-column: 1 / -1; }
  .fulfillment-filter-actions button { flex: 1; }
  .fulfillment-object-row {
    grid-template-columns: 25px minmax(0,1fr) auto;
  }
  .fulfillment-row-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .fulfillment-actions { grid-template-columns: 1fr 1fr; }
  .fulfillment-actions .wide { grid-column: 2; }
  .fulfillment-actions > button { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .memory-governance-settings > header,
  .memory-governance-settings form > footer {
    align-items: stretch;
    flex-direction: column;
  }
  .memory-governance-settings > header > small { text-align: left; }
  .memory-governance-settings form > footer button { width: 100%; }
  .schedule-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); }
  .schedule-calendar-workbench { margin-inline: 8px; }
  .schedule-calendar-toolbar {
    grid-template-columns: 1fr; gap: 10px; padding: 11px;
  }
  .schedule-month-navigation { justify-content: center; }
  .schedule-calendar-toolbar > div:nth-child(2) { grid-row: 1; }
  .schedule-calendar-status { padding-inline: 10px; text-align: left; }
  .schedule-calendar-layout { display: block; padding-inline: 10px; }
  .schedule-month-grid { display: none; }
  .schedule-agenda { grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .schedule-occurrence-detail { padding-inline: 10px; }
  .schedule-occurrence-detail dl { grid-template-columns: 1fr; }
  .schedule-management > summary { margin-inline: 10px; }
  .schedule-filters { padding-inline: 10px; }
  .schedule-trends { margin-inline: 10px; }
  .schedule-list { padding-inline: 10px; }
  .creator-profile-view { padding-inline: 9px; }
  .creator-profile-header h1 { font-size: 27px; }
  .creator-profile-header > button { width: 100%; }
  .creator-profile-range { grid-template-columns: 1fr; }
  .creator-profile-result > header { align-items: flex-start; flex-direction: column; }
  .creator-profile-answer { padding: 17px 14px; }
  .creator-profile-actions { display: grid; grid-template-columns: 1fr; padding-inline: 14px; }
  .creator-profile-next-form { grid-template-columns: 1fr; padding-inline: 14px; }
  .creator-profile-next-form button { width: 100%; }
  .creator-profile-feedback { padding-inline: 14px; }
  .creator-profile-feedback > div { display: grid; grid-template-columns: 1fr 1fr; }
  .fulfillment-view { padding-inline: 9px; }
  .fulfillment-header h1 { font-size: 27px; }
  .fulfillment-header > button { width: 100%; }
  .fulfillment-tabs { grid-template-columns: 1fr; }
  .fulfillment-filters { grid-template-columns: 1fr; }
  .fulfillment-filters .wide,
  .fulfillment-filter-actions { grid-column: auto; }
  .fulfillment-object-row {
    grid-template-columns: 24px minmax(0,1fr);
    align-items: start;
  }
  .fulfillment-object-row > em { grid-column: 2; }
  .fulfillment-row-actions { grid-column: 2; justify-content: flex-start; }
  .fulfillment-result-head { align-items: flex-start; flex-direction: column; }
  .fulfillment-result-head > div:last-child { text-align: left; }
  .fulfillment-answer { max-height: none; padding: 15px 13px; }
  .fulfillment-pagination { justify-content: space-between; }
  .fulfillment-actions { grid-template-columns: 1fr; }
  .fulfillment-actions .wide,
  .fulfillment-actions > button { grid-column: auto; }
}

/* Keep the T-521 calendar overrides last in the production cascade. */
.schedule-dialog.schedule-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  height: min(860px, calc(100dvh - 28px));
  max-height: none;
  border-radius: 18px;
  background: #f4f6f2;
  padding: 0;
}
.schedule-dialog .schedule-calendar-workbench { border: 0; border-radius: 0; background: transparent; padding: 24px 27px 14px; }
.schedule-dialog .schedule-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; }
.schedule-dialog .schedule-month-navigation { display: flex; align-items: center; gap: 6px; }
.schedule-dialog .schedule-month-navigation > div { min-width: 0; margin-left: 5px; text-align: left; }
.schedule-dialog .schedule-calendar-layout { display: block; padding: 0; }
.schedule-dialog .schedule-month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); border: 0; border-radius: 0; }
.schedule-dialog .schedule-agenda { display: block; max-height: none; overflow: visible; padding: 8px 13px 15px; }
.schedule-dialog .schedule-agenda[hidden],
.schedule-dialog .schedule-month-grid[hidden],
.schedule-dialog .schedule-weekdays[hidden] { display: none !important; }
.schedule-dialog .schedule-occurrence-detail { padding: 0 27px 14px; }
.schedule-dialog .schedule-management { margin: 0 27px 24px; }

@media (max-width: 760px) {
  .schedule-dialog.schedule-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .schedule-dialog .schedule-calendar-workbench { padding: 16px 10px 10px; }
  .schedule-dialog .schedule-month-grid,
  .schedule-dialog .schedule-weekdays { display: none !important; }
  .schedule-dialog .schedule-agenda { display: block !important; padding-inline: 8px; }
  .schedule-dialog .schedule-calendar-layout { display: block; padding: 0; overflow: hidden; }
  .schedule-dialog .schedule-occurrence-detail { padding: 0 10px 10px; }
  .schedule-dialog .schedule-management { margin: 0 10px 18px; }
}
