:root {
    --platform-header: #222;
    --platform-blue: #1565c0;
    --platform-blue-soft: #d6eaf8;
    --platform-bg: #eef1f3;
    --platform-border: #d3d9de;
    --platform-text: #29333b;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--platform-text);
    background: var(--platform-bg);
}
a { color: var(--platform-blue); }
.platform-topbar {
    min-height: 64px;
    padding: 12px clamp(16px, 3vw, 34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--platform-header);
    color: #fff;
}
.platform-brand { display: flex; flex-direction: column; gap: 2px; }
.platform-brand strong { font-size: 17px; }
.platform-brand span { color: #bfd0dd; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.platform-top-actions a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #606b74;
    border-radius: 6px;
    background: #4a555f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.platform-top-actions a:hover { background: #596773; }
.platform-shell { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) 16px 60px; }
.platform-hero,
.platform-card {
    border: 1px solid var(--platform-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.platform-hero { padding: clamp(22px, 4vw, 42px); }
.platform-kicker,
.platform-card-label {
    color: #70808c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.platform-hero h1 { max-width: 760px; margin: 5px 0 10px; color: #263742; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.platform-hero p { max-width: 760px; margin: 0; color: #65737d; font-size: 15px; line-height: 1.55; }
.platform-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.platform-button {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #b8c8d8;
    border-radius: 6px;
    background: #fff;
    color: #24415e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.platform-button:hover { background: #eef4f9; }
.platform-button.is-primary { border-color: var(--platform-blue); background: var(--platform-blue); color: #fff; }
.platform-button.is-primary:hover { background: #0f559f; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.platform-card { padding: 20px; }
.platform-card h2 { margin: 4px 0 7px; color: #263742; font-size: 21px; }
.platform-card p { margin: 0 0 14px; color: #65737d; font-size: 13px; line-height: 1.5; }
.platform-card a { font-size: 13px; font-weight: 700; }
@media (max-width: 700px) {
    .platform-topbar { align-items: flex-start; }
    .platform-grid { grid-template-columns: 1fr; }
    .platform-actions { flex-direction: column; }
    .platform-button { text-align: center; }
}

/* Phase 3K-A.1 — unified platform account/login menu. */
.platform-account-menu { position: relative; }
.platform-account-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 280px;
    padding: 8px 12px;
    border: 1px solid #606b74;
    border-radius: 6px;
    background: #4a555f;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}
.platform-account-menu-button:hover { background: #596773; }
.platform-account-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.platform-account-name-full,
.platform-account-name-compact {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.platform-account-name-compact { display: none; }
.platform-account-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}
.platform-account-menu-button.is-open .platform-account-chevron { transform: rotate(180deg); }
.platform-account-dropdown {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    padding: 6px;
    border: 1px solid #c9c9c9;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.platform-account-dropdown[hidden] { display: none !important; }
.platform-account-dropdown-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #2f2f2f;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.platform-account-dropdown-item:hover,
.platform-account-dropdown-item:focus { background: #ededed; color: #111; }
@media (max-width: 720px) {
    .platform-account-name-full { display: none; }
    .platform-account-name-compact { display: inline; }
}

