* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7f8;
    color: #202631;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.content {
    min-height: 100vh;
    padding: 32px 20px;
}

.content_i,
.account-nav {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.account-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 14px;
}

.account-nav span {
    font-weight: 700;
}

.account-nav a,
.account-nav button,
.text-button {
    min-height: 38px;
    border: 1px solid #ccd5df;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    color: #202631;
    font-weight: 700;
    text-decoration: none;
}

.account-nav form {
    margin: 0;
}

.app-shell {
    display: grid;
    gap: 20px;
}

.app-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.header-actions,
.actions-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.eyebrow {
    margin: 0 0 4px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 34px;
    line-height: 1.1;
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 64px);
    place-items: center;
}

.auth-panel,
.vault-form,
.vault-table-wrap,
.key-status {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(16 24 40 / 6%);
}

.auth-panel {
    display: grid;
    gap: 16px;
    width: min(420px, 100%);
    padding: 24px;
}

.account-panel {
    width: min(520px, 100%);
}

.field-stack {
    display: grid;
    gap: 6px;
}

label {
    color: #4c5968;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    padding: 9px 11px;
    background: #fff;
    color: #202631;
}

input:focus {
    border-color: #287c70;
    outline: 3px solid rgb(40 124 112 / 16%);
}

.primary-button,
.secondary-button,
.icon-button {
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

.primary-button,
.secondary-button {
    min-height: 42px;
    padding: 0 16px;
}

.primary-button {
    background: #287c70;
    color: #fff;
}

.secondary-button {
    background: #2f465f;
    color: #fff;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #eef2f5;
    color: #344054;
    font-size: 18px;
    line-height: 1;
}

.danger-icon {
    background: #fff0ed;
    color: #b42318;
}

.captcha-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: end;
}

.captcha-image-button {
    overflow: hidden;
    width: 150px;
    height: 54px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    padding: 0;
    background: #fff;
}

.captcha-image-button img {
    display: block;
    width: 150px;
    height: 54px;
}

.form-message,
.key-status {
    margin-bottom: 0;
    padding: 10px 12px;
    font-weight: 700;
}

.error-message {
    background: #fff0ed;
    color: #b42318;
}

.success-message {
    background: #e8f4f1;
    color: #287c70;
}

.info-message {
    background: #eef2f5;
    color: #344054;
}

.warning-message {
    background: #fff8e6;
    color: #916400;
}

.file-button {
    position: relative;
    overflow: hidden;
}

.file-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.compact-button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 13px;
}

.vault-form {
    display: grid;
    grid-template-columns: 120px minmax(130px, 0.9fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(190px, 1.3fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.form-title {
    display: grid;
    gap: 6px;
    align-self: center;
}

.vault-table-wrap {
    overflow-x: auto;
}

.vault-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.vault-table th,
.vault-table td {
    border-bottom: 1px solid #e4e9ef;
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
}

.vault-table th {
    background: #f7f9fb;
    color: #4c5968;
    font-size: 13px;
    font-weight: 800;
}

.vault-table td {
    overflow-wrap: anywhere;
}

.vault-table tbody tr:last-child td {
    border-bottom: 0;
}

.vault-table tbody tr:hover td {
    background: #fbfcfd;
}

.vault-table .actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    margin: 0;
}

.is-locked td {
    background: #fffaf0;
}

.empty-cell {
    height: 84px;
    color: #667085;
    text-align: center !important;
}

.flash-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
}

.flash-banner p {
    flex: 1;
    margin: 0;
    white-space: pre-line;
    font-weight: 600;
}

.flash-dismiss {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 28px;
    padding: 0;
    opacity: 0.5;
    cursor: pointer;
}

.flash-dismiss:hover {
    opacity: 1;
    background: rgb(0 0 0 / 8%);
}

@media (max-width: 920px) {
    .content {
        padding: 22px 12px;
    }

    .app-header,
    .vault-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .header-actions,
    .account-nav {
        justify-content: flex-start;
    }

    .captcha-field {
        grid-template-columns: 1fr;
    }
}
