    :root {
      color-scheme: light;
      --bg: #f4f6f3;
      --panel: #ffffff;
      --text: #202923;
      --muted: #5b675f;
      --line: #cad8cf;
      --accent: #00474f;
      --accent-soft: #e6f5f4;
      --warn: #8a5a00;
      --danger: #8f1d2c;
      --danger-soft: #f8d7da;
      --admin: #44546a;
      --admin-soft: #edf1f5;
      font-family: var(--ey-font-sans);
    }
    * { box-sizing: border-box; }
    body {
      min-height: 100vh;
      margin: 0;
      background: var(--bg);
      color: var(--text);
    }
    body.login-mode {
      background:
        linear-gradient(180deg, rgba(8, 18, 26, 0.82) 0%, rgba(8, 18, 26, 0.58) 34%, rgba(8, 18, 26, 0.24) 72%),
        linear-gradient(90deg, rgba(8, 18, 26, 0.46), rgba(8, 18, 26, 0.18)),
        url("/static/images/ey-pro-login-background.jpg") center / cover no-repeat fixed;
    }
    .shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
    h1 { margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: 0; }
    main { padding: 18px 0 34px; }
    body.login-mode main {
      height: 100vh;
      overflow: hidden;
      padding: 0;
    }
    .login-view,
    .profile-view {
      display: flex;
      height: 100%;
      padding: 32px 0;
      justify-content: center;
      align-items: center;
    }
    .login-stack,
    .profile-stack { width: min(420px, 100%); }
    .login-brand {
      margin-bottom: 18px;
      color: #ffffff;
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    }
    .iblum-logo {
      display: block;
      width: 118px;
      height: auto;
      margin: 0 0 18px;
      filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
    }
    .login-brand-title {
      margin: 0;
      color: #ffffff;
      font-size: 36px;
      font-weight: 600;
      line-height: 1.08;
      letter-spacing: 0;
    }
    .login-brand-subtitle {
      margin: 6px 0 0;
      color: rgba(255, 255, 255, 0.96);
      font-size: 18px;
      font-weight: 600;
      line-height: 1.35;
    }
    .tools-view {
      display: grid;
      gap: 16px;
    }
    .login-panel,
    .profile-panel {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }
    .login-panel,
    .profile-panel {
      width: 100%;
      padding: 20px;
      box-shadow: 0 18px 48px rgba(12, 25, 34, 0.22);
    }
    .workspace-panel { padding: 0; }
    .workspace-section + .workspace-section { margin-top: 26px; }
    .workspace-heading {
      margin: 0 0 12px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .assigned-tasks {
      grid-column: 1 / -1;
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }
    .assigned-tasks table {
      width: 100%;
      border-collapse: collapse;
      min-width: 680px;
    }
    .assigned-tasks th,
    .assigned-tasks td {
      padding: 13px 16px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: middle;
    }
    .assigned-tasks tr:last-child td { border-bottom: 0; }
    .assigned-tasks th {
      background: #f8fafb;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .task-type {
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }
    .task-name {
      color: var(--text);
      font-size: 14px;
      font-weight: 600;
    }
    .task-action {
      color: var(--accent);
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }
    .task-action:hover { text-decoration: underline; }
    .task-empty {
      color: var(--muted);
      font-size: 13px;
      text-align: center !important;
    }
    .panel-title { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: 0; }
    .panel-copy { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
    .login-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .info-wrap {
      position: relative;
      display: inline-flex;
    }
    .info-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: #ffffff;
      color: var(--muted);
      cursor: help;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      line-height: 1;
      padding: 0;
    }
    .info-button:hover,
    .info-button:focus-visible {
      border-color: var(--accent);
      color: var(--accent);
      outline: none;
    }
    .info-tooltip {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 10px);
      z-index: 5;
      width: min(260px, calc(100vw - 48px));
      padding: 10px 12px;
      border-radius: 8px;
      background: #17232f;
      color: #ffffff;
      box-shadow: 0 12px 28px rgba(12, 25, 34, 0.24);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.35;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, 4px);
      transition: opacity 0.16s ease, transform 0.16s ease;
    }
    .info-tooltip::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 100%;
      width: 10px;
      height: 10px;
      background: #17232f;
      transform: translate(-50%, -5px) rotate(45deg);
    }
    .info-button:hover + .info-tooltip,
    .info-button:focus-visible + .info-tooltip {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    .login-form,
    .profile-form {
      display: grid;
      gap: 14px;
      margin-top: 20px;
    }
    label {
      display: grid;
      gap: 6px;
      color: var(--text);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.25;
    }
    input {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #ffffff;
      color: var(--text);
      font: inherit;
      padding: 11px 12px;
    }
    input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(21, 94, 117, 0.14);
      outline: none;
    }
    .combobox {
      position: relative;
      width: 100%;
    }
    .combobox-input {
      padding-right: 36px;
    }
    .combobox::after {
      content: "";
      position: absolute;
      right: 14px;
      top: 50%;
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--text);
      border-bottom: 2px solid var(--text);
      pointer-events: none;
      transform: translateY(-70%) rotate(45deg);
    }
    .combobox-dropdown {
      position: absolute;
      top: calc(100% + 3px);
      left: 0;
      right: 0;
      z-index: 200;
      max-height: 220px;
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #ffffff;
      box-shadow: 0 6px 20px rgba(12, 25, 34, 0.12);
    }
    .combobox-option {
      padding: 10px 14px;
      color: var(--text);
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.25;
    }
    .combobox-option:hover,
    .combobox-option:focus,
    .combobox-option.is-active {
      background: var(--accent-soft);
      outline: none;
    }
    .combobox-empty {
      padding: 10px 14px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.25;
    }
    .primary-button,
    .secondary-button {
      border: 1px solid transparent;
      border-radius: 8px;
      cursor: pointer;
      font: inherit;
      font-weight: 600;
      min-height: 42px;
      padding: 10px 14px;
    }
    .primary-button { background: var(--accent); color: #ffffff; }
    .primary-button:disabled { cursor: default; opacity: 0.68; }
    .secondary-button {
      background: #ffffff;
      border-color: var(--line);
      color: var(--text);
    }
    .login-status {
      min-height: 20px;
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }
    .login-status.error { color: var(--danger); }
    .profile-actions {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: center;
    }
    .profile-welcome {
      display: grid;
      gap: 14px;
    }
    .profile-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .profile-heading .panel-title,
    .profile-heading .welcome-title {
      line-height: 1.2;
    }
    .welcome-title {
      margin: 0;
      font-size: 22px;
      line-height: 1.2;
      letter-spacing: 0;
    }
    .role-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 26px;
      padding: 5px 10px;
      border: 1px solid #b8d2dc;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      white-space: nowrap;
    }
    .role-chip::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
    }
    .profile-welcome .panel-copy {
      margin-top: 0;
    }
    #profile-details-form .panel-copy {
      font-size: 14px;
    }
    .profile-summary {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg);
    }
    .profile-summary-row {
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr);
      gap: 10px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }
    .profile-summary-row strong {
      color: var(--text);
      font-weight: 600;
    }
    .field-warning {
      margin: 0;
      color: var(--danger);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
    }
    .field-warning-row {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 4px;
    }
    .inline-action {
      width: fit-content;
      min-height: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--accent);
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      text-align: left;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
    }
    .inline-action:hover,
    .inline-action:focus-visible {
      color: #0f4a5e;
      outline: none;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
    }
    .tool {
      display: flex;
      flex-direction: column;
      min-height: 168px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: inherit;
      text-decoration: none;
    }
    .tool:hover { border-color: #7fb9b1; box-shadow: 0 3px 14px rgba(32, 41, 35, 0.08); }
    .tool.planned { opacity: 0.72; cursor: default; }
    .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .tool-title { margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: 0; }
    p { margin: 12px 0 0; color: var(--muted); line-height: 1.45; }
    .status {
      flex: 0 0 auto;
      padding: 4px 8px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 12px;
      line-height: 1;
      font-weight: 600;
    }
    .status[data-status="Planned"] { background: #fff2d6; color: var(--warn); }
    .status[data-status="Unavailable"] { background: var(--danger-soft); color: var(--danger); }
    .status[data-status="Server-side"] { background: var(--admin-soft); color: var(--admin); }
    .slug { margin-top: auto; padding-top: 18px; color: #7a8791; font-size: 12px; }
    [hidden] { display: none !important; }
    @media (max-width: 820px) {
      .login-view,
      .profile-view {
        align-items: flex-start;
        padding: 22px 0;
      }
      .iblum-logo { width: 104px; }
      .login-brand-title { font-size: 30px; }
    }
