@font-face {
    font-family: "Roboto Condensed";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/RobotoCondensed-latin.woff2") format("woff2");
}

body {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    color: #222;
    font-family: "Roboto Condensed", sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    width: 100%;
}

.logo {
    display: block;
    width: 240px;
    height: auto;
}

.site-nav {
    display: flex;
    gap: 24px;
    position: absolute;
    top: 77%;
    right: 0;
    transform: translateY(-50%);
    align-items: center;
}

.site-nav a {
    color: inherit;
}

.current-user {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.link-button {
    display: inline-block;
    border: 1px solid transparent;
    padding: 4px 8px;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.link-button.menu-trigger {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid transparent;
    text-decoration: none;
}

.menu-trigger {
    border: 1px solid transparent;
}

.menu-trigger:focus-visible,
.link-button.active:focus-visible {
    outline: 2px solid crimson;
    outline-offset: 2px;
}

/* Expandable navigation/actions stay visibly selected while their panel is open. */
.menu-trigger[aria-expanded="true"],
.link-button.active {
    background: #dcdcdc;
}

.description {
    /* display: flex; */
    gap: 40px;
    align-items: center;
    margin-top: 1em;
    padding: 20px;
    border-radius: 3px;
    background-color: #e8e8e8;
}

.login-copy {
    flex: 1.5;
    font-size: 20px;
}

.login-copy h1 {
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1.1;
}

.login-copy p:last-child {
    margin-bottom: 0;
}

.approval-note {
    color: #4e5861;
    font-size: 15px;
    line-height: 1.45;
}

.kicker {
    margin-bottom: 8px;
    color: crimson;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.login-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 8px;
    align-self: center;
    margin-top: 8px;
}

.tab {
    border: 1px solid #999;
    background: #fff;
    padding: 6px 12px;
    font-size: 13px;
}

.tab.active {
    background: #e8e8e8;
}

.usage {
    margin: 0;
    color: #666;
    font-size: 12px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    max-width: 300px;
}

input {
    width: 100%;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 8px;
    background: #fff;
    color: #222;
    font: inherit;
}

button {
    align-self: center;
    border: 0;
    padding: 10px 14px;
    background: #e8e8e8;
    color: inherit;
    cursor: pointer;
    font: inherit;
}



button:hover {
    background: #dcdcdc;
}

.secondary-button {
    border: 1px solid;
    background: #fff;
    align-self: end;
}

.hidden {
    display: none !important;
}

.error {
    min-height: 1.5em;
    margin: 0;
    color: crimson;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: -5px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.feature {
    padding: 32px 0;
    font-size: medium;
}

/* The approval notice is a portal card like the accounts/projects lists: white
   surface, hairline border, crimson status badge instead of a one-off banner. */
.restricted-panel {
    margin: 32px 0 0;
    padding: 15px;
    border: 1px solid #00000036;
    background: #fff;
}

.restricted-panel .section-heading {
    margin-top: 0;
}

.restricted-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.restricted-title h2 {
    margin: 0;
}

.restricted-body {
    margin-top: 14px;
}

.restricted-body > p:last-child {
    margin-bottom: 0;
}

.status {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 1px 6px;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pending {
    border-color: crimson;
    color: crimson;
}

.feature-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-heading h2 {
    margin: 0;
    color: crimson;
    font-size: 24px;
}

.feature-icon {
    width: 5em;
    height: 5em;
    border-radius: 2px;
    background-color: #e8e8ee;
}

.create-panel {
    border-bottom: 1px solid #ddd;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-top: 20px;
}

.new-key-form {
    grid-template-columns: 1fr auto;
}

.new-key-form .error {
    grid-column: 1 / -1;
}

.projects {
    display: block;
}

.project {
  padding: 15px;
  border: #00000036;
  border-width: 7px;
  border-style: solid solid none solid;
  border-radius: 0px;
  margin-top: 12px;
}

.project:last-child {
  border-bottom: 7px solid #00000036;
}

.project:nth-child(even) {
    margin-top: 0;
}

.project-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-name {
    margin: 0;
    color: crimson;
    font-size: 24px;
}

.project-id,
.meta {
    margin: 0;
    color: #666;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-top: 4px;
}

.project-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.project-toolbar .project-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 34px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #c8cdd3;
    background: #fff;
    color: #25313b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

.project-toolbar .project-action:hover:not([disabled]) {
    border-color: #7b8792;
    background: #f5f7f8;
}

.project-toolbar .project-action.menu-trigger[aria-expanded="true"] {
    background: #dcdcdc;
}

.project-toolbar .project-action:focus-visible {
    outline: 2px solid crimson;
    outline-offset: 2px;
}

.project-toolbar .manage-project-button {
    margin-left: auto;
}

.project-toolbar .delete-button {
    margin-left: auto;
    color: crimson;
}

.project-menu {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 5px;
    background: #fff;
}

.project-menu .project-toolbar {
    margin-top: 0;
}

.project-menu .rename-project-form {
    margin-top: 10px;
}

.keys {
    margin-top: 2px;
}

.key {
    padding: 3px 0;
    /* border-top: 1px solid #ccc; */
}

.key-label {
    margin: 0 0 4px;
    font-weight: 700;
}

.token {
    display: inline-block;
    max-width: 100%;
    padding: 8px;
    background: #e8e8e8;
    color: #222;
    font-size: 12px;
    overflow-wrap: anywhere;
}

button.token {
    border: 0;
    text-align: left;
    cursor: pointer;
}

button.token:hover,
button.token:focus-visible {
    background: #d9d9d9;
}

.key-secret {
    margin: 8px 0 12px;
}

.revoked {
    color: crimson;
}

/* A project handed to the user through an assigned token: visibly not theirs
   to manage, so it stays visually quieter than their own projects. */
.project.shared {
    border-style: dashed;
    background: #fafafa;
}

.shared-badge {
    font-style: italic;
}

.assignment {
    background: #fff;
}

.assignments {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.key-actions {
    margin-top: 8px;
}

.key-actions button,
.new-key-button,
.delete-button {
    padding: 6px 10px;
    border: 1px solid;
    background: #fff;
    font-size: 13px;
    align-self: first baseline;
}

.delete-button {
    color: crimson;
}

.quiet-button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
}

.footer {
    margin-top: 56px;
    padding: 32px 0;
    border-top: 1px solid #ccc;
    color: #666;
}

.history {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.backup-panel {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.backup-label {
    margin: 8px 0 2px;
}

.backup-url,
.backup-panel input:not([type="checkbox"]),
.backup-panel select,
.backup-panel textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 3px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.backup-clear-credential-row { display: block; margin: 8px 0; }
.backup-clear-credential-row input { display: inline-block; width: auto; }

.backup-status {
    margin: 0;
    padding: 8px;
    border-radius: 3px;
    background: #f3f3f3;
    color: #222;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.history-head,
.commit {
    margin: 0;
}

.commit {
    padding: 4px 0;
}

.commit-message {
    margin: 0 0 2px;
    font-weight: 600;
    font-size: 13px;
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .site-header,
    .description {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-left: 0;
        transform: none;
    }

    .description {
        gap: 18px;
    }

    .project:nth-child(even) {
        margin-top: 0;
    }

    .section-actions {
        width: 100%;
    }

    .inline-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form button,
    .login-form button {
        align-self: stretch;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
.account-message { min-height: 1.4em; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; color: #fff; background: #1f2933; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.visible { opacity: 1; }
.toast.error { background: #9b2c2c; }
dialog { border: 0; border-radius: 6px; padding: 24px; box-shadow: 0 12px 40px #0004; }
dialog::backdrop { background: #0008; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.hidden { display: none !important; }
button[disabled], input[disabled] { cursor: not-allowed; opacity: .55; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 4px; }
.pager button { min-width: 34px; height: 32px; padding: 0; border: 1px solid #c8cdd3; background: #fff; color: #25313b; font-size: 20px; line-height: 1; }
.pager button:hover:not([disabled]) { border-color: #7b8792; background: #f5f7f8; }
.pager span { min-width: 86px; color: #59636d; text-align: center; font-size: 13px; }
.manage-key-button { margin-top: 6px; padding: 6px 10px; border: 1px solid; background: #fff; font-size: 13px; }
.key-menu { margin-top: 8px; padding: 10px 12px; border: 1px solid #dfe3e7; border-radius: 5px; background: #fff; }
.key-menu .inline-form { margin-top: 10px; }
.key-menu .rename-key-form,
.key-menu .assign-form { grid-template-columns: minmax(0, 1fr) auto; }
.key-menu .rename-key-form .error,
.key-menu .assign-form .error { grid-column: 1 / -1; }
.key-menu .assignments { margin-top: 10px; }
/* Username suggestions in the assign-key menu: same white surface and hairline
   border as the cards, with the selected row picked out like an open menu. */
.assign-field { position: relative; max-width: 300px; }
.suggestions { position: absolute; z-index: 30; top: calc(100% + 2px); left: 0; right: 0; margin: 0; padding: 0; list-style: none; border: 1px solid #c8cdd3; background: #fff; max-height: 216px; overflow-y: auto; }
.suggestions .suggestion { padding: 7px 10px; border-bottom: 1px solid #eef1f4; color: #25313b; font-size: 13px; cursor: pointer; }
.suggestions .suggestion:last-child { border-bottom: 0; }
.suggestions .suggestion:hover { background: #f5f7f8; }
.suggestions .suggestion.active { background: #dcdcdc; box-shadow: inset 3px 0 0 crimson; }
.suggestions-empty { padding: 7px 10px; color: #666; font-size: 12px; }
.device-settings { margin-top: 24px; padding-top: 18px; border-top: 1px solid #ddd; }
.device-settings h3 { margin: 0 0 8px; }
.devices { display: grid; gap: 8px; margin-top: 14px; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid #dfe3e7; background: #fff; }
@media (max-width: 700px) { body { padding: 14px; } .site-header { display: block; } .site-nav { position: static; transform: none; margin-top: 12px; flex-wrap: wrap; } .inline-form { display: block; } .inline-form > * { margin: 6px 0; width: 100%; } }
