main {
  margin-left: var(--nav-width);
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    .orgswitch-menu {
      width: 120px;
      height: 46px;
      padding: 8px 0;
      position: relative;

      .split-button {
        position: absolute;
        left: 0px;
        top:  0px;
        border: none;

        button {
          border-radius: 999px;
          border: 1px solid var(--border);
          background: #fff;
          color: #57534e;
          padding: 0 18px;
          font-weight: 500;
          font-size: 13px;
          transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        button:hover {
          border-color: var(--accent);
          box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
        }

        .dropdown {
          position: absolute;
          left: 0px;
          top:  46px;

          a {
            text-decoration: none;
          }
        }
      }
    }

    .search {
      flex: 1;
      max-width: 520px;
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border-radius: 999px;
      border: 1px solid var(--border);
      padding: 7px 8px 7px 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      transition: box-shadow 0.2s ease, border-color 0.2s ease;

      .icon {
        font-size: 17px;
        color: #a8a29e;
        flex-shrink: 0;
      }

      input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 14px;
        font-weight: 400;
        background: transparent;
        color: var(--fg);
      }

      input::placeholder {
        color: #a8a29e;
      }

      button {
        border: none;
        outline: none;
        border-radius: 999px;
        padding: 7px 16px;
        font-size: 13px;
        font-weight: 600;
        background: var(--accent);
        color: #fff;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s ease, box-shadow 0.15s ease;
        letter-spacing: 0.01em;
      }

      button:hover {
        background: #0f766e;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
      }
    }

    .search:focus-within {
      border-color: var(--accent);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
                  0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
    }

    .meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #666;
    }

    .status-pill {
      padding: 4px 10px 4px 8px;
      border-radius: 999px;
      background: var(--status-bg);
      border: 1px solid var(--border);
      font-size: 12px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .status-pill::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #16a34a;
      flex-shrink: 0;
    }

    .status-pill.urgent {
      background: var(--urgent-light);
      color: var(--urgent);
      border-color: color-mix(in srgb, var(--urgent) 30%, transparent);
    }
    .status-pill.urgent::before {
      background: var(--urgent);
    }
  }
}

@media (max-width: 768px) {
  main {
    padding: 14px;

    header {
      .orgswitch-menu {
        width: 80px;
      }
      .search {
        input {
          font-size: 18px;
        }
      }
      .meta {
        display: none;
      }
    }
  }
}

@media (max-width: 580px) {
}
