    :root {
      color-scheme: only light;
      --ink: #102036;
      --muted: #6c7689;
      --line: #dfe6f2;
      --panel: rgba(255, 255, 255, .9);
      --blue: #245cff;
      --cyan: #13b7d8;
      --green: #13a873;
      --orange: #f08b2d;
      --red: #d94646;
      --dark: #111c32;
      --shadow: 0 18px 52px rgba(29, 54, 105, .16);
    }
    * { box-sizing: border-box; }
    html {
      color-scheme: only light;
      background: #f8fbff;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }
    body {
      margin: 0;
      width: 100%;
      max-width: 100%;
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--ink);
      font-family: "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
      background:
        linear-gradient(120deg, rgba(36, 92, 255, .08) 0 1px, transparent 1px 96px),
        linear-gradient(210deg, rgba(19, 183, 216, .09) 0 1px, transparent 1px 104px),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 48%, #fff8ef 100%);
    }
    button, input, select, textarea { font: inherit; color-scheme: light; }
    button {
      border: 0;
      cursor: pointer;
      border-radius: 999px;
      padding: 10px 15px;
      color: #fff;
      background: linear-gradient(135deg, var(--blue), #6d8dff);
      box-shadow: 0 12px 28px rgba(36, 92, 255, .2);
      transition: transform .16s ease, opacity .16s ease;
    }
    button:disabled { opacity: .55; cursor: not-allowed; }
    button:not(:disabled):active { transform: scale(.98); }
    input, select, textarea {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 0 12px;
      color: var(--ink);
      background: rgba(255, 255, 255, .94);
      outline: none;
    }
    input:focus, select:focus, textarea:focus { border-color: rgba(36, 92, 255, .55); box-shadow: 0 0 0 4px rgba(36, 92, 255, .08); }
    .hidden { display: none !important; }
    .shell {
      width: min(980px, calc(100vw - 24px));
      max-width: 100%;
      min-height: 100vh;
      margin: 0 auto;
      padding: 14px 0 28px;
      overflow-x: hidden;
    }
    #appPanel, .view, .view.active, .panel { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; }
    .topbar, .panel {
      border: 1px solid rgba(255, 255, 255, .74);
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
      border-radius: 24px;
    }
    .panel, .chat-head, .messages, .composer, .quick-card, .run-card, .task-row, .setting-row {
      color-scheme: only light;
    }
    .topbar {
      position: sticky;
      top: 10px;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      margin-bottom: 14px;
    }
    .topbar.subpage {
      justify-content: flex-start;
      position: sticky;
    }
    .topbar.subpage .brand {
      flex: 1 1 auto;
    }
    .topbar.subpage.voice-page .brand {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      justify-content: center;
      text-align: center;
      width: max-content;
      max-width: calc(100% - 160px);
      pointer-events: none;
    }
    .topbar.subpage.voice-page .brand-title {
      width: auto;
    }
    .topbar.subpage.voice-page .subtitle {
      display: none;
    }
    .topbar.subpage.voice-page .logo {
      width: 30px;
      height: 30px;
    }
    .topbar.subpage.voice-page .logo img {
      width: 24px;
      height: 24px;
    }
    .topbar.subpage.voice-page h1 {
      font-size: 17px;
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
    }
    .brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .brand-title { min-width: 0; }
    .logo {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }
    .logo img {
      width: 32px;
      height: 32px;
      display: block;
      object-fit: contain;
    }
    h1 { margin: 0; font-size: 18px; letter-spacing: 0; }
    .subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-actions { display: flex; align-items: center; gap: 8px; }
    .top-action {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 0 12px;
      color: var(--ink);
      background: rgba(255,255,255,.76);
      box-shadow: inset 0 0 0 1px var(--line);
      overflow: hidden;
    }
    .chat-entry-icon {
      position: relative;
      width: 19px;
      height: 15px;
      border: 2px solid currentColor;
      border-radius: 7px;
      opacity: .9;
    }
    .chat-entry-icon::after {
      content: "";
      position: absolute;
      left: 3px;
      bottom: -5px;
      width: 7px;
      height: 7px;
      border-left: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      background: rgba(255,255,255,.76);
      transform: rotate(-18deg);
    }
    .voice-entry-icon {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 0;
      flex: 0 0 auto;
    }
    .voice-entry-icon svg {
      width: 100%;
      height: 100%;
      display: block;
      fill: currentColor;
    }
    .workbench-entry-icon {
      position: relative;
      width: 19px;
      height: 17px;
      border: 2px solid currentColor;
      border-radius: 4px;
      opacity: .9;
    }
    .workbench-entry-icon::before {
      content: "";
      position: absolute;
      left: 3px;
      right: 3px;
      top: -5px;
      height: 5px;
      border: 2px solid currentColor;
      border-bottom: 0;
      border-radius: 5px 5px 0 0;
    }
    .workbench-entry-icon::after {
      content: "";
      position: absolute;
      left: 4px;
      right: 4px;
      top: 6px;
      border-top: 2px solid currentColor;
    }
    .avatar-mini {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: white;
      font-weight: 800;
      background: linear-gradient(135deg, var(--cyan), var(--blue));
    }
    .avatar-action {
      width: 40px;
      min-height: 40px;
      padding: 0;
      color: #fff;
      background: transparent;
      box-shadow: none;
    }
    .top-back { flex: 0 0 auto; }
    .ghost {
      color: var(--ink);
      background: rgba(255, 255, 255, .74);
      box-shadow: inset 0 0 0 1px var(--line);
    }
    .danger { color: var(--red); background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px rgba(217,70,70,.25); }
    .view { display: none; }
    .view.active { display: block; }
    .login {
      width: min(430px, 100%);
      margin: clamp(28px, 8vh, 90px) auto;
      padding: 24px;
    }
    .login h2 { margin: 0 0 8px; font-size: 24px; }
    .login p, .hint { color: var(--muted); line-height: 1.7; font-size: 13px; }
    .auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 16px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.7); }
    .auth-tabs button { min-height: 38px; color: var(--muted); background: transparent; box-shadow: none; border-radius: 12px; font-size: 14px; }
    .auth-tabs button.active { color: #102036; background: #fff; box-shadow: 0 10px 24px rgba(28,61,120,.12); }
    .field { display: grid; gap: 7px; margin-bottom: 13px; }
    .field label { color: #46516a; font-size: 13px; }
    .captcha-row { display: grid; grid-template-columns: 1fr 112px; gap: 10px; align-items: end; }
    .sms-row { display: grid; grid-template-columns: 1fr 112px; gap: 10px; align-items: end; }
    .captcha-img { height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; object-fit: cover; }

    .home-grid { display: grid; gap: 14px; }
    .office-grid { display: grid; gap: 14px; }
    .office-hero {
      position: relative;
      overflow: hidden;
      display: block;
      min-height: 0;
      padding: 12px;
      border-radius: 24px;
      color: #fff;
      background:
        linear-gradient(90deg, rgba(8,18,38,.94) 0%, rgba(13,34,78,.78) 48%, rgba(11,82,130,.38) 100%),
        url("/h5-static/h5-office-boss-bg.jpg") center / cover no-repeat,
        #102036;
      box-shadow: 0 16px 42px rgba(16, 45, 105, .22);
    }
    .office-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 16% 18%, rgba(255,255,255,.2), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 56%);
      pointer-events: none;
    }
    .boss-card {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      width: 100%;
      min-height: 112px;
      padding: 8px 12px 8px 6px;
      border-radius: 20px;
      background: rgba(255,255,255,.16);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px rgba(4,15,38,.18);
      backdrop-filter: blur(8px);
      box-sizing: border-box;
    }
    .boss-kicker {
      width: fit-content;
      padding: 5px 10px;
      border-radius: 999px;
      color: #c8f7ff;
      background: rgba(19,183,216,.18);
      box-shadow: inset 0 0 0 1px rgba(180,241,255,.28);
      font-size: 12px;
      font-weight: 900;
    }
    .boss-avatar {
      width: 82px;
      height: 96px;
      object-fit: contain;
      filter: drop-shadow(0 12px 18px rgba(0,0,0,.2));
      animation: boss-breathe 3.2s ease-in-out infinite;
    }
    .boss-info { min-width: 0; display: grid; gap: 6px; }
    .boss-heading {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex-wrap: wrap;
    }
    .boss-info strong { font-size: 18px; line-height: 1.2; }
    .boss-info span { color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.4; word-break: break-word; }
    .boss-metrics {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 6px;
      width: 100%;
    }
    .boss-metric {
      min-width: 0;
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 4px;
      padding: 6px 7px;
      border-radius: 12px;
      background: rgba(255,255,255,.14);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
      white-space: nowrap;
    }
    button.boss-metric {
      font: inherit;
      color: #fff;
      border: 0;
      cursor: pointer;
    }
    button.boss-metric:active { transform: translateY(1px); }
    button.boss-metric.active {
      background: rgba(255,255,255,.28);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 8px 22px rgba(4,18,45,.16);
    }
    .boss-metric strong { font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1; }
    .boss-metric span { color: rgba(255,255,255,.74); font-size: 11px; line-height: 1; }
    .office-floor {
      position: relative;
      min-height: clamp(470px, 62vh, 680px);
      display: block;
      overflow: hidden;
      padding: 62px 14px 14px;
      border-radius: 28px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.95) 0 58%, rgba(221,232,247,.82) 58% 100%),
        linear-gradient(90deg, rgba(36,92,255,.06) 1px, transparent 1px) 0 0 / 42px 42px,
        #fff;
      border: 1px solid rgba(255,255,255,.74);
      box-shadow: var(--shadow);
    }
    .office-floor::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 58%;
      height: 2px;
      background: rgba(176,193,220,.45);
    }
    .office-floor::after {
      content: "";
      position: absolute;
      left: -12%;
      right: -12%;
      bottom: -34%;
      height: 58%;
      background:
        linear-gradient(90deg, rgba(16,32,54,.08) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(0deg, rgba(16,32,54,.06) 1px, transparent 1px) 0 0 / 48px 48px;
      transform: perspective(420px) rotateX(58deg);
      transform-origin: top;
      pointer-events: none;
    }
    .company-sign {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 4;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      max-width: min(340px, calc(100% - 28px));
      min-height: 42px;
      padding: 0 13px;
      color: #102036;
      background: #fff7d6;
      border: 1px solid rgba(210,154,45,.35);
      border-radius: 12px;
      box-shadow: 0 12px 28px rgba(126,89,22,.12);
      font-weight: 900;
    }
    .company-sign::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--orange);
      box-shadow: 0 0 0 4px rgba(240,139,45,.12);
    }
    .company-sign span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .office-filter-note {
      position: absolute;
      top: 14px;
      left: 14px;
      z-index: 4;
      min-height: 38px;
      max-width: min(360px, calc(100% - 190px));
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0 12px;
      border: 1px solid rgba(36,92,255,.18);
      border-radius: 999px;
      color: #1e4ee8;
      background: rgba(255,255,255,.9);
      box-shadow: 0 10px 26px rgba(29,54,105,.12);
      font-weight: 900;
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .office-filter-note::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 0 4px rgba(36,92,255,.1);
      flex: 0 0 auto;
    }
    .employee-pager {
      position: absolute;
      top: 64px;
      right: 14px;
      z-index: 4;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 36px;
      padding: 4px 6px;
      color: #23334d;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(223,230,242,.95);
      border-radius: 999px;
      box-shadow: 0 10px 26px rgba(29,54,105,.12);
      font-size: 12px;
      font-weight: 900;
    }
    .employee-pager button {
      min-width: 58px;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      color: #1e4ee8;
      background: rgba(36,92,255,.09);
      border: 1px solid rgba(36,92,255,.13);
      font-weight: 900;
      cursor: pointer;
    }
    .employee-pager button:disabled {
      opacity: .42;
      cursor: default;
    }
    .employee-pager span {
      min-width: 48px;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .office-empty {
      grid-column: 1 / -1;
      min-height: 260px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      line-height: 1.8;
      padding: 22px;
      position: relative;
      z-index: 2;
    }
    .office-empty-copy {
      text-align: center;
    }
    .office-voice-fab-wrap {
      position: absolute;
      left: 50%;
      bottom: 26px;
      z-index: 4;
      display: grid;
      justify-items: center;
      gap: 12px;
      transform: translateX(-50%);
      pointer-events: none;
    }
    .office-voice-entry {
      width: 82px;
      height: 82px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: linear-gradient(135deg, #2563eb, #1e40af);
      border: none;
      border-radius: 50%;
      box-shadow: 0 10px 30px rgba(37, 99, 235, .4), inset 0 2px 10px rgba(255,255,255,.3);
      transition: all .2s ease;
      pointer-events: auto;
    }
    .office-voice-entry.is-pressing {
      transform: scale(.92);
      box-shadow: 0 5px 15px rgba(37,99,235,.58), inset 0 5px 15px rgba(0,0,0,.3);
    }
    .office-voice-entry:active {
      transform: scale(.92);
      box-shadow: 0 5px 15px rgba(37,99,235,.58), inset 0 5px 15px rgba(0,0,0,.3);
    }
    .office-voice-entry .voice-entry-icon {
      width: 30px;
      height: 30px;
      color: #fff;
      flex: 0 0 auto;
    }
    .top-action .voice-entry-icon {
      width: 18px;
      height: 18px;
      color: currentColor;
    }
    .employee-card {
      position: absolute;
      z-index: 2;
      left: var(--x, 50%);
      top: var(--y, 220px);
      width: 128px;
      min-height: 168px;
      display: block;
      padding: 0;
      color: var(--ink);
      text-align: center;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      transform: translate(-50%, -50%);
    }
    .employee-card.online { cursor: pointer; }
    .employee-card.online:active { transform: translate(-50%, -50%) scale(.98); }
    .employee-card.idle { animation: employee-wander 6.2s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
    .employee-card.working { z-index: 3; }
    .employee-card.offline { animation: employee-off-duty 5.8s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
    .employee-scene {
      position: relative;
      width: 128px;
      min-height: 148px;
      overflow: visible;
      border-radius: 0;
      background: transparent;
      border: 0;
    }
    .employee-progress-bubble {
      position: absolute;
      z-index: 5;
      left: 50%;
      top: -56px;
      max-width: 158px;
      padding: 8px 10px;
      border-radius: 14px 14px 14px 5px;
      color: #102036;
      background: rgba(255,255,255,.94);
      box-shadow: 0 10px 24px rgba(20,55,132,.16);
      border: 1px solid rgba(223,230,242,.9);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.45;
      word-break: break-word;
      animation: bubble-pop .28s ease-out;
      transform: translateX(-50%);
    }
    .employee-progress-bubble::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -6px;
      width: 12px;
      height: 12px;
      background: inherit;
      border-right: 1px solid rgba(223,230,242,.9);
      border-bottom: 1px solid rgba(223,230,242,.9);
      transform: translateX(-50%) rotate(45deg);
    }
    .desk {
      position: absolute;
      left: 15px;
      right: 13px;
      bottom: 14px;
      height: 16px;
      border-radius: 8px;
      background: #d9aa6a;
      box-shadow: 0 10px 0 #b87d42;
    }
    .desk::before, .desk::after {
      content: "";
      position: absolute;
      bottom: -32px;
      width: 7px;
      height: 32px;
      border-radius: 6px;
      background: #9c6635;
    }
    .desk::before { left: 16px; }
    .desk::after { right: 16px; }
    .screen {
      position: absolute;
      right: 17px;
      bottom: 38px;
      width: 52px;
      height: 34px;
      border-radius: 8px;
      background: #13213a;
      box-shadow: inset 0 0 0 5px #243959;
    }
    .screen::after {
      content: "";
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: -12px;
      height: 8px;
      border-radius: 6px;
      background: #52657f;
    }
    .employee-card .desk,
    .employee-card .screen { display: none; }
    .person {
      position: absolute;
      left: 50%;
      bottom: 14px;
      width: 96px;
      height: 138px;
      transform: translateX(-50%);
      pointer-events: none;
      filter: drop-shadow(0 18px 15px rgba(22,45,84,.2));
    }
    .employee-avatar-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center bottom;
    }
    .employee-card.idle .person { animation: idle-breathe 2.4s ease-in-out infinite; }
    .employee-card.working .person { width: 104px; animation: work-focus .6s ease-in-out infinite alternate; }
    .employee-card.working .screen { box-shadow: inset 0 0 0 5px #243959, 0 0 22px rgba(19,183,216,.28); }
    .employee-card.offline .employee-scene { filter: grayscale(.75); opacity: .74; }
    .employee-card.offline .desk, .employee-card.offline .screen { display: none; }
    .employee-card.offline .person { bottom: 14px; opacity: .86; animation: off-duty-wave 2.8s ease-in-out infinite; }
    .employee-card.idle .desk, .employee-card.idle .screen { display: none; }
    .employee-meta { display: grid; justify-items: center; gap: 6px; margin-top: 4px; }
    .employee-title {
      display: inline-flex;
      max-width: 138px;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 6px 8px;
      border-radius: 999px;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(223,230,242,.86);
      box-shadow: 0 8px 20px rgba(29,54,105,.12);
    }
    .employee-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
    .employee-state {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 7px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.1);
      font-size: 11px;
      font-weight: 800;
    }
    .employee-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
    .employee-card.working .employee-state { color: var(--blue); background: rgba(36,92,255,.1); }
    .employee-card.offline .employee-state { color: #8a6471; background: rgba(138,100,113,.12); }
    .employee-desc { display: none; }
    .employee-modal {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: grid;
      place-items: center;
      padding: 18px;
    }
    #workflowMissingModal {
      z-index: 150;
    }
    .employee-modal-backdrop {
      position: absolute;
      inset: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      padding: 0;
      border-radius: 0;
      background: rgba(8, 16, 32, .28);
      box-shadow: none;
    }
    .employee-popover {
      position: relative;
      z-index: 1;
      width: min(430px, calc(100vw - 32px));
      overflow: hidden;
      padding: 18px;
      border-radius: 24px;
      color: #fff;
      background:
        linear-gradient(135deg, rgba(20,55,132,.96), rgba(20,117,209,.92)),
        #143784;
      box-shadow: 0 28px 80px rgba(11, 38, 95, .38);
      border: 1px solid rgba(255,255,255,.2);
    }
    .employee-popover::after {
      content: "";
      position: absolute;
      right: -42px;
      bottom: -68px;
      width: 220px;
      height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,.1);
      pointer-events: none;
    }
    .employee-popover-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding-right: 36px; }
    .employee-mini-avatar {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 18px;
      color: #12356f;
      background: rgba(255,255,255,.92);
      font-weight: 900;
    }
    .employee-popover-title { display: grid; gap: 4px; min-width: 0; }
    .employee-popover-title strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .employee-popover-title span { color: rgba(255,255,255,.76); font-size: 12px; }
    .employee-popover-close {
      position: absolute;
      z-index: 5;
      top: 12px;
      right: 12px;
      width: 34px;
      min-height: 34px;
      padding: 0;
      color: #fff;
      background: rgba(255,255,255,.13);
      box-shadow: none;
      font-size: 20px;
      pointer-events: auto;
      touch-action: manipulation;
    }
    .employee-popover-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: max-content;
      margin-top: 12px;
      padding: 6px 10px;
      border-radius: 999px;
      color: #fff;
      background: rgba(255,255,255,.14);
      font-size: 12px;
      font-weight: 900;
    }
    .employee-popover-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
    .employee-modal[data-mode="idle"] .employee-popover-badge { color: #9ff4ce; }
    .employee-modal[data-mode="working"] .employee-popover-badge { color: #b9e8ff; }
    .employee-modal[data-mode="offline"] .employee-popover-badge { color: #ffd1a9; }
    .employee-task-steps {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 10px;
      margin: 16px 0;
    }
    .employee-task-step {
      position: relative;
      display: grid;
      grid-template-columns: 74px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      padding-left: 14px;
    }
    .employee-task-step::before {
      content: "";
      position: absolute;
      left: 2px;
      top: 7px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: rgba(255,255,255,.86);
      box-shadow: 0 0 0 4px rgba(255,255,255,.12);
    }
    .employee-task-step::after {
      content: "";
      position: absolute;
      left: 5px;
      top: 18px;
      bottom: -12px;
      width: 1px;
      background: rgba(255,255,255,.28);
    }
    .employee-task-step:last-child::after { display: none; }
    .employee-task-step span { color: rgba(255,255,255,.68); font-size: 12px; }
    .employee-task-step strong { color: #fff; line-height: 1.55; word-break: break-word; font-size: 13px; }
    .employee-popover-actions {
      position: relative;
      z-index: 2;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .employee-popover-actions button { min-height: 40px; padding: 0 14px; }
    .employee-popover-actions .ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
    .hire-fab {
      position: fixed;
      right: max(18px, calc((100vw - min(980px, calc(100vw - 24px))) / 2 + 18px));
      bottom: 24px;
      z-index: 60;
      min-height: 48px;
      padding: 0 18px;
      background: linear-gradient(135deg, var(--orange), var(--blue));
      box-shadow: 0 16px 34px rgba(36,92,255,.22);
    }
    @keyframes idle-breathe {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(4px); }
    }
    @keyframes work-focus {
      from { transform: translateX(-50%) translateY(0) rotate(-1deg); }
      to { transform: translateX(-50%) translateY(3px) rotate(1deg); }
    }
    @keyframes off-duty-wave {
      0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
      50% { transform: translateX(-50%) translateY(-4px) rotate(3deg); }
    }
    @keyframes bubble-pop {
      from { opacity: 0; transform: translateY(6px) scale(.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes employee-wander {
      0% { transform: translate(-50%, -50%) translate(-8px, 0); }
      45% { transform: translate(-50%, -50%) translate(8px, -4px); }
      100% { transform: translate(-50%, -50%) translate(-3px, 5px); }
    }
    @keyframes employee-off-duty {
      0% { transform: translate(-50%, -50%) translate(-5px, 4px); }
      50% { transform: translate(-50%, -50%) translate(7px, -2px); }
      100% { transform: translate(-50%, -50%) translate(1px, 5px); }
    }
    @keyframes boss-breathe {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    .hero {
      position: relative;
      overflow: hidden;
      padding: 18px;
      border-radius: 28px;
      color: #fff;
      background:
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(135deg, #101a31 0%, #183f8f 54%, #10a7c8 100%);
      box-shadow: 0 24px 68px rgba(16, 45, 105, .28);
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: auto -18% -38% 28%;
      height: 180px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
      transform: rotate(-10deg);
    }
    .hero-content { position: relative; z-index: 1; display: grid; gap: 14px; }
    .hero-kicker { font-size: 12px; color: rgba(255,255,255,.72); }
    .hero-title { margin: 0; max-width: 560px; font-size: clamp(24px, 6vw, 38px); line-height: 1.15; letter-spacing: 0; }
    .task-card {
      display: grid;
      gap: 12px;
      padding: 14px;
      border-radius: 20px;
      background: rgba(255,255,255,.12);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    }
    .task-card-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .task-card-title {
      font-size: 17px;
      font-weight: 800;
      color: #fff;
    }
    .task-toggle {
      min-width: 88px;
      min-height: 42px;
      background: #fff;
      color: var(--blue);
      box-shadow: 0 14px 30px rgba(0,0,0,.18);
    }
    .task-panel-body { display: grid; gap: 12px; }
    .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .seg button {
      min-height: 42px;
      color: rgba(255,255,255,.84);
      background: rgba(255,255,255,.1);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
      border-radius: 14px;
    }
    .seg button.active { color: #102036; background: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.14); }
    .task-skill-board { display: grid; gap: 10px; }
    .task-skill-dept { display: grid; gap: 7px; }
    .task-skill-dept-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,.88);
      font-size: 13px;
      font-weight: 800;
    }
    .task-skill-dept-title::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #72f0d4;
      box-shadow: 0 0 0 5px rgba(114,240,212,.12);
    }
    .task-skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 8px; }
    .task-skill-card {
      min-height: 74px;
      padding: 10px 12px;
      text-align: left;
      justify-content: flex-start;
      align-items: flex-start;
      display: grid;
      gap: 5px;
      color: rgba(255,255,255,.88);
      background: rgba(255,255,255,.1);
      border-radius: 16px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    }
    .task-skill-card strong { color: #fff; font-size: 14px; line-height: 1.35; }
    .task-skill-card span { color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.45; }
    .task-skill-card.active {
      color: #102036;
      background: #fff;
      box-shadow: 0 14px 30px rgba(0,0,0,.16);
    }
    .task-skill-card.active strong { color: #102036; }
    .task-skill-card.active span { color: #5d6b82; }
    .task-skill-empty {
      padding: 12px;
      color: rgba(255,255,255,.74);
      border-radius: 16px;
      background: rgba(255,255,255,.1);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
    }
    .task-fields { display: grid; grid-template-columns: 1.2fr .85fr .85fr; gap: 10px; align-items: end; }
    .task-fields .field { margin: 0; }
    .task-fields label { color: rgba(255,255,255,.78); }
    .task-fields input, .task-fields select { background: rgba(255,255,255,.94); }
    .task-param-fields {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
      align-items: start;
    }
    .task-param-fields .field { margin: 0; }
    .task-param-fields .field.full { grid-column: 1 / -1; }
    .task-param-fields label { color: rgba(255,255,255,.78); }
    .task-param-fields input, .task-param-fields select, .task-param-fields textarea { background: rgba(255,255,255,.94); box-sizing: border-box; }
    .task-param-fields textarea { min-height: 86px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
    .video-memory-select { min-height: 118px; padding: 8px; line-height: 1.5; }
    .video-memory-select option { padding: 7px 8px; border-radius: 8px; }
    .task-param-note { margin: 5px 0 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
    .task-checkbox { min-height: 44px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); }
    .task-checkbox input { width: auto; min-height: auto; }
    .task-daily-times { display: grid; gap: 7px; }
    .task-daily-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
    .task-daily-row button { min-width: 42px; padding: 0 10px; min-height: 38px; }
    .digital-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
    .digital-fields .field { margin: 0; }
    .task-actions { display: flex; justify-content: flex-end; gap: 10px; }
    .hero-action { min-height: 44px; background: #fff; color: var(--blue); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
    .section-title { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 10px; }
    .section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .section-title h2 { margin: 0; font-size: 18px; }
    .icon-help {
      width: 36px;
      min-height: 36px;
      padding: 0;
      border-radius: 999px;
      font-size: 17px;
      font-weight: 900;
      line-height: 1;
    }
    .ip-template-select-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }
    .ip-template-select-row button {
      min-height: 42px;
      padding: 0 12px;
      border-radius: 999px;
      white-space: nowrap;
    }
    .quick-sections { display: grid; gap: 12px; }
    .quick-section {
      display: grid;
      gap: 9px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.76);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
    }
    .quick-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
    .quick-section-head strong { font-size: 16px; }
    .quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .quick-card {
      min-height: 74px;
      display: grid;
      align-content: space-between;
      gap: 10px;
      padding: 13px;
      color: var(--ink);
      text-align: left;
      border-radius: 18px;
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow);
      border: 1px solid rgba(255,255,255,.7);
    }
    .quick-card strong { font-size: 15px; }
    .quick-mark { width: 26px; height: 26px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: 13px; font-weight: 900; }
    .quick-card.disabled,
    .quick-card:disabled {
      cursor: not-allowed;
      color: #94a3b8;
      background: rgba(241,245,249,.68);
      box-shadow: none;
      border: 1px dashed rgba(148,163,184,.48);
    }
    .quick-card.disabled .quick-mark,
    .quick-card:disabled .quick-mark {
      background: linear-gradient(135deg, #cbd5e1, #94a3b8);
      color: #f8fafc;
    }
    .quick-card.disabled strong,
    .quick-card:disabled strong {
      color: #94a3b8;
    }
    .work-dispatch-popover {
      width: min(620px, calc(100vw - 28px));
      max-height: min(78vh, 720px);
      overflow: auto;
    }
    .work-dispatch-form { display: grid; gap: 13px; }
    .work-dispatch-fields {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 11px;
    }
    .work-dispatch-fields .field { margin: 0; }
    .work-dispatch-fields .field.full { grid-column: 1 / -1; }
    .work-dispatch-fields textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
    .asset-picker {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .asset-picker-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 8px;
      align-items: center;
    }
    .asset-picker-row button {
      min-height: 42px;
      padding: 0 12px;
      white-space: nowrap;
    }
    .asset-picker-preview {
      min-height: 0;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .asset-picker-preview:empty { display: none; }
    .asset-picker-thumb {
      width: 54px;
      height: 54px;
      flex: 0 0 auto;
      overflow: hidden;
      display: grid;
      place-items: center;
      border-radius: 14px;
      border: 1px solid rgba(223,230,242,.9);
      background: rgba(246,249,255,.92);
    }
    .asset-picker-thumb img,
    .asset-picker-thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .asset-picker-file {
      padding: 0 5px;
      color: #52607a;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .work-dispatch-actions {
      display: flex;
      justify-content: flex-end;
      gap: 9px;
      flex-wrap: wrap;
    }
    .work-dispatch-actions button { min-height: 40px; padding: 0 15px; }
    .quick-empty {
      min-height: 56px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      color: var(--muted);
      border-radius: 14px;
      background: rgba(246,249,255,.88);
      border: 1px dashed rgba(148,163,184,.5);
      font-size: 13px;
    }
    .quick-card-leads {
      background:
        linear-gradient(135deg, rgba(36,92,255,.12), rgba(19,183,216,.12)),
        rgba(255,255,255,.94);
    }
    .department-shell {
      width: 100%;
      display: grid;
      gap: 16px;
      padding: 2px 0 18px;
    }
    .department-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 18px;
      border-radius: 26px;
      border: 1px solid rgba(223,230,242,.9);
      background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(231,250,246,.9));
      box-shadow: var(--shadow);
    }
    .department-hero h2 {
      margin: 3px 0 6px;
      font-size: clamp(24px, 6vw, 34px);
      line-height: 1.1;
    }
    .department-hero p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 14px;
    }
    .department-kicker {
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .department-breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
    }
    .department-breadcrumb span {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.82);
      border: 1px solid rgba(223,230,242,.82);
    }
    .department-skill-grid,
    .ability-child-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .department-skill-card {
      min-height: 128px;
      display: grid;
      gap: 10px;
      align-content: start;
      padding: 15px;
      color: var(--ink);
      text-align: left;
      border-radius: 22px;
      border: 1px solid rgba(223,230,242,.9);
      background: rgba(255,255,255,.94);
      box-shadow: var(--shadow);
    }
    .department-skill-card:active { transform: scale(.99); }
    .department-skill-card.disabled {
      opacity: .56;
      background: rgba(247,249,253,.9);
    }
    .department-skill-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .department-skill-title {
      margin: 0;
      font-size: 16px;
      line-height: 1.35;
      font-weight: 900;
    }
    .department-skill-desc {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }
    .department-skill-chip,
    .ability-mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 34px;
      height: 34px;
      padding: 0 10px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.1);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .department-skill-chip.child {
      color: #245cff;
      background: rgba(36,92,255,.1);
    }
    .department-skill-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--muted);
      font-size: 12px;
    }
    .ability-detail-card {
      display: grid;
      gap: 14px;
      padding: 18px;
      border-radius: 24px;
      border: 1px solid rgba(223,230,242,.9);
      background: rgba(255,255,255,.95);
      box-shadow: var(--shadow);
    }
    .ability-detail-main {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }
    .ability-detail-main h3 {
      margin: 0 0 7px;
      font-size: 19px;
    }
    .ability-detail-main p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      font-size: 14px;
    }
    .ability-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px;
    }
    .chat-context {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 12px;
      padding: 12px;
      border-radius: 18px;
      border: 1px solid rgba(19,168,115,.2);
      background: rgba(231,250,246,.9);
    }
    .chat-context strong {
      display: block;
      font-size: 14px;
    }
    .chat-context span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .douyin-shell { display: grid; gap: 14px; }
    .douyin-hero {
      position: relative;
      overflow: hidden;
      color: #fff;
      border-radius: 24px;
      padding: 16px;
      background:
        linear-gradient(135deg, rgba(11,26,58,.96) 0%, rgba(26,63,163,.88) 54%, rgba(19,183,216,.82) 100%);
      box-shadow: 0 18px 42px rgba(24,52,120,.22);
    }
    .douyin-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
      background-size: 34px 34px;
      opacity: .38;
      pointer-events: none;
    }
    .douyin-hero > * { position: relative; z-index: 1; }
    .douyin-hero-title {
      margin: 0;
      font-size: 24px;
      line-height: 1.2;
    }
    .douyin-hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 12px;
    }
    .douyin-hero-actions .ghost {
      color: #fff;
      background: rgba(255,255,255,.12);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
    }
    .douyin-hero-actions .hero-action { min-width: 124px; }
    .douyin-grid-two {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .douyin-panel {
      padding: 14px 16px;
      display: grid;
      gap: 10px;
    }
    .douyin-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .douyin-panel-head h3,
    .douyin-panel-head h4 {
      margin: 0;
      font-size: 17px;
    }
    .douyin-panel-head span {
      color: var(--muted);
      font-size: 12px;
    }
    .douyin-account-list,
    .douyin-runtime-list,
    .douyin-task-action-grid,
    .douyin-metric-grid,
    .douyin-detail-grid,
    .douyin-schedule-grid { display: grid; gap: 10px; }
    .douyin-account-item,
    .douyin-runtime-item,
    .douyin-task-action,
    .douyin-metric-card {
      border-radius: 18px;
      border: 1px solid rgba(223,230,242,.84);
      background: rgba(248,251,255,.92);
    }
    .douyin-account-item,
    .douyin-runtime-item {
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .douyin-account-item strong,
    .douyin-runtime-item strong {
      display: block;
      font-size: 14px;
    }
    .douyin-account-item span,
    .douyin-runtime-item span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .douyin-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 12px;
      color: #2b4ecb;
      background: rgba(36,92,255,.1);
      box-shadow: inset 0 0 0 1px rgba(36,92,255,.12);
      white-space: nowrap;
    }
    .douyin-badge.success {
      color: #0f8a61;
      background: rgba(19,168,115,.1);
      box-shadow: inset 0 0 0 1px rgba(19,168,115,.16);
    }
    .douyin-badge.warn {
      color: #c76e16;
      background: rgba(240,139,45,.12);
      box-shadow: inset 0 0 0 1px rgba(240,139,45,.14);
    }
    .douyin-runtime-item.active {
      background: rgba(19,168,115,.08);
      border-color: rgba(19,168,115,.22);
    }
    .douyin-runtime-item.pending {
      background: rgba(240,139,45,.08);
      border-color: rgba(240,139,45,.18);
    }
    .douyin-runtime-item.concise strong,
    .douyin-account-item.concise strong {
      font-size: 15px;
    }
    .douyin-runtime-item.concise span,
    .douyin-account-item.concise span {
      margin-top: 0;
      line-height: 1.4;
    }
    .douyin-account-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 0 auto;
    }
    .douyin-account-actions button {
      min-height: 28px;
      padding: 0 10px;
      font-size: 12px;
    }
    .douyin-metric-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .douyin-metric-card {
      min-height: 108px;
      padding: 14px;
      display: grid;
      align-content: start;
      gap: 8px;
    }
    .douyin-metric-card strong {
      font-size: 25px;
      line-height: 1;
    }
    .douyin-metric-card span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }
    .douyin-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .douyin-task-action-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .douyin-task-action {
      min-height: 116px;
      padding: 14px;
      display: grid;
      gap: 8px;
      align-content: start;
      color: var(--ink);
      text-align: left;
      background: rgba(255,255,255,.92);
      box-shadow: var(--shadow);
    }
    .douyin-task-action.active {
      background: linear-gradient(135deg, rgba(36,92,255,.12), rgba(19,183,216,.12));
      box-shadow: inset 0 0 0 1px rgba(36,92,255,.14), var(--shadow);
    }
    .douyin-task-action strong { font-size: 15px; }
    .douyin-task-action span,
    .douyin-task-action em {
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
      line-height: 1.5;
    }
    .douyin-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .douyin-field.full { grid-column: 1 / -1; }
    .douyin-field label {
      display: block;
      margin: 0 0 7px;
      color: #46516a;
      font-size: 13px;
    }
    .douyin-field textarea {
      min-height: 96px;
      padding: 10px 12px;
      resize: vertical;
      line-height: 1.6;
    }
    .douyin-field-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .douyin-region-select {
      display: grid;
      gap: 10px;
    }
    .douyin-region-trigger {
      width: 100%;
      min-height: 50px;
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-radius: 18px;
      border: 1px solid rgba(223,230,242,.9);
      background: rgba(255,255,255,.94);
      color: var(--ink);
      text-align: left;
      box-shadow: var(--shadow);
    }
    .douyin-region-trigger strong {
      font-size: 14px;
      font-weight: 700;
    }
    .douyin-region-trigger span {
      color: var(--muted);
      font-size: 18px;
      line-height: 1;
    }
    .douyin-region-panel {
      display: grid;
      gap: 12px;
      padding: 14px;
      border-radius: 20px;
      border: 1px solid rgba(240,208,159,.55);
      background: rgba(255,252,246,.96);
      box-shadow: 0 14px 34px rgba(35,58,109,.08);
    }
    .douyin-region-panel.hidden {
      display: none;
    }
    .douyin-region-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .douyin-region-panel-head .douyin-field-note {
      flex: 1;
    }
    .douyin-region-reset {
      min-width: 112px;
      padding-inline: 14px;
    }
    .douyin-check-grid {
      display: grid;
      max-height: 320px;
      overflow: auto;
      gap: 10px;
      padding-right: 4px;
    }
    .douyin-check-item {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 56px;
      padding: 0 16px;
      border-radius: 18px;
      border: 1px solid rgba(223,230,242,.84);
      background: rgba(255,255,255,.94);
      color: var(--ink);
      font-size: 14px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
    }
    .douyin-check-item input {
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--blue);
    }
    .douyin-schedule-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: end;
    }
    .douyin-schedule-grid .field { margin: 0; }
    .douyin-schedule-grid .field input,
    .douyin-schedule-grid .field select {
      width: 100%;
      min-width: 0;
    }
    .douyin-task-footer {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }
    .douyin-task-footer-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .douyin-task-footer-actions > * {
      min-width: 132px;
    }
    .douyin-inline-message {
      min-height: 22px;
      color: var(--muted);
      font-size: 12px;
    }
    .douyin-inline-message.error { color: var(--red); }
    .douyin-empty {
      min-height: 56px;
      display: flex;
      align-items: center;
      color: var(--muted);
      border-radius: 16px;
      border: 1px dashed rgba(148,163,184,.5);
      background: rgba(246,249,255,.88);
      padding: 12px 14px;
      font-size: 13px;
      line-height: 1.6;
    }
    @media (max-width: 860px) {
      .douyin-schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .douyin-schedule-grid #douyinTaskStartAtBlock,
      .douyin-schedule-grid #douyinTaskDailyTimesBlock {
        grid-column: 1 / -1;
      }
    }
    @media (max-width: 640px) {
      .douyin-schedule-grid {
        grid-template-columns: 1fr;
      }
      .douyin-task-footer {
        align-items: stretch;
      }
      .douyin-task-footer-actions {
        width: 100%;
      }
      .douyin-task-footer-actions > * {
        flex: 1;
        min-width: 0;
      }
    }

    .chat {
      height: calc(100dvh - 126px);
      min-height: 0;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr) auto auto;
      overflow: hidden;
    }
    .chat-head { padding: 12px 16px; border-bottom: 1px solid rgba(223,230,242,.8); display: grid; gap: 10px; }
    .subpage-head { display: flex; align-items: center; gap: 10px; }
    .back-btn {
      width: 40px;
      height: 40px;
      padding: 0;
      color: var(--ink);
      background: rgba(255,255,255,.82);
      box-shadow: inset 0 0 0 1px var(--line);
      font-size: 22px;
      line-height: 1;
    }
    .subpage-title { display: grid; gap: 2px; min-width: 0; }
    .subpage-title strong { font-size: 17px; }
    .subpage-title span { color: var(--muted); font-size: 12px; }
    .status { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
    .status-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(240,139,45,.12); }
    .dot.online { background: var(--green); box-shadow-color: rgba(19,168,115,.14); }
    .messages { min-height: 0; max-height: none; overflow: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 13px; background: rgba(255,255,255,.24); }
    .empty { margin: auto; color: var(--muted); text-align: center; line-height: 1.8; max-width: 520px; }
    .bubble { max-width: min(720px, 88%); padding: 13px 15px; border-radius: 18px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
    .bubble.user { align-self: flex-end; color: #fff; border-bottom-right-radius: 6px; background: linear-gradient(135deg, var(--blue), #6d8dff); box-shadow: 0 14px 34px rgba(36,92,255,.22); }
    .bubble.bot { align-self: flex-start; border-bottom-left-radius: 6px; background: rgba(255,255,255,.95); border: 1px solid rgba(223,230,242,.86); }
    .bubble.err { color: #8d2b2b; border-color: rgba(217,70,70,.32); background: rgba(255,244,244,.94); }
    .bubble a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
    .bubble.user a { color: #fff; }
    .media-preview { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 180px)); align-items: start; gap: 10px; }
    .media-item { width: 100%; display: grid; gap: 6px; align-content: start; }
    .media-preview img, .media-preview video { width: 100%; max-height: 240px; border-radius: 12px; border: 1px solid rgba(223,230,242,.9); background: #eef4ff; object-fit: contain; }
    .media-preview video { aspect-ratio: 9 / 16; background: #111; }
    .media-preview audio { width: min(280px, 100%); }
    .media-actions { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.3; }
    .media-actions a, .media-actions button { padding: 4px 8px; border-radius: 999px; color: var(--blue); background: rgba(36,92,255,.08); text-decoration: none; box-shadow: none; border: 0; font-size: inherit; }
    .publish-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
    .publish-actions button { padding: 6px 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: none; }
    .publish-actions span { color: var(--muted); }
    .steps { margin-top: 8px; display: none; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #52607a; }
    .upload-preview { display: none; gap: 10px; padding: 10px 14px 0; overflow-x: auto; }
    .upload-preview.show { display: flex; }
    .upload-card { position: relative; flex: 0 0 auto; width: 94px; padding: 6px; border-radius: 18px; border: 1px solid rgba(223,230,242,.95); background: rgba(255,255,255,.84); box-shadow: 0 8px 24px rgba(35,58,109,.09); }
    .upload-card img { width: 100%; height: 70px; display: block; object-fit: cover; border-radius: 13px; background: #eef4ff; }
    .upload-status { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .upload-card.failed .upload-status { color: var(--red); }
    .upload-remove { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; display: grid; place-items: center; color: #fff; background: rgba(19,33,60,.72); box-shadow: none; font-size: 15px; }
    .composer { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; border-top: 1px solid rgba(223,230,242,.82); }
    .composer-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; min-width: 0; }
    .composer textarea {
      min-height: 48px;
      max-height: 148px;
      padding-top: 13px;
      padding-bottom: 13px;
      border-radius: 18px;
      line-height: 1.45;
      resize: none;
      overflow-y: auto;
    }
    .composer.expanded { grid-template-columns: 1fr; }
    .composer.expanded .composer-input { grid-template-columns: 1fr; }
    .composer.expanded textarea { min-height: 180px; max-height: min(46vh, 360px); }
    .composer-toggle { width: 58px; height: 46px; padding: 0; justify-self: end; font-size: 13px; color: var(--blue); background: rgba(36,92,255,.08); box-shadow: none; }

    .voice-shell {
      min-height: calc(100vh - 126px);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
      position: relative;
      background:
        radial-gradient(circle at top, rgba(17, 38, 88, 0.92) 0%, rgba(3, 6, 19, 0.98) 62%),
        #030613;
      color: #e2e8f0;
    }
    .voice-display {
      padding: 28px 20px 248px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      overflow-y: auto;
      min-height: 0;
      align-content: flex-start;
    }
    .voice-result-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 0 0 auto;
    }
    .voice-section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .voice-section-label {
      font-size: 12px;
      color: rgba(148, 163, 184, 0.92);
      letter-spacing: .04em;
    }
    .voice-result-meta {
      display: none;
      align-items: center;
      gap: 12px;
    }
    .voice-result-meta.show {
      display: flex;
    }
    .voice-result-toggle {
      border: 0;
      background: transparent;
      color: #7cb4ff;
      font-size: 12px;
      font-weight: 600;
      padding: 0;
      cursor: pointer;
    }
    .voice-text-output {
      font-size: 24px;
      line-height: 1.5;
      font-weight: 300;
      color: #94a3b8;
      text-align: left;
      text-indent: 4em;
      min-height: 84px;
      padding: 4px 8px;
      border-radius: 22px;
      white-space: pre-wrap;
      word-break: break-word;
      transition: color .3s ease, text-shadow .3s ease, font-weight .3s ease, background .3s ease, box-shadow .3s ease;
    }
    .voice-text-output.active {
      color: #fff;
      font-weight: 500;
      text-shadow: 0 0 15px rgba(255,255,255,0.18);
    }
    .voice-text-output.long-text {
      font-size: 17px;
      line-height: 1.8;
      text-align: left;
      text-indent: 4em;
      min-height: 160px;
      max-height: 260px;
      overflow-y: auto;
      padding: 18px 18px 20px;
      background: rgba(12, 18, 40, 0.54);
      box-shadow: inset 0 0 0 1px rgba(124, 180, 255, 0.12);
      text-shadow: none;
    }
    .voice-text-output.long-text.collapsed {
      max-height: 192px;
      overflow: hidden;
      mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    }
    .voice-action-cards {
      margin-top: 38px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      opacity: 0;
      transform: translateY(18px);
      transition: all .45s cubic-bezier(0.1, 0.8, 0.2, 1);
      pointer-events: none;
      flex: 0 0 auto;
    }
    .voice-action-cards.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .voice-intent-panel {
      margin-top: 28px;
      display: grid;
      gap: 16px;
      opacity: 0;
      transform: translateY(18px);
      transition: all .45s cubic-bezier(0.1, 0.8, 0.2, 1);
      pointer-events: none;
    }
    .voice-intent-panel.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .voice-intent-card {
      padding: 18px;
      border-radius: 20px;
      background: rgba(10, 16, 32, 0.82);
      border: 1px solid rgba(124, 180, 255, 0.18);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
      display: grid;
      gap: 12px;
    }
    .voice-intent-badge {
      min-height: 28px;
      padding: 0 12px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: #cfe2ff;
      background: rgba(59, 130, 246, 0.16);
      border: 1px solid rgba(96, 165, 250, 0.28);
      white-space: nowrap;
    }
    .voice-intent-summary {
      color: #e2e8f0;
      font-size: 15px;
      line-height: 1.65;
    }
    .voice-slot-list,
    .voice-missing-list,
    .voice-secondary-card-list {
      display: grid;
      gap: 10px;
    }
    .voice-slot-row,
    .voice-missing-row {
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .voice-slot-row strong,
    .voice-missing-row strong {
      font-size: 12px;
      color: #93c5fd;
      font-weight: 700;
      flex: 0 0 auto;
    }
    .voice-slot-row span,
    .voice-missing-row span {
      color: #e2e8f0;
      font-size: 13px;
      line-height: 1.55;
      text-align: right;
      word-break: break-word;
    }
    .voice-missing-row strong {
      color: #fbbf24;
    }
    .voice-primary-card {
      width: 100%;
      border: 1px solid rgba(74, 222, 128, 0.34);
      background: linear-gradient(135deg, rgba(22, 101, 52, 0.58), rgba(21, 128, 61, 0.24));
    }
    .voice-primary-card .voice-action-icon {
      background: rgba(74, 222, 128, 0.18);
      color: #bbf7d0;
    }
    .voice-secondary-card {
      width: 100%;
      border-style: dashed;
    }
    .voice-action-card.warn {
      border-color: rgba(251, 191, 36, 0.35);
      background: linear-gradient(135deg, rgba(120, 53, 15, 0.36), rgba(15, 23, 42, 0.6));
    }
    .voice-action-card.warn .voice-action-icon {
      background: rgba(251, 191, 36, 0.16);
      color: #fde68a;
    }
    .voice-action-tip {
      font-size: 13px;
      color: #64748b;
      margin: 0 0 4px;
    }
    .voice-action-card {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(59, 130, 246, 0.3);
      border-radius: 16px;
      padding: 16px 18px;
      display: flex;
      align-items: center;
      gap: 14px;
      backdrop-filter: blur(10px);
      cursor: pointer;
      transition: background .2s ease, transform .1s ease, border-color .2s ease;
    }
    .voice-action-card:active {
      transform: scale(.98);
      background: rgba(59, 130, 246, 0.2);
    }
    .voice-action-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex: 0 0 auto;
      background: rgba(59, 130, 246, 0.2);
      color: #93c5fd;
    }
    .voice-action-content {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      text-align: left;
    }
    .voice-action-content strong {
      display: block;
      color: #e2e8f0;
      font-size: 15px;
      line-height: 1.35;
      width: 100%;
      text-align: left;
    }
    .voice-action-content span {
      display: block;
      margin-top: 4px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.45;
      width: 100%;
      text-align: left;
    }
    .voice-action-arrow {
      color: #60a5fa;
      font-size: 15px;
    }
    .voice-control {
      height: 224px;
      min-height: 224px;
      max-height: 224px;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 0 20px 16px;
      position: absolute;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-top: 1px solid rgba(255,255,255,0.04);
      background: linear-gradient(180deg, rgba(3, 6, 19, 0) 0%, rgba(3, 6, 19, 0.78) 24%, rgba(3, 6, 19, 0.98) 100%);
      z-index: 3;
    }
    .voice-hint {
      position: absolute;
      top: 18px;
      color: #64748b;
      font-size: 13px;
      letter-spacing: 2px;
      transition: opacity .3s ease;
    }
    .voice-mic-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .voice-ripple {
      position: absolute;
      width: 82px;
      height: 82px;
      border-radius: 50%;
      border: 2px solid #3b82f6;
      opacity: 0;
      pointer-events: none;
    }
    .voice-shell.is-recording .voice-ripple {
      animation: voiceRippleAnim 1.5s infinite ease-out;
    }
    .voice-shell.is-recording .voice-ripple:nth-child(2) { animation-delay: .5s; }
    .voice-wave {
      position: absolute;
      top: -38px;
      display: flex;
      gap: 6px;
      opacity: 0;
      transition: opacity .3s ease;
    }
    .voice-shell.is-recording .voice-wave { opacity: 1; }
    .voice-wave-bar {
      width: 4px;
      height: 20px;
      background: #60a5fa;
      border-radius: 2px;
    }
    .voice-shell.is-recording .voice-wave-bar { animation: voiceWaveAnim .6s infinite alternate ease-in-out; }
    .voice-wave-bar:nth-child(1) { animation-delay: .1s; }
    .voice-wave-bar:nth-child(2) { animation-delay: .3s; }
    .voice-wave-bar:nth-child(3) { animation-delay: 0s; }
    .voice-wave-bar:nth-child(4) { animation-delay: .4s; }
    .voice-wave-bar:nth-child(5) { animation-delay: .2s; }
    .voice-mic-btn {
      width: 82px;
      height: 82px;
      border-radius: 50%;
      padding: 0;
      border: none;
      background: linear-gradient(135deg, #2563eb, #1e40af);
      box-shadow: 0 10px 30px rgba(37, 99, 235, .4), inset 0 2px 10px rgba(255,255,255,.3);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      transition: all .2s ease;
      user-select: none;
      touch-action: none;
    }
    .voice-mic-btn svg {
      width: 32px;
      height: 32px;
      fill: #fff;
      transition: transform .2s ease;
    }
    .voice-mic-btn:active,
    .voice-shell.is-recording .voice-mic-btn {
      transform: scale(.92);
      box-shadow: 0 5px 15px rgba(37,99,235,.58), inset 0 5px 15px rgba(0,0,0,.3);
    }
    .voice-shell.is-recording .voice-mic-btn svg { transform: scale(1.08); }
    .voice-secondary-actions {
      margin-top: 16px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity .22s ease, transform .22s ease;
    }
    .voice-secondary-actions.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .voice-secondary-actions button {
      min-height: 38px;
      padding: 0 14px;
      color: #cbd5e1;
      background: rgba(255,255,255,0.08);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }
    .hidden { display: none !important; }
    @keyframes voiceRippleAnim {
      0% { transform: scale(1); opacity: .8; }
      100% { transform: scale(2.5); opacity: 0; }
    }
    @keyframes voiceWaveAnim {
      0% { transform: scaleY(.5); background: #3b82f6; }
      100% { transform: scaleY(1.8); background: #93c5fd; }
    }

    .profile-grid { display: grid; gap: 14px; }
    .profile-head { display: flex; align-items: center; gap: 14px; padding: 18px; }
    .profile-avatar { width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 900; background: linear-gradient(135deg, var(--dark), var(--blue)); }
    .profile-head h2 { margin: 0 0 4px; font-size: 20px; }
    .settings { padding: 16px; display: grid; gap: 12px; }
    .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(248,251,255,.9); border: 1px solid rgba(223,230,242,.8); }
    .setting-row .device-select { max-width: min(210px, 48vw); }
    .mounted-account-page {
      display: grid;
      gap: 14px;
    }
    .mounted-device-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      border: 1px solid rgba(223,230,242,.86);
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(248,251,255,.96), rgba(255,255,255,.9));
    }
    .mounted-device-row .device-select {
      width: min(260px, 48vw);
    }
    .mounted-account-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 6px;
      border-radius: 18px;
      background: rgba(238,244,255,.82);
    }
    .mounted-account-tabs button {
      min-height: 38px;
      padding: 0 10px;
      color: #62708a;
      background: transparent;
      box-shadow: none;
      font-size: 13px;
      font-weight: 900;
    }
    .mounted-account-tabs button.active {
      color: #fff;
      background: linear-gradient(135deg, #245cff, #13a873);
      box-shadow: 0 10px 24px rgba(36,92,255,.18);
    }
    .account-mount-row {
      display: grid;
      grid-template-columns: 1fr;
      align-items: stretch;
    }
    .mounted-account-list {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .mounted-account-item {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 8px;
      min-height: 48px;
      padding: 8px;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 14px;
      background: rgba(255,255,255,.9);
    }
    .mounted-account-item.default {
      border-color: rgba(19,168,115,.34);
      background: linear-gradient(135deg, rgba(235,255,245,.96), rgba(255,255,255,.92));
    }
    .mounted-account-icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      color: #245cff;
      background: rgba(36,92,255,.1);
      font-size: 13px;
      font-weight: 950;
    }
    .mounted-account-item.online .mounted-account-icon {
      color: #0c815b;
      background: rgba(19,168,115,.12);
    }
    .mounted-account-main {
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    .mounted-account-main strong {
      overflow: hidden;
      color: #102036;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 950;
    }
    .mounted-account-main strong b {
      margin-left: 5px;
      padding: 2px 6px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.12);
      font-size: 10px;
      vertical-align: 1px;
    }
    .mounted-account-main em {
      overflow: hidden;
      color: #6d7890;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 11px;
      font-style: normal;
      font-weight: 800;
    }
    .mounted-account-status {
      color: #6d7890;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .mounted-account-item.online .mounted-account-status {
      color: #0c815b;
    }
    .mounted-default-btn {
      min-height: 28px;
      padding: 0 10px;
      font-size: 12px;
      white-space: nowrap;
    }
    .mounted-default-btn.active {
      color: #0c815b;
      background: rgba(19,168,115,.12);
    }
    .mounted-auto-reply-btn {
      min-height: 28px;
      padding: 0 10px;
      color: #526178;
      border-color: rgba(82,97,120,.18);
      background: rgba(245,248,253,.9);
      font-size: 12px;
      white-space: nowrap;
    }
    .mounted-auto-reply-btn.active {
      color: #0c815b;
      border-color: rgba(19,168,115,.28);
      background: rgba(19,168,115,.12);
    }
    .mounted-auto-reply-btn:disabled {
      opacity: .58;
    }
    .mounted-account-empty {
      min-height: 44px;
      display: grid;
      place-items: center;
      color: #7b879b;
      border-radius: 14px;
      background: rgba(255,255,255,.72);
      font-size: 12px;
      font-weight: 800;
    }
    .setting-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .profile-entry {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px;
      color: #17233d;
      text-align: left;
      background: rgba(248,251,255,.92);
      border: 1px solid rgba(223,230,242,.86);
      border-radius: 18px;
      box-shadow: none;
    }
    .profile-entry span { display: grid; gap: 4px; min-width: 0; }
    .profile-entry strong { font-size: 16px; }
    .profile-entry small { color: var(--muted); line-height: 1.5; }
    .profile-entry b { flex: 0 0 auto; color: var(--blue); font-size: 13px; }
    .agent-profile-entry {
      background:
        radial-gradient(circle at 10% 20%, rgba(36,92,255,.15), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,255,.94));
      border-color: rgba(36,92,255,.2);
    }
    .agent-profile-entry strong { color: #0f2d6c; }
    .agent-profile-entry.agent-locked { opacity: .72; }
    .agent-profile-entry.agent-locked b { color: #8b97ad; }
    .list-page, .detail-page { padding: 16px; }
    .pager-actions { display: flex; justify-content: center; margin-top: 12px; }
    .runs { padding: 16px; }
    .run-list { display: grid; gap: 10px; }
    .run-card { padding: 12px; border-radius: 16px; background: rgba(248,251,255,.92); border: 1px solid rgba(223,230,242,.86); }
    .run-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
    .run-title { margin-top: 5px; font-weight: 800; }
    .run-result { margin-top: 6px; color: #40506c; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
    .run-media { width: min(100%, 680px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 12px; }
    .run-media-item { width: 100%; min-width: 0; display: grid; gap: 9px; }
    .run-media-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
    .run-media-actions a,
    .run-media-actions button {
      min-width: 0;
      min-height: 36px;
      padding: 7px 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 8px;
      color: var(--blue);
      background: rgba(36,92,255,.08);
      box-shadow: none;
      text-align: center;
      text-decoration: none;
      font-size: inherit;
      font-weight: 600;
    }
    .run-publish-actions { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
    .run-publish-actions button { padding: 5px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: none; font-size: inherit; }
    .run-publish-actions span { color: var(--muted); }
    .run-media video {
      width: 100%;
      height: auto;
      max-height: min(64vh, 620px);
      object-fit: contain;
      border-radius: 12px;
      background: #070b12;
    }
    .run-media img {
      width: 100%;
      height: auto;
      max-height: min(64vh, 620px);
      object-fit: contain;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #f4f7fb;
    }
    .run-media audio { width: 100%; min-height: 48px; }
    .task-list { display: grid; gap: 10px; }
    .task-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(248,251,255,.92); border: 1px solid rgba(223,230,242,.86); }
    .task-row-main { min-width: 0; }
    .task-row-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .task-row-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
    .task-row-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    .task-action-menu { position: relative; flex: 0 0 auto; }
    .task-action-menu summary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 5px 12px;
      border: 1px solid rgba(36,92,255,.18);
      border-radius: 999px;
      color: var(--blue);
      background: rgba(36,92,255,.08);
      box-shadow: none;
      font-weight: 800;
      font-size: 12px;
      cursor: pointer;
      list-style: none;
      user-select: none;
    }
    .task-action-menu summary::-webkit-details-marker { display: none; }
    .task-action-menu[open] summary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
    .task-action-list {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 80;
      display: grid;
      gap: 4px;
      min-width: 132px;
      padding: 8px;
      border: 1px solid rgba(223,230,242,.95);
      border-radius: 14px;
      background: rgba(255,255,255,.98);
      box-shadow: 0 16px 34px rgba(23,35,61,.16);
    }
    .task-action-list button {
      width: 100%;
      padding: 8px 10px;
      border-radius: 10px;
      color: #17233d;
      background: transparent;
      box-shadow: none;
      text-align: left;
      font-size: 12px;
      font-weight: 700;
    }
    .task-action-list button:hover { background: rgba(36,92,255,.08); color: var(--blue); }
    .task-action-list .danger-text { color: #d9483b; }
    .task-detail-actions .task-action-list { left: 0; right: auto; }
    .task-detail-popover { max-width: min(760px, 94vw); width: 760px; max-height: 84vh; overflow: auto; }
    .task-detail-body, .detail-body { display: grid; gap: 12px; margin-top: 14px; color: #17233d; }
    .task-detail-section { border: 1px solid rgba(223,230,242,.92); border-radius: 14px; background: rgba(248,251,255,.9); padding: 12px; }
    .task-detail-section h4 { margin: 0 0 8px; font-size: 15px; }
    .task-detail-section pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.55; color: #263858; max-height: 180px; overflow: auto; }
    .task-detail-result-primary {
      border-color: rgba(54,103,255,.2);
      background: linear-gradient(135deg, rgba(240,246,255,.96), rgba(255,253,247,.98));
      box-shadow: 0 12px 26px rgba(36,92,255,.08);
    }
    .task-detail-result-primary h4 { color: #1742c6; }
    .task-detail-result-primary pre {
      max-height: none;
      font-size: 13px;
      color: #17233d;
    }
    .task-detail-result-details .task-detail-record pre { max-height: 260px; }
    .task-detail-technical {
      background: rgba(248,251,255,.55);
      border-style: dashed;
    }
    .task-detail-technical summary {
      cursor: pointer;
      color: #66758f;
      font-size: 13px;
      font-weight: 800;
      list-style-position: inside;
    }
    .task-detail-technical-body { margin-top: 10px; }
    .task-detail-record { border-top: 1px solid rgba(223,230,242,.9); padding-top: 10px; margin-top: 10px; }
    .task-detail-record:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
    .task-detail-record strong { display: block; margin-bottom: 6px; }
    .personal-settings-page {
      display: grid;
      gap: 12px;
      max-width: 100%;
      min-width: 0;
      overflow-x: hidden;
      background:
        radial-gradient(circle at 0 0, rgba(16,169,145,.13), transparent 34%),
        linear-gradient(150deg, rgba(255,250,239,.82), rgba(239,248,255,.9) 60%, rgba(248,252,255,.96));
    }
    .personal-settings-page *,
    .personal-settings-page *::before,
    .personal-settings-page *::after {
      min-width: 0;
    }
    .personal-settings-page input,
    .personal-settings-page select,
    .personal-settings-page textarea,
    .personal-settings-page button {
      max-width: 100%;
    }
    .personal-tabs {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 6px;
      padding: 6px;
      width: 100%;
      border-radius: 18px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(26,48,88,.08);
    }
    .personal-tabs button { padding: 10px 6px; border-radius: 14px; color: #49607f; background: transparent; box-shadow: none; font-size: 12px; font-weight: 900; white-space: nowrap; }
    .personal-tabs button.active { color: #fff; background: linear-gradient(135deg, #0f8f7a, #18a9c8); box-shadow: 0 12px 26px rgba(15,143,122,.22); }
    .personal-status {
      padding: 10px 12px;
      border-radius: 14px;
      color: #0b6d5e;
      background: rgba(15,143,122,.1);
      border: 1px solid rgba(15,143,122,.2);
      font-weight: 800;
      font-size: 13px;
    }
    .personal-status.error {
      color: #b42318;
      background: #fff1f0;
      border-color: rgba(210,63,43,.24);
    }
    .personal-panel { display: none; }
    .personal-panel.active { display: block; }
    .personal-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 12px; align-items: start; }
    .personal-template-stack { display: grid; gap: 12px; }
    .personal-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .personal-form-grid .full {
      grid-column: 1 / -1;
    }
    .personal-survey-wizard {
      display: grid;
      gap: 13px;
      padding: 16px;
      border: 1px solid rgba(26,48,88,.1);
      border-radius: 22px;
      background:
        radial-gradient(circle at 14% 0, rgba(15,143,122,.16), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,252,248,.95));
      box-shadow: 0 18px 42px rgba(20,36,64,.07);
    }
    .personal-survey-top {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      color: #49607f;
      font-size: 12px;
      font-weight: 900;
    }
    .personal-survey-bar {
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(26,48,88,.1);
    }
    .personal-survey-bar i {
      display: block;
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #0f8f7a, #18a9c8);
      transition: width .2s ease;
    }
    .personal-survey-card {
      display: grid;
      gap: 12px;
      padding: 16px;
      border-radius: 20px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(26,48,88,.1);
    }
    .personal-survey-card strong {
      color: #17233d;
      font-size: 17px;
      line-height: 1.35;
    }
    .personal-survey-answer input,
    .personal-survey-answer textarea {
      width: 100%;
      box-sizing: border-box;
      border-radius: 16px;
      border: 1px solid rgba(26,48,88,.14);
      background: #fff;
      color: #17233d;
      font-size: 15px;
      line-height: 1.55;
      padding: 12px 13px;
    }
    .personal-survey-answer input::placeholder,
    .personal-survey-answer textarea::placeholder {
      color: rgba(73,96,127,.46);
    }
    .personal-survey-answer textarea {
      min-height: 138px;
      resize: vertical;
    }
    .personal-survey-placeholder {
      margin: -4px 2px 0;
      color: rgba(73,96,127,.56);
      font-size: 12px;
      line-height: 1.45;
    }
    .personal-survey-actions {
      display: grid;
      grid-template-columns: auto 1fr 1fr;
      gap: 8px;
      align-items: center;
    }
    .personal-survey-actions button {
      padding: 10px 12px;
      border-radius: 999px;
      font-size: 13px;
    }
    .personal-survey-actions button[hidden],
    .personal-survey-hidden {
      display: none;
    }
    .personal-template-editor-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .personal-template-editor-head button { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: 12px; }
    .personal-template-list { display: grid; gap: 8px; }
    .personal-template-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px;
      border: 1px solid rgba(26,48,88,.1);
      border-radius: 16px;
      background: rgba(255,255,255,.9);
    }
    .personal-template-card.active { border-color: rgba(36,92,255,.42); box-shadow: inset 3px 0 0 rgba(36,92,255,.75); }
    .personal-template-card.default {
      background: linear-gradient(135deg, rgba(36,92,255,.08), rgba(255,255,255,.94));
    }
    .personal-template-card strong { display: block; color: #17233d; }
    .personal-template-badge {
      display: inline-flex;
      align-items: center;
      margin-left: 8px;
      padding: 2px 7px;
      border-radius: 999px;
      color: #245cff;
      background: rgba(36,92,255,.1);
      font-size: 11px;
      font-weight: 950;
      vertical-align: middle;
    }
    .personal-template-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
    .personal-template-card button { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: rgba(36,92,255,.08); color: var(--blue); box-shadow: none; font-size: 12px; }
    .personal-template-card button.danger-text { color: #d9483b; background: rgba(217,72,59,.08); }
    .personal-current-template {
      display: grid;
      gap: 8px;
    }
    .personal-block {
      display: grid;
      gap: 11px;
      padding: 14px;
      border: 1px solid rgba(26,48,88,.1);
      border-radius: 20px;
      background: rgba(255,255,255,.86);
      box-shadow: 0 18px 42px rgba(20,36,64,.07);
      max-width: 100%;
      overflow: hidden;
    }
    .personal-card-accent {
      background:
        radial-gradient(circle at 12% 0, rgba(15,143,122,.15), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(244,252,248,.94));
    }
    .personal-field { display: grid; gap: 6px; }
    .personal-field label, .personal-field > span { color: #34425c; font-size: 13px; font-weight: 900; }
    .personal-field textarea { min-height: 92px; line-height: 1.62; resize: vertical; }
    .personal-list { display: grid; gap: 8px; }
    .personal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid rgba(26,48,88,.1); border-radius: 15px; background: rgba(255,255,255,.92); }
    .personal-row label { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .personal-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .personal-row button { padding: 5px 9px; border-radius: 999px; background: rgba(36,92,255,.08); color: var(--blue); box-shadow: none; font-size: 12px; }
    .personal-row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
    .personal-empty { color: var(--muted); font-size: 13px; padding: 11px; border: 1px dashed rgba(26,48,88,.18); border-radius: 14px; background: rgba(255,255,255,.64); }
    .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .inline-form.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .personal-upload-zone {
      display: grid;
      gap: 8px;
      padding: 11px;
      border-radius: 18px;
      border: 1px dashed rgba(15,143,122,.38);
      background: rgba(15,143,122,.06);
    }
    .personal-file-list { display: grid; gap: 6px; }
    .personal-file-chip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 13px;
      color: #49607f;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(26,48,88,.09);
      font-size: 12px;
    }
    .personal-file-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .personal-file-chip button { flex: 0 0 auto; padding: 4px 8px; color: #b42318; background: transparent; box-shadow: none; }
    .personal-memory-sources { display: grid; gap: 8px; }
    .personal-source-card {
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 15px;
      background: rgba(248,251,255,.92);
      border: 1px solid rgba(26,48,88,.1);
    }
    .personal-source-card > span,
    .personal-source-profile span { color: #263858; font-size: 13px; font-weight: 900; }
    .personal-source-profile {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
    }
    .personal-source-list { display: grid; gap: 6px; }
    .personal-source-option {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 7px;
      align-items: start;
      min-width: 0;
      font-size: 12px;
      color: #49607f;
    }
    .personal-source-option strong {
      display: block;
      color: #17233d;
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .personal-source-option small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .personal-source-option input,
    .personal-source-profile input { width: auto; min-height: auto; margin-top: 2px; }
    .personal-doc-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .personal-doc-types label {
      display: flex;
      align-items: center;
      gap: 7px;
      min-height: 42px;
      padding: 9px;
      border-radius: 14px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(26,48,88,.1);
      font-weight: 900;
      color: #263858;
      font-size: 12px;
    }
    .personal-doc-types input, .personal-row input { width: auto; min-height: auto; }
    .personal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .personal-actions button { padding: 9px 12px; border-radius: 999px; font-size: 12px; }
    .personal-generated-list { display: grid; gap: 10px; }
    .personal-generated-doc {
      display: grid;
      gap: 8px;
      padding: 11px;
      border-radius: 17px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(26,48,88,.1);
    }
    .personal-generated-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .personal-generated-head label { display: inline-flex; gap: 6px; align-items: center; color: #49607f; font-size: 12px; font-weight: 800; }
    .personal-generated-doc textarea { min-height: 200px; line-height: 1.65; background: #fbfcff; }
    .personal-memory-preview {
      margin: 0;
      padding: 12px;
      border-radius: 16px;
      background: #101827;
      color: #eef7f3;
      border: 0;
      white-space: pre-wrap;
      word-break: break-word;
      line-height: 1.62;
      max-height: 360px;
      overflow: auto;
      font-size: 13px;
    }
    .agent-manage-page {
      background:
        radial-gradient(circle at 0 0, rgba(36,92,255,.12), transparent 34%),
        linear-gradient(150deg, rgba(244,250,255,.95), rgba(239,252,247,.94));
    }
    .agent-summary-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }
    .agent-summary-grid > div {
      display: grid;
      gap: 3px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(26,48,88,.09);
      box-shadow: 0 14px 32px rgba(20,36,64,.06);
    }
    .agent-summary-grid span { color: #66748c; font-size: 12px; font-weight: 800; }
    .agent-summary-grid strong { color: #1747d4; font-size: 22px; line-height: 1.1; }
    .agent-manage-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 12px; align-items: start; }
    .agent-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 20px;
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(26,48,88,.1);
      box-shadow: 0 18px 44px rgba(20,36,64,.08);
      overflow: hidden;
    }
    .agent-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .agent-card-head button { flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; font-size: 12px; }
    .agent-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .agent-search button { padding: 0 13px; border-radius: 999px; font-size: 12px; }
    .agent-user-list,
    .agent-resource-list { display: grid; gap: 7px; }
    .agent-user-row,
    .agent-resource-row {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      padding: 9px 10px;
      border-radius: 14px;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(26,48,88,.1);
      color: #17233d;
      font-size: 13px;
      font-weight: 800;
    }
    .agent-user-row.active { border-color: rgba(36,92,255,.45); box-shadow: inset 3px 0 0 rgba(36,92,255,.8); }
    .agent-user-row input,
    .agent-resource-row input,
    .workflow-sub-user input {
      width: 15px;
      height: 15px;
      min-height: auto;
      margin: 0;
      accent-color: #245cff;
    }
    .agent-user-main,
    .agent-resource-main { min-width: 0; display: grid; gap: 3px; }
    .agent-user-main strong,
    .agent-user-main span,
    .agent-resource-main strong,
    .agent-resource-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .agent-user-main span,
    .agent-resource-main span { color: #6d7890; font-size: 11px; font-weight: 700; }
    .agent-pager,
    .workflow-grant-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6d7890; font-size: 12px; }
    .agent-pager button,
    .workflow-grant-pager button { padding: 6px 10px; border-radius: 999px; font-size: 12px; }
    .agent-grant-grid { display: grid; gap: 10px; }
    .agent-grant-grid section {
      display: grid;
      gap: 8px;
      padding: 11px;
      border-radius: 17px;
      background: rgba(245,248,255,.76);
      border: 1px solid rgba(26,48,88,.08);
    }
    .agent-grant-grid h3 { margin: 0; font-size: 14px; color: #17233d; }
    @media (max-width: 720px) {
      .personal-settings-page { padding-left: 10px; padding-right: 10px; border-radius: 22px; }
      .personal-grid,
      .personal-form-grid,
      .agent-summary-grid,
      .agent-manage-layout,
      .personal-settings-page .inline-form,
      .inline-form.three,
      .personal-doc-types { grid-template-columns: 1fr; }
      .personal-tabs { gap: 5px; padding: 5px; }
      .personal-tabs button { padding: 9px 3px; font-size: 12px; letter-spacing: 0; }
      .personal-block { padding: 12px; }
      .personal-survey-wizard { padding: 13px; }
      .personal-survey-actions { grid-template-columns: 1fr 1fr; }
      .personal-survey-actions #personalSaveProfileBtn { grid-column: 1 / -1; }
      .personal-row { align-items: flex-start; }
      .personal-row label { flex: 1 1 auto; }
      .personal-row-actions { flex-direction: column; }
      .personal-template-card,
      .personal-template-editor-head {
        align-items: flex-start;
      }
      .personal-template-card { flex-direction: column; }
      .personal-template-card button { align-self: flex-start; }
      #personalSaveDefaultBtn,
      #personalSaveMemoryBtn {
        width: 100%;
        justify-self: stretch;
      }
    }
    .run-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .run-detail-actions button { padding: 8px 12px; border-radius: 999px; font-size: 12px; }
    .moment-item, .copy-item { border-top: 1px solid rgba(223,230,242,.9); padding-top: 10px; margin-top: 10px; }
    .moment-item:first-child, .copy-item:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
    .moment-summary, .copy-summary {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 11px;
      color: #17233d;
      text-align: left;
      background: #fff;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 12px;
      box-shadow: none;
    }
    .moment-summary span, .copy-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
    .moment-summary small, .copy-summary small { flex: 0 0 auto; color: var(--blue); }
    .moment-detail, .copy-detail { display: none; margin-top: 10px; }
    .moment-item.open .moment-detail, .copy-item.open .copy-detail { display: grid; gap: 10px; }
    .moment-select-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
    .moment-select-row label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(36,92,255,.08); color: #263858; }
    .moment-select-row input { width: auto; }
    .task-detail-moments-copy {
      margin: 0;
      padding: 12px;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 12px;
      background: #fffdf9;
      color: #17233d;
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
      font-size: 14px;
      line-height: 1.78;
      max-height: 420px;
      overflow: auto;
    }
    .task-detail-prompts { display: grid; gap: 6px; margin-top: 8px; color: #66758f; font-size: 12px; }
    .task-detail-prompts label, .task-detail-prompts span { display: flex; gap: 6px; align-items: flex-start; }
    .task-detail-prompts input { width: auto; margin-top: 2px; }
    .copy-summary-row, .moment-summary-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
    .summary-check { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 12px; color: #263858; background: rgba(36,92,255,.08); font-size: 12px; }
    .summary-check input { width: auto; min-height: auto; }
    .copy-summary { min-width: 0; }
    .copy-summary span { white-space: normal; overflow-wrap: anywhere; }
    .copy-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 10px; }
    .copy-toolbar button { padding: 7px 11px; border-radius: 999px; font-size: 12px; }
    .copy-toolbar .ghost { color: var(--blue); background: rgba(36,92,255,.09); box-shadow: none; }
    .detail-body, .task-detail-body, .task-detail-section, .task-detail-record { max-width: 100%; min-width: 0; overflow-x: hidden; }
    .task-detail-section pre { overflow-wrap: anywhere; overflow-x: hidden; }
    .moment-image-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .moment-image-actions button { padding: 7px 11px; border-radius: 999px; font-size: 12px; }
    .moment-image-status { color: var(--muted); font-size: 12px; }
    .moment-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
    .moment-image-tile { display: grid; gap: 5px; }
    .moment-image-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #f8fbff; }
    .moment-image-tile a { font-size: 12px; color: var(--blue); }
    .work-shell { display: grid; gap: 14px; }
    .work-filter-bar {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(223,230,242,.9);
    }
    .work-filter-bar strong { display: block; color: #17233d; font-size: 15px; }
    .work-filter-bar span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
    .work-scope-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
    .work-scope-chips button {
      flex: 0 0 auto;
      padding: 7px 12px;
      border-radius: 999px;
      color: #40506c;
      background: rgba(36,92,255,.07);
      box-shadow: none;
      font-size: 12px;
      font-weight: 800;
    }
    .work-scope-chips button.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
    .work-header {
      padding: 20px;
      border-radius: 28px;
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(255,255,255,.74);
      box-shadow: var(--shadow);
    }
    .work-title {
      display: flex;
      align-items: center;
      gap: 9px;
      margin: 0;
      font-size: 28px;
      letter-spacing: 0;
    }
    .work-title::before {
      content: "";
      width: 5px;
      height: 34px;
      border-radius: 999px;
      background: linear-gradient(180deg, var(--blue), var(--cyan));
    }
    .work-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
    .work-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
    .work-summary-card {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 76px;
      padding: 12px;
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(223,230,242,.86);
    }
    .work-summary-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--blue);
      background: rgba(36,92,255,.08);
      font-weight: 900;
    }
    .work-summary-card strong { display: block; font-size: 24px; color: var(--blue); }
    .work-summary-card span { color: var(--muted); font-size: 12px; }
    .work-timeline {
      position: relative;
      display: grid;
      gap: 12px;
      padding: 4px 0 28px;
    }
    .work-node {
      position: relative;
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr);
      gap: 14px;
      align-items: stretch;
    }
    .work-time {
      position: relative;
      display: grid;
      justify-items: end;
      align-content: start;
      gap: 4px;
      padding-top: 14px;
      color: var(--muted);
      font-size: 13px;
    }
    .work-time::after {
      content: "";
      position: absolute;
      right: -8px;
      top: 20px;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 0 0 5px rgba(36,92,255,.12);
    }
    .work-time::before {
      content: "";
      position: absolute;
      right: -3px;
      top: 0;
      bottom: -24px;
      width: 2px;
      background: rgba(36,92,255,.24);
    }
    .work-time strong { color: var(--blue); font-size: 17px; }
    .work-card {
      display: grid;
      gap: 10px;
      padding: 15px;
      border-radius: 20px;
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(223,230,242,.82);
      box-shadow: 0 12px 30px rgba(29,54,105,.12);
    }
    .work-card.current { border-left: 5px solid var(--green); }
    .work-card.future { border-left: 5px solid var(--cyan); }
    .work-card.scheduled { border-left: 5px solid #7c8ca8; }
    .work-card.done { border-left: 5px solid var(--blue); }
    .work-card.failed { border-left: 5px solid var(--orange); }
    .work-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .work-card-title { font-size: 18px; font-weight: 900; word-break: break-word; }
    .work-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--blue); background: rgba(36,92,255,.08); font-size: 12px; font-weight: 800; }
    .work-card.current .work-badge { color: var(--green); background: rgba(19,168,115,.1); }
    .work-card.scheduled .work-badge { color: #42526b; background: rgba(124,140,168,.14); }
    .work-card.failed .work-badge { color: var(--orange); background: rgba(240,139,45,.12); }
    .work-meta { color: var(--muted); font-size: 12px; line-height: 1.55; }
    .work-card-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
    .work-card-actions button { min-height: 36px; padding: 0 12px; }

    .task-success-dialog {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: grid;
      place-items: center;
      padding: 20px;
    }
    .task-success-backdrop {
      position: absolute;
      inset: 0;
      border-radius: 0;
      background: rgba(15, 27, 52, .38);
      box-shadow: none;
    }
    .task-success-panel {
      position: relative;
      width: min(420px, 100%);
      padding: 24px;
      border-radius: 28px;
      border: 1px solid rgba(255,255,255,.78);
      background:
        radial-gradient(circle at 18% 12%, rgba(22,199,154,.22), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(236,250,247,.96));
      box-shadow: 0 28px 80px rgba(19,33,60,.26);
      display: grid;
      gap: 10px;
    }
    .task-success-kicker {
      color: #0f766e;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .16em;
    }
    .task-success-panel h3 {
      margin: 0;
      color: var(--ink);
      font-size: 26px;
      line-height: 1.2;
    }
    .task-success-panel p {
      margin: 0;
      color: var(--muted);
      line-height: 1.7;
    }
    .task-success-actions {
      margin-top: 8px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .task-success-actions button { min-height: 40px; padding: 0 16px; }

    .toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 11px 14px; border-radius: 999px; color: #fff; background: rgba(19,33,60,.9); box-shadow: 0 18px 44px rgba(19,33,60,.28); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 100; }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
    @media (max-width: 760px) {
      .shell { width: 100%; padding: 14px 12px 28px; }
      .topbar { top: 12px; border-radius: 18px; }
      .settings, .list-page, .detail-page { padding-left: 12px; padding-right: 12px; }
      .subtitle { display: none; }
      .top-action-label { display: none; }
      .top-action { width: 40px; padding: 0; }
      .office-hero { border-radius: 20px; padding: 10px; }
      .boss-card { grid-template-columns: 72px minmax(0, 1fr); min-height: 98px; padding: 7px 9px 7px 4px; }
      .boss-avatar { width: 72px; height: 86px; }
      .boss-info { gap: 5px; }
      .boss-info strong { font-size: 16px; }
      .boss-info span { font-size: 11px; }
      .boss-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
      .boss-metric { padding: 5px 4px; gap: 2px; border-radius: 10px; }
      .boss-metric strong { font-size: 15px; }
      .boss-metric span { font-size: 10px; }
      .office-filter-note { left: 10px; right: 10px; top: 58px; max-width: none; min-height: 34px; justify-content: center; padding: 0 10px; }
      .employee-pager { top: 100px; left: 10px; right: 10px; justify-content: center; }
      .office-floor { border-radius: 22px; padding: 62px 10px 10px; min-height: 560px; }
      .company-sign { left: 10px; right: 10px; justify-content: center; }
      .employee-card { width: 126px; }
      .employee-scene { width: 126px; }
      .employee-progress-bubble { max-width: 126px; font-size: 11px; top: -58px; padding: 7px 8px; }
      .employee-task-step { grid-template-columns: 58px minmax(0, 1fr); }
      .hire-fab { right: 16px; bottom: 18px; max-width: calc(100vw - 32px); padding: 0 14px; }
      .hero { border-radius: 22px; padding: 15px; }
      .task-fields, .task-param-fields, .digital-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .task-fields .field:first-child,
      .task-param-fields .field.full,
      .digital-fields .field:last-child { grid-column: 1 / -1; }
      .work-dispatch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .work-dispatch-fields .field.full { grid-column: 1 / -1; }
      .chat { height: calc(100dvh - 112px); }
      .messages { max-height: none; min-height: 0; }
      .bubble { max-width: 94%; }
      .bubble.bot { max-width: 100%; }
      .media-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .media-preview img, .media-preview video { max-height: min(44vh, 260px); }
      .media-actions { gap: 6px; }
      .media-actions a { padding: 5px 9px; }
      .composer { grid-template-columns: 1fr; }
      .composer-input { grid-template-columns: 1fr auto; }
      .composer.expanded textarea { min-height: 220px; max-height: 48vh; }
      .composer button { height: 46px; }
      .quick-card { min-height: 92px; }
      .section-title { align-items: flex-start; gap: 8px; }
      .department-hero { flex-direction: column; border-radius: 22px; padding: 15px; }
      .department-hero .hero-action { width: 100%; }
      .department-skill-grid,
      .ability-child-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ability-detail-main { align-items: flex-start; }
      .ability-actions { justify-content: stretch; }
      .ability-actions button { flex: 1 1 150px; }
      .chat-context { align-items: flex-start; }
      .work-summary-grid { grid-template-columns: 1fr; }
      .work-node { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
      .work-card-title { font-size: 16px; }
    }

    /* H5 role lobby: do not reuse the old device-office visual shell. */
    #officeView .office-hero,
    #officeView .hire-fab {
      display: none !important;
    }
    #officeView .office-grid {
      display: block;
    }
    #officeView .office-floor {
      min-height: auto !important;
      display: grid;
      gap: 14px;
      padding: 14px !important;
      overflow: visible;
      border-radius: 28px;
      background:
        radial-gradient(circle at 12% 8%, rgba(19,168,115,.14), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(240,139,45,.13), transparent 30%),
        linear-gradient(150deg, rgba(247,252,248,.96), rgba(236,247,255,.92) 48%, rgba(255,249,238,.9));
      border: 1px solid rgba(223,230,242,.86);
      box-shadow: var(--shadow);
    }
    #officeView .office-floor::before,
    #officeView .office-floor::after {
      display: none;
    }
    #officeView .company-sign {
      position: static;
      justify-content: center;
      max-width: none;
      width: 100%;
      margin: 0 0 2px;
      background: linear-gradient(135deg, #fff7d6, #e6fff6);
    }
    .department-role-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .department-role-card {
      position: relative;
      min-height: 184px;
      display: grid;
      align-content: space-between;
      justify-items: center;
      gap: 10px;
      padding: 14px 10px 12px;
      color: var(--ink);
      text-align: center;
      border-radius: 24px;
      border: 1px solid rgba(255,255,255,.78);
      background:
        linear-gradient(160deg, rgba(255,255,255,.92), rgba(241,249,255,.84)),
        var(--role-bg, #fff);
      box-shadow: 0 16px 36px rgba(29,54,105,.13);
      overflow: hidden;
    }
    .department-role-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 18% 14%, var(--role-glow, rgba(19,168,115,.18)), transparent 38%);
      pointer-events: none;
    }
    .department-role-avatar {
      position: relative;
      z-index: 1;
      width: min(96px, 30vw);
      height: 118px;
      object-fit: contain;
      filter: drop-shadow(0 16px 14px rgba(22,45,84,.18));
    }
    .department-role-meta {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 6px;
      justify-items: center;
      width: 100%;
    }
    .department-role-name {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      max-width: 100%;
      padding: 7px 10px;
      border-radius: 999px;
      color: #102036;
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(223,230,242,.82);
      box-shadow: 0 8px 18px rgba(29,54,105,.12);
      font-size: 14px;
      font-weight: 900;
    }
    .department-role-count {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #0c815b;
      font-size: 12px;
      font-weight: 900;
    }
    .department-role-count::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
    }
    .department-role-bubble {
      position: absolute;
      z-index: 2;
      left: 50%;
      top: 10px;
      max-width: calc(100% - 18px);
      padding: 7px 9px;
      border-radius: 14px 14px 14px 5px;
      color: #102036;
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(223,230,242,.9);
      box-shadow: 0 10px 24px rgba(20,55,132,.14);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.4;
      transform: translateX(-50%);
    }
    .department-role-card.has-bubble .department-role-avatar {
      margin-top: 32px;
    }
    .secretary-role-card {
      min-height: 244px;
      background:
        radial-gradient(circle at 50% 14%, rgba(78,210,255,.34), transparent 30%),
        radial-gradient(circle at 12% 88%, rgba(19,168,115,.2), transparent 32%),
        linear-gradient(150deg, rgba(10,22,48,.96), rgba(20,44,84,.92) 55%, rgba(10,84,92,.88));
      color: #ecfeff;
      border-color: rgba(137, 227, 255, .42);
      box-shadow: 0 20px 42px rgba(8,28,64,.28), inset 0 0 0 1px rgba(255,255,255,.08);
    }
    .secretary-role-card::before {
      background:
        linear-gradient(90deg, transparent 0 48%, rgba(138,241,255,.16) 49% 51%, transparent 52%),
        linear-gradient(0deg, transparent 0 48%, rgba(138,241,255,.12) 49% 51%, transparent 52%);
      background-size: 28px 28px;
      opacity: .8;
    }
    .secretary-role-card .department-role-name {
      color: #ecfeff;
      background: rgba(4,18,38,.68);
      border-color: rgba(137,227,255,.34);
      box-shadow: 0 12px 28px rgba(16,185,219,.22);
    }
    .secretary-role-card .department-role-count { color: #8ff5ff; }
    .secretary-role-img {
      position: relative;
      z-index: 1;
      width: auto;
      height: 188px;
      object-fit: contain;
      margin: -10px 0 -4px;
      filter: drop-shadow(0 20px 20px rgba(0,0,0,.3));
      animation: secretary-float 3.2s ease-in-out infinite;
    }
    .secretary-mini-orbit {
      position: absolute;
      inset: 28px 34px 62px;
      border: 1px solid rgba(143,245,255,.36);
      border-radius: 50%;
      transform: rotate(-16deg);
      animation: secretary-orbit-spin 8s linear infinite;
    }
    .secretary-mini-orbit::before,
    .secretary-mini-orbit::after {
      content: "";
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #8ff5ff;
      box-shadow: 0 0 18px rgba(143,245,255,.9);
    }
    .secretary-mini-orbit::before { left: 14%; top: 10%; }
    .secretary-mini-orbit::after { right: 12%; bottom: 16%; background: #34d399; }
    .secretary-mini-figure {
      position: relative;
      z-index: 1;
      width: 104px;
      height: 124px;
      margin-top: 2px;
      filter: drop-shadow(0 18px 18px rgba(0,0,0,.28));
      animation: secretary-float 3.2s ease-in-out infinite;
    }
    .secretary-mini-head {
      position: absolute;
      left: 34px;
      top: 10px;
      width: 38px;
      height: 42px;
      border-radius: 45% 45% 48% 48%;
      background:
        radial-gradient(circle at 32% 32%, #fff, transparent 18%),
        linear-gradient(145deg, #e9fbff, #81d9ff 68%, #2f80ff);
      box-shadow: inset 0 -8px 18px rgba(20,60,110,.22);
    }
    .secretary-mini-body {
      position: absolute;
      left: 24px;
      top: 49px;
      width: 58px;
      height: 62px;
      border-radius: 28px 28px 18px 18px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(142,225,255,.9) 42%, rgba(36,92,255,.92));
      clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
    }
    .secretary-mini-screen {
      position: absolute;
      right: 4px;
      bottom: 18px;
      width: 38px;
      height: 28px;
      border-radius: 10px;
      background: rgba(6,20,44,.74);
      border: 1px solid rgba(143,245,255,.48);
      box-shadow: 0 0 18px rgba(22,211,238,.28);
    }
    .secretary-shell {
      display: grid;
      gap: 14px;
      padding: 14px;
      border-radius: 28px;
      color: #e8f7ff;
      background:
        radial-gradient(circle at 16% 0%, rgba(34,211,238,.28), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(59,130,246,.22), transparent 32%),
        linear-gradient(160deg, #061225, #10264b 48%, #071b2f);
      box-shadow: 0 24px 60px rgba(5,18,44,.36), inset 0 0 0 1px rgba(173,232,255,.14);
      overflow: hidden;
    }
    .secretary-command {
      position: relative;
      min-height: 190px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 150px;
      gap: 10px;
      align-items: center;
      padding: 18px;
      border-radius: 24px;
      background:
        linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
        radial-gradient(circle at 72% 40%, rgba(143,245,255,.2), transparent 36%);
      border: 1px solid rgba(173,232,255,.16);
    }
    .secretary-kicker {
      color: #67e8f9;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .16em;
    }
    .secretary-command h2 {
      margin: 6px 0 4px;
      color: #fff;
      font-size: clamp(28px, 7vw, 42px);
      line-height: 1.05;
      letter-spacing: -.04em;
    }
    .secretary-subtitle { color: rgba(232,247,255,.72); font-size: 13px; font-weight: 800; }
    .secretary-avatar-stage {
      position: relative;
      width: 166px;
      height: 166px;
      justify-self: end;
    }
    .secretary-orbit {
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      border: 1px solid rgba(143,245,255,.34);
      animation: secretary-orbit-spin 9s linear infinite;
    }
    .secretary-orbit.orbit-b {
      inset: 24px 5px;
      transform: rotate(62deg);
      border-color: rgba(52,211,153,.32);
      animation-duration: 6.8s;
      animation-direction: reverse;
    }
    .secretary-avatar-figure {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 96px;
      height: 124px;
      transform: translate(-50%, -50%);
      animation: secretary-centered-float 3.4s ease-in-out infinite;
    }
    .secretary-head {
      position: absolute;
      left: 29px;
      top: 10px;
      width: 42px;
      height: 46px;
      border-radius: 46% 46% 50% 50%;
      background: linear-gradient(145deg, #fff, #a5f3fc 52%, #38bdf8);
    }
    .secretary-body {
      position: absolute;
      left: 20px;
      top: 55px;
      width: 60px;
      height: 66px;
      border-radius: 30px 30px 18px 18px;
      background: linear-gradient(135deg, #ecfeff, #67e8f9 46%, #245cff);
      clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
    }
    .secretary-tablet {
      position: absolute;
      right: 0;
      top: 76px;
      width: 42px;
      height: 30px;
      border-radius: 10px;
      background: rgba(4,18,38,.82);
      border: 1px solid rgba(143,245,255,.52);
      box-shadow: 0 0 24px rgba(34,211,238,.3);
    }
    .secretary-cockpit-img {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 1;
      width: auto;
      max-width: none;
      height: 208px;
      transform: translate(-50%, -50%);
      filter: drop-shadow(0 22px 24px rgba(0,0,0,.34));
      animation: secretary-centered-float 3.4s ease-in-out infinite;
    }
    .secretary-metrics,
    .secretary-focus,
    .secretary-department-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .secretary-section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: rgba(236,254,255,.9);
      font-size: 16px;
      font-weight: 950;
      letter-spacing: -.02em;
    }
    .secretary-section-title strong {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .secretary-section-title strong::before {
      content: "";
      width: 8px;
      height: 18px;
      border-radius: 999px;
      background: linear-gradient(180deg, #67e8f9, #34d399);
      box-shadow: 0 0 18px rgba(103,232,249,.6);
    }
    .secretary-metric,
    .secretary-focus-card,
    .secretary-dept-card,
    .secretary-trend-panel {
      position: relative;
      border: 1px solid rgba(173,232,255,.14);
      background: rgba(255,255,255,.08);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 16px 38px rgba(0,0,0,.2);
      backdrop-filter: blur(14px);
    }
    .secretary-metric {
      min-height: 82px;
      display: grid;
      align-content: center;
      gap: 6px;
      padding: 13px;
      border-radius: 20px;
    }
    .secretary-metric span,
    .secretary-focus-card span { color: rgba(232,247,255,.62); font-size: 12px; font-weight: 900; }
    .secretary-metric strong {
      color: #fff;
      font-size: 28px;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .secretary-metric.green strong { color: #86efac; }
    .secretary-metric.blue strong { color: #93c5fd; }
    .secretary-metric.orange strong { color: #fdba74; }
    .secretary-metric.cyan strong { color: #67e8f9; }
    .secretary-metric.red strong { color: #fca5a5; }
    .secretary-focus-card {
      min-height: 96px;
      display: grid;
      gap: 6px;
      align-content: center;
      padding: 14px;
      border-radius: 22px;
      overflow: hidden;
    }
    .secretary-focus-card.primary { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(36,92,255,.12)); }
    .secretary-focus-card.danger { border-color: rgba(248,113,113,.34); background: rgba(127,29,29,.24); }
    .secretary-focus-card strong { color: #fff; font-size: 22px; line-height: 1.1; }
    .secretary-focus-card strong.up { color: #86efac; }
    .secretary-focus-card strong.down { color: #fca5a5; }
    .secretary-focus-card strong.flat { color: #bfdbfe; }
    .secretary-focus-card em { color: rgba(232,247,255,.68); font-size: 12px; font-style: normal; font-weight: 800; }
    .secretary-map {
      position: relative;
      min-height: 300px;
      border-radius: 28px;
      overflow: hidden;
      border: 1px solid rgba(173,232,255,.14);
      background:
        linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(148,163,184,.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 52%, rgba(34,211,238,.22), transparent 35%),
        rgba(2,8,23,.36);
      background-size: 30px 30px, 30px 30px, auto, auto;
    }
    .secretary-map::before {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 50%;
      border: 1px dashed rgba(103,232,249,.25);
      animation: secretary-radar 5s linear infinite;
    }
    .secretary-map-core {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 126px;
      height: 126px;
      display: grid;
      place-items: center;
      align-content: center;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(34,211,238,.22), rgba(36,92,255,.12) 62%, rgba(2,8,23,.4));
      border: 1px solid rgba(103,232,249,.36);
      box-shadow: 0 0 44px rgba(34,211,238,.24);
    }
    .secretary-map-core strong { color: #fff; font-size: 32px; line-height: 1; }
    .secretary-map-core span { color: rgba(232,247,255,.62); font-size: 12px; font-weight: 900; }
    .secretary-core-img {
      position: relative;
      z-index: 1;
      width: 46px;
      height: 46px;
      object-fit: contain;
      margin-bottom: 2px;
      filter: drop-shadow(0 10px 16px rgba(34,211,238,.24));
    }
    .secretary-map-core .secretary-core-img + strong { font-size: 26px; }
    .secretary-core-ring {
      position: absolute;
      inset: -16px;
      border-radius: 50%;
      border: 1px solid rgba(103,232,249,.22);
      animation: secretary-pulse 2.6s ease-in-out infinite;
    }
    .secretary-map-node {
      position: absolute;
      left: var(--sx);
      top: var(--sy);
      min-width: 92px;
      min-height: 54px;
      display: grid;
      gap: 3px;
      place-items: center;
      padding: 8px 10px;
      border-radius: 18px;
      color: #ecfeff;
      background: rgba(15,23,42,.66);
      border: 1px solid rgba(103,232,249,.28);
      box-shadow: 0 12px 28px rgba(0,0,0,.22);
      transform: translate(-50%, -50%);
      animation: secretary-node-in .55s ease both;
      animation-delay: var(--delay, 0s);
    }
    .secretary-map-node.active { border-color: rgba(134,239,172,.58); box-shadow: 0 0 30px rgba(34,197,94,.24); }
    .secretary-map-node.alert { border-color: rgba(252,165,165,.62); box-shadow: 0 0 30px rgba(248,113,113,.24); }
    .secretary-map-node span { font-size: 12px; font-weight: 900; }
    .secretary-map-node strong { color: #67e8f9; font-size: 22px; line-height: 1; }
    .secretary-trend-panel {
      display: grid;
      grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
      gap: 12px;
      align-items: end;
      padding: 14px;
      border-radius: 24px;
    }
    .secretary-trend-copy { display: grid; gap: 6px; }
    .secretary-trend-copy strong { color: #fff; font-size: 17px; }
    .secretary-trend-copy span { font-size: 24px; font-weight: 950; }
    .secretary-trend-copy span.up { color: #86efac; }
    .secretary-trend-copy span.down { color: #fca5a5; }
    .secretary-trend-copy span.flat { color: #bfdbfe; }
    .secretary-sparkline,
    .secretary-dept-sparkline {
      display: flex;
      align-items: end;
      gap: 6px;
      min-height: 48px;
    }
    .secretary-sparkline i,
    .secretary-dept-sparkline i {
      flex: 1 1 0;
      min-width: 5px;
      border-radius: 999px 999px 4px 4px;
      background: linear-gradient(180deg, #67e8f9, #245cff);
      transform-origin: bottom;
      animation: secretary-bar-in .7s ease both;
      animation-delay: var(--bar-delay, 0s);
    }
    .secretary-dept-card {
      display: grid;
      gap: 12px;
      padding: 14px;
      border-radius: 24px;
      color: #ecfeff;
      text-align: left;
    }
    .secretary-dept-card.active { border-color: rgba(134,239,172,.42); }
    .secretary-dept-card.alert { border-color: rgba(252,165,165,.44); }
    .secretary-dept-head {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) auto;
      gap: 9px;
      align-items: center;
    }
    .secretary-dept-head > span {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      color: #082f49;
      background: linear-gradient(135deg, #a5f3fc, #86efac);
      font-weight: 950;
    }
    .secretary-dept-head strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .secretary-dept-head em { font-style: normal; font-size: 12px; font-weight: 950; }
    .secretary-dept-head em.up { color: #86efac; }
    .secretary-dept-head em.down { color: #fca5a5; }
    .secretary-dept-head em.flat { color: #bfdbfe; }
    .secretary-dept-radar {
      position: relative;
      height: 8px;
      border-radius: 999px;
      background: rgba(148,163,184,.18);
      overflow: hidden;
    }
    .secretary-dept-radar i {
      display: block;
      width: var(--value);
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #34d399, #67e8f9, #60a5fa);
      box-shadow: 0 0 18px rgba(103,232,249,.42);
      animation: secretary-scan 1.2s ease both;
    }
    .secretary-dept-data {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .secretary-dept-data b {
      display: grid;
      gap: 3px;
      padding: 8px;
      border-radius: 14px;
      background: rgba(255,255,255,.08);
      color: #fff;
      font-size: 18px;
      font-variant-numeric: tabular-nums;
    }
    .secretary-dept-data em { color: rgba(232,247,255,.58); font-size: 11px; font-style: normal; }
    .secretary-dept-foot {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      color: rgba(232,247,255,.66);
      font-size: 12px;
      font-weight: 800;
    }
    .secretary-dept-sparkline { min-height: 32px; }
    .secretary-dept-sparkline i { background: linear-gradient(180deg, #86efac, #22d3ee); }
    @keyframes secretary-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); }
    }
    @keyframes secretary-centered-float {
      0%, 100% { transform: translate(-50%, -50%); }
      50% { transform: translate(-50%, calc(-50% - 7px)); }
    }
    @keyframes secretary-orbit-spin {
      to { transform: rotate(344deg); }
    }
    @keyframes secretary-radar {
      to { transform: rotate(360deg); }
    }
    @keyframes secretary-pulse {
      0%, 100% { transform: scale(.92); opacity: .45; }
      50% { transform: scale(1.08); opacity: .9; }
    }
    @keyframes secretary-node-in {
      from { opacity: 0; transform: translate(-50%, -42%) scale(.86); }
      to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
    @keyframes secretary-bar-in {
      from { transform: scaleY(.08); opacity: .2; }
      to { transform: scaleY(1); opacity: 1; }
    }
    @keyframes secretary-scan {
      from { width: 0; }
      to { width: var(--value); }
    }
    @media (max-width: 680px) {
      .secretary-shell { padding: 10px; border-radius: 24px; }
      .secretary-command {
        grid-template-columns: minmax(0, 1fr) 112px;
        min-height: 158px;
        padding: 14px;
      }
      .secretary-avatar-stage { width: 118px; height: 126px; }
      .secretary-cockpit-img { height: 154px; }
      .secretary-command h2 { font-size: 30px; }
      .secretary-subtitle { font-size: 12px; }
      .secretary-metrics,
      .secretary-focus,
      .secretary-department-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      .secretary-metric { min-height: 76px; padding: 11px; }
      .secretary-metric strong { font-size: 24px; }
      .secretary-focus-card { min-height: 88px; padding: 12px; }
      .secretary-focus-card strong { font-size: 18px; }
      .secretary-map { min-height: 270px; border-radius: 24px; }
      .secretary-map-core { width: 110px; height: 110px; }
      .secretary-core-img { width: 38px; height: 38px; }
      .secretary-map-node { min-width: 78px; padding: 7px 8px; }
      .secretary-trend-panel { grid-template-columns: 1fr; }
      .secretary-dept-card { padding: 12px; border-radius: 22px; }
      .secretary-dept-data { gap: 6px; }
      .secretary-dept-data b { padding: 7px 6px; font-size: 16px; }
      .secretary-dept-foot { flex-direction: column; }
    }
    .department-voice-entry {
      width: 66px;
      height: 66px;
      justify-self: center;
      margin-top: 2px;
    }
    .department-skill-grid,
    .ability-child-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px;
    }
    .department-skill-card {
      min-height: 132px;
      border-color: rgba(255,255,255,.78);
      background:
        linear-gradient(150deg, rgba(255,255,255,.9), rgba(238,249,255,.84)),
        radial-gradient(circle at 85% 0%, rgba(19,183,216,.13), transparent 34%);
      box-shadow: 0 16px 34px rgba(29,54,105,.13);
    }
    .department-skill-card:nth-child(4n+1) {
      background:
        linear-gradient(150deg, rgba(255,255,255,.9), rgba(233,251,243,.88)),
        radial-gradient(circle at 82% 0%, rgba(19,168,115,.16), transparent 36%);
    }
    .department-skill-card:nth-child(4n+2) {
      background:
        linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,245,230,.88)),
        radial-gradient(circle at 82% 0%, rgba(240,139,45,.15), transparent 36%);
    }
    .department-skill-card:nth-child(4n+3) {
      background:
        linear-gradient(150deg, rgba(255,255,255,.92), rgba(239,244,255,.9)),
        radial-gradient(circle at 82% 0%, rgba(36,92,255,.13), transparent 36%);
    }
    .department-skill-title {
      font-size: 15px;
    }
    .department-skill-desc {
      font-size: 12px;
    }

    .top-action[data-tab-target="messages"] {
      display: none !important;
    }
    #homeView .home-grid {
      display: block;
    }
    #homeView .home-grid > div:nth-child(2),
    #homeView #homeQuickGrid {
      display: none !important;
    }
    #abilityRouteBtn,
    #abilityDispatchBtn {
      display: none !important;
    }
    #departmentChatBtn,
    #abilityChatBtn {
      position: fixed !important;
      right: max(18px, env(safe-area-inset-right));
      bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
      z-index: 90;
      width: 58px !important;
      min-width: 58px !important;
      height: 58px;
      min-height: 58px;
      padding: 0 !important;
      border-radius: 50%;
      color: #fff;
      font-size: 0;
      background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,.35), transparent 24%),
        linear-gradient(135deg, #0e9f7e, #245cff);
      box-shadow: 0 18px 34px rgba(36,92,255,.28), 0 8px 18px rgba(10,132,101,.22);
    }
    #departmentWorkHistoryBtn,
    #abilityWorkHistoryBtn {
      position: fixed !important;
      right: max(21px, env(safe-area-inset-right));
      bottom: max(90px, calc(env(safe-area-inset-bottom) + 86px));
      z-index: 90;
      width: 52px !important;
      min-width: 52px !important;
      height: 52px;
      min-height: 52px;
      padding: 0 !important;
      border-radius: 50%;
      color: #0f766e;
      font-size: 0;
      background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.72), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(224,250,244,.98));
      border: 1px solid rgba(19,168,115,.22);
      box-shadow: 0 16px 30px rgba(20,74,112,.18), 0 8px 16px rgba(19,168,115,.16);
    }
    #departmentChatBtn::before,
    #abilityChatBtn::before {
      content: "";
      width: 24px;
      height: 18px;
      border: 3px solid currentColor;
      border-radius: 10px;
    }
    #departmentChatBtn::after,
    #abilityChatBtn::after {
      content: "";
      position: absolute;
      left: 21px;
      bottom: 17px;
      width: 9px;
      height: 9px;
      border-left: 3px solid currentColor;
      border-bottom: 3px solid currentColor;
      transform: rotate(-18deg);
    }
    #departmentWorkHistoryBtn::before,
    #abilityWorkHistoryBtn::before {
      content: "";
      width: 22px;
      height: 24px;
      border: 3px solid currentColor;
      border-radius: 8px;
      box-shadow: inset 0 7px 0 rgba(15,118,110,.14);
    }
    #departmentWorkHistoryBtn::after,
    #abilityWorkHistoryBtn::after {
      content: "";
      position: absolute;
      left: 18px;
      top: 17px;
      width: 16px;
      height: 3px;
      border-top: 3px solid currentColor;
      border-bottom: 3px solid currentColor;
    }
    .scroll-top-btn {
      position: fixed;
      right: max(18px, calc((100vw - 420px) / 2 + 18px));
      bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px));
      z-index: 88;
      width: 46px;
      min-width: 46px;
      height: 46px;
      min-height: 46px;
      padding: 0;
      border-radius: 50%;
      color: #1d4ed8;
      font-size: 20px;
      font-weight: 1000;
      line-height: 1;
      background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.85), transparent 30%),
        linear-gradient(135deg, rgba(239,246,255,.98), rgba(219,234,254,.98));
      border: 1px solid rgba(37,99,235,.22);
      box-shadow: 0 16px 30px rgba(30,64,175,.15), 0 8px 16px rgba(37,99,235,.14);
    }
    .scroll-top-btn.hidden {
      display: none !important;
    }
    .ability-workbench {
      display: grid;
      gap: 16px;
      padding: 18px;
      border-radius: 26px;
      border: 1px solid rgba(142, 210, 196, .56);
      background:
        radial-gradient(circle at 8% 0%, rgba(14,159,126,.16), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,250,248,.94));
      box-shadow: 0 18px 42px rgba(24, 75, 106, .13);
    }
    .ability-workbench.hidden {
      display: none !important;
    }
    .ability-workbench-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .ability-workbench-head h3 {
      margin: 0 0 6px;
      font-size: 20px;
    }
    .ability-workbench-head p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: 13px;
    }
    .ability-workbench-badge {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.12);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .ability-workbench-form {
      display: grid;
      gap: 14px;
    }
    .ability-workbench-fields {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .ability-workbench-fields .field {
      margin: 0;
      min-width: 0;
    }
    .ability-workbench-fields .field.full {
      grid-column: 1 / -1;
    }
    .ability-workbench-fields input,
    .ability-workbench-fields select,
    .ability-workbench-fields textarea {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }
    .ability-workbench-fields textarea {
      min-height: 96px;
      resize: vertical;
      line-height: 1.55;
    }
    .ability-workbench-file-list {
      display: grid;
      gap: 8px;
      margin-top: 8px;
    }
    .ability-workbench-file-item {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 12px;
      background: rgba(255,255,255,.75);
      border: 1px solid rgba(223,230,242,.86);
      color: var(--muted);
      font-size: 12px;
    }
    .ability-workbench-actions {
      display: flex;
      justify-content: flex-end;
    }
    .ability-workbench-actions button {
      min-width: 136px;
    }
    @media (max-width: 680px) {
      .ability-workbench-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .ability-workbench-fields .field.full { grid-column: 1 / -1; }
      .ability-workbench-head {
        flex-direction: column;
      }
      .ability-workbench-actions button {
        width: 100%;
      }
    }

    /* 20260712 office dashboard refresh */
    #officeView .office-dashboard {
      display: grid;
      gap: 18px;
      padding-bottom: 18px;
    }
    #officeView .office-secretary-hero {
      position: relative;
      min-height: 172px;
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 14px;
      overflow: hidden;
      padding: 22px 18px;
      color: #fff;
      text-align: left;
      border: 0;
      border-radius: 0 0 30px 30px;
      background:
        radial-gradient(circle at 86% 6%, rgba(55,219,255,.44), transparent 34%),
        radial-gradient(circle at 12% 16%, rgba(255,255,255,.24), transparent 24%),
        linear-gradient(135deg, #1269ff 0%, #1d46f2 50%, #0c1d74 100%);
      box-shadow: 0 20px 42px rgba(26,71,190,.25);
    }
    #officeView .office-secretary-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
      background-size: 28px 28px;
      opacity: .32;
      pointer-events: none;
    }
    #officeView .office-hero-copy {
      position: relative;
      z-index: 1;
      display: grid;
      align-content: center;
      gap: 10px;
      min-width: 0;
    }
    #officeView .office-hero-copy > span {
      color: rgba(255,255,255,.76);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    #officeView .office-hero-copy strong {
      font-size: clamp(25px, 7vw, 36px);
      line-height: 1.08;
      letter-spacing: -.04em;
    }
    #officeView .office-hero-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    #officeView .office-hero-chips em {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 11px;
      border-radius: 999px;
      color: rgba(255,255,255,.92);
      background: rgba(255,255,255,.16);
      font-size: 12px;
      font-style: normal;
      font-weight: 800;
      backdrop-filter: blur(10px);
    }
    #officeView .office-hero-chips b {
      color: #9effd7;
      font-size: 14px;
    }
    #officeView .office-hero-chips .office-active-workflow-chip {
      color: #06351f;
      background: linear-gradient(135deg, #9effd7, #d9fff0);
      box-shadow: 0 10px 22px rgba(19,168,115,.25);
      font-weight: 950;
    }
    #officeView .office-secretary-hero img {
      position: relative;
      z-index: 1;
      width: 118px;
      max-height: 170px;
      object-fit: contain;
      align-self: flex-end;
      margin: -18px -10px -24px 0;
      filter: drop-shadow(0 20px 22px rgba(0,0,0,.28));
    }
    #officeView .office-shortcuts {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 6px;
      margin: -28px 14px 0;
      padding: 16px 10px;
      border-radius: 24px;
      background: rgba(255,255,255,.96);
      box-shadow: 0 18px 40px rgba(24,50,105,.13);
      position: relative;
      z-index: 2;
    }
    #officeView .office-shortcuts button {
      display: grid;
      justify-items: center;
      gap: 8px;
      min-height: 72px;
      color: #17233d;
      background: transparent;
      border: 0;
      box-shadow: none;
      padding: 0;
      font-size: 13px;
    }
    #officeView .office-shortcut-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      color: var(--blue);
      background: linear-gradient(135deg, #eef5ff, #eafdf7);
      font-weight: 950;
    }
    #officeView .office-shortcuts button:nth-child(2) .office-shortcut-icon { color: #f08b2d; background: #fff5e9; }
    #officeView .office-shortcuts button:nth-child(3) .office-shortcut-icon { color: #ff5f73; background: #fff0f3; }
    #officeView .office-shortcuts button:nth-child(4) .office-shortcut-icon { color: #13a873; background: #eafbf3; }
    #officeView .office-shortcuts button:nth-child(5) .office-shortcut-icon { color: #245cff; background: #edf4ff; }
    #officeView .office-section {
      display: grid;
      gap: 12px;
      margin: 0 14px;
    }
    #officeView .office-section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    #officeView .office-section-head h2 {
      margin: 0;
      color: #102036;
      font-size: 19px;
      font-weight: 950;
    }
    #officeView .office-section-head h2::before {
      content: "";
      display: inline-block;
      width: 4px;
      height: 18px;
      margin-right: 8px;
      border-radius: 999px;
      background: var(--blue);
      vertical-align: -3px;
    }
    #officeView .office-section-head span {
      color: #6d7890;
      font-size: 14px;
    }
    #officeView .office-section-head button {
      min-height: 34px;
      padding: 0 14px;
      border-radius: 999px;
    }
    #departmentView .department-day-board {
      display: grid;
      gap: 10px;
    }
    #departmentView .department-calendar {
      display: grid;
      gap: 8px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(223,230,242,.78);
      border-radius: 22px;
      background:
        radial-gradient(circle at 8% 12%, rgba(36,92,255,.1), transparent 26%),
        rgba(255,255,255,.86);
      box-shadow: 0 12px 28px rgba(29,54,105,.08);
    }
    #departmentView .department-calendar button {
      min-height: 34px;
      padding: 0 11px;
      border-radius: 999px;
      white-space: nowrap;
    }
    #departmentView .department-calendar-days {
      display: grid;
      grid-template-columns: repeat(7, minmax(44px, 1fr));
      gap: 6px;
      min-width: 0;
    }
    #departmentView .department-calendar-day {
      display: grid;
      justify-items: center;
      gap: 2px;
      min-width: 0;
      min-height: 58px;
      padding: 6px 4px;
      color: #6d7890;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 16px;
      background: rgba(255,255,255,.74);
      box-shadow: none;
    }
    #departmentView .department-calendar-day span {
      font-size: 11px;
      font-weight: 900;
    }
    #departmentView .department-calendar-day strong {
      color: #102036;
      font-size: 17px;
      line-height: 1;
    }
    #departmentView .department-calendar-day.today {
      border-color: rgba(19,168,115,.36);
    }
    #departmentView .department-calendar-day.active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(145deg, #245cff, #13a873);
      box-shadow: 0 12px 24px rgba(36,92,255,.2);
    }
    #departmentView .department-calendar-day.active strong {
      color: #fff;
    }
    #departmentView .department-day-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 42px;
      padding: 0 14px;
      color: #102036;
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(232,244,255,.9), rgba(235,255,245,.9));
    }
    #departmentView .department-day-summary span,
    #departmentView .department-day-summary em {
      color: #6d7890;
      font-size: 12px;
      font-style: normal;
      font-weight: 800;
      white-space: nowrap;
    }
    #departmentView .department-day-summary strong {
      font-size: 15px;
      font-weight: 950;
    }
    #departmentView .department-day-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    #departmentView .department-day-card {
      display: grid;
      gap: 8px;
      padding: 12px;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 20px;
      background: rgba(255,255,255,.92);
      box-shadow: 0 12px 26px rgba(24,50,105,.08);
    }
    #departmentView .department-day-card > strong {
      color: #102036;
      font-size: 14px;
      font-weight: 950;
    }
    #departmentView .department-day-item {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      min-height: 38px;
      width: 100%;
      padding: 8px;
      color: #102036;
      text-align: left;
      border-radius: 14px;
      background: rgba(246,249,255,.92);
      box-shadow: none;
    }
    #departmentView .department-day-item span,
    #departmentView .department-day-item em {
      color: #6d7890;
      font-size: 11px;
      font-style: normal;
      font-weight: 900;
      white-space: nowrap;
    }
    #departmentView .department-day-item strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      font-weight: 950;
    }
    #departmentView .department-day-empty {
      min-height: 40px;
      display: grid;
      place-items: center;
      color: #7b879b;
      border-radius: 14px;
      background: rgba(246,249,255,.72);
      font-size: 12px;
      font-weight: 800;
    }
    #officeView .office-employee-grid {
      min-height: 0 !important;
      display: flex !important;
      gap: 12px;
      padding: 0 !important;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      border: 0;
      border-radius: 0;
      background: transparent !important;
      box-shadow: none;
    }
    #officeView .office-employee-grid::-webkit-scrollbar {
      display: none;
    }
    #officeView .office-employee-grid::before,
    #officeView .office-employee-grid::after {
      display: none !important;
    }
    #officeView .office-employee-card {
      flex: 0 0 72%;
      max-width: 300px;
      min-height: 178px;
      display: grid;
      align-content: space-between;
      justify-items: center;
      gap: 8px;
      padding: 14px 10px;
      color: #102036;
      text-align: center;
      border: 1px solid rgba(255,255,255,.8);
      border-radius: 26px;
      background:
        radial-gradient(circle at 50% 16%, var(--employee-glow, rgba(19,168,115,.2)), transparent 38%),
        linear-gradient(160deg, rgba(255,255,255,.96), rgba(241,248,255,.9));
      box-shadow: 0 18px 36px rgba(29,54,105,.13);
      scroll-snap-align: start;
    }
    #officeView .office-employee-card img {
      width: 92px;
      height: 112px;
      object-fit: contain;
      filter: drop-shadow(0 14px 16px rgba(24,50,105,.18));
    }
    #officeView .office-employee-card[disabled] {
      cursor: not-allowed;
      pointer-events: none;
    }
    #officeView .office-employee-card.active {
      border-color: rgba(19,168,115,.42);
      box-shadow: 0 18px 34px rgba(19,168,115,.18);
    }
    #officeView .office-employee-card.coming-soon {
      opacity: .68;
      filter: grayscale(.15);
    }
    #officeView .office-employee-card.active.coming-soon {
      opacity: 1;
      filter: none;
    }
    #officeView .office-employee-card.coming-soon .office-employee-info em {
      color: #8a94a8;
    }
    #officeView .office-employee-info {
      display: grid;
      gap: 5px;
      justify-items: center;
    }
    #officeView .office-employee-info strong {
      font-size: 15px;
      font-weight: 950;
    }
    #officeView .office-employee-info em {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #0c815b;
      font-size: 12px;
      font-style: normal;
      font-weight: 900;
    }
    #officeView .office-employee-info em::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
    }
    #officeView .office-custom-employee-avatar {
      width: 92px;
      height: 112px;
      display: grid;
      place-items: center;
      border-radius: 30px 30px 24px 24px;
      color: #0c815b;
      background:
        radial-gradient(circle at 50% 18%, rgba(255,255,255,.85), transparent 38%),
        linear-gradient(155deg, #dffff0, #eef4ff 62%, #fff4e2);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 14px 18px rgba(24,50,105,.14);
      font-size: 34px;
      font-weight: 950;
    }
    #officeView .office-custom-employee-tag {
      justify-self: center;
      padding: 5px 9px;
      border-radius: 999px;
      color: #245cff;
      background: rgba(36,92,255,.09);
      font-size: 11px;
      font-weight: 950;
    }
    #officeView .office-employee-card.active .office-custom-employee-tag,
    #officeView .office-employee-card.active .office-employee-info em {
      color: #0c815b;
    }
    #officeView .marketing-creation-card {
      width: 100%;
      min-height: 86px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      padding: 14px;
      color: #102036;
      text-align: left;
      border: 1px solid rgba(255,255,255,.82);
      border-radius: 24px;
      background:
        radial-gradient(circle at 90% 0%, rgba(19,168,115,.18), transparent 34%),
        linear-gradient(140deg, rgba(255,255,255,.95), rgba(235,249,244,.9));
      box-shadow: 0 16px 34px rgba(29,54,105,.12);
    }
    #officeView .marketing-creation-card span {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 18px;
      color: #0c815b;
      background: linear-gradient(135deg, #ddfff0, #edf4ff);
      font-weight: 950;
    }
    #officeView .marketing-creation-card strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 16px;
      font-weight: 950;
    }
    #officeView .marketing-creation-card em {
      color: #6d7890;
      font-size: 12px;
      font-style: normal;
      font-weight: 900;
    }
    #officeView .custom-employee-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
      gap: 10px;
    }
    .custom-employee-card {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 76px;
      padding: 12px;
      color: #102036;
      text-align: left;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 20px;
      background:
        radial-gradient(circle at 92% 12%, rgba(19,168,115,.14), transparent 34%),
        rgba(255,255,255,.95);
      box-shadow: 0 12px 28px rgba(29,54,105,.09);
    }
    .custom-employee-card.compact {
      grid-template-columns: 1fr;
      justify-items: start;
      min-height: 108px;
      align-content: space-between;
    }
    .custom-employee-card.active {
      border-color: rgba(19,168,115,.42);
      box-shadow: 0 12px 28px rgba(19,168,115,.14);
    }
    .custom-employee-card[disabled],
    .custom-employee-card.coming-soon {
      cursor: not-allowed;
      opacity: .66;
      filter: grayscale(.12);
    }
    .custom-employee-avatar {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      color: #0c815b;
      background: linear-gradient(135deg, #e7fff3, #edf4ff);
      font-weight: 950;
    }
    .custom-employee-avatar.large {
      width: 54px;
      height: 54px;
      border-radius: 20px;
      font-size: 22px;
    }
    .custom-employee-avatar.has-cover {
      overflow: hidden;
      padding: 0;
      background: #f1f5f9;
    }
    .custom-employee-avatar.has-cover img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: top;
    }
    .custom-employee-main {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .custom-employee-main strong,
    .custom-employee-detail-head strong {
      overflow: hidden;
      color: #102036;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
      font-weight: 950;
    }
    .custom-employee-main em,
    .custom-employee-detail-head em {
      color: #6d7890;
      font-size: 12px;
      font-style: normal;
      font-weight: 800;
    }
    .custom-employee-card b {
      padding: 5px 8px;
      border-radius: 999px;
      color: #245cff;
      background: rgba(36,92,255,.09);
      font-size: 11px;
      white-space: nowrap;
    }
    .custom-employee-card.active b {
      color: #0c815b;
      background: rgba(19,168,115,.12);
    }
    .custom-employee-card.coming-soon b {
      color: #8a6410;
      background: rgba(255,246,218,.9);
    }
    .custom-employee-empty {
      min-height: 74px;
      display: grid;
      place-items: center;
      color: #7b879b;
      border-radius: 20px;
      background: rgba(255,255,255,.72);
      border: 1px dashed rgba(124,140,168,.35);
    }
    .custom-employee-dialog-body {
      display: grid;
      gap: 12px;
    }
    .custom-employee-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .custom-employee-detail {
      display: grid;
      gap: 14px;
    }
    .custom-employee-detail-head {
      display: flex;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }
    .custom-employee-detail-head > div {
      display: grid;
      gap: 5px;
      min-width: 0;
    }
    .custom-employee-node-list {
      display: grid;
      gap: 8px;
    }
    .custom-employee-node {
      display: grid;
      grid-template-columns: 54px minmax(0, 1fr) auto;
      gap: 8px 10px;
      align-items: start;
      padding: 10px;
      border-radius: 16px;
      background: rgba(246,249,255,.9);
      border: 1px solid rgba(223,230,242,.9);
    }
    .custom-employee-node span {
      color: #245cff;
      font-weight: 950;
      font-size: 13px;
    }
    .custom-employee-node strong {
      overflow: hidden;
      color: #102036;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 950;
    }
    .custom-employee-node em {
      grid-column: 2;
      color: #6d7890;
      font-size: 12px;
      font-style: normal;
      line-height: 1.45;
    }
    .custom-employee-node button {
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
    }
    .custom-employee-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    #officeView .office-recent-list {
      display: grid;
      gap: 10px;
    }
    #officeView .office-recent-item,
    #officeView .office-recent-empty {
      position: relative;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 70px;
      padding: 13px 14px;
      color: #102036;
      text-align: left;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 20px;
      background: rgba(255,255,255,.95);
      box-shadow: 0 12px 28px rgba(29,54,105,.09);
    }
    #officeView .office-recent-item small {
      grid-column: 2 / -1;
      color: #6d7890;
      font-size: 12px;
      line-height: 1.35;
    }
    #officeView .office-recent-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #13a873;
      box-shadow: 0 0 0 6px rgba(19,168,115,.1);
    }
    #officeView .office-recent-item.active .office-recent-dot {
      background: #245cff;
      box-shadow: 0 0 0 6px rgba(36,92,255,.12);
    }
    #officeView .office-recent-main {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    #officeView .office-recent-main strong {
      overflow: hidden;
      color: #102036;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
      font-weight: 950;
    }
    #officeView .office-recent-main em {
      color: #6d7890;
      font-size: 12px;
      font-style: normal;
    }
    #officeView .office-recent-status {
      padding: 5px 9px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.1);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    #officeView .office-recent-empty {
      grid-template-columns: 1fr;
      justify-items: center;
      color: #6d7890;
    }
    #officeView .hire-fab {
      display: none !important;
    }
    .department-shell {
      gap: 14px;
      padding: 0 0 18px;
    }
    .department-hero {
      align-items: center;
      padding: 18px;
      color: #fff;
      border: 0;
      background:
        radial-gradient(circle at 88% 10%, rgba(79,226,255,.32), transparent 34%),
        linear-gradient(135deg, #0f6dff, #1335c6 64%, #08185b);
      box-shadow: 0 18px 38px rgba(19,53,198,.22);
    }
    .department-kicker {
      color: rgba(255,255,255,.7);
    }
    .department-hero h2 {
      color: #fff;
      margin: 4px 0 0;
      font-size: clamp(25px, 7vw, 34px);
    }
    .department-breadcrumb:empty {
      display: none;
    }
    .department-skill-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .department-skill-card {
      min-height: 116px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,.78);
      background:
        radial-gradient(circle at 88% 14%, rgba(19,168,115,.16), transparent 34%),
        linear-gradient(160deg, rgba(255,255,255,.96), rgba(240,247,255,.9));
      box-shadow: 0 16px 34px rgba(29,54,105,.12);
    }
    .department-skill-card:nth-child(4n+2) {
      background:
        radial-gradient(circle at 88% 14%, rgba(240,139,45,.16), transparent 34%),
        linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,248,238,.92));
    }
    .department-skill-card:nth-child(4n+3) {
      background:
        radial-gradient(circle at 88% 14%, rgba(36,92,255,.15), transparent 34%),
        linear-gradient(160deg, rgba(255,255,255,.96), rgba(239,244,255,.92));
    }
    .department-skill-desc {
      display: none !important;
    }
    .department-skill-foot {
      margin-top: auto;
    }

    .asset-library-shell,
    .lead-center-shell,
    .tutorial-shell {
      display: grid;
      gap: 8px;
      min-height: calc(100dvh - 96px);
      align-content: start;
      padding: 6px 0 16px;
    }
    .asset-library-head,
    .personal-list-page-head {
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .asset-library-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
    }
    .personal-list-page-head {
      display: flex;
    }
    .asset-library-head .asset-library-tabs {
      flex: 1 1 auto;
      min-width: 0;
    }
    .asset-library-head > button,
    .personal-list-page-head button {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 12px;
    }
    .personal-list-page-head button {
      min-height: 40px;
      padding: 0 14px;
    }
    .personal-list-page-head {
      padding: 10px;
      border-radius: 18px;
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(223,230,242,.9);
      box-shadow: 0 12px 26px rgba(24,50,105,.07);
    }
    .personal-list-page-head strong {
      color: #17233d;
      font-size: 15px;
      font-weight: 950;
    }
    .asset-library-upload,
    .asset-library-tabs,
    .content-record-tabs,
    .lead-domain-tabs,
    .lead-platform-tabs {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .asset-library-tabs::-webkit-scrollbar,
    .content-record-tabs::-webkit-scrollbar,
    .lead-domain-tabs::-webkit-scrollbar,
    .lead-platform-tabs::-webkit-scrollbar {
      display: none;
    }
    .asset-library-tabs button,
    .content-record-tabs button,
    .lead-domain-tabs button,
    .lead-platform-tabs button {
      flex: 0 0 auto;
      min-height: 36px;
      padding: 0 12px;
      color: #17233d;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 999px;
      background: rgba(255,255,255,.9);
      box-shadow: 0 10px 22px rgba(24,50,105,.08);
    }
    .asset-library-upload {
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      border-radius: 18px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(223,230,242,.9);
      box-shadow: 0 12px 26px rgba(24,50,105,.07);
    }
    .asset-library-upload button {
      min-height: 36px;
      padding: 0 14px;
      border-radius: 999px;
      font-size: 12px;
    }
    .asset-library-upload span {
      color: #6d7890;
      font-size: 12px;
      font-weight: 800;
    }
    .asset-library-tabs,
    .content-record-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      padding: 4px;
      border-radius: 18px;
      background:
        radial-gradient(circle at 12% 20%, rgba(36,92,255,.16), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(235,246,255,.72));
      border: 1px solid rgba(223,230,242,.86);
      box-shadow: 0 16px 34px rgba(24,50,105,.08);
    }
    .asset-library-tabs button,
    .content-record-tabs button {
      min-width: 0;
      min-height: 34px;
      padding: 0 6px;
      justify-content: center;
      border-radius: 14px;
      font-size: 12px;
      font-weight: 950;
    }
    .asset-library-tabs button span {
      margin-left: 3px;
      padding: 1px 5px;
      border-radius: 999px;
      color: #245cff;
      background: rgba(36,92,255,.09);
      font-size: 10px;
    }
    .asset-library-tabs button.active,
    .content-record-tabs button.active,
    .lead-domain-tabs button.active,
    .lead-platform-tabs button.active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(135deg, #245cff, #13b7d8);
    }
    .asset-library-tabs button.active span {
      color: #fff;
      background: rgba(255,255,255,.22);
    }
    .asset-library-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }
    .asset-library-card {
      display: grid;
      gap: 6px;
      align-content: start;
      min-width: 0;
      min-height: 128px;
      padding: 7px;
      border-radius: 16px;
      border: 1px solid rgba(223,230,242,.9);
      background:
        radial-gradient(circle at 20% 0%, rgba(19,168,115,.12), transparent 36%),
        rgba(255,255,255,.94);
      box-shadow: 0 14px 28px rgba(29,54,105,.09);
      text-align: left;
      cursor: pointer;
      appearance: none;
      color: inherit;
    }
    .asset-library-card:active {
      transform: translateY(1px);
    }
    .asset-library-thumb {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      display: grid;
      place-items: center;
      overflow: hidden;
      object-fit: cover;
      border-radius: 12px;
      color: #6d7890;
      background: linear-gradient(135deg, #eef5ff, #eafdf7);
      border: 1px solid rgba(223,230,242,.9);
      font-size: 12px;
      font-weight: 900;
    }
    video.asset-library-thumb,
    img.asset-library-thumb {
      object-fit: cover;
      display: block;
    }
    .asset-library-card-main {
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    .asset-library-card-main strong {
      overflow: hidden;
      color: #102036;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      font-weight: 950;
    }
    .asset-library-card-main span,
    .asset-library-card-main em {
      overflow: hidden;
      color: #6d7890;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 10px;
      font-style: normal;
    }
    .asset-library-card-main .asset-status {
      color: #0f8f7a;
      font-weight: 900;
    }
    .asset-library-card-main .asset-status.failed {
      color: #b42318;
    }
    .asset-audio-thumb {
      aspect-ratio: 4 / 3;
      display: grid;
      place-items: center;
      border-radius: 12px;
      color: #0f4767;
      background:
        radial-gradient(circle at 22% 20%, rgba(19,183,216,.22), transparent 34%),
        linear-gradient(135deg, #e7f7ff, #f2fff8);
      border: 1px solid rgba(223,230,242,.9);
      font-size: 28px;
      font-weight: 950;
    }
    .asset-upload-status {
      min-height: 20px;
      color: #6d7890;
      font-size: 12px;
      font-weight: 800;
    }
    .asset-action-popover,
    .personal-action-popover {
      max-height: min(84vh, 760px);
      overflow: auto;
    }
    .personal-memory-popover {
      width: min(880px, calc(100vw - 28px));
    }
    .personal-template-popover {
      width: min(680px, calc(100vw - 28px));
    }
    .personal-template-popover {
      max-height: min(88vh, 760px);
      color: #17233d;
      background:
        radial-gradient(circle at 8% 0, rgba(15,143,122,.12), transparent 34%),
        linear-gradient(145deg, #f8fbff, #eef8f4);
      border: 1px solid rgba(26,48,88,.1);
      box-shadow: 0 26px 70px rgba(20,36,64,.22);
    }
    .personal-template-popover::after {
      display: none;
    }
    .personal-template-popover .employee-popover-head {
      padding: 0 42px 12px 0;
      border-bottom: 1px solid rgba(26,48,88,.08);
    }
    .personal-template-popover .employee-mini-avatar {
      color: #0f8f7a;
      background: linear-gradient(135deg, #e6fff6, #edf4ff);
      box-shadow: inset 0 0 0 1px rgba(15,143,122,.12);
    }
    .personal-template-popover .employee-popover-title strong {
      color: #17233d;
      font-size: 18px;
    }
    .personal-template-popover .employee-popover-close {
      color: #34425c;
      background: rgba(26,48,88,.06);
    }
    .personal-template-form {
      gap: 12px;
      padding-top: 12px;
    }
    .personal-template-form .personal-field {
      padding: 12px;
      border: 1px solid rgba(26,48,88,.08);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
    }
    .personal-template-form .personal-field input {
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(26,48,88,.12);
      background: #fff;
      color: #17233d;
      padding: 0 12px;
      font-weight: 800;
    }
    .personal-template-form > .personal-list {
      display: grid;
      gap: 10px;
      max-height: min(52vh, 430px);
      overflow: auto;
      padding-right: 2px;
    }
    .personal-template-resource-group {
      display: grid;
      gap: 8px;
      padding: 11px;
      border: 1px solid rgba(26,48,88,.08);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
    }
    .personal-template-resource-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: #17233d;
    }
    .personal-template-resource-head strong {
      font-size: 14px;
      font-weight: 950;
    }
    .personal-template-resource-head span {
      flex: 0 0 auto;
      padding: 3px 8px;
      border-radius: 999px;
      color: #0f8f7a;
      background: rgba(15,143,122,.09);
      font-size: 11px;
      font-weight: 950;
    }
    .personal-template-resource-head b {
      font: inherit;
    }
    .personal-template-choice-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .personal-template-choice {
      min-width: 0;
      min-height: 42px;
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(26,48,88,.1);
      border-radius: 14px;
      background: rgba(246,249,255,.92);
      cursor: pointer;
      transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
    }
    .personal-template-choice.checked {
      border-color: rgba(15,143,122,.42);
      background: linear-gradient(135deg, rgba(229,255,244,.96), rgba(246,249,255,.96));
      box-shadow: inset 3px 0 0 rgba(15,143,122,.72);
    }
    .personal-template-choice input {
      width: 14px;
      height: 14px;
      margin: 0;
      accent-color: #0f8f7a;
    }
    .personal-template-choice span {
      min-width: 0;
      display: grid;
      gap: 2px;
      color: #17233d;
    }
    .personal-template-choice strong,
    .personal-template-choice em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      line-height: 1.25;
    }
    .personal-template-choice strong {
      color: #17233d;
      font-size: 13px;
      font-weight: 900;
    }
    .personal-template-choice em {
      color: #6d7890;
      font-size: 11px;
      font-style: normal;
      font-weight: 800;
    }
    .personal-template-empty {
      padding: 10px;
      color: #7b879b;
      border: 1px dashed rgba(124,140,168,.32);
      border-radius: 13px;
      background: rgba(246,249,255,.72);
      font-size: 12px;
      font-weight: 800;
    }
    .personal-template-popover .work-dispatch-actions {
      position: sticky;
      bottom: -1px;
      margin: 0 -2px -2px;
      padding: 10px 0 0;
      background: linear-gradient(180deg, rgba(248,251,255,0), rgba(248,251,255,.98) 34%);
    }
    .personal-template-popover .work-dispatch-actions .ghost {
      color: #49607f;
      background: rgba(26,48,88,.06);
      box-shadow: none;
    }
    @media (max-width: 380px) {
      .personal-template-choice-grid {
        grid-template-columns: 1fr;
      }
    }
    .asset-library-pager {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
    }
    .asset-library-pager span {
      color: #6d7890;
      text-align: center;
      font-size: 13px;
      font-weight: 900;
    }
    .asset-library-pager button {
      min-height: 32px;
      padding: 0 12px;
      border-radius: 999px;
    }
    .asset-library-empty {
      min-height: 150px;
      grid-column: 1 / -1;
      display: grid;
      place-items: center;
      color: #8a94a8;
      border-radius: 24px;
      background: rgba(255,255,255,.72);
      border: 1px dashed rgba(124,140,168,.35);
    }
    .lead-center-shell {
      margin: -12px -14px 0;
      padding: 16px 14px 28px;
      background:
        radial-gradient(circle at 92% 0%, rgba(36,92,255,.18), transparent 30%),
        radial-gradient(circle at 8% 30%, rgba(19,168,115,.12), transparent 34%),
        linear-gradient(180deg, #edf5ff 0%, #f7fbff 52%, #fff 100%);
    }
    .lead-center-title {
      color: #52607a;
      font-size: 13px;
      font-weight: 800;
    }
    .lead-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .lead-stats div {
      display: grid;
      justify-items: center;
      gap: 5px;
      min-height: 64px;
      align-content: center;
      border-radius: 18px;
      background: rgba(255,255,255,.68);
      border: 1px solid rgba(255,255,255,.74);
      box-shadow: 0 12px 26px rgba(24,50,105,.07);
    }
    .lead-stats strong {
      color: #245cff;
      font-size: 28px;
      line-height: 1;
      font-weight: 950;
    }
    .lead-stats span {
      color: #8a94a8;
      font-size: 11px;
    }
    .lead-domain-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 6px;
      border-radius: 20px;
      background: rgba(224,231,241,.62);
      border: 1px solid rgba(255,255,255,.72);
    }
    .lead-domain-tabs button {
      width: 100%;
      border-radius: 13px;
      box-shadow: none;
    }
    .lead-domain-tabs button.active {
      color: #245cff;
      background: #fff;
      box-shadow: 0 8px 18px rgba(24,50,105,.08);
    }
    .lead-platform-tabs {
      padding-bottom: 2px;
    }
    .lead-platform-tabs button {
      min-height: 34px;
      padding: 0 14px;
      box-shadow: none;
    }
    .lead-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      min-height: 260px;
    }
    .lead-card {
      display: grid;
      gap: 10px;
      align-content: space-between;
      min-height: 118px;
      padding: 13px;
      border-radius: 20px;
      border: 1px solid rgba(223,230,242,.9);
      background:
        radial-gradient(circle at 90% 12%, rgba(36,92,255,.13), transparent 34%),
        rgba(255,255,255,.94);
      box-shadow: 0 12px 26px rgba(29,54,105,.08);
      text-align: left;
      cursor: pointer;
      color: inherit;
    }
    .lead-card-main {
      min-width: 0;
      display: grid;
      gap: 5px;
    }
    .lead-card-foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }
    .lead-card strong,
    .lead-card span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .lead-card strong {
      color: #102036;
      font-size: 15px;
      font-weight: 950;
    }
    .lead-card span {
      color: #6d7890;
      font-size: 12px;
    }
    .lead-card em {
      color: #245cff;
      font-size: 20px;
      font-style: normal;
      font-weight: 950;
    }
    .lead-card b {
      padding: 5px 9px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.1);
      font-size: 12px;
      white-space: nowrap;
    }
    .lead-card-skeleton {
      pointer-events: none;
    }
    .lead-card-skeleton i,
    .lead-card-skeleton b,
    .lead-card-skeleton span,
    .lead-detail-skeleton i,
    .lead-detail-skeleton b,
    .lead-detail-skeleton span {
      display: block;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(224,231,241,.72), rgba(255,255,255,.95), rgba(224,231,241,.72));
      background-size: 220% 100%;
      animation: leadSkeleton 1.1s ease-in-out infinite;
    }
    .lead-card-skeleton i {
      width: 64%;
      height: 16px;
    }
    .lead-card-skeleton b {
      width: 42%;
      height: 12px;
      padding: 0;
      background-color: transparent;
    }
    .lead-card-skeleton span {
      width: 78%;
      height: 34px;
    }
    @keyframes leadSkeleton {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }
    .lead-empty {
      min-height: 330px;
      grid-column: 1 / -1;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 18px;
      color: #8a94a8;
      font-size: 13px;
    }
    .lead-empty-box {
      position: relative;
      width: 96px;
      height: 96px;
      border: 0;
      border-radius: 32px;
      transform: none;
      background:
        radial-gradient(circle at 50% 42%, #fff 0 24%, transparent 25%),
        radial-gradient(circle at 52% 44%, rgba(36,92,255,.9) 0 11%, transparent 12%),
        linear-gradient(135deg, rgba(36,92,255,.16), rgba(19,168,115,.12));
      box-shadow: inset 0 0 0 1px rgba(36,92,255,.12), 0 16px 34px rgba(24,50,105,.1);
    }
    .lead-empty-box::before,
    .lead-empty-box::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: #245cff;
      border: 0;
    }
    .lead-empty-box::before {
      left: 18px;
      top: 64px;
      width: 12px;
      height: 12px;
      transform: none;
    }
    .lead-empty-box::after {
      right: 20px;
      top: 22px;
      width: 9px;
      height: 9px;
      background: #13a873;
      transform: none;
    }
    .detail-modal-panel {
      width: min(620px, calc(100vw - 28px));
      max-height: min(82vh, 760px);
      overflow: auto;
    }
    .detail-modal-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .detail-modal-head h3 {
      font-size: 22px;
    }
    .asset-preview-body,
    .lead-detail-body {
      display: grid;
      gap: 12px;
    }
    .asset-preview-large {
      width: 100%;
      max-height: 52vh;
      display: block;
      object-fit: contain;
      border-radius: 22px;
      background: #eef4ff;
      border: 1px solid rgba(223,230,242,.9);
    }
    .asset-preview-large-empty {
      min-height: 180px;
      display: grid;
      place-items: center;
      color: #6d7890;
      font-weight: 900;
    }
    .asset-preview-audio {
      width: 100%;
      min-height: 56px;
      border-radius: 16px;
      background: #eef4ff;
    }
    .asset-preview-meta,
    .lead-detail-summary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .asset-preview-meta div,
    .lead-detail-summary div {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 10px;
      border-radius: 16px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(223,230,242,.82);
    }
    .asset-preview-meta span,
    .lead-detail-summary span {
      color: #7b879b;
      font-size: 11px;
      font-weight: 800;
    }
    .asset-preview-meta strong,
    .lead-detail-summary strong {
      overflow: hidden;
      color: #102036;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 950;
    }
    .asset-preview-text {
      padding: 12px;
      border-radius: 18px;
      color: #33415f;
      background: rgba(255,255,255,.75);
      border: 1px solid rgba(223,230,242,.82);
      line-height: 1.6;
      white-space: pre-wrap;
    }
    .mobile-media-preview-dialog {
      padding: 0;
      place-items: stretch;
      z-index: 180;
    }
    .mobile-media-preview-dialog .task-success-backdrop {
      background: rgba(9, 17, 31, .72);
    }
    .mobile-media-preview-dialog .mobile-media-preview-panel {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100dvh;
      max-height: none;
      min-height: 0;
      padding: 0;
      gap: 0;
      grid-template-rows: minmax(0, 1fr);
      border: 0;
      border-radius: 0;
      background: #000;
      backdrop-filter: none;
      box-shadow: none;
      overflow: hidden;
    }
    .mobile-media-preview-head {
      position: absolute;
      z-index: 3;
      top: 0;
      left: 0;
      right: 0;
      min-height: 60px;
      padding: max(10px, env(safe-area-inset-top)) 10px 18px;
      display: grid;
      grid-template-columns: minmax(72px, auto) minmax(0, 1fr) minmax(72px, auto);
      align-items: center;
      gap: 8px;
      color: #fff;
      background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.48) 62%, transparent);
      border: 0;
      pointer-events: none;
    }
    .mobile-media-preview-head > strong {
      min-width: 0;
      overflow: hidden;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
      font-weight: 500;
      pointer-events: auto;
    }
    .mobile-media-preview-back,
    .mobile-media-preview-download {
      min-height: 40px;
      padding: 0 10px;
      border: 0;
      border-radius: 999px;
      color: #fff;
      background: rgba(10,15,24,.38);
      box-shadow: none;
      font-size: 14px;
      backdrop-filter: blur(8px);
      pointer-events: auto;
    }
    .mobile-media-preview-back {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 3px;
    }
    .mobile-media-preview-back span {
      font-size: 31px;
      font-weight: 300;
      line-height: 1;
    }
    .mobile-media-preview-back b { font-weight: 500; }
    .mobile-media-preview-download {
      width: 40px;
      padding: 0;
      justify-self: end;
      display: grid;
      place-items: center;
      color: #fff;
    }
    .mobile-media-preview-download svg {
      width: 21px;
      height: 21px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .mobile-media-preview-body {
      position: relative;
      z-index: 1;
      min-height: 0;
      height: auto;
      display: grid;
      place-items: center;
      overflow: auto;
      overscroll-behavior: contain;
      background: #000;
    }
    .mobile-media-preview-body img,
    .mobile-media-preview-body video {
      display: block;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 0 !important;
      background: #000;
    }
    .mobile-media-preview-body audio {
      width: min(520px, calc(100% - 28px));
    }
    .mobile-media-preview-body iframe {
      width: 100%;
      height: 100%;
      border: 0;
      background: #fff;
    }
    .media-preview-trigger {
      width: 100%;
      padding: 0;
      border: 0;
      border-radius: 12px;
      background: transparent;
      box-shadow: none;
      overflow: hidden;
    }
    @media (max-width: 760px) {
      .run-media { width: 100%; gap: 14px; }
      .run-media video,
      .run-media img { max-height: 58vh; }
      .run-media-actions { gap: 7px; }
      .media-preview {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
      }
      .media-preview img,
      .media-preview video { max-height: 56vh; }
    }
    .lead-detail-list {
      display: grid;
      gap: 10px;
    }
    .lead-detail-item {
      display: grid;
      gap: 8px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.82);
      border: 1px solid rgba(223,230,242,.86);
    }
    .lead-detail-item-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .lead-detail-item-head strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #102036;
      font-size: 15px;
      font-weight: 950;
    }
    .lead-detail-item-head span {
      flex: 0 0 auto;
      padding: 4px 8px;
      border-radius: 999px;
      color: #e45b1b;
      background: rgba(255,117,66,.1);
      font-size: 12px;
      font-weight: 900;
    }
    .lead-detail-meta {
      overflow: hidden;
      color: #52607a;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
    }
    .lead-detail-item p {
      margin: 0;
      color: #33415f;
      font-size: 13px;
      line-height: 1.6;
    }
    .lead-detail-skeleton {
      pointer-events: none;
    }
    .lead-detail-skeleton i {
      width: 58%;
      height: 16px;
    }
    .lead-detail-skeleton b {
      width: 36%;
      height: 12px;
    }
    .lead-detail-skeleton span {
      width: 100%;
      height: 42px;
    }
    .lead-evidence {
      display: grid;
      gap: 6px;
    }
    .lead-evidence em {
      padding: 8px 10px;
      border-radius: 12px;
      color: #52607a;
      background: rgba(36,92,255,.06);
      font-size: 12px;
      font-style: normal;
      line-height: 1.55;
    }
    .lead-detail-empty {
      min-height: 110px;
      background: rgba(255,255,255,.64);
      border-radius: 18px;
    }
    .workflow-shell {
      position: relative;
      display: grid;
      gap: 12px;
      padding: 14px 14px 94px;
      border-radius: 28px;
      background:
        radial-gradient(circle at 12% 0%, rgba(36,92,255,.14), transparent 34%),
        radial-gradient(circle at 100% 22%, rgba(19,168,115,.14), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(239,246,255,.92));
      border: 1px solid rgba(223,230,242,.9);
      box-shadow: var(--shadow);
    }
    .workflow-head,
    .workflow-actions,
    .workflow-template-drawer-head,
    .workflow-grant-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .workflow-device-box {
      min-width: 0;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 7px 10px;
      flex: 1;
    }
    .workflow-device-box label {
      color: #52607a;
      font-size: 12px;
      font-weight: 900;
    }
    .workflow-device-box select {
      min-width: 0;
      height: 38px;
      border-radius: 14px;
    }
    .workflow-device-box span {
      grid-column: 1 / -1;
      color: #0f9b71;
      font-size: 12px;
      font-weight: 800;
    }
    .workflow-head-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-shrink: 0;
    }
    .workflow-head-actions button {
      min-height: 38px;
      padding: 0 12px;
      white-space: nowrap;
    }
    .workflow-day-board {
      display: grid;
      gap: 10px;
    }
    .workflow-calendar {
      display: grid;
      gap: 8px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(223,230,242,.78);
      border-radius: 22px;
      background:
        radial-gradient(circle at 8% 12%, rgba(36,92,255,.1), transparent 26%),
        rgba(255,255,255,.86);
      box-shadow: 0 12px 28px rgba(29,54,105,.08);
    }
    .workflow-calendar-days {
      display: grid;
      grid-template-columns: repeat(7, minmax(44px, 1fr));
      gap: 6px;
      min-width: 0;
    }
    .workflow-calendar-day {
      display: grid;
      justify-items: center;
      gap: 2px;
      min-width: 0;
      min-height: 58px;
      padding: 6px 4px;
      color: #6d7890;
      border: 1px solid rgba(223,230,242,.9);
      border-radius: 16px;
      background: rgba(255,255,255,.74);
      box-shadow: none;
    }
    .workflow-calendar-day span {
      font-size: 11px;
      font-weight: 900;
    }
    .workflow-calendar-day strong {
      color: #102036;
      font-size: 17px;
      line-height: 1;
    }
    .workflow-calendar-day.today {
      border-color: rgba(19,168,115,.36);
    }
    .workflow-calendar-day.active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(145deg, #245cff, #13a873);
      box-shadow: 0 12px 24px rgba(36,92,255,.2);
    }
    .workflow-calendar-day.active strong {
      color: #fff;
    }
    .workflow-status-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 46px;
      min-height: 24px;
      padding: 0 9px;
      color: #526071;
      border: 1px solid rgba(204,214,230,.9);
      border-radius: 999px;
      background: rgba(245,247,251,.96);
      font-size: 11px;
      font-weight: 950;
      white-space: nowrap;
      appearance: none;
    }
    button.workflow-status-pill {
      cursor: pointer;
    }
    .workflow-status-pill.is-running {
      color: #075e92;
      border-color: rgba(48,159,232,.32);
      background: rgba(224,244,255,.96);
    }
    .workflow-status-pill.is-completed {
      color: #08754f;
      border-color: rgba(37,185,124,.3);
      background: rgba(224,250,239,.96);
    }
    .workflow-status-pill.is-overdue,
    .workflow-status-pill.is-failed {
      color: #b33b30;
      border-color: rgba(244,112,93,.34);
      background: rgba(255,235,231,.96);
    }
    .workflow-status-pill.is-paused {
      color: #94620b;
      border-color: rgba(235,169,50,.34);
      background: rgba(255,246,218,.96);
    }
    .workflow-status-pill.is-paused.workflow-placeholder-pill {
      border-style: dashed;
      background: rgba(255,246,218,.82);
    }
    .workflow-status-pill.is-pending {
      color: #3157b7;
      border-color: rgba(72,111,226,.28);
      background: rgba(234,239,255,.96);
    }
    #workflowView .department-day-empty {
      min-height: 40px;
      display: grid;
      place-items: center;
      padding: 0 10px;
      color: #7b879b;
      border-radius: 0;
      background: transparent;
      font-size: 12px;
      font-weight: 800;
    }
    .workflow-editor-card,
    .workflow-template-drawer,
    .workflow-node-card {
      border: 1px solid rgba(223,230,242,.92);
      background: rgba(255,255,255,.9);
      box-shadow: 0 14px 30px rgba(25,49,94,.08);
    }
    .workflow-editor-card {
      display: grid;
      gap: 12px;
      padding: 12px;
      border-radius: 22px;
    }
    .workflow-template-name {
      display: grid;
      gap: 6px;
    }
    .workflow-template-name label,
    .workflow-node-form label,
    .workflow-node-fields label {
      color: #17233d;
      font-size: 12px;
      font-weight: 900;
    }
    .workflow-node-form {
      display: grid;
      grid-template-columns: .52fr 1fr;
      gap: 10px;
      align-items: end;
    }
    .workflow-node-form .field {
      margin: 0;
    }
    .workflow-node-form .full,
    .workflow-node-form button {
      grid-column: 1 / -1;
    }
    .workflow-node-form textarea {
      min-height: 74px;
      resize: vertical;
    }
    .workflow-node-popover {
      max-height: min(82vh, 680px);
      overflow: auto;
    }
    .workflow-node-fields {
      grid-template-columns: .65fr 1fr;
      align-items: start;
    }
    .workflow-node-fields textarea {
      min-height: 96px;
      resize: vertical;
    }
    .workflow-timeline {
      display: grid;
      gap: 9px;
    }
    .workflow-empty {
      display: grid;
      place-items: center;
      min-height: 120px;
      color: #8a94a8;
      border-radius: 20px;
      border: 1px dashed rgba(138,148,168,.45);
      background: rgba(255,255,255,.54);
    }
    .workflow-node-card {
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr) auto auto;
      gap: 8px;
      align-items: center;
      padding: 9px;
      border-radius: 18px;
    }
    .workflow-node-card.is-placeholder {
      opacity: .72;
      border-style: dashed;
      background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(247,249,252,.92));
    }
    .workflow-node-card.is-placeholder .workflow-node-main span {
      display: block;
      margin-top: 4px;
      color: #94620b;
      font-size: 12px;
      font-weight: 850;
    }
    .workflow-action-card {
      margin-left: 28px;
      border: 1px solid rgba(36,92,255,.12);
      background: linear-gradient(135deg, rgba(36,92,255,.06), rgba(19,168,115,.05));
    }
    .workflow-node-time {
      display: grid;
      place-items: center;
      height: 44px;
      border-radius: 15px;
      color: #fff;
      background: linear-gradient(135deg, #245cff, #13a873);
      font-weight: 950;
      font-variant-numeric: tabular-nums;
    }
    .workflow-node-time.action {
      background: linear-gradient(135deg, #13a873, #08a7c6);
    }
    .workflow-node-main {
      min-width: 0;
      display: grid;
      gap: 0;
    }
    .workflow-node-main strong,
    .workflow-node-main span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .workflow-node-main strong {
      color: #102036;
      font-size: 15px;
    }
    .workflow-node-main span {
      color: #6d7890;
      font-size: 12px;
    }
    .workflow-node-status {
      display: flex;
      justify-content: flex-end;
      min-width: max-content;
    }
    .workflow-node-actions {
      display: flex;
      align-items: center;
      gap: 0;
      flex-wrap: nowrap;
      justify-content: flex-end;
      min-width: max-content;
    }
    .workflow-node-actions span {
      padding: 4px 8px;
      border-radius: 999px;
      color: #6d7890;
      background: rgba(109,120,144,.1);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }
    .workflow-node-actions span.configured {
      color: #0f8f6f;
      background: rgba(16,169,145,.13);
    }
    .workflow-node-actions button {
      min-height: 30px;
      padding: 0 9px;
      border-radius: 999px;
      font-size: 12px;
    }
    .workflow-node-actions .danger-text {
      color: #b42318;
      background: rgba(180,35,24,.08);
    }
    .workflow-node-action-menu summary {
      min-height: 28px;
      padding: 4px 10px;
      font-size: 12px;
    }
    .workflow-node-action-menu .task-action-list {
      min-width: 112px;
      z-index: 120;
    }
    .workflow-node-action-menu .task-action-list button {
      min-height: 0;
      width: 100%;
      padding: 8px 10px;
      border-radius: 10px;
      color: #17233d;
      background: transparent;
      text-align: left;
      font-size: 12px;
    }
    .workflow-node-action-menu .task-action-list .danger-text {
      color: #d9483b;
      background: transparent;
    }
    .workflow-template-action-node {
      margin-left: 24px;
      background: rgba(36,92,255,.05);
    }
    .workflow-param-popover {
      max-height: min(86vh, 760px);
      overflow: auto;
    }
    .workflow-missing-popover {
      width: min(620px, calc(100vw - 28px));
      max-height: min(86vh, 720px);
      overflow: auto;
    }
    .workflow-missing-body {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 12px;
      margin-top: 14px;
      padding: 14px;
      border-radius: 18px;
      color: #17233d;
      background: rgba(255,255,255,.95);
    }
    .workflow-missing-body p {
      margin: 0;
      color: #526071;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.55;
    }
    .workflow-missing-list {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
      counter-reset: workflow-missing;
    }
    .workflow-missing-list li {
      counter-increment: workflow-missing;
      display: grid;
      grid-template-columns: 26px minmax(0, 1fr) auto;
      gap: 9px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(36,92,255,.12);
      border-radius: 14px;
      background: rgba(248,251,255,.96);
    }
    .workflow-missing-list li::before {
      content: counter(workflow-missing);
      display: grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border-radius: 999px;
      color: #fff;
      background: linear-gradient(135deg, #245cff, #13a873);
      font-size: 12px;
      font-weight: 950;
    }
    .workflow-missing-list span {
      min-width: 0;
      color: #17233d;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.45;
      word-break: break-word;
    }
    .workflow-missing-list button {
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
      white-space: nowrap;
    }
    .workflow-param-fields {
      align-items: start;
    }
    .workflow-param-dynamic {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .workflow-param-dynamic .field.full {
      grid-column: 1 / -1;
    }
    .workflow-actions {
      position: fixed;
      left: max(12px, calc((100vw - 420px) / 2 + 12px));
      right: max(12px, calc((100vw - 420px) / 2 + 12px));
      bottom: max(12px, env(safe-area-inset-bottom));
      z-index: 87;
      padding: 10px;
      border-radius: 18px;
      background: rgba(255,255,255,.9);
      backdrop-filter: blur(12px);
      box-shadow: 0 12px 26px rgba(24,50,105,.12);
    }
    .workflow-actions button {
      flex: 1;
      min-height: 40px;
      padding: 0 10px;
    }
    .workflow-template-drawer {
      position: fixed;
      left: max(12px, calc((100vw - 420px) / 2 + 12px));
      right: max(12px, calc((100vw - 420px) / 2 + 12px));
      top: 86px;
      z-index: 20;
      display: grid;
      gap: 12px;
      max-height: min(74vh, 620px);
      overflow: auto;
      padding: 14px;
      border-radius: 24px;
      backdrop-filter: blur(14px);
    }
    .workflow-template-list,
    .workflow-sub-user-list {
      display: grid;
      gap: 8px;
    }
    .workflow-template-item {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(245,248,255,.9);
      border: 1px solid rgba(223,230,242,.9);
    }
    .workflow-template-item.active {
      background: linear-gradient(135deg, rgba(235,255,245,.96), rgba(245,248,255,.94));
      border-color: rgba(19,168,115,.42);
      box-shadow: 0 12px 28px rgba(19,168,115,.12);
    }
    .workflow-template-item.coming-soon {
      opacity: .72;
      border-style: dashed;
      background: rgba(248,250,252,.82);
    }
    .workflow-template-item div:first-child {
      min-width: 0;
      display: grid;
      gap: 4px;
    }
    .workflow-template-item strong,
    .workflow-template-item span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .workflow-template-item span {
      color: #6d7890;
      font-size: 12px;
    }
    .workflow-active-badge {
      display: inline-grid;
      place-items: center;
      margin-left: 6px;
      padding: 3px 7px;
      border-radius: 999px;
      color: #0c815b;
      background: rgba(19,168,115,.12);
      font-size: 11px;
      font-weight: 950;
      vertical-align: 1px;
    }
    .workflow-template-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .workflow-template-actions button {
      min-height: 32px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
    }
    .workflow-grant-panel {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,251,241,.92);
      border: 1px solid rgba(245,181,92,.28);
    }
    .workflow-grant-search {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
    }
    .workflow-grant-search button { padding: 0 12px; border-radius: 999px; font-size: 12px; }
    .workflow-sub-user {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 8px 10px;
      border-radius: 14px;
      background: #fff;
      border: 1px solid rgba(223,230,242,.9);
      color: #17233d;
      font-size: 13px;
      font-weight: 800;
    }
    @media (max-width: 380px) {
      #officeView .office-shortcuts {
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 6px;
        padding-right: 6px;
        gap: 3px;
      }
      #officeView .office-shortcuts button {
        font-size: 11px;
      }
      #officeView .office-shortcut-icon {
        width: 36px;
        height: 36px;
        border-radius: 14px;
      }
      #departmentView .department-calendar {
        padding: 8px;
      }
      #departmentView .department-calendar-days {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
      }
      #departmentView .department-calendar-days::-webkit-scrollbar {
        display: none;
      }
      #departmentView .department-calendar-day {
        flex: 0 0 52px;
      }
      .workflow-calendar {
        padding: 8px;
      }
      .workflow-calendar-days {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
      }
      .workflow-calendar-days::-webkit-scrollbar {
        display: none;
      }
      .workflow-calendar-day {
        flex: 0 0 52px;
      }
      #departmentView .department-day-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 9px 12px;
      }
      #departmentView .department-day-grid {
        grid-template-columns: 1fr;
      }
      .workflow-node-card {
        grid-template-columns: 54px minmax(0, 1fr) auto auto;
        gap: 7px;
      }
      .workflow-action-card {
        margin-left: 12px;
      }
      .workflow-missing-list li {
        grid-template-columns: 26px minmax(0, 1fr);
      }
      .workflow-missing-list button {
        grid-column: 2;
        justify-self: start;
      }
      .workflow-param-dynamic,
      .workflow-node-card button {
        grid-column: 1 / -1;
      }
      .workflow-node-status,
      .workflow-node-actions,
      .workflow-node-action-menu .task-action-list button {
        grid-column: auto;
      }
      #officeView .custom-employee-strip {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
      }
      #officeView .custom-employee-strip::-webkit-scrollbar {
        display: none;
      }
      #officeView .custom-employee-strip .custom-employee-card {
        flex: 0 0 72%;
      }
      .custom-employee-list {
        grid-template-columns: 1fr;
      }
    }
    .tutorial-shell {
      place-items: center;
    }
    .tutorial-card {
      width: min(100%, 320px);
      display: grid;
      justify-items: center;
      gap: 10px;
      padding: 34px 20px;
      border-radius: 28px;
      background:
        radial-gradient(circle at 20% 20%, rgba(19,168,115,.15), transparent 34%),
        linear-gradient(150deg, rgba(255,255,255,.96), rgba(239,246,255,.92));
      border: 1px solid rgba(223,230,242,.9);
      box-shadow: var(--shadow);
    }
    .tutorial-mark {
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      border-radius: 20px;
      color: #245cff;
      background: rgba(36,92,255,.1);
      font-size: 28px;
      font-weight: 950;
    }
    .tutorial-card h2 {
      margin: 0;
      font-size: 24px;
    }
    .tutorial-card p {
      margin: 0;
      color: #6d7890;
    }

    /* 20260725 designer H5 app refresh */
    :root {
      --ink: #0f172a;
      --muted: #64748b;
      --line: #e2e8f0;
      --panel: rgba(255, 255, 255, .88);
      --blue: #2563eb;
      --cyan: #0ea5e9;
      --green: #16a34a;
      --orange: #f59e0b;
      --red: #ef4444;
      --dark: #172554;
      --shadow: 0 10px 40px rgba(30, 58, 138, .08);
      --shadow-soft: 0 4px 20px rgba(30, 58, 138, .06);
      --shadow-card: 0 4px 16px rgba(30, 58, 138, .04);
      --page-bg:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, .15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(37, 99, 235, .10) 0%, transparent 50%),
        linear-gradient(180deg, #eff6ff 0%, #f0f4f8 100%);
    }

    html {
      background: #e5e7eb;
    }

    body {
      display: flex;
      justify-content: center;
      background: #e5e7eb;
      font-family: "Outfit", "Noto Sans SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overscroll-behavior-y: none;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 16% 20%, rgba(37, 99, 235, .12), transparent 32%),
        radial-gradient(circle at 86% 72%, rgba(14, 165, 233, .10), transparent 28%);
    }

    .shell {
      width: min(430px, 100vw);
      min-height: 100dvh;
      margin: 0 auto;
      padding: 0;
      position: relative;
      background: var(--page-bg);
      box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
    }

    #appPanel {
      padding: 0 20px 30px;
    }

    #appPanel,
    .view,
    .view.active {
      overflow: visible;
    }

    .hidden {
      display: none !important;
    }

    button {
      min-height: 38px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--blue), #1d4ed8);
      box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
      font-weight: 800;
      -webkit-tap-highlight-color: transparent;
    }

    .ghost,
    button.ghost {
      color: #475569;
      background: rgba(255, 255, 255, .84);
      box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
    }

    input,
    select,
    textarea {
      min-height: 46px;
      border-radius: 18px;
      border-color: rgba(226, 232, 240, .92);
      background: rgba(255, 255, 255, .96);
      color: #17233d;
      font-weight: 700;
    }

    input::placeholder,
    textarea::placeholder {
      color: #94a3b8;
      font-weight: 600;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: rgba(37, 99, 235, .42);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
    }

    .topbar {
      top: 0;
      margin: 0;
      padding: 18px 20px 12px;
      border: 0;
      border-radius: 0;
      background: rgba(248, 250, 252, .82);
      box-shadow: none;
      backdrop-filter: blur(20px) saturate(170%);
      -webkit-backdrop-filter: blur(20px) saturate(170%);
    }

    .topbar.subpage {
      padding-top: 14px;
      background: rgba(244, 247, 251, .86);
    }

    .brand {
      gap: 10px;
    }

    .logo {
      width: 38px;
      height: 38px;
      border-radius: 16px;
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .brand-title h1 {
      color: #0f172a;
      font-size: 19px;
      font-weight: 950;
      letter-spacing: -.02em;
    }

    .subtitle {
      max-width: 230px;
      color: #64748b;
      font-size: 11px;
      font-weight: 700;
    }

    .top-back,
    .top-action,
    .avatar-action {
      background: rgba(255, 255, 255, .86);
      box-shadow: 0 8px 22px rgba(30, 58, 138, .08);
    }

    .top-back {
      width: 36px;
      min-height: 36px;
      padding: 0;
      color: #475569;
    }

    .top-action {
      min-height: 36px;
      padding: 0 10px;
      color: #475569;
      border: 1px solid rgba(226, 232, 240, .86);
      font-size: 12px;
    }

    .top-action-label {
      display: none;
    }

    .avatar-mini {
      width: 34px;
      height: 34px;
      background: linear-gradient(135deg, #0ea5e9, #2563eb);
      box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    }

    .panel.login {
      width: calc(100% - 40px);
      margin: clamp(34px, 8vh, 76px) auto 24px;
      padding: 24px;
      border-radius: 28px;
      background: rgba(255, 255, 255, .92);
      box-shadow: 0 24px 58px rgba(30, 58, 138, .14);
    }

    #officeView .office-dashboard {
      gap: 22px;
      padding: 0 0 34px;
    }

    #officeView .office-secretary-hero {
      min-height: 190px;
      margin: 4px 0 0;
      padding: 24px 18px 18px;
      border-radius: 28px;
      background:
        radial-gradient(circle at 82% 10%, rgba(125, 211, 252, .36), transparent 35%),
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .22), transparent 24%),
        linear-gradient(160deg, rgba(37, 99, 235, .92), rgba(30, 64, 175, .98) 58%, #172554 100%);
      box-shadow: 0 18px 48px rgba(37, 99, 235, .22);
    }

    #officeView .office-secretary-hero::before {
      background:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
      background-size: 22px 22px;
      opacity: .48;
    }

    #officeView .office-secretary-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .12) 48%, transparent 62%);
      background-size: 220% 100%;
      animation: h5DesignerShimmer 4.6s linear infinite;
      pointer-events: none;
      opacity: .46;
    }

    @keyframes h5DesignerShimmer {
      0% { background-position: 220% 0; }
      100% { background-position: -220% 0; }
    }

    #officeView .office-hero-copy {
      align-content: end;
      padding-top: 14px;
    }

    #officeView .office-hero-copy > span {
      color: #dbeafe;
      font-size: 11px;
      letter-spacing: .10em;
    }

    #officeView .office-hero-copy strong {
      max-width: 230px;
      font-size: 24px;
      line-height: 1.16;
      letter-spacing: -.03em;
    }

    #officeView .office-hero-chips {
      gap: 7px;
      margin-top: 6px;
    }

    #officeView .office-hero-chips em {
      min-height: 28px;
      padding: 0 10px;
      border: 1px solid rgba(255, 255, 255, .18);
      background: rgba(255, 255, 255, .15);
      color: rgba(255, 255, 255, .94);
      font-size: 11px;
    }

    #officeView .office-hero-chips b {
      color: #86efac;
    }

    #officeView .office-secretary-hero img {
      width: 108px;
      max-height: 164px;
      margin: -10px -8px -18px 0;
      filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .24));
    }

    #officeView .office-shortcuts {
      margin: 0;
      padding: 17px 10px;
      gap: 5px;
      border-radius: 26px;
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    #officeView .office-shortcuts button {
      min-height: 78px;
      gap: 8px;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.22;
    }

    #officeView .office-shortcut-icon {
      width: 48px;
      height: 48px;
      border-radius: 18px;
      font-size: 16px;
      transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
    }

    #officeView .office-shortcuts button:active .office-shortcut-icon {
      transform: translateY(-2px) scale(.96);
    }

    #officeView .office-section {
      margin: 0;
      gap: 13px;
    }

    #officeView .office-section-head {
      padding: 0 2px;
    }

    #officeView .office-section-head h2 {
      font-size: 18px;
      letter-spacing: -.02em;
    }

    #officeView .office-section-head h2::before {
      height: 20px;
      background: linear-gradient(180deg, #2563eb, #1e40af);
    }

    #officeView .office-section-head button {
      min-height: 34px;
      padding: 0 15px;
      border-radius: 14px;
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
      font-size: 13px;
    }

    #officeView .office-employee-grid {
      gap: 14px;
      margin: 0 -20px;
      padding: 0 20px 4px !important;
    }

    #officeView .office-employee-grid .office-empty {
      flex: 0 0 100%;
      min-height: 92px;
      display: grid;
      place-items: center;
      padding: 16px;
      border: 1px dashed rgba(148, 163, 184, .34);
      border-radius: 24px;
      background: rgba(255, 255, 255, .68);
      box-shadow: none;
    }

    #officeView .office-employee-grid .office-empty-copy {
      position: static;
      color: #64748b;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      transform: none;
    }

    #officeView .office-employee-card {
      flex-basis: 120px;
      max-width: 120px;
      min-height: 164px;
      padding: 10px;
      border-radius: 24px;
      background: #fff;
      box-shadow: var(--shadow-card);
      transition: transform .22s ease, box-shadow .22s ease;
    }

    #officeView .office-employee-card:active {
      transform: scale(.98);
    }

    #officeView .office-employee-card img,
    #officeView .office-custom-employee-avatar {
      width: 96px;
      height: 96px;
      border-radius: 20px;
      object-fit: cover;
      background: linear-gradient(180deg, #f8fafc, #eef2ff);
    }

    #officeView .office-employee-info strong {
      max-width: 100px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
    }

    #officeView .office-employee-info em {
      font-size: 11px;
    }

    #officeView .office-employee-info em::before {
      width: 6px;
      height: 6px;
      box-shadow: 0 0 8px currentColor;
    }

    #officeView .marketing-creation-card {
      position: relative;
      min-height: 0;
      grid-template-columns: 1fr;
      gap: 0;
      padding: 10px;
      overflow: hidden;
      border-radius: 26px;
      background: #fff;
      box-shadow: var(--shadow-card);
    }

    #officeView .marketing-creation-card::before {
      content: "";
      display: block;
      height: 112px;
      border-radius: 20px;
      background:
        radial-gradient(circle at 74% 18%, rgba(96, 165, 250, .36), transparent 32%),
        radial-gradient(circle at 22% 75%, rgba(34, 197, 94, .16), transparent 28%),
        linear-gradient(135deg, #e0f2fe, #eef2ff 45%, #f8fafc 100%);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
    }

    #officeView .marketing-creation-card span {
      position: absolute;
      top: 24px;
      left: 50%;
      width: 58px;
      height: 58px;
      transform: translateX(-50%);
      border-radius: 22px;
      color: #2563eb;
      background: rgba(255, 255, 255, .82);
      box-shadow: 0 12px 30px rgba(37, 99, 235, .16);
      font-size: 20px;
    }

    #officeView .marketing-creation-card strong {
      margin: 12px 2px 2px;
      font-size: 16px;
    }

    #officeView .marketing-creation-card em {
      margin: 0 2px 2px;
      font-size: 12px;
    }

    #officeView .office-recent-list {
      gap: 10px;
    }

    #officeView .office-recent-item,
    #officeView .office-recent-empty {
      padding: 13px 14px;
      border-radius: 20px;
      border: 1px solid rgba(248, 250, 252, .96);
      background: #fff;
      box-shadow: 0 6px 18px rgba(30, 58, 138, .05);
    }

    #officeView .office-recent-main strong {
      font-size: 14px;
    }

    #officeView .office-recent-main em,
    #officeView .office-recent-item small {
      color: #94a3b8;
      font-size: 12px;
    }

    #officeView .office-recent-status {
      border-radius: 999px;
      font-size: 11px;
      font-weight: 950;
    }

    .asset-library-shell,
    .lead-center-shell,
    .tutorial-shell {
      min-height: calc(100dvh - 92px);
      gap: 15px;
      padding: 4px 0 30px;
      align-content: start;
    }

    .asset-library-head {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .asset-library-head .asset-library-tabs {
      flex: 1;
      min-width: 0;
    }

    .asset-library-head > button,
    .personal-list-page-head button {
      min-height: 34px;
      padding: 0 14px;
      border-radius: 999px;
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
    }

    .asset-library-tabs,
    .content-record-tabs,
    .lead-domain-tabs,
    .lead-platform-tabs,
    .personal-tabs {
      display: flex;
      gap: 8px;
      margin: 0 -20px;
      padding: 6px 20px 8px;
      overflow-x: auto;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      scrollbar-width: none;
    }

    .asset-library-tabs::-webkit-scrollbar,
    .content-record-tabs::-webkit-scrollbar,
    .lead-domain-tabs::-webkit-scrollbar,
    .lead-platform-tabs::-webkit-scrollbar,
    .personal-tabs::-webkit-scrollbar {
      display: none;
    }

    .asset-library-tabs button,
    .content-record-tabs button,
    .lead-domain-tabs button,
    .lead-platform-tabs button,
    .personal-tabs button {
      flex: 0 0 auto;
      min-height: 38px;
      padding: 0 16px;
      border: 1px solid rgba(255, 255, 255, .92);
      border-radius: 999px;
      color: #475569;
      background: rgba(255, 255, 255, .68);
      box-shadow: none;
      font-size: 13px;
      font-weight: 850;
      white-space: nowrap;
      backdrop-filter: blur(14px);
    }

    .asset-library-tabs button.active,
    .content-record-tabs button.active,
    .lead-domain-tabs button.active,
    .lead-platform-tabs button.active,
    .personal-tabs button.active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    }

    .asset-library-tabs button span {
      background: rgba(148, 163, 184, .13);
      color: #64748b;
    }

    .asset-library-tabs button.active span {
      background: rgba(255, 255, 255, .22);
      color: #fff;
    }

    .asset-library-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .asset-library-card {
      min-height: 0;
      gap: 8px;
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 22px;
      background: rgba(255, 255, 255, .88);
      box-shadow: var(--shadow-card);
      transition: transform .2s ease, box-shadow .2s ease;
      backdrop-filter: blur(16px);
    }

    .asset-library-card:active {
      transform: scale(.98);
    }

    .asset-library-thumb,
    .asset-audio-thumb {
      aspect-ratio: 1 / 1;
      border-radius: 18px;
      border-color: rgba(226, 232, 240, .7);
      background:
        radial-gradient(circle at 26% 20%, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #f8fafc, #eef2ff);
    }

    .asset-library-card-main strong {
      font-size: 13px;
    }

    .asset-library-card-main span,
    .asset-library-card-main em {
      color: #94a3b8;
      font-size: 11px;
    }

    .content-record-shell .asset-library-grid,
    .lead-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .asset-library-pager {
      margin-top: 2px;
      padding: 0 2px;
    }

    .asset-library-pager button {
      min-height: 36px;
      color: #2563eb;
      background: rgba(37, 99, 235, .08);
      box-shadow: none;
    }

    .lead-center-shell {
      margin: 0;
      padding: 4px 0 32px;
      background: transparent;
    }

    .lead-center-title {
      margin: 0;
      color: #0f172a;
      font-size: 18px;
      font-weight: 950;
    }

    .lead-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .lead-stats div,
    .lead-card,
    .lead-empty-box {
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 22px;
      background: rgba(255, 255, 255, .90);
      box-shadow: var(--shadow-card);
    }

    .lead-stats strong {
      color: #2563eb;
    }

    .lead-card {
      padding: 14px;
    }

    .lead-card strong {
      font-size: 15px;
    }

    .lead-card span,
    .lead-card em {
      color: #64748b;
      line-height: 1.55;
    }

    .personal-settings-page {
      margin: 0;
      padding: 4px 0 34px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .personal-settings-page .personal-block,
    .personal-survey-wizard,
    .personal-template-card,
    .personal-current-template,
    .personal-status,
    .personal-list-page-head {
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 24px;
      background: rgba(255, 255, 255, .88);
      box-shadow: var(--shadow-card);
      backdrop-filter: blur(16px);
    }

    .personal-block {
      padding: 16px;
    }

    .personal-grid,
    .personal-form-grid {
      grid-template-columns: 1fr;
    }

    .personal-row,
    .personal-source-card,
    .personal-source-profile,
    .personal-generated-doc,
    .personal-upload-zone {
      border-radius: 18px;
      border-color: rgba(226, 232, 240, .72);
      background: rgba(248, 250, 252, .72);
    }

    .personal-survey-card {
      min-height: 180px;
      border-radius: 24px;
    }

    .personal-survey-actions {
      position: sticky;
      bottom: 12px;
      z-index: 4;
      padding: 8px;
      border-radius: 24px;
      background: rgba(255, 255, 255, .90);
      box-shadow: 0 14px 34px rgba(30, 58, 138, .12);
      backdrop-filter: blur(16px);
    }

    .workflow-shell {
      margin: 0;
      padding: 4px 0 94px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .workflow-head,
    .workflow-day-board,
    .workflow-editor-card,
    .workflow-template-drawer,
    .workflow-node-card {
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 22px;
      background: rgba(255, 255, 255, .88);
      box-shadow: var(--shadow-card);
      backdrop-filter: blur(16px);
    }

    .workflow-head {
      padding: 12px;
    }

    .workflow-head-actions button {
      min-height: 36px;
      padding: 0 12px;
      font-size: 12px;
    }

    .workflow-calendar {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .workflow-calendar-days {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 10px 10px 12px;
      scrollbar-width: none;
    }

    .workflow-calendar-days::-webkit-scrollbar {
      display: none;
    }

    .workflow-calendar-day {
      flex: 0 0 52px;
      min-height: 64px;
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 6px 18px rgba(30, 58, 138, .05);
    }

    .workflow-calendar-day.active {
      background: linear-gradient(180deg, #2563eb, #1d4ed8);
      box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
    }

    .workflow-timeline {
      gap: 10px;
    }

    .workflow-node-card {
      grid-template-columns: 58px minmax(0, 1fr) auto auto;
      padding: 10px;
      border-radius: 20px;
    }

    .workflow-node-time {
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    .workflow-action-card {
      margin-left: 30px;
      background: rgba(255, 255, 255, .76);
    }

    .workflow-actions {
      left: max(16px, calc((100vw - 430px) / 2 + 16px));
      right: max(16px, calc((100vw - 430px) / 2 + 16px));
      bottom: max(16px, env(safe-area-inset-bottom));
      padding: 8px;
      border-radius: 28px;
      border: 1px solid rgba(255, 255, 255, .86);
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 -8px 32px rgba(30, 58, 138, .10);
      backdrop-filter: blur(18px);
    }

    .workflow-actions button {
      min-height: 46px;
      border-radius: 22px;
    }

    .workflow-template-drawer {
      left: max(16px, calc((100vw - 430px) / 2 + 16px));
      right: max(16px, calc((100vw - 430px) / 2 + 16px));
      top: 76px;
      border-radius: 26px;
    }

    .department-shell,
    .ability-shell {
      margin: 0;
      padding: 4px 0 30px;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .department-hero,
    .ability-workbench,
    .ability-detail-card,
    .ability-child-card,
    .quick-card {
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 24px;
      background: rgba(255, 255, 255, .88);
      box-shadow: var(--shadow-card);
      backdrop-filter: blur(16px);
    }

    .department-hero {
      min-height: 150px;
      color: #fff;
      background:
        radial-gradient(circle at 80% 16%, rgba(125, 211, 252, .30), transparent 34%),
        linear-gradient(145deg, #1e3a8a, #2563eb 54%, #0f172a);
      box-shadow: 0 18px 44px rgba(37, 99, 235, .18);
    }

    .ability-child-grid,
    .quick-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .quick-card {
      min-height: 112px;
      padding: 12px;
    }

    .employee-modal-backdrop {
      background: rgba(15, 23, 42, .42);
      backdrop-filter: blur(5px);
    }

    .employee-popover,
    .work-dispatch-popover,
    .workflow-node-popover,
    .workflow-param-popover,
    .workflow-missing-popover,
    .asset-action-popover,
    .personal-template-popover,
    .personal-memory-popover {
      width: min(360px, calc(100vw - 34px));
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 28px;
      background:
        radial-gradient(circle at 88% 0%, rgba(191, 219, 254, .45), transparent 28%),
        rgba(255, 255, 255, .96);
      box-shadow: 0 28px 74px rgba(15, 23, 42, .24);
      backdrop-filter: blur(18px);
    }

    .employee-popover-close {
      border-radius: 999px;
      background: rgba(15, 23, 42, .06);
      box-shadow: none;
    }

    .toast {
      left: max(18px, calc((100vw - 430px) / 2 + 18px));
      right: max(18px, calc((100vw - 430px) / 2 + 18px));
      bottom: max(82px, env(safe-area-inset-bottom));
      width: auto;
      max-width: none;
      border-radius: 18px;
      background: rgba(15, 23, 42, .88);
      box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
      backdrop-filter: blur(16px);
      text-align: center;
      transform: translateY(0);
    }

    .toast.show {
      transform: translateY(-6px);
    }

    @media (min-width: 431px) {
      .shell {
        max-height: 100dvh;
        overflow-y: auto;
      }
    }

    @media (max-width: 380px) {
      #appPanel {
        padding-left: 14px;
        padding-right: 14px;
      }

      .topbar {
        padding-left: 14px;
        padding-right: 14px;
      }

      #officeView .office-hero-copy strong {
        font-size: 22px;
      }

      #officeView .office-shortcuts {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding-left: 6px;
        padding-right: 6px;
      }

      #officeView .office-shortcut-icon {
        width: 42px;
        height: 42px;
      }

      .asset-library-grid {
        gap: 10px;
      }

      .workflow-node-card {
        grid-template-columns: 54px minmax(0, 1fr) auto;
      }
    }

    /* Designer package restoration: data-backed cards keep the original app behavior. */
    .asset-library-grid.designer-media-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .asset-library-grid.designer-avatar-grid,
    .asset-library-grid.designer-voice-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .designer-media-grid > .asset-library-empty,
    .designer-avatar-grid > .asset-library-empty,
    .designer-voice-list > .asset-library-empty {
      grid-column: 1 / -1;
    }

    .asset-library-card.designer-media-card,
    .asset-library-card.designer-avatar-card,
    .asset-library-card.designer-voice-card {
      min-height: 0;
      padding: 10px;
      gap: 0;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .78);
      background: rgba(255, 255, 255, .82);
      box-shadow: 0 8px 24px rgba(30, 58, 138, .08);
      backdrop-filter: blur(16px);
    }

    .asset-library-card.designer-media-card {
      border-radius: 20px;
    }

    .designer-media-thumb,
    .designer-avatar-thumb {
      position: relative;
      width: 100%;
      aspect-ratio: 1;
      display: block;
      overflow: hidden;
      border-radius: 16px;
      background: #eef2f7;
    }

    .designer-media-thumb > .asset-library-thumb,
    .designer-avatar-thumb > .asset-library-thumb {
      width: 100%;
      height: 100%;
      aspect-ratio: 1;
      border: 0;
      border-radius: inherit;
      object-fit: cover;
      transition: transform .35s ease;
    }

    .designer-media-card:active .designer-media-thumb > .asset-library-thumb,
    .designer-avatar-card:active .designer-avatar-thumb > .asset-library-thumb {
      transform: scale(1.035);
    }

    .designer-media-badge {
      position: absolute;
      left: 8px;
      bottom: 8px;
      z-index: 2;
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      color: #fff;
      background: rgba(15, 23, 42, .48);
      box-shadow: 0 4px 12px rgba(15, 23, 42, .14);
      backdrop-filter: blur(8px);
    }

    .designer-media-badge svg,
    .designer-voice-thumb svg {
      width: 15px;
      height: 15px;
      fill: currentColor;
    }

    .designer-play-badge {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 2;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, .34);
      border-radius: 50%;
      color: #fff;
      background: rgba(255, 255, 255, .20);
      box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
      backdrop-filter: blur(9px);
      transform: translate(-50%, -50%);
    }

    .designer-play-badge svg {
      width: 17px;
      height: 17px;
      fill: currentColor;
      transform: translateX(1px);
    }

    .asset-library-card-main.designer-media-meta {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 3px 8px;
      padding: 10px 4px 2px;
    }

    .designer-media-meta strong {
      grid-column: 1 / -1;
      font-size: 14px;
      line-height: 1.35;
    }

    .designer-media-meta > span {
      display: none;
    }

    .designer-media-meta > em {
      grid-column: 1 / -1;
      color: #94a3b8;
      font-size: 11px;
    }

    .asset-library-card.designer-avatar-card,
    .asset-library-card.designer-voice-card {
      padding: 8px;
      border-radius: 16px;
    }

    .designer-avatar-thumb {
      border-radius: 12px;
      background: linear-gradient(180deg, #eff6ff, #dbeafe);
    }

    .designer-avatar-meta,
    .designer-voice-meta {
      padding: 8px 2px 2px;
      gap: 3px;
    }

    .designer-avatar-meta strong,
    .designer-voice-meta strong {
      font-size: 13px;
    }

    .designer-avatar-meta span,
    .designer-avatar-meta em,
    .designer-voice-meta span,
    .designer-voice-meta em {
      font-size: 10px;
    }

    .designer-voice-thumb {
      width: 100%;
      height: auto;
      aspect-ratio: 1;
      border: 0;
      border-radius: 12px;
      color: #2563eb;
      background:
        linear-gradient(145deg, rgba(255,255,255,.62), transparent 55%),
        linear-gradient(145deg, #e0f2fe, #dbeafe);
    }

    .designer-voice-thumb svg {
      width: 34px;
      height: 34px;
    }

    .department-skill-grid:has(.designer-ability-card) {
      grid-template-columns: 1fr !important;
      gap: 16px;
    }

    #departmentView .department-shell.marketing-entry-mode {
      padding-top: 2px;
    }

    #departmentView .department-shell.marketing-entry-mode > .department-hero,
    #departmentView .department-shell.marketing-entry-mode > .department-breadcrumb {
      display: none;
    }

    .department-skill-card.designer-ability-card {
      min-height: 0;
      display: block;
      padding: 10px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .78);
      border-radius: 24px;
      color: #0f172a;
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 12px 30px rgba(30, 58, 138, .10);
    }

    .designer-ability-art {
      position: relative;
      width: 100%;
      height: 180px;
      display: grid;
      place-items: center;
      overflow: hidden;
      border-radius: 18px;
      color: #60a5fa;
      background:
        linear-gradient(120deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.025) 50%, rgba(255,255,255,.025) 75%, transparent 75%),
        linear-gradient(145deg, #111827, #0f172a);
      background-size: 44px 44px, auto;
    }

    .designer-ability-art::before,
    .designer-ability-art::after {
      content: "";
      position: absolute;
      inset: auto 8% 24% 8%;
      height: 1px;
      background: linear-gradient(90deg, transparent, currentColor, transparent);
      opacity: .34;
      box-shadow: 0 -34px 22px currentColor, 0 34px 26px currentColor;
      transform: rotate(-8deg);
    }

    .designer-ability-art::after {
      inset: 20% 14% auto 14%;
      opacity: .18;
      transform: rotate(12deg);
    }

    .designer-ability-art > i,
    .designer-ability-art > b {
      display: none;
    }

    .designer-ability-art > span {
      position: relative;
      z-index: 2;
      width: 64px;
      height: 64px;
      display: grid;
      place-items: center;
      filter: drop-shadow(0 0 14px currentColor);
    }

    .designer-ability-art svg {
      width: 56px;
      height: 56px;
      fill: currentColor;
    }

    .designer-ability-card.purple .designer-ability-art { color: #c084fc; }
    .designer-ability-card.emerald .designer-ability-art { color: #34d399; }
    .designer-ability-card.rose .designer-ability-art { color: #fb7185; }
    .designer-ability-card.cyan .designer-ability-art { color: #22d3ee; }

    .designer-ability-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 14px 12px 7px;
    }

    .designer-ability-meta h3 {
      min-width: 0;
      margin: 0;
      overflow: hidden;
      color: #1f2937;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 17px;
      line-height: 1.35;
    }

    .designer-ability-meta > span {
      display: none;
    }

    .designer-ability-meta > strong {
      flex: 0 0 auto;
      margin-left: auto;
      padding: 5px 12px;
      border: 1px solid rgba(37, 99, 235, .16);
      border-radius: 999px;
      color: #2563eb;
      background: #f0f4ff;
      font-size: 12px;
      line-height: 1.2;
    }

    .designer-ability-card.disabled .designer-ability-art {
      color: #94a3b8;
      filter: grayscale(.35);
    }

    .designer-ability-card.disabled .designer-ability-meta > strong {
      color: #64748b;
      border-color: #e2e8f0;
      background: #f1f5f9;
    }

    .workflow-timeline.designer-workflow-groups {
      display: grid;
      gap: 14px;
    }

    .designer-workflow-group {
      min-width: 0;
    }

    .designer-workflow-group > summary {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      list-style: none;
      border: 1px solid rgba(226, 232, 240, .8);
      border-radius: 24px;
      background: rgba(255, 255, 255, .92);
      box-shadow: 0 8px 24px rgba(30, 58, 138, .07);
      cursor: pointer;
    }

    .designer-workflow-group > summary::-webkit-details-marker {
      display: none;
    }

    .designer-workflow-group > summary::before {
      content: "";
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
      border-radius: 50%;
      background:
        linear-gradient(135deg, transparent 43%, #94a3b8 43%, #94a3b8 52%, transparent 52%) center 12px / 9px 9px no-repeat,
        linear-gradient(45deg, transparent 43%, #94a3b8 43%, #94a3b8 52%, transparent 52%) center 12px / 9px 9px no-repeat,
        #f8fafc;
      transition: transform .2s ease;
    }

    .designer-workflow-group[open] > summary::before {
      transform: rotate(180deg);
    }

    .designer-workflow-group-title {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .designer-workflow-group-title strong {
      overflow: hidden;
      color: #1e293b;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
    }

    .designer-workflow-group-title span {
      color: #94a3b8;
      font-size: 11px;
      font-weight: 700;
    }

    .designer-workflow-group-state {
      flex: 0 0 auto;
      margin-left: auto;
      padding: 6px 13px;
      border-radius: 999px;
      color: #2563eb;
      background: #eff6ff;
      font-size: 12px;
      font-style: normal;
      font-weight: 800;
    }

    .designer-workflow-group-content {
      position: relative;
      display: grid;
      gap: 9px;
      margin: 9px 8px 0 30px;
      padding-left: 16px;
    }

    .designer-workflow-group-content::before {
      content: "";
      position: absolute;
      left: 4px;
      top: 0;
      bottom: 18px;
      border-left: 1px dashed #cbd5e1;
    }

    .workflow-node-card.designer-workflow-node {
      position: relative;
      grid-template-columns: 54px minmax(0, 1fr) auto auto;
      gap: 7px;
      min-width: 0;
      padding: 10px;
      border: 1px solid rgba(226, 232, 240, .82);
      border-radius: 20px;
      background: rgba(255, 255, 255, .82);
      box-shadow: 0 6px 18px rgba(30, 58, 138, .05);
    }

    .workflow-node-card.designer-workflow-node::before {
      content: "";
      position: absolute;
      left: -13px;
      top: 50%;
      width: 13px;
      border-top: 1px solid #cbd5e1;
    }

    .designer-workflow-node .workflow-node-time {
      height: 34px;
      border-radius: 11px;
      background: linear-gradient(145deg, #3b82f6, #2563eb);
      font-size: 13px;
    }

    .designer-workflow-node .workflow-node-main {
      cursor: pointer;
    }

    .designer-workflow-node .workflow-node-main strong {
      font-size: 13px;
    }

    .designer-workflow-node .workflow-node-main span {
      display: none;
    }

    .designer-workflow-action-node {
      margin-left: 18px;
    }

    .designer-workflow-action-node .workflow-node-time.action {
      color: #2563eb;
      border: 1px solid #dbeafe;
      background: #eff6ff;
    }

    .designer-workflow-branch {
      display: none;
    }

    .designer-workflow-node .workflow-status-pill,
    .designer-workflow-node .workflow-node-action-menu summary {
      min-height: 26px;
      padding: 4px 9px;
      border-radius: 999px;
      font-size: 11px;
    }

    .designer-workflow-node .workflow-node-action-menu summary {
      color: #2563eb;
      border: 0;
      background: #eff6ff;
    }

    @media (max-width: 380px) {
      .asset-library-grid.designer-media-grid {
        gap: 10px;
      }

      .asset-library-grid.designer-avatar-grid,
      .asset-library-grid.designer-voice-list {
        gap: 7px;
      }

      .workflow-node-card.designer-workflow-node {
        grid-template-columns: 44px minmax(0, 1fr) auto auto;
        gap: 5px;
      }

      .designer-workflow-group-content {
        margin-left: 20px;
        padding-left: 12px;
      }

      .designer-workflow-node .workflow-status-pill,
      .designer-workflow-node .workflow-node-action-menu summary {
        padding-left: 7px;
        padding-right: 7px;
      }
    }
