.nok-access { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.nok-panel { width: min(100%, 520px); background: #fff; padding: 30px; border: 1px solid #e6e9ee; border-radius: 12px; }
.nok-logo { width: 52px; height: 52px; object-fit: contain; }
.nok-form { display: grid; gap: 14px; }
.nok-form label { display: grid; gap: 6px; }
.nok-form label.nok-check { display: flex; align-items: center; gap: 8px; }
.nok-form input, .nok-form select { min-width: 0; padding: 9px; border: 1px solid #d8cce6; border-radius: 6px; background: #fff; color: inherit; }
.nok-form input[type=checkbox] { width: auto; }
.nok-form .primary { justify-self: start; }
.nok-app-shell {
    --rail-inset: 18px;
    --rail-width: 76px;
    --rail-gap: 16px;
    --shell-line: #e8ebed;
    --shell-selected: #265073;
    display: grid;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
    align-items: start;
    gap: var(--rail-gap);
    min-height: 100vh;
    padding: var(--rail-inset);
    background: #edf0f2;
}
.nok-rail {
    position: sticky;
    top: var(--rail-inset);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100dvh - var(--rail-inset) * 2);
    min-height: 0;
    padding: 12px 8px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: #f8f9fa;
}
.nok-rail-logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 5px; }
.nok-rail-logo img { display: block; object-fit: contain; }
.nok-rail-links { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; margin: 18px 0; padding: 4px; overflow: auto; scrollbar-width: thin; }
.nok-rail-button {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    color: #536572;
}
.nok-rail-button[aria-pressed="true"], .nok-rail-button[aria-current="page"] { background: var(--shell-selected); color: #fff; }
.nok-rail-button:hover:not([aria-pressed="true"], [aria-current="page"], :disabled) { background: #e8f0f3; color: var(--shell-selected); }
.nok-rail-button:focus-visible, .nok-rail-logo:focus-visible { outline: 2px solid var(--shell-selected); outline-offset: 2px; }
.nok-rail-account { display: grid; justify-items: center; gap: 8px; width: 100%; padding-top: 12px; border-top: 1px solid var(--shell-line); }
.nok-workspace { min-width: 0; min-height: calc(100dvh - var(--rail-inset) * 2); border: 1px solid #fff; border-radius: 5px; background: #fff; }
.nok-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 65px;
    margin: 0 clamp(18px, 3vw, 38px);
    border-bottom: 1px solid var(--shell-line);
    color: #536572;
    font-size: 13px;
}
.nok-topbar-profile { display: flex; align-items: center; justify-content: end; gap: 10px; min-width: 0; }
.nok-topbar-profile > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nok-avatar { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: #e8f0f3; color: var(--shell-selected); font-weight: 700; }
.nok-workspace-content { padding: 28px clamp(18px, 3vw, 38px) 24px; }
.nok-workspace-content .intro h1 { margin: 0; }
.nok-roadmap-remove { color: #9a4d59; }
.nok-roadmap-remove:hover { background: #fae8e9; }
.nok-admin { max-width: 1000px; margin: 0 auto; padding-bottom: 45px; }
.nok-admin section { padding: 22px; margin: 16px 0; background: #fff; border: 1px solid #e6e9ee; border-radius: 10px; }
.nok-admin details { border-top: 1px solid #e6e9ee; padding: 12px 0; }
.nok-admin details form { margin: 15px 0 0; max-width: 520px; }
.nok-admin summary { cursor: pointer; }
.nok-update-prompt { width: 100%; min-width: 0; padding: 12px; resize: vertical; border: 1px solid #d8cce6; border-radius: 6px; background: #f8f9fa; color: inherit; line-height: 1.6; }
.nok-notice { background: #e8f2ed; color: #245347; padding: 12px; border-radius: 6px; }
.nok-error { background: #fae8e9; color: #7e2e37; }

@media (max-width: 1000px) {
    .nok-app-shell { --rail-inset: 12px; --rail-width: 68px; --rail-gap: 14px; }
}
@media (max-width: 700px) {
    .nok-app-shell { --rail-inset: 10px; --rail-gap: 10px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .nok-rail { position: static; flex-direction: row; gap: 6px; width: 100%; height: auto; padding: 6px; }
    .nok-rail-logo { width: 40px; height: 40px; }
    .nok-rail-logo img { width: 36px; height: 36px; }
    .nok-rail-links { flex-direction: row; gap: 6px; margin: 0; }
    .nok-rail-button { width: 40px; height: 40px; }
    .nok-rail-account { display: flex; flex: none; gap: 5px; width: auto; padding: 0 0 0 6px; border: 0; border-left: 1px solid var(--shell-line); }
    .nok-workspace { min-height: 0; }
    .nok-topbar { min-height: 54px; margin-inline: 14px; }
    .nok-workspace-content { padding: 22px 14px; }
}
