:root {
    --bg-page: #f6f5f1;
    --bg-card: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --text: #1a1a17;
    --text-muted: #6a6a64;
    --text-faint: #9a9a92;
    --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    --sans:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

html.dark {
    --bg-page: #131311;
    --bg-card: #1c1c19;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f0efe9;
    --text-muted: #9a9a92;
    --text-faint: #5a5a54;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sans);
    background: var(--bg-page);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

@media (max-width: 600px) {
    .page {
        padding: 2rem 1.25rem;
    }
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.kicker {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-faint);
    margin: 0;
}

.welcome {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 400;
    margin: 5px 0 0;
    line-height: 1.0;
    letter-spacing: -0.01em;
}

@media (max-width: 600px) {
    .welcome {
        font-size: 28px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0.5px solid var(--border-strong);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition:
        background 120ms,
        border-color 120ms;
}

.theme-toggle:hover {
    background: var(--bg-card);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}
html[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.identity {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 12px;
    border-left: 0.5px solid var(--border);
    text-align: right;
}

.identity .email {
    font-size: 15px;
    margin: 0;
    font-weight: 500;
    color: var(--text);
}

.identity .session {
    margin: 2px 0 0;
    font-size: 11px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

@media (max-width: 480px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.tile {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 120ms, transform 120ms;
}

.tile:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.tile-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tile-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tile-logo svg, .tile-logo img {
    width: 30px;
    height: 30px;
}

.tile-name {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    text-transform: lowercase;
    line-height: 1.0;
    text-align: center;
}

.tile-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
}

.footer {
    font-size: 11px;
    color: var(--text-faint);
    text-align: center;
    margin: 3rem 0 0;
}
