css constant
String
const css
CSS stylesheet
Implementation
static const String css = r'''/* Atsign Design System: fonts and tokens (source: atsign-design-system/tokens/tokens.json) */
@font-face { font-family: "Asta Sans"; src: url("/fonts/AstaSans-Variable.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: Barlow; src: url("/fonts/Barlow-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Barlow; src: url("/fonts/Barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url("/fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root, [data-theme="light"] {
--yellow: #FF8E2D;
--burnt-orange: #D44F15;
--deep-red: #AF2C00;
--neutral-100: #FFFFFF;
--neutral-200: #F5F0ED;
--neutral-300: #E9E2DF;
--neutral-400: #B2A9A4;
--neutral-500: #8F8481;
--neutral-600: #433D3B;
--neutral-700: #2A2826;
--neutral-800: #1A1917;
--neutral-900: #0C0C0B;
--success-100: #EAF4E1;
--success-500: #3B9124;
--success-700: #1E4D11;
--success-icon: #009300;
--info-100: #E3EEF9;
--info-500: #2272C3;
--info-700: #0D3F6E;
--info-icon: #0075C9;
--warning-100: #FEF4DF;
--warning-500: #D48B0E;
--warning-700: #7A4E04;
--warning-icon: #E28700;
--danger-100: #FDECEA;
--danger-500: #D94032;
--danger-700: #7C1F1A;
--danger-icon: #ED2B25;
--amber: #F8BC60;
--bg-page: var(--neutral-200);
--surface: var(--neutral-100);
--surface-raised: var(--neutral-100);
--border: var(--neutral-400);
--border-strong: var(--neutral-500);
--text-primary: var(--neutral-900);
--text-secondary: var(--neutral-600);
--text-muted: var(--neutral-500);
--action: var(--yellow);
--action-hover: var(--burnt-orange);
--action-pressed: var(--deep-red);
--on-action: var(--neutral-900);
--on-action-pressed: var(--neutral-100);
--action-disabled: var(--neutral-300);
--on-action-disabled: var(--neutral-600);
--focus-ring: var(--deep-red);
--link: var(--deep-red);
--surface-sunken: var(--neutral-200);
--surface-hover: var(--neutral-200);
--selected: var(--neutral-900);
--on-selected: var(--neutral-100);
--code-bg: var(--neutral-900);
--code-text: var(--neutral-200);
--code-accent: var(--amber);
--badge-neutral-bg: var(--neutral-300);
--badge-neutral-text: var(--neutral-600);
--success-bg: var(--success-100);
--success-text: var(--success-700);
--info-bg: var(--info-100);
--info-text: var(--info-700);
--warning-bg: var(--warning-100);
--warning-text: var(--warning-700);
--danger-bg: var(--danger-100);
--danger-text: var(--danger-700);
/* Not in tokens.json: dim page behind a modal dialog. */
--scrim: rgba(12, 12, 11, 0.5);
color-scheme: light;
}
[data-theme="dark"] {
--bg-page: var(--neutral-900);
--surface: var(--neutral-800);
--surface-raised: var(--neutral-700);
--border: var(--neutral-600);
--border-strong: var(--neutral-500);
--text-primary: var(--neutral-200);
--text-secondary: var(--neutral-400);
--text-muted: var(--neutral-500);
--action-disabled: var(--neutral-700);
--on-action-disabled: var(--neutral-500);
--focus-ring: var(--yellow);
--link: var(--yellow);
--surface-sunken: var(--neutral-900);
--surface-hover: var(--neutral-700);
--selected: var(--neutral-200);
--on-selected: var(--neutral-900);
--badge-neutral-bg: var(--neutral-700);
--badge-neutral-text: var(--neutral-400);
--success-bg: var(--success-700);
--success-text: var(--success-100);
--info-bg: var(--info-700);
--info-text: var(--info-100);
--warning-bg: var(--warning-700);
--warning-text: var(--warning-100);
--danger-bg: var(--danger-700);
--danger-text: var(--danger-100);
--scrim: rgba(0, 0, 0, 0.7);
color-scheme: dark;
}
:root {
--space-1: 8px;
--space-2: 16px;
--space-3: 24px;
--space-4: 48px;
--space-5: 120px;
--radius-none: 0;
--control-height: 40px;
--control-height-sm: 32px;
--app-max: 960px;
--font-display: "Asta Sans", system-ui, sans-serif;
--font-body: Barlow, system-ui, sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--transition: 120ms ease;
}
[hidden] {
display: none !important;
}
body {
font-family: var(--font-body);
background: var(--bg-page);
color: var(--text-primary);
min-height: 100vh;
padding: 0;
font-size: 16px;
line-height: 24px;
font-weight: 300;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
font-family: var(--font-display);
font-weight: 500;
color: var(--text-primary);
}
button, input, select, textarea {
font-family: inherit;
}
code, pre, kbd {
font-family: var(--font-mono);
}
:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
/* ─────────────── Buttons ─────────────── */
.btn-primary,
.api-v4-actions button[data-role="send"],
#refresh-btn,
.atsign-refresh-btn,
.onboard-btn,
.loading-retry-btn,
.modal-btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-1);
height: var(--control-height);
padding: 0 var(--space-3);
border: 1px solid transparent;
border-radius: 0;
background: var(--action);
color: var(--on-action);
font-family: var(--font-body);
font-size: 16px;
line-height: 24px;
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.btn-primary:hover,
.api-v4-actions button[data-role="send"]:hover,
#refresh-btn:hover,
.atsign-refresh-btn:hover,
.onboard-btn:hover,
.loading-retry-btn:hover,
.modal-btn-primary:hover {
background: var(--action-hover);
color: var(--on-action);
}
.btn-primary:active,
.api-v4-actions button[data-role="send"]:active,
#refresh-btn:active,
.atsign-refresh-btn:active,
.onboard-btn:active,
.loading-retry-btn:active,
.modal-btn-primary:active {
background: var(--action-pressed);
color: var(--on-action-pressed);
}
.btn-primary:disabled,
.api-v4-actions button[data-role="send"]:disabled,
#refresh-btn:disabled,
.atsign-refresh-btn:disabled,
.onboard-btn:disabled,
.loading-retry-btn:disabled,
.modal-btn-primary:disabled {
background: var(--action-disabled);
color: var(--on-action-disabled);
border-color: transparent;
cursor: not-allowed;
opacity: 1;
}
.api-v4-secondary,
.copy-btn,
.folder-dropdown-create button,
.folder-btn,
.modal-btn,
.select-btn,
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-1);
height: var(--control-height);
padding: 0 var(--space-3);
border: 1px solid var(--border-strong);
border-radius: 0;
background: var(--surface);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 16px;
line-height: 24px;
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.api-v4-secondary:hover,
.copy-btn:hover,
.folder-dropdown-create button:hover,
.folder-btn:hover,
.modal-btn:hover,
.select-btn:hover,
.btn:hover {
background: var(--surface-hover);
color: var(--text-primary);
border-color: var(--border-strong);
}
.api-v4-secondary:active,
.copy-btn:active,
.folder-dropdown-create button:active,
.folder-btn:active,
.modal-btn:active,
.select-btn:active,
.btn:active {
background: var(--selected);
color: var(--on-selected);
border-color: var(--selected);
}
.api-v4-secondary:disabled,
.copy-btn:disabled,
.folder-dropdown-create button:disabled,
.folder-btn:disabled,
.modal-btn:disabled,
.select-btn:disabled,
.btn:disabled {
background: var(--action-disabled);
color: var(--on-action-disabled);
border-color: transparent;
cursor: not-allowed;
opacity: 1;
}
.btn-sm,
.select-btn,
.btn,
.api-v4-transaction-summary-right .api-v4-secondary,
.api-v4-batch-cramkey .api-v4-secondary,
.api-v4-transaction-cramkey .api-v4-secondary,
.auto-approval-card-actions .api-v4-secondary,
.copy-btn,
.folder-dropdown-create button {
height: var(--control-height-sm);
padding: 0 var(--space-2);
font-size: 14px;
line-height: 20px;
}
.landing-exit-btn,
.theme-toggle-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: var(--control-height-sm);
padding: 0 var(--space-2);
border: 1px solid transparent;
border-radius: 0;
background: transparent;
color: var(--text-secondary);
font-family: var(--font-body);
font-size: 14px;
line-height: 20px;
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.landing-exit-btn:hover,
.theme-toggle-btn:hover {
background: var(--surface-hover);
color: var(--text-primary);
}
.landing-exit-btn:active,
.theme-toggle-btn:active {
background: var(--selected);
color: var(--on-selected);
}
/* Icon-only: a moon in light mode (switch to dark), a sun in dark mode. */
.theme-toggle-btn {
width: var(--control-height-sm);
padding: 0;
}
.theme-toggle-btn svg {
fill: none;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.theme-toggle-btn .theme-icon-sun,
[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
display: none;
}
[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
display: block;
}
.btn-danger-quiet:hover,
.folder-group-actions button.folder-delete-btn:hover,
.folder-dropdown-actions button.folder-delete-btn:hover {
background: var(--danger-bg);
color: var(--danger-text);
}
/* ─────────────── Form Controls ─────────────── */
.api-v4-field input,
.api-v4-field select,
.api-v4-field textarea,
.form-group input,
.namespace-permission-row input,
.namespace-permission-row select,
.history-filter-search,
.history-filter-select,
#search-input,
.atsign-search-box input,
#atsign-sort-select,
.folder-dropdown-create input,
.modal-input {
width: 100%;
height: var(--control-height);
padding: 0 12px;
border: 1px solid var(--border-strong);
border-radius: 0;
background: var(--surface);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 16px;
line-height: 24px;
font-weight: 400;
box-shadow: none;
transition: border-color var(--transition);
}
.api-v4-field textarea {
height: auto;
min-height: 120px;
padding: 8px 12px;
resize: vertical;
}
.api-v4-field select,
.namespace-permission-row select,
.history-filter-select,
#atsign-sort-select,
.atsign-folder-select {
appearance: none;
-webkit-appearance: none;
padding-right: 36px;
cursor: pointer;
background-image:
linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
}
.api-v4-field input,
.api-v4-field select,
.api-v4-field textarea,
.namespace-permission-row input,
.namespace-permission-row select,
#atsign-input,
#license-key-input {
font-family: var(--font-mono);
font-size: 14px;
}
.api-v4-field input::placeholder,
.api-v4-field textarea::placeholder,
.form-group input::placeholder,
.namespace-permission-row input::placeholder,
.history-filter-search::placeholder,
#search-input::placeholder,
.atsign-search-box input::placeholder,
.folder-dropdown-create input::placeholder,
.modal-input::placeholder {
color: var(--text-muted);
}
.api-v4-field input:focus,
.api-v4-field select:focus,
.api-v4-field textarea:focus,
.form-group input:focus,
.namespace-permission-row input:focus,
.namespace-permission-row select:focus,
.history-filter-search:focus,
.history-filter-select:focus,
#search-input:focus,
.atsign-search-box input:focus,
#atsign-sort-select:focus,
.folder-dropdown-create input:focus,
.atsign-folder-select:focus,
.modal-input:focus {
outline: 2px solid var(--focus-ring);
outline-offset: 0;
border-color: var(--focus-ring);
box-shadow: none;
}
.api-v4-field input:disabled,
.api-v4-field select:disabled,
.api-v4-field textarea:disabled {
background: var(--surface-sunken);
color: var(--text-secondary);
cursor: not-allowed;
}
input[type="checkbox"] {
accent-color: var(--selected);
}
.container {
max-width: calc(var(--app-max) + 2 * var(--space-3));
margin: 0 auto;
background: transparent;
overflow: visible;
}
main {
padding: 0;
}
/* ─────────────── App Bar ───────────────
One full-width bar on every page, modelled on the NoPorts Desktop app bar:
brand on the left, tabs in the middle, page controls on the right. */
.app-bar {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
gap: var(--space-3);
min-height: 64px;
padding: 0 var(--space-3);
background: var(--surface);
border-bottom: 1px solid var(--border);
color: var(--text-primary);
}
.app-bar-brand {
display: flex;
align-items: center;
gap: var(--space-1);
flex-shrink: 0;
}
.app-bar-logo {
display: block;
width: 24px;
height: 24px;
}
.app-bar-name {
font-family: var(--font-display);
font-size: 18px;
line-height: 24px;
font-weight: 500;
}
.app-bar-version {
display: inline-flex;
align-items: center;
height: 20px;
padding: 0 6px;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
}
.app-bar-end {
display: flex;
align-items: center;
gap: var(--space-1);
margin-left: auto;
flex-shrink: 0;
}
.atsign-switcher {
display: inline-flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
min-height: var(--control-height);
padding: 2px 12px;
border: 1px solid var(--border-strong);
border-radius: 0;
background: var(--surface);
color: var(--text-primary);
text-align: left;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.atsign-switcher:hover {
background: var(--surface-hover);
}
.atsign-switcher:active {
background: var(--selected);
color: var(--on-selected);
}
.atsign-switcher-label {
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
}
.atsign-switcher:active .atsign-switcher-label {
color: inherit;
}
.atsign-switcher-handle {
max-width: 320px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono);
font-size: 14px;
line-height: 20px;
font-weight: 500;
}
/* Placeholder text for an empty list or grid. */
.empty-message {
grid-column: 1 / -1;
padding: var(--space-4) var(--space-3);
text-align: center;
color: var(--text-secondary);
}
.empty-message-compact {
padding: var(--space-2);
}
/* ─────────────── Management Page ─────────────── */
.management-page {
min-width: 0;
padding: var(--space-3);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
/* ─────────────── Management Sections (Details/Summary) ─────────────── */
.management-section {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0;
overflow: hidden;
}
.management-section + .management-section {
margin-top: 0;
}
.management-section-summary {
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
padding: var(--space-3);
cursor: pointer;
user-select: none;
transition: background var(--transition);
}
.management-section-summary:hover {
background: var(--surface-hover);
}
.management-section-summary::-webkit-details-marker {
display: none;
}
.management-section-summary h2 {
font-size: 24px;
line-height: 32px;
font-weight: 500;
color: var(--text-primary);
margin-bottom: 0;
}
.management-section-summary p {
margin-top: var(--space-1);
color: var(--text-secondary);
font-size: 16px;
line-height: 24px;
font-weight: 300;
}
.management-section-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--control-height-sm);
height: var(--control-height-sm);
border: 1px solid var(--border-strong);
border-radius: 0;
background: transparent;
color: var(--text-primary);
font-family: var(--font-mono);
font-size: 16px;
flex-shrink: 0;
}
.management-section-toggle::before {
content: '+';
}
.management-section[open] .management-section-toggle::before {
content: '\2212';
}
.management-section-body {
padding: var(--space-3);
border-top: 1px solid var(--border);
background: var(--surface);
}
/* ─────────────── OTP Management ─────────────── */
.otp-management-grid {
display: grid;
grid-template-columns: minmax(240px, 400px);
gap: var(--space-2);
margin-bottom: var(--space-3);
}
.enrollment-command-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-2) var(--space-3);
margin: var(--space-3) 0 0;
}
.auto-approval-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-2) var(--space-3);
margin-bottom: var(--space-3);
}
.management-command-actions {
display: flex;
align-items: center;
gap: var(--space-1) var(--space-2);
flex-wrap: wrap;
}
.management-command-label {
font-family: var(--font-mono);
font-weight: 500;
color: var(--text-secondary);
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ─────────────── Namespace Permissions ─────────────── */
.namespace-permission-list {
display: flex;
flex-direction: column;
gap: var(--space-1);
margin: var(--space-1) 0 var(--space-2);
}
.namespace-permission-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 140px auto;
gap: var(--space-1);
align-items: center;
}
.namespace-preview {
margin-top: var(--space-1);
font-size: 13px;
line-height: 20px;
color: var(--text-secondary);
word-break: break-word;
font-family: var(--font-mono);
}
/* ─────────────── OTP Results ─────────────── */
.otp-inline-result {
margin-top: var(--space-2);
padding: 12px var(--space-2);
border-radius: 0;
background: var(--code-bg);
color: var(--code-text);
border: 1px solid var(--code-bg);
}
.otp-inline-result-error {
background: var(--danger-bg);
color: var(--danger-text);
border-color: var(--danger-bg);
}
.otp-inline-label {
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
margin-bottom: var(--space-1);
}
.otp-inline-result .otp-inline-label {
color: var(--code-accent);
}
.otp-inline-result-error .otp-inline-label {
color: inherit;
}
.otp-inline-value {
display: block;
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: inherit;
word-break: break-all;
font-family: var(--font-mono);
}
.otp-inline-command {
white-space: pre-wrap;
font-size: 13px;
line-height: 20px;
font-weight: 400;
}
.otp-inline-meta {
margin-top: var(--space-1);
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
color: inherit;
opacity: 0.8;
}
/* ─────────────── OTP History Table ─────────────── */
.otp-history-section {
margin-top: var(--space-3);
}
.otp-history-empty {
color: var(--text-secondary);
font-size: 14px;
line-height: 20px;
font-weight: 400;
padding: 12px 0;
}
.otp-history-table-wrap {
border: 1px solid var(--border);
border-radius: 0;
overflow: hidden;
background: var(--surface);
}
.otp-history-table {
width: 100%;
border-collapse: collapse;
}
.otp-history-table th,
.otp-history-table td {
padding: 12px var(--space-2);
border-bottom: 1px solid var(--border);
text-align: left;
font-size: 14px;
line-height: 20px;
}
.otp-history-table td {
font-family: var(--font-mono);
font-size: 13px;
color: var(--text-primary);
}
.otp-history-table th {
background: var(--surface-sunken);
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
}
.otp-history-table tbody tr:last-child td {
border-bottom: none;
}
.otp-history-table tbody tr:hover {
background: var(--surface-hover);
}
.otp-time-left {
margin-top: 2px;
font-size: 12px;
line-height: 16px;
color: var(--text-secondary);
font-weight: 400;
font-family: var(--font-mono);
}
.otp-history-copy-btn {
border: none;
background: transparent;
padding: 2px 0;
color: var(--link);
font-family: var(--font-mono);
font-size: 14px;
font-weight: 500;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
}
.otp-history-copy-btn:hover {
color: var(--text-primary);
}
.otp-history-clear-btn {
height: var(--control-height-sm);
padding: 0 var(--space-2);
border: 1px solid transparent;
background: transparent;
color: var(--text-secondary);
border-radius: 0;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.otp-history-clear-btn:hover {
background: var(--danger-bg);
color: var(--danger-text);
}
/* ─────────────── Auto Approval ─────────────── */
.auto-approval-checkbox-field {
justify-content: flex-end;
}
.auto-approval-checkbox {
display: flex;
align-items: center;
gap: var(--space-1);
min-height: var(--control-height);
padding: 8px 12px;
border: 1px solid var(--border-strong);
border-radius: 0;
background: var(--surface);
color: var(--text-primary);
font-size: 16px;
font-weight: 400;
cursor: pointer;
}
.auto-approval-checkbox input {
width: 16px;
height: 16px;
accent-color: var(--selected);
}
.auto-approval-list {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.auto-approval-card {
border: 1px solid var(--border);
border-radius: 0;
background: var(--surface);
padding: var(--space-2);
}
.auto-approval-card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-2);
margin-bottom: var(--space-2);
}
.auto-approval-card-title {
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: var(--text-primary);
font-family: var(--font-mono);
}
.auto-approval-card-status {
display: inline-flex;
align-items: center;
gap: 6px;
height: 24px;
border-radius: 0;
padding: 0 8px;
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
white-space: nowrap;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.auto-approval-card-status.running,
.auto-approval-card-status.starting {
background: var(--success-bg);
color: var(--success-text);
}
.auto-approval-card-status.stopping,
.auto-approval-card-status.stopped,
.auto-approval-card-status.completed {
background: var(--warning-bg);
color: var(--warning-text);
}
.auto-approval-card-status.error {
background: var(--danger-bg);
color: var(--danger-text);
padding: 0 8px;
margin: 0;
border: none;
font-size: 12px;
line-height: 16px;
font-weight: 500;
}
.auto-approval-card-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-1) var(--space-2);
margin-bottom: var(--space-2);
}
.auto-approval-card-row-wide {
grid-column: 1 / -1;
}
.auto-approval-card-row strong {
display: block;
margin-bottom: 2px;
color: var(--text-primary);
font-size: 14px;
line-height: 20px;
font-weight: 500;
}
.auto-approval-card-row code,
.auto-approval-card-row span {
color: var(--text-secondary);
word-break: break-word;
font-size: 14px;
font-family: var(--font-mono);
}
.auto-approval-approved-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.auto-approval-approved-list code {
display: block;
padding: 6px 12px;
border-radius: 0;
background: var(--surface-sunken);
border: none;
color: var(--text-primary);
font-size: 13px;
}
.auto-approval-card-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
}
.auto-approval-card-actions .api-v4-secondary.auto-approval-delete-btn:hover {
background: var(--danger-bg);
color: var(--danger-text);
border-color: var(--danger-text);
}
.auto-approval-log-panel {
margin-top: 12px;
border: none;
border-radius: 0;
background: var(--code-bg);
color: var(--code-text);
overflow: hidden;
}
.auto-approval-log-label {
padding: 8px var(--space-2);
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
background: var(--code-bg);
border-bottom: 1px solid var(--neutral-700);
color: var(--code-accent);
}
.auto-approval-log-output {
margin: 0;
padding: 12px var(--space-2);
max-height: 240px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
}
/* ─────────────── History ─────────────── */
.history-list {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.history-item {
border: 1px solid var(--border);
border-radius: 0;
padding: var(--space-2);
background: var(--surface);
}
.history-item-header {
display: flex;
justify-content: space-between;
gap: var(--space-2);
align-items: center;
margin-bottom: 4px;
}
.history-item-type {
display: inline-flex;
align-items: center;
height: 24px;
padding: 0 8px;
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.history-item-time {
font-size: 13px;
line-height: 20px;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.history-item-summary {
color: var(--text-primary);
font-family: var(--font-display);
font-weight: 500;
margin-bottom: 2px;
font-size: 18px;
line-height: 24px;
}
.history-item-data {
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
word-break: break-word;
}
/* ─────────────── atSign Name Row ─────────────── */
.atsign-name-row {
display: flex;
align-items: center;
gap: var(--space-1);
flex-wrap: wrap;
}
.atsign-auto-badge,
.atsign-status-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
padding: 0 8px;
border-radius: 0;
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.atsign-auto-badge {
background: var(--info-bg);
color: var(--info-text);
}
.atsign-status-online {
background: var(--success-bg);
color: var(--success-text);
}
.atsign-status-not-found,
.atsign-status-unreachable {
background: var(--warning-bg);
color: var(--warning-text);
}
.atsign-status-error {
background: var(--danger-bg);
color: var(--danger-text);
}
.atsign-status-loading {
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.atsign-root-domain {
color: var(--text-secondary);
font-size: 13px;
}
/* ─────────────── Tabs ───────────────
Sits inside the app bar. The selected tab is marked with an ink underline
(NoPorts' pattern, in ink so orange stays reserved for primary actions). */
.tabs-nav {
display: flex;
align-items: stretch;
align-self: stretch;
gap: 0;
min-width: 0;
margin: 0 auto;
}
.tab-dropdown {
position: relative;
display: flex;
}
.tab-btn {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-1);
height: 64px;
border: none;
border-radius: 0;
background: transparent;
box-shadow: inset 0 -2px 0 transparent;
color: var(--text-secondary);
font-family: var(--font-body);
font-size: 16px;
line-height: 24px;
font-weight: 400;
padding: 0 var(--space-2);
cursor: pointer;
transition: box-shadow var(--transition), color var(--transition);
white-space: nowrap;
text-align: center;
}
.tab-btn:hover {
color: var(--text-primary);
box-shadow: inset 0 -2px 0 var(--border);
}
.tab-btn.active {
color: var(--text-primary);
font-weight: 500;
box-shadow: inset 0 -2px 0 var(--selected);
}
.tab-dropdown-trigger::after {
content: '';
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 5px solid currentColor;
}
.tab-dropdown-menu {
position: absolute;
top: 100%;
left: 0;
min-width: 100%;
padding: 4px;
border: 1px solid var(--border);
border-radius: 0;
background: var(--surface-raised);
z-index: 100;
}
.tab-dropdown-item {
display: flex;
align-items: center;
width: 100%;
height: var(--control-height);
border: none;
border-radius: 0;
background: transparent;
color: var(--text-secondary);
text-align: left;
padding: 0 var(--space-2);
font-family: var(--font-body);
font-size: 16px;
line-height: 24px;
font-weight: 400;
cursor: pointer;
transition: background var(--transition), color var(--transition);
white-space: nowrap;
}
.tab-dropdown-item:hover {
background: var(--surface-hover);
color: var(--text-primary);
}
.tab-dropdown-item.active {
background: var(--surface-hover);
color: var(--text-primary);
font-weight: 500;
}
/* When brand, tabs and controls no longer fit on one line, the tabs drop to
their own full-width row under the brand. */
@media (max-width: 1100px) {
.app-bar {
flex-wrap: wrap;
row-gap: 0;
padding-top: var(--space-1);
}
.tabs-nav {
order: 3;
flex-basis: 100%;
flex-wrap: wrap;
margin: 0;
}
.tab-btn {
height: 48px;
}
}
.tab-panel {
display: none;
}
.tab-panel.active {
display: block;
}
.placeholder-panel {
background: var(--surface-sunken);
border: 1px dashed var(--border);
border-radius: 0;
padding: var(--space-4) var(--space-3);
text-align: center;
color: var(--text-secondary);
}
.placeholder-panel h2 {
margin-bottom: 10px;
}
/* ─────────────── API v4 Console ─────────────── */
.api-v4-console {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0;
padding: var(--space-3);
color: var(--text-primary);
}
.api-v4-console > h2 {
font-size: 24px;
line-height: 32px;
font-weight: 500;
}
.api-v4-global-field {
margin-bottom: 0;
}
.api-v4-config-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-2) var(--space-3);
margin-bottom: var(--space-3);
}
.api-v4-field-wide {
grid-column: 1 / -1;
}
.api-v4-inline-input {
display: flex;
align-items: center;
gap: var(--space-1);
}
.api-v4-inline-input input {
flex: 1 1 auto;
min-width: 0;
}
.api-v4-global-actions {
display: flex;
align-items: center;
gap: var(--space-1) var(--space-2);
margin-bottom: var(--space-3);
flex-wrap: wrap;
}
.wizard-report-form {
margin: 0 0 var(--space-3);
padding: var(--space-3);
border: 1px solid transparent;
border-radius: 0;
background: var(--surface-sunken);
}
.wizard-report-form .api-v4-global-actions {
margin-bottom: 0;
}
.wizard-console textarea {
min-height: 120px;
}
.wizard-report-body {
display: flex;
flex-direction: column;
gap: 12px;
}
.wizard-progress-bar {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--space-1);
}
.wizard-progress-segment {
display: flex;
align-items: center;
gap: 12px;
min-height: 56px;
padding: 12px;
border-radius: 0;
border: 1px solid var(--border);
border-top-width: 4px;
background: var(--surface);
}
.wizard-progress-index {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 0;
font-family: var(--font-mono);
font-size: 12px;
font-weight: 500;
flex: 0 0 auto;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.wizard-progress-label-wrap {
display: flex;
flex-direction: column;
gap: 1px;
}
.wizard-progress-label {
font-size: 14px;
font-weight: 500;
line-height: 20px;
color: var(--text-primary);
}
.wizard-progress-state {
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
letter-spacing: 0.04em;
color: var(--text-secondary);
text-transform: uppercase;
}
.wizard-progress-pending {
border-top-color: var(--border);
}
.wizard-progress-running {
border-top-color: var(--info-500);
}
.wizard-progress-running .wizard-progress-index {
background: var(--info-bg);
color: var(--info-text);
}
.wizard-progress-warning {
border-top-color: var(--warning-500);
}
.wizard-progress-warning .wizard-progress-index {
background: var(--warning-bg);
color: var(--warning-text);
}
.wizard-progress-completed {
border-top-color: var(--success-500);
}
.wizard-progress-completed .wizard-progress-index {
background: var(--success-bg);
color: var(--success-text);
}
.wizard-progress-error {
border-top-color: var(--danger-500);
}
.wizard-progress-error .wizard-progress-index {
background: var(--danger-bg);
color: var(--danger-text);
}
.wizard-step-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-1);
}
.wizard-step-card {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 12px var(--space-2);
border-radius: 0;
border: 1px solid var(--border);
background: var(--surface);
font-size: 14px;
line-height: 20px;
}
.wizard-step-card strong {
color: var(--text-primary);
font-weight: 500;
}
.wizard-step-card span {
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.04em;
font-family: var(--font-mono);
font-size: 12px;
}
.wizard-log-list {
display: flex;
flex-direction: column;
gap: 0;
padding: 12px var(--space-2);
background: var(--code-bg);
color: var(--code-text);
}
.wizard-log-entry {
display: grid;
grid-template-columns: 170px 1fr;
gap: 12px;
align-items: start;
padding: 2px 0;
border-radius: 0;
background: transparent;
border: none;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
}
.wizard-log-timestamp {
color: var(--code-accent);
white-space: nowrap;
}
.wizard-log-message {
color: var(--code-text);
white-space: pre-wrap;
word-break: break-word;
}
.wizard-report-table-wrap {
overflow-x: auto;
}
.wizard-report-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0;
overflow: hidden;
}
.wizard-report-table th,
.wizard-report-table td {
padding: 8px 12px;
text-align: left;
vertical-align: top;
border-bottom: 1px solid var(--border);
}
.wizard-report-table th {
background: var(--surface-sunken);
color: var(--text-secondary);
font-family: var(--font-mono);
font-weight: 500;
white-space: nowrap;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.wizard-report-table td {
color: var(--text-primary);
word-break: break-word;
font-family: var(--font-mono);
}
.wizard-report-table tbody tr:last-child td {
border-bottom: none;
}
.wizard-report-table tbody tr:hover {
background: var(--surface-hover);
}
@media (max-width: 900px) {
.wizard-progress-bar {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.wizard-progress-bar {
grid-template-columns: 1fr;
}
.wizard-log-entry {
grid-template-columns: 1fr;
}
}
.api-v4-save-status {
font-size: 14px;
line-height: 20px;
font-weight: 400;
color: var(--text-secondary);
}
.api-v4-subtitle {
color: var(--text-secondary);
margin: var(--space-1) 0 var(--space-3);
font-size: 16px;
line-height: 24px;
font-weight: 300;
}
.api-v4-subsection-title {
margin: var(--space-3) 0 var(--space-2);
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: var(--text-primary);
}
.api-v4-field {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
margin-bottom: 0;
}
.api-v4-field > span {
display: block;
font-weight: 500;
margin-bottom: 0;
color: var(--text-primary);
font-size: 16px;
line-height: 24px;
}
.api-v4-field > span small {
margin-left: 6px;
font-size: 14px;
font-weight: 400;
color: var(--text-secondary);
}
.api-v4-field > .api-v4-param-label {
font-family: var(--font-mono);
font-size: 14px;
}
.api-v4-field > .api-v4-param-label small {
font-family: var(--font-body);
}
.api-v4-row {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0;
padding: 0;
overflow: hidden;
}
.api-v4-row + .api-v4-row {
margin-top: var(--space-1);
}
.api-v4-section {
margin-top: var(--space-3);
border: none;
border-radius: 0;
background: transparent;
overflow: visible;
}
.api-v4-section summary {
display: flex;
align-items: center;
gap: var(--space-1);
cursor: pointer;
list-style: none;
padding: 0;
margin-bottom: var(--space-2);
font-family: var(--font-display);
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: var(--text-primary);
background: transparent;
}
.api-v4-section summary::-webkit-details-marker {
display: none;
}
.api-v4-section summary::before {
content: '';
width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 6px solid var(--text-secondary);
transition: transform var(--transition);
}
.api-v4-section[open] summary::before {
transform: rotate(90deg);
}
.api-v4-section-body {
padding: 0;
}
.api-v4-row-head {
width: 100%;
border: none;
background: transparent;
padding: 12px var(--space-2);
display: flex;
justify-content: space-between;
gap: var(--space-2);
align-items: center;
flex-wrap: wrap;
text-align: left;
color: var(--text-primary);
cursor: pointer;
transition: background var(--transition);
}
.api-v4-row-head:hover {
background: var(--surface-hover);
}
.api-v4-row-title {
font-family: var(--font-display);
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: var(--text-primary);
}
.api-v4-row-route {
display: flex;
align-items: center;
gap: var(--space-2);
flex-wrap: wrap;
}
.api-v4-row-route code {
font-family: var(--font-mono);
font-size: 14px;
line-height: 20px;
color: var(--text-primary);
}
.api-v4-toggle-indicator {
display: inline-flex;
width: var(--control-height-sm);
height: var(--control-height-sm);
align-items: center;
justify-content: center;
border: 1px solid var(--border-strong);
border-radius: 0;
background: transparent;
color: var(--text-primary);
font-family: var(--font-mono);
font-weight: 400;
font-size: 16px;
}
.api-v4-row-head[aria-expanded="true"] .api-v4-toggle-indicator::before {
content: '\2212';
}
.api-v4-row-head[aria-expanded="false"] .api-v4-toggle-indicator::before {
content: '+';
}
.api-v4-row-body {
padding: var(--space-2);
border-top: 1px solid var(--border);
}
.api-v4-method,
.api-v4-result-badge,
.history-source-chip {
display: inline-flex;
align-items: center;
height: 24px;
border-radius: 0;
padding: 0 8px;
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.api-v4-method-get {
background: var(--info-bg);
color: var(--info-text);
}
.api-v4-method-post {
background: var(--success-bg);
color: var(--success-text);
}
.api-v4-method-delete {
background: var(--danger-bg);
color: var(--danger-text);
}
.api-v4-method-put,
.api-v4-method-patch,
.api-v4-method-options {
background: var(--warning-bg);
color: var(--warning-text);
}
.api-v4-param-summary {
font-size: 14px;
line-height: 20px;
font-weight: 400;
color: var(--text-secondary);
margin-top: 0;
}
.api-v4-param-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: var(--space-2) var(--space-3);
margin-bottom: var(--space-2);
}
.api-v4-inline-warning {
margin: var(--space-1) 0 var(--space-2);
padding: 12px var(--space-2);
border-radius: 0;
background: var(--warning-bg);
border: none;
color: var(--warning-text);
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.api-v4-field small {
font-size: 14px;
line-height: 20px;
font-weight: 400;
color: var(--text-secondary);
}
.api-v4-advanced {
margin: 10px 0 12px;
padding-top: 10px;
border-top: 1px dashed var(--border);
}
.api-v4-advanced summary {
cursor: pointer;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 10px;
font-size: 14px;
}
.api-v4-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1) var(--space-2);
margin: 0 0 var(--space-2);
}
.api-v4-status {
margin-bottom: var(--space-1);
font-size: 13px;
line-height: 20px;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.api-v4-result {
margin-bottom: var(--space-2);
}
.api-v4-result-card {
border-radius: 0;
padding: var(--space-2);
border: none;
background: var(--surface-sunken);
color: var(--text-primary);
}
.api-v4-result-success {
background: var(--success-bg);
color: var(--success-text);
}
.api-v4-result-error {
background: var(--danger-bg);
color: var(--danger-text);
}
.api-v4-result-head {
display: flex;
gap: var(--space-2);
align-items: center;
flex-wrap: wrap;
}
.api-v4-result-badge-success {
background: var(--success-bg);
color: var(--success-text);
}
.api-v4-result-badge-error {
background: var(--danger-bg);
color: var(--danger-text);
}
.api-v4-result-badge-warning {
background: var(--warning-bg);
color: var(--warning-text);
}
.api-v4-result-badge-info {
background: var(--info-bg);
color: var(--info-text);
}
.api-v4-result-card .api-v4-result-badge {
background: transparent;
color: inherit;
padding: 0;
height: auto;
}
.api-v4-result-badge-neutral {
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.api-v4-result-text {
font-size: 16px;
line-height: 24px;
color: inherit;
font-weight: 500;
}
.api-v4-cramkey-block {
margin-top: 12px;
padding: 12px var(--space-2);
border-radius: 0;
background: var(--code-bg);
color: var(--code-text);
}
.api-v4-cramkey-label {
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--code-accent);
margin-bottom: 4px;
font-weight: 500;
}
.api-v4-cramkey-block code {
display: block;
white-space: pre-wrap;
word-break: break-all;
color: var(--code-text);
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
}
.api-v4-transaction-path {
margin-top: 12px;
font-size: 14px;
line-height: 20px;
color: var(--text-secondary);
}
.api-v4-transaction-path code {
word-break: break-all;
font-family: var(--font-mono);
font-size: 13px;
}
.api-v4-batch-results {
margin-bottom: var(--space-2);
}
.api-v4-batch-item {
border: 1px solid var(--border);
border-radius: 0;
background: var(--surface);
padding: var(--space-2);
}
.api-v4-batch-item + .api-v4-batch-item {
margin-top: var(--space-1);
}
.api-v4-batch-item-success {
border-color: var(--success-bg);
background: var(--success-bg);
color: var(--success-text);
}
.api-v4-batch-item-error {
border-color: var(--danger-bg);
background: var(--danger-bg);
color: var(--danger-text);
}
.api-v4-batch-item-head {
display: flex;
justify-content: space-between;
gap: var(--space-2);
align-items: center;
flex-wrap: wrap;
}
.api-v4-batch-atsign {
font-size: 16px;
line-height: 24px;
font-weight: 500;
color: inherit;
font-family: var(--font-mono);
}
.api-v4-batch-state {
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
color: inherit;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.api-v4-batch-message {
margin-top: 4px;
font-size: 14px;
line-height: 20px;
font-weight: 400;
color: inherit;
word-break: break-word;
}
.api-v4-batch-item:not(.api-v4-batch-item-success):not(.api-v4-batch-item-error) .api-v4-batch-atsign {
color: var(--text-primary);
}
.api-v4-batch-item:not(.api-v4-batch-item-success):not(.api-v4-batch-item-error) .api-v4-batch-state,
.api-v4-batch-item:not(.api-v4-batch-item-success):not(.api-v4-batch-item-error) .api-v4-batch-message {
color: var(--text-secondary);
}
.api-v4-batch-cramkey {
margin-top: var(--space-1);
display: flex;
gap: var(--space-1);
align-items: center;
flex-wrap: wrap;
}
.api-v4-batch-cramkey code {
display: block;
padding: 12px var(--space-2);
border-radius: 0;
background: var(--code-bg);
color: var(--code-text);
word-break: break-all;
flex: 1 1 280px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
}
/* ─────────────── History ─────────────── */
.history-filter-bar {
display: flex;
align-items: center;
gap: var(--space-1) var(--space-2);
margin-bottom: var(--space-3);
flex-wrap: wrap;
}
.history-filter-search {
flex: 1 1 240px;
min-width: 0;
}
.history-filter-select {
width: auto;
min-width: 180px;
}
.history-source-chip-super {
background: transparent;
color: var(--text-secondary);
box-shadow: inset 0 0 0 1px var(--border-strong);
}
.history-source-chip-local {
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.history-load-more {
display: flex;
justify-content: center;
margin-top: var(--space-2);
}
.api-v4-transaction-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0;
padding: 0;
overflow: hidden;
}
.api-v4-transaction-card + .api-v4-transaction-card {
margin-top: var(--space-1);
}
.api-v4-transaction-summary {
list-style: none;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--space-2);
padding: var(--space-2);
cursor: pointer;
transition: background var(--transition);
}
.api-v4-transaction-summary:hover {
background: var(--surface-hover);
}
.api-v4-transaction-summary::-webkit-details-marker {
display: none;
}
.api-v4-transaction-title-wrap {
min-width: 0;
}
.api-v4-transaction-title {
font-family: var(--font-mono);
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: var(--text-primary);
word-break: break-word;
}
.api-v4-transaction-title-text {
font-family: var(--font-display);
}
.api-v4-transaction-subtitle {
margin-top: 2px;
font-size: 16px;
line-height: 24px;
font-weight: 300;
color: var(--text-secondary);
word-break: break-word;
}
.api-v4-transaction-summary-right {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 6px;
flex-shrink: 0;
max-width: 50%;
}
.api-v4-transaction-created {
flex-basis: 100%;
text-align: right;
}
.api-v4-transaction-card > .api-v4-transaction-meta {
margin: 0;
padding: var(--space-2);
font-family: var(--font-body);
font-size: 16px;
color: var(--text-secondary);
}
.api-v4-transaction-summary-right .api-v4-secondary {
min-width: 80px;
text-align: center;
}
.api-v4-transaction-created {
font-size: 13px;
line-height: 20px;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.api-v4-transaction-body {
border-top: 1px solid var(--border);
padding: 12px var(--space-2);
}
.api-v4-transaction-meta {
font-family: var(--font-mono);
font-size: 14px;
line-height: 22px;
color: var(--text-secondary);
margin-bottom: 4px;
word-break: break-word;
}
.api-v4-transaction-meta strong {
font-family: var(--font-body);
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
}
.api-v4-transaction-cramkey {
display: flex;
gap: var(--space-1);
align-items: center;
flex-wrap: wrap;
margin-top: 12px;
margin-bottom: 12px;
}
.api-v4-transaction-cramkey code {
display: block;
padding: 12px var(--space-2);
border-radius: 0;
background: var(--code-bg);
color: var(--code-text);
word-break: break-all;
flex: 1 1 280px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
}
.api-v4-transaction-raw {
margin-top: 12px;
}
.api-v4-transaction-raw summary {
cursor: pointer;
font-size: 14px;
line-height: 20px;
font-weight: 500;
color: var(--text-secondary);
transition: color var(--transition);
}
.api-v4-transaction-raw summary:hover {
color: var(--text-primary);
}
.api-v4-activation-log,
.api-v4-transaction-json,
.api-v4-output {
margin-top: var(--space-1);
background: var(--code-bg);
color: var(--code-text);
border-radius: 0;
padding: 12px var(--space-2);
overflow: auto;
font-size: 13px;
line-height: 20px;
white-space: pre-wrap;
word-break: break-word;
font-family: var(--font-mono);
}
.api-v4-activation-log {
max-height: 240px;
}
.api-v4-activation-actions {
margin-top: 12px;
display: flex;
gap: var(--space-1);
flex-wrap: wrap;
}
.api-v4-transaction-json {
max-height: 320px;
}
.api-v4-output {
margin-top: 0;
min-height: 160px;
max-height: 400px;
}
/* ─────────────── APKAM Key Management Controls ─────────────── */
.controls {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-1) var(--space-2);
margin-bottom: var(--space-2);
flex-wrap: wrap;
}
#otp-btn {
background: var(--action);
color: var(--on-action);
border: none;
padding: 8px 18px;
border-radius: 0;
font-size: 14px;
cursor: pointer;
font-weight: 500;
}
#otp-btn:hover {
background: var(--action-hover);
}
.wizards-dropdown {
position: relative;
}
#wizards-btn {
background: var(--surface);
color: var(--text-primary);
border: 1px solid var(--border-strong);
padding: 8px 18px;
border-radius: 0;
font-size: 14px;
cursor: pointer;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
}
#wizards-btn:hover {
background: var(--surface-hover);
}
.wizards-menu {
position: absolute;
top: calc(100% + 6px);
left: 0;
background: var(--surface-raised);
border-radius: 0;
border: 1px solid var(--border);
min-width: 260px;
z-index: 1000;
display: none;
overflow: hidden;
}
.wizards-menu.show {
display: block;
animation: menuSlideIn 0.15s ease-out;
}
@keyframes menuSlideIn {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.wizard-option {
width: 100%;
padding: 12px 16px;
border: none;
background: var(--surface);
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: background var(--transition);
text-align: left;
}
.wizard-option:hover {
background: var(--surface-sunken);
}
.wizard-option:not(:last-child) {
border-bottom: 1px solid var(--border);
}
.wizard-icon {
font-size: 20px;
flex-shrink: 0;
}
.wizard-details {
flex: 1;
}
.wizard-title {
font-weight: 500;
color: var(--text-primary);
font-size: 14px;
margin-bottom: 1px;
}
.wizard-description {
font-size: 14px;
color: var(--text-secondary);
}
.close-btn {
background: var(--surface);
color: var(--text-primary);
border: 1px solid var(--border-strong);
padding: 6px 14px;
border-radius: 0;
font-size: 14px;
cursor: pointer;
font-weight: 500;
}
.close-btn:hover {
background: var(--danger-bg);
color: var(--danger-text);
}
/* ─────────────── Search ─────────────── */
.search-box {
flex: 1;
max-width: 480px;
position: relative;
}
#search-input {
padding-right: 44px;
}
#clear-search {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
background: transparent;
color: var(--text-secondary);
border: none;
border-radius: 0;
width: var(--control-height-sm);
height: var(--control-height-sm);
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
transition: background var(--transition), color var(--transition);
}
#clear-search:hover {
background: var(--surface-hover);
color: var(--text-primary);
}
/* ─────────────── Filter Controls ─────────────── */
.filter-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-3);
flex-wrap: wrap;
gap: var(--space-1) var(--space-2);
}
.filter {
display: flex;
gap: var(--space-2);
flex-wrap: wrap;
}
.filter label {
display: flex;
align-items: center;
gap: var(--space-1);
font-size: 16px;
cursor: pointer;
color: var(--text-primary);
font-weight: 400;
}
.filter input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
accent-color: var(--selected);
}
.match-count {
display: inline-flex;
align-items: center;
height: 24px;
padding: 0 8px;
background: var(--surface-sunken);
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
font-weight: 400;
white-space: nowrap;
border: none;
border-radius: 0;
}
.match-count:empty {
display: none;
}
/* ─────────────── Loading / Error ─────────────── */
.loading {
text-align: center;
padding: var(--space-4);
font-size: 16px;
color: var(--text-secondary);
}
.error {
background: var(--danger-bg);
color: var(--danger-text);
padding: var(--space-2);
border-radius: 0;
margin-bottom: var(--space-2);
border: none;
font-size: 16px;
line-height: 24px;
font-weight: 400;
}
/* ─────────────── Enrollment Cards Grid ─────────────── */
.enrollments-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: var(--space-1);
}
.enrollment-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0;
padding: var(--space-2);
position: relative;
}
.status-badge {
position: absolute;
top: var(--space-2);
right: var(--space-2);
display: inline-flex;
align-items: center;
height: 24px;
padding: 0 8px;
border-radius: 0;
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.status-badge.approved {
background: var(--success-bg);
color: var(--success-text);
}
.status-badge.pending {
background: var(--warning-bg);
color: var(--warning-text);
}
.status-badge.revoked {
background: var(--danger-bg);
color: var(--danger-text);
}
.status-badge.denied {
background: var(--badge-neutral-bg);
color: var(--badge-neutral-text);
}
.enrollment-id {
font-size: 14px;
line-height: 20px;
font-weight: 500;
color: var(--text-primary);
margin-bottom: 12px;
padding-right: 96px;
word-break: break-all;
font-family: var(--font-mono);
}
.enrollment-details {
margin-bottom: 12px;
}
.detail-row {
display: flex;
justify-content: space-between;
gap: var(--space-2);
padding: 4px 0;
font-size: 14px;
line-height: 20px;
border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
border-bottom: none;
}
.detail-label {
font-weight: 500;
color: var(--text-primary);
font-size: 14px;
}
.detail-value {
color: var(--text-secondary);
text-align: right;
font-family: var(--font-mono);
font-size: 14px;
word-break: break-all;
}
.enrollment-actions {
display: flex;
gap: var(--space-1);
flex-wrap: wrap;
margin-top: var(--space-2);
}
.btn {
flex: 1;
min-width: 80px;
}
.btn-approve {
background: var(--action);
color: var(--on-action);
border-color: transparent;
}
.btn-approve:hover {
background: var(--action-hover);
color: var(--on-action);
border-color: transparent;
}
.btn-approve:active {
background: var(--action-pressed);
color: var(--on-action-pressed);
border-color: transparent;
}
.btn-revoke:hover,
.btn-delete:hover {
background: var(--danger-bg);
color: var(--danger-text);
border-color: var(--danger-text);
}
/* ─────────────── Keys Section ─────────────── */
.keys-section {
margin-top: var(--space-2);
padding-top: var(--space-2);
border-top: 1px solid var(--border);
display: none;
}
.keys-section.show {
display: block;
}
.keys-list {
max-height: 260px;
overflow-y: auto;
}
.key-item {
margin-bottom: var(--space-1);
padding: var(--space-1) 12px;
background: var(--code-bg);
color: var(--code-text);
border-radius: 0;
border: none;
font-size: 13px;
}
.key-name {
font-family: var(--font-mono);
font-weight: 500;
color: var(--code-accent);
word-break: break-all;
margin-bottom: 4px;
}
.key-value {
font-family: var(--font-mono);
color: var(--code-text);
word-break: break-all;
max-height: 80px;
overflow-y: auto;
font-size: 13px;
line-height: 20px;
}
/* ─────────────── Modal ─────────────── */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--scrim);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal-overlay.show {
display: flex;
}
.modal-content {
background: var(--surface-raised);
padding: var(--space-3);
border: 1px solid var(--border);
border-radius: 0;
max-width: 480px;
width: 90%;
}
.modal-header {
margin-bottom: var(--space-2);
}
.modal-header h2 {
margin: 0;
color: var(--text-primary);
font-size: 24px;
line-height: 32px;
font-weight: 500;
}
.modal-body {
margin-bottom: var(--space-2);
}
.otp-display {
background: var(--code-bg);
color: var(--code-text);
border: none;
border-radius: 0;
padding: var(--space-2);
text-align: center;
margin: var(--space-2) 0;
}
.otp-value {
font-family: var(--font-mono);
font-size: 24px;
font-weight: 500;
color: var(--code-accent);
letter-spacing: 3px;
user-select: all;
cursor: text;
}
.otp-instructions {
color: var(--text-secondary);
font-size: 14px;
margin-top: 10px;
}
.modal-footer {
display: flex;
gap: var(--space-1);
justify-content: flex-end;
}
.modal-btn-secondary {
background: var(--surface);
color: var(--text-primary);
border: 1px solid var(--border-strong);
}
.modal-btn-secondary:hover {
background: var(--surface-hover);
}
.copy-success {
color: var(--success-text);
font-size: 14px;
margin-top: 10px;
text-align: center;
font-weight: 500;
}
.modal-content-wide {
max-width: 640px;
}
.wizard-step {
min-height: 180px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: var(--space-2);
}
.form-group label {
display: block;
font-weight: 500;
margin-bottom: 0;
color: var(--text-primary);
font-size: 16px;
line-height: 24px;
}
.form-input {
width: 100%;
height: var(--control-height);
padding: 0 12px;
border: 1px solid var(--border-strong);
border-radius: 0;
font-size: 16px;
background: var(--surface);
color: var(--text-primary);
}
.form-input:focus {
outline: 2px solid var(--focus-ring);
outline-offset: 0;
border-color: var(--focus-ring);
}
.form-hint {
color: var(--text-secondary);
font-size: 14px;
margin-top: 4px;
}
.command-display {
background: var(--code-bg);
border-radius: 0;
padding: var(--space-2);
margin: 12px 0;
overflow-x: auto;
}
.command-text {
font-family: var(--font-mono);
font-size: 13px;
color: var(--code-text);
white-space: pre-wrap;
word-break: break-all;
user-select: all;
cursor: text;
margin: 0;
}
.success-message {
background: var(--success-bg);
color: var(--success-text);
padding: 12px var(--space-2);
border-radius: 0;
margin-bottom: var(--space-2);
font-weight: 500;
text-align: center;
font-size: 14px;
}
.error-message {
background: var(--danger-bg);
color: var(--danger-text);
padding: 12px var(--space-2);
border-radius: 0;
margin-top: 10px;
font-weight: 500;
font-size: 14px;
}
.wizard-info {
background: var(--info-bg);
border: none;
padding: var(--space-2);
border-radius: 0;
margin-top: var(--space-2);
}
.wizard-info p {
margin-bottom: 8px;
color: var(--info-text);
font-weight: 500;
font-size: 14px;
}
.wizard-info ol {
margin-left: 18px;
color: var(--info-text);
font-size: 14px;
}
.wizard-info ol li {
margin-bottom: 6px;
}
/* ─────────────── Notification Animations ─────────────── */
@keyframes slideIn {
from {
transform: translateX(320px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(320px);
opacity: 0;
}
}
/* ─────────────── Responsive ─────────────── */
@media (max-width: 768px) {
.app-bar {
position: static;
padding: var(--space-1) var(--space-2) 0;
}
.atsign-switcher-handle {
max-width: 180px;
}
.management-page {
padding: var(--space-2);
}
.management-section-summary,
.management-section-body,
.api-v4-console {
padding: var(--space-2);
}
.api-v4-transaction-summary {
flex-direction: column;
}
.api-v4-transaction-summary-right {
max-width: none;
justify-content: flex-start;
}
.api-v4-transaction-created {
text-align: left;
}
.enrollments-grid {
grid-template-columns: 1fr;
}
.otp-management-grid {
grid-template-columns: 1fr;
}
.enrollment-command-grid {
grid-template-columns: 1fr;
}
.auto-approval-grid {
grid-template-columns: 1fr;
}
.namespace-permission-row {
grid-template-columns: 1fr;
}
.controls {
flex-direction: column;
align-items: stretch;
}
.search-box {
max-width: none;
}
.api-v4-row-head {
flex-direction: column;
align-items: flex-start;
}
.api-v4-config-grid {
grid-template-columns: 1fr;
}
.api-v4-inline-input {
flex-wrap: wrap;
}
.auto-approval-card-grid {
grid-template-columns: 1fr;
}
.wizard-step-grid {
grid-template-columns: 1fr;
}
}
/* ─────────────── Toast Notifications ─────────────── */
.toast {
position: fixed;
top: var(--space-3);
right: var(--space-3);
max-width: min(420px, calc(100vw - 2 * var(--space-3)));
padding: 12px var(--space-2);
border-radius: 0;
border: 1px solid var(--border);
z-index: 10000;
font-size: 16px;
line-height: 24px;
font-weight: 500;
font-family: var(--font-body);
background: var(--surface-raised);
color: var(--text-primary);
opacity: 0;
transform: translateX(40px);
transition: opacity 200ms ease, transform 200ms ease;
pointer-events: none;
}
.toast-visible {
opacity: 1;
transform: translateX(0);
}
.toast-exit {
animation: toastExit 200ms ease forwards;
}
@keyframes toastExit {
to {
opacity: 0;
transform: translateX(40px);
}
}
.toast-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-bg); }
.toast-error { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-bg); }
.toast-warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-bg); }
.toast-info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-bg); }
/* ─────────────── Error Modal (landing page) ─────────────── */
.modal-overlay.modal-visible {
display: flex;
}
.modal-card {
background: var(--surface-raised);
color: var(--text-primary);
border: 1px solid var(--border);
border-radius: 0;
padding: var(--space-3);
max-width: 480px;
width: 90%;
}
.modal-title {
margin: 0 0 var(--space-1) 0;
font-size: 24px;
line-height: 32px;
font-weight: 500;
text-align: center;
}
.modal-title-error {
color: var(--danger-text);
}
.modal-atsign {
text-align: center;
font-family: var(--font-mono);
color: var(--text-primary);
margin-bottom: 12px;
font-size: 18px;
line-height: 24px;
}
.modal-atsign strong {
font-weight: 500;
}
.modal-message {
color: var(--text-secondary);
line-height: 24px;
margin: 0 0 var(--space-3) 0;
font-size: 16px;
}
.modal-actions {
display: flex;
gap: var(--space-1);
justify-content: center;
}
.modal-field {
margin: var(--space-2) 0;
}
.modal-error {
color: var(--danger-text);
font-size: 14px;
line-height: 20px;
font-weight: 400;
margin-bottom: var(--space-1);
}
/* ─────────────── Shutdown Screen ─────────────── */
.shutdown-screen {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: var(--font-body);
flex-direction: column;
gap: 12px;
}
.shutdown-title {
font-family: var(--font-display);
font-size: 24px;
line-height: 32px;
font-weight: 500;
color: var(--text-primary);
}
.shutdown-subtitle {
font-size: 16px;
color: var(--text-secondary);
}
/* ─────────────── Landing Utility Classes ─────────────── */
.loading-error {
color: var(--danger-text);
font-weight: 500;
font-size: 16px;
}
.loading-retry-btn {
margin-top: var(--space-2);
}
.command-box-error {
color: var(--danger-100);
}
.status-text-success {
color: var(--success-text);
}
.status-text-error {
color: var(--danger-text);
}
.status-text-muted {
color: var(--text-secondary);
display: block;
margin-top: 4px;
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.text-secondary {
color: var(--text-secondary);
}
.field-hint {
margin-left: 6px;
font-size: 14px;
font-weight: 400;
color: var(--text-secondary);
}
/* ─────────────── Landing Page ─────────────── */
.landing-container {
max-width: calc(var(--app-max) + 2 * var(--space-3));
margin: 0 auto;
padding: var(--space-3) var(--space-3) var(--space-4);
}
#tab-apkam-management {
background: var(--surface);
border: 1px solid var(--border);
padding: var(--space-3);
}
.atsign-list {
background: transparent;
border: none;
margin-bottom: 0;
}
.atsign-group {
margin-bottom: var(--space-3);
}
.atsign-group:last-child {
margin-bottom: 0;
}
.atsign-group h3 {
margin-bottom: var(--space-1);
color: var(--text-primary);
font-size: 18px;
line-height: 24px;
font-weight: 500;
}
.atsign-group p {
color: var(--text-secondary);
margin: -4px 0 var(--space-1);
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.atsign-group-list {
border: 1px solid var(--border);
background: var(--surface);
}
.atsign-item {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-2);
padding: 12px var(--space-2);
border-bottom: 1px solid var(--border);
transition: background var(--transition);
}
.atsign-item > div:first-child {
flex: 1;
min-width: 0;
}
.atsign-item:hover {
background: var(--surface-hover);
}
.atsign-item:last-child {
border-bottom: none;
}
.atsign-name {
font-family: var(--font-mono);
font-size: 18px;
line-height: 24px;
font-weight: 500;
color: var(--text-primary);
}
.atsign-path {
margin-top: 2px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.onboard-form {
max-width: 640px;
}
.empty-state {
text-align: center;
padding: var(--space-4) var(--space-3);
color: var(--text-secondary);
}
.empty-state .onboard-btn {
margin-top: var(--space-3);
}
.empty-state-icon {
font-size: 3em;
margin-bottom: 16px;
opacity: 0.6;
}
.empty-state h3 {
color: var(--text-primary);
font-size: 18px;
line-height: 24px;
margin-bottom: var(--space-1);
}
.empty-state p {
font-size: 16px;
}
/* Scoped: the management page has its own .loading rule. */
.landing-container .loading {
text-align: center;
padding: var(--space-4) var(--space-3);
color: var(--text-secondary);
}
.spinner {
border: 3px solid var(--border);
border-top: 3px solid var(--text-primary);
border-radius: 50%;
width: 32px;
height: 32px;
animation: spin 0.8s linear infinite;
margin: 0 auto var(--space-2);
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.form-group small {
display: block;
color: var(--text-secondary);
margin-top: 0;
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.command-section {
background: var(--surface-sunken);
border: none;
padding: var(--space-3);
margin-top: var(--space-3);
}
.command-section h3 {
margin: 0 0 var(--space-2) 0;
color: var(--text-primary);
font-size: 18px;
line-height: 24px;
font-weight: 500;
}
.command-box {
background: var(--code-bg);
color: var(--code-text);
padding: 12px var(--space-2);
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
white-space: pre-wrap;
word-break: break-all;
margin-bottom: var(--space-2);
position: relative;
}
/* In dark mode the command section and code block are both near-black;
lift the block one step so the command stands out. */
[data-theme="dark"] .command-box {
background: var(--surface-raised);
}
.copy-btn.copied,
.copy-btn.copied:hover {
background: var(--success-bg);
color: var(--success-text);
}
.status-section {
background: var(--info-bg);
color: var(--info-text);
border: none;
padding: var(--space-2);
margin-top: var(--space-2);
display: none;
}
.status-section.active {
display: block;
}
.status-section-note {
display: block;
margin-top: var(--space-1);
font-size: 14px;
line-height: 20px;
font-weight: 400;
}
.atsign-toolbar {
display: flex;
flex-wrap: wrap;
gap: var(--space-1) var(--space-2);
align-items: center;
margin-bottom: var(--space-3);
}
.atsign-search-box {
flex: 1 1 240px;
min-width: 0;
}
#atsign-sort-select {
width: 180px;
flex-shrink: 0;
}
.atsign-toolbar-end {
margin-left: auto;
display: flex;
gap: var(--space-1);
}
.status-text {
color: inherit;
font-weight: 500;
margin-bottom: var(--space-1);
font-size: 16px;
}
.progress-bar {
background: transparent;
box-shadow: inset 0 0 0 1px currentColor;
height: 4px;
overflow: hidden;
}
.progress-fill {
background: currentColor;
height: 100%;
width: 0%;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.folder-btn {
position: relative;
flex-shrink: 0;
}
.folder-dropdown {
position: absolute;
top: calc(100% + 4px);
right: 0;
background: var(--surface-raised);
border: 1px solid var(--border);
min-width: 280px;
z-index: 100;
padding: var(--space-1) 0;
}
.folder-dropdown-header {
padding: 4px var(--space-2) var(--space-1);
font-family: var(--font-mono);
font-size: 12px;
line-height: 16px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-secondary);
}
.folder-dropdown-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px var(--space-2);
min-height: var(--control-height);
font-size: 16px;
font-weight: 400;
color: var(--text-primary);
cursor: default;
}
.folder-dropdown-item:hover {
background: var(--surface-hover);
}
.folder-dropdown-item-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.folder-dropdown-actions {
display: flex;
gap: 4px;
margin-left: var(--space-1);
flex-shrink: 0;
}
.folder-dropdown-actions button,
.folder-group-actions button {
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--control-height-sm);
height: var(--control-height-sm);
background: transparent;
border: none;
cursor: pointer;
padding: 0;
font-size: 14px;
color: var(--text-secondary);
transition: background var(--transition), color var(--transition);
}
.folder-dropdown-actions button:hover,
.folder-group-actions button:hover {
background: var(--surface-hover);
color: var(--text-primary);
}
.folder-dropdown-actions svg,
.folder-group-actions svg {
fill: none;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.folder-dropdown-empty {
color: var(--text-secondary);
font-size: 14px;
}
.folder-dropdown-count {
margin-left: var(--space-1);
font-family: var(--font-mono);
font-size: 12px;
color: var(--text-secondary);
}
.folder-dropdown-create {
display: flex;
gap: var(--space-1);
padding: var(--space-1) var(--space-2) 4px;
border-top: 1px solid var(--border);
margin-top: 4px;
}
.folder-dropdown-create input {
flex: 1;
height: var(--control-height-sm);
font-size: 14px;
}
.folder-group-header {
display: flex;
align-items: center;
gap: var(--space-1);
margin-bottom: var(--space-1);
cursor: pointer;
user-select: none;
}
.folder-group-header h3 {
margin-bottom: 0;
}
.folder-group-toggle {
width: 0;
height: 0;
font-size: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 6px solid var(--text-secondary);
transition: transform var(--transition);
}
.folder-group-toggle.collapsed {
transform: rotate(-90deg);
}
.folder-group-count {
display: inline-flex;
align-items: center;
height: 24px;
padding: 0 8px;
background: var(--surface-sunken);
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
font-weight: 400;
}
.folder-group-actions {
margin-left: auto;
display: flex;
gap: 4px;
opacity: 0;
transition: opacity var(--transition);
}
.folder-group-header:hover .folder-group-actions,
.folder-group-header:focus-within .folder-group-actions {
opacity: 1;
}
.atsign-item-actions {
display: flex;
align-items: center;
gap: var(--space-1);
flex-shrink: 0;
}
.atsign-folder-select {
width: 160px;
height: var(--control-height-sm);
padding: 0 36px 0 12px;
border: 1px solid var(--border-strong);
background-color: var(--surface);
color: var(--text-primary);
font-size: 14px;
font-weight: 400;
cursor: pointer;
transition: border-color var(--transition);
}
@media (max-width: 640px) {
.landing-container {
padding: var(--space-2) var(--space-2) var(--space-4);
}
#tab-apkam-management {
padding: var(--space-2);
}
.atsign-item {
flex-direction: column;
align-items: stretch;
}
.atsign-item-actions {
justify-content: flex-end;
}
}
''';