/* Extracted verbatim from the Salesforce Assist prototype: tools/automation-switch/salesforce-automation-switch.html */
  :root{
    --primary: #e2711d;
    --primary-dark: #b95a14;
    --primary-tint: #fdf4ec;
    --primary-line: #f3d6bf;
    --ink: #1f2328;
    --ink-soft: #5f6770;
    --border: #e6e8eb;
    --surface: #ffffff;
    --canvas: #fafafa;
  }

  *{ box-sizing: border-box; }

  html, body{
    margin: 0;
    padding: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Archivo", sans-serif;
  }

  body{ min-height: 100vh; display: flex; flex-direction: column; }
  main{ flex: 1; }
  a{ text-decoration: none; color: inherit; }
  :focus-visible{ outline: 2px solid var(--primary); outline-offset: 3px; }

  /* ---------- Header (same as homepage) ---------- */
  header.topbar{
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .topbar-inner{
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand{ display: flex; align-items: center; }
  .brand img{ width: 150px; height: auto; display: block; }

  /* ---------- Page ---------- */
  .page{
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 32px 88px;
  }

  .crumbs{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 36px;
  }

  .crumbs a{ font-weight: 600; color: var(--primary-dark); }
  .crumbs a:hover{ text-decoration: underline; text-underline-offset: 3px; }
  .crumbs .sep{ color: #b8bec4; }

  .tool-head{ margin-bottom: 26px; max-width: 760px; }

  .tool-head h1{
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0 0 10px;
  }

  .tool-head .lead{
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
  }

  .privacy{
    margin: 10px 0 0;
    font-size: 13.5px;
    color: var(--ink-soft);
  }

  /* ---------- Notice ---------- */
  .notice{
    position: relative;
    background: var(--primary-tint);
    border: 1px solid var(--primary-line);
    border-radius: 8px;
    padding: 16px 52px 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
  }

  .notice p{ margin: 0; }
  .notice p + p{ margin-top: 8px; }
  .notice strong{ font-weight: 700; }

  .notice-close{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    font-family: inherit;
  }

  .notice-close:hover{ background: rgba(226,113,29,.1); color: var(--primary-dark); }

  /* ---------- Panels ---------- */
  .layout{
    display: grid;
    grid-template-columns: 1.45fr .8fr;
    gap: 18px;
    align-items: start;
  }

  .panel{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 26px 28px;
  }

  .panel h2{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }

  .field label{
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
  }

  .login-row{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
  }

  .login-row .field{ flex: 0 1 240px; }

  .select{ position: relative; }

  .select select{
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 42px;
    padding: 0 40px 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .select select:hover{ border-color: #cfd4d9; }

  .select select:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226,113,29,.14);
  }

  .select::after{
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--ink-soft);
    border-bottom: 1.5px solid var(--ink-soft);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }

  .btn-primary{
    height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
  }

  .btn-primary:hover{ background: var(--primary-dark); }

  .login-hint{
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--ink-soft);
  }

  .login-hint code{
    font-family: inherit;
    font-weight: 600;
    color: var(--ink);
  }

  /* ---------- Side card ---------- */
  .side h3{
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
  }

  .report-list{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .report-list li{
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .report-list li:last-child{ border-bottom: none; padding-bottom: 0; }

  .side-note{
    margin: 16px 0 0;
    padding: 12px 14px;
    background: var(--primary-tint);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink);
  }

  /* ---------- Footer ---------- */
  footer{
    text-align: center;
    padding: 28px;
    color: var(--ink-soft);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background: #fff;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px){
    .layout{ grid-template-columns: 1fr; }
  }

  @media (max-width: 620px){
    .topbar-inner{ padding: 14px 20px; }
    .page{ padding: 22px 20px 64px; }
    .crumbs{ margin-bottom: 26px; }
    .tool-head h1{ font-size: 28px; }
    .panel{ padding: 22px 20px; }
    .login-row .field{ flex: 1 1 100%; }
    .login-row .btn-primary{ width: 100%; }
  }

  @media (prefers-reduced-motion: reduce){ *{ transition: none !important; } }

  /* ---------- Header nav ---------- */
  .top-nav{ display: flex; align-items: center; gap: 22px; }
  .top-nav a{
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }
  .top-nav a:hover{ color: var(--ink); }
  .top-nav a[aria-current="page"]{ color: var(--ink); border-bottom-color: var(--primary); }
