* { box-sizing: border-box; }
body { min-width: 0; margin: 0; padding: 10px 12px 78px; background: #f4f6f8; color: #4e6280; font-family: Arial, Helvetica, sans-serif; font-size: 14px; transition: background-color .2s ease, color .2s ease; }
a { color: inherit; }

/* Dark Mode Variables & Styles */
body.dark-mode { background: #0f172a; color: #94a3b8; }
body.dark-mode a { color: #38bdf8; }
body.dark-mode .account-panel { background: #1e293b; border-color: #334155; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
body.dark-mode .account-panel__header { border-bottom-color: #334155; background: #1e293b; }
body.dark-mode .account-panel__header h1 { color: #f8fafc; }
body.dark-mode .account-panel__header i { color: #38bdf8; }
body.dark-mode .account-panel__count { color: #94a3b8; }
body.dark-mode .account-panel__count strong { color: #ffffff; }
body.dark-mode .account-panel__empty { color: #94a3b8; font-size: 14px; }

/* Dark Mode Device Time Bar */
body.dark-mode .device-time-bar { background: #1e293b; border-color: #334155; color: #e2e8f0; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
body.dark-mode .device-time-bar i { color: #38bdf8; }
body.dark-mode .device-time-bar strong { color: #38bdf8; }
body.dark-mode .device-time-bar__sep { color: #475569; }

/* Dark Mode Account Data Cards */
body.dark-mode .account-data__label { color: #cbd5e1; font-weight: 600; }
body.dark-mode .account-data__value { background: #0f172a; border: 1px solid #334155; color: #f8fafc; border-radius: 6px; }
body.dark-mode .account-data__part { color: #f1f5f9; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13.5px; }
body.dark-mode .account-data__countdown { color: #fbbf24; font-weight: 600; }
body.dark-mode .account-data__copy { background: #1e293b; border-left-color: #334155; color: #38bdf8; transition: background .15s ease, color .15s ease; }
body.dark-mode .account-data__copy:hover { background: #334155; color: #7dd3fc; }

/* Dark Mode Code Results & Saved Accounts */
body.dark-mode .code-results { background: #0c4a6e; border-color: #0284c7; }
body.dark-mode .code-results__title { color: #7dd3fc; }
body.dark-mode .back-home-button { background: #1e293b; border: 1px solid #334155; color: #f1f5f9; }
body.dark-mode .back-home-button:hover { background: #334155; }
body.dark-mode .account-form__input { background: #0f172a; border-color: #334155; color: #f8fafc; }
body.dark-mode .account-form__hint { color: #cbd5e1; }
body.dark-mode .saved-accounts { border-top-color: #334155; }
body.dark-mode .saved-accounts__title { color: #f8fafc; }
body.dark-mode .saved-accounts__toolbar { background: #1e293b; border-color: #334155; }
body.dark-mode .saved-accounts__select-all { color: #cbd5e1; }
body.dark-mode .saved-account { background: #1e293b; border-color: #334155; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
body.dark-mode .saved-account:has(.saved-account__checkbox:checked) { background: #0c4a6e; border-color: #0284c7; }
body.dark-mode .saved-account > .account-data__part { color: #f8fafc; }
body.dark-mode .saved-account__number { color: #94a3b8; }
body.dark-mode .saved-account > .account-data__copy { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
body.dark-mode .saved-account__remove:hover { background: #7f1d1d; color: #fecaca; }

/* Dark Mode Tags & Buttons */
body.dark-mode .account-tag--hotmail { background: #0369a1; color: #e0f2fe; border-color: #0284c7; }
body.dark-mode .account-tag--2fa { background: #854d0e; color: #fef08a; border-color: #a16207; }
body.dark-mode .account-tag--other { background: #334155; color: #f1f5f9; border-color: #475569; }
body.dark-mode .theme-toggle-btn { background: #3b82f6; border-color: #3b82f6; color: #fff; }
body.dark-mode .theme-toggle-btn:hover { background: #2563eb; border-color: #2563eb; }

/* Dark Mode Button Styling Enhancements */
body.dark-mode .system-settings-button { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 3px 8px rgba(0,0,0,.4) !important; }
body.dark-mode .system-settings-button--load { background: linear-gradient(135deg, #059669 0%, #047857 100%) !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 3px 8px rgba(0,0,0,.4) !important; }
body.dark-mode .video-button { background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 3px 8px rgba(0,0,0,.4) !important; }
body.dark-mode button.video-button[data-video="lite"] { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important; }
body.dark-mode .account-button { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
body.dark-mode .save-settings, body.dark-mode .account-form__save { background: linear-gradient(135deg, #059669 0%, #047857 100%) !important; color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 3px 8px rgba(0,0,0,.4) !important; }
body.dark-mode .account-button:disabled { background: #334155 !important; color: #64748b !important; text-shadow: none; border: 1px solid #475569; }

.theme-toggle-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 3px 9px; border: 1px solid #3198e8; border-radius: 5px; background: #3198e8; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.theme-toggle-btn:hover { background: #2479f2; border-color: #2479f2; }
body.dark-mode .theme-toggle-btn { background: #3b82f6; border-color: #3b82f6; color: #fff; }
body.dark-mode .theme-toggle-btn:hover { background: #2563eb; border-color: #2563eb; }

/* Main Top Actions 2x2 Grid Layout */
.main-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.main-actions-grid--primary .system-settings-button { min-height: 64px; font-size: 15px; padding: 0 16px; }
.main-actions-grid .system-settings-button { width: 100% !important; margin-bottom: 0 !important; min-height: 44px; font-size: 14px; font-weight: 700; padding: 0 12px; border-radius: 8px; letter-spacing: 0.2px; text-shadow: 0 1px 2px rgba(0,0,0,.35); -webkit-font-smoothing: antialiased; }
.main-actions-grid .system-settings-button, 
.main-actions-grid .system-settings-button i, 
.main-actions-grid .system-settings-button span { color: #ffffff !important; opacity: 1 !important; }

.secondary-actions-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.secondary-actions-row .system-settings-button { min-height: 46px; font-size: 14px; }
.secondary-actions-row .system-settings-button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.system-settings-button, .back-home-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.system-settings-button { width: 100%; margin-bottom: 10px; border: 0; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff !important; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(37,99,235,.3); }
.system-settings-button:hover, .back-home-button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.system-settings-button:active, .back-home-button:active { transform: translateY(0); filter: brightness(0.96); }
button.system-settings-button { width: 100% !important; }
.system-settings-button--load { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 2px 6px rgba(16,185,129,.3); }
.video-button { background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%); box-shadow: 0 2px 6px rgba(79,70,229,.3); }
button.video-button[data-video="lite"] { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); box-shadow: 0 2px 6px rgba(124,58,237,.3); }
.device-time-bar { margin-bottom: 12px; padding: 9px 12px; border: 1px solid #cce5ff; border-radius: 6px; background: #ebf5ff; color: #1f334d; font-size: 13px; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; box-shadow: 0 1px 2px rgba(36,121,242,.08); }
.device-time-bar i { color: #2479f2; font-size: 15px; }
.device-time-bar strong { color: #0d6efd; font-weight: 700; }
.device-time-bar__sep { color: #9ec5fe; margin: 0 2px; }
.queue-live-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.queue-live-status i { font-size: 13px; }
.queue-live-status--loading .queue-live-status__icon { animation: queue-status-spin .8s linear infinite; }
@keyframes queue-status-spin { to { transform: rotate(360deg); } }
.queue-live-status--loading { color: #8a6d1d; }
.queue-live-status--connected { color: #198754; }
.queue-live-status--error { color: #c0394b; }
.queue-live-retry { width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 3px; border: 1px solid #c0394b; border-radius: 5px; background: #fff5f5; color: #c0394b; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.queue-live-retry:hover { background: #fbe1e4; }
body.dark-mode .queue-live-status--loading { color: #facc15; }
body.dark-mode .queue-live-status--connected { color: #4ade80; }
body.dark-mode .queue-live-status--error { color: #fca5a5; }
body.dark-mode .queue-live-retry { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
.ip-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.ip-tag--loading { background: #e2e3e5; color: #41464b; }
.ip-tag--residential { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.ip-tag--mobile { background: #cff4fc; color: #055160; border: 1px solid #b6effb; }
.ip-tag--datacenter { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.ip-tag--unknown { background: #e2e3e5; color: #41464b; border: 1px solid #c4c8cb; }
.account-data__local-time { margin-top: 5px; padding: 4px 8px; border-radius: 4px; background: #e7f3ff; color: #0a58ca; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.back-home-button { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; margin: 0; background: #e8edf2; color: #26364c; }
.account-panel { width: 100%; overflow: hidden; border: 1px solid #d8dee5; border-radius: 7px; background: #fff; box-shadow: 0 2px 4px rgba(34,47,62,.14); }
.account-panel + .account-panel { margin-top: 16px; }
.account-panel__header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #d9e0e7; flex-wrap: wrap; gap: 8px; }
.account-panel__header-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.account-panel__header h1 { margin: 0; color: #26364c; font-size: 16px; font-weight: 600; }
.account-panel__header i { margin-right: 8px; color: #48a7eb; }
.account-panel__count { color: #526987; font-size: 13px; font-weight: 500; }
.account-panel__count strong { display: inline-block; padding: 2px 8px; border-radius: 12px; background: #28a745; color: #fff; font-size: 12px; font-weight: 700; transition: background .3s ease; }
.account-panel__count strong.count-warning { background: #fd7e14; }
.account-panel__count strong.count-danger { background: #dc3545; }
.account-panel__expiring { color: #dc3545; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: #fff5f5; border: 1px solid #fecaca; }
.account-panel__expiring strong { color: #991b1b; }
.account-panel__expiring span { color: #c0394b; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 700; }
body.dark-mode .account-panel__expiring { background: #450a0a; border-color: #991b1b; color: #fca5a5; }
body.dark-mode .account-panel__expiring strong { color: #fef2f2; }
body.dark-mode .account-panel__expiring span { color: #f87171; }
.account-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; vertical-align: middle; }
.account-tag--hotmail { background: #e3f2fd; color: #0d6efd; border: 1px solid #b6d4fe; }
.account-tag--2fa { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.account-tag--other { background: #e2e3e5; color: #41464b; border: 1px solid #c4c8cb; }
.account-panel__body, .account-form__body { padding: 17px 15px 15px; }
.account-panel__empty { margin: 10px 0 17px; text-align: center; color: #526987; font-size: 13px; }
.account-results { margin-bottom: 17px; }
.code-results { margin: 0 0 17px; padding: 12px; border: 1px solid #b9dff7; border-radius: 7px; background: #f1f9ff; }
.code-results__title { margin: 0 0 10px; color: #1d608f; font-weight: 700; }
.code-results .account-data:last-child { margin-bottom: 0; }
.account-data + .account-data { margin-top: 10px; }
.account-data__label, .account-form__hint, .mail-method { margin: 0 0 7px; color: #526987; }
.account-data__value { min-height: 38px; display: flex; align-items: center; gap: 8px; position: relative; padding: 8px 48px 8px 12px; border-radius: 6px; background: #e8edf2; color: #26364c; }
.account-data__part { overflow-wrap: anywhere; }
.account-data__countdown { margin-left: auto; color: #526987; font-size: 12px; white-space: nowrap; }
.account-data__copy { width: 47px; height: 38px; position: absolute; top: 0; right: 0; border: 0; border-left: 1px solid #d8dee5; border-radius: 0 6px 6px 0; background: #f8f9fa; color: #26364c; cursor: pointer; }
.account-panel__actions { display: grid; gap: 8px; }
.account-button, .save-settings { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #ffffff !important; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 2px 6px rgba(2,132,199,.25); text-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .15s ease, filter .15s ease, opacity .15s ease; -webkit-font-smoothing: antialiased; }
.account-button:hover:not(:disabled), .save-settings:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.account-button:disabled { cursor: not-allowed; opacity: .65; background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); color: #ffffff !important; box-shadow: none; text-shadow: none; filter: none; }
.account-button__spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: account-spin .7s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
.account-form__input { width: 100%; min-height: 122px; display: block; resize: vertical; padding: 10px; border: 1px solid #d8dee5; border-radius: 6px; background: #f8f9fa; color: #26364c; font: inherit; }
.account-form__save, .save-settings { width: 100%; margin-top: 16px; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); box-shadow: 0 2px 6px rgba(2,132,199,.25); }
.saved-accounts { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.saved-accounts__title { margin: 0 0 12px; color: #1f334d; font-size: 15px; font-weight: 700; }
.saved-accounts__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #dde6ef; border-radius: 8px; background: #f8fafc; }
.saved-accounts__select-all { display: flex; align-items: center; gap: 8px; color: #3d536e; font-weight: 600; cursor: pointer; }
.saved-accounts__select-all input, .saved-account__checkbox { width: 16px; height: 16px; margin: 0; accent-color: #2479f2; }
.saved-accounts__delete-selected { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 6px; background: #dc3545; color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.saved-accounts__delete-selected:hover:not(:disabled) { background: #bd2130; transform: translateY(-1px); }
.saved-accounts__delete-selected:disabled { background: #d8e0e8; color: #8a9aab; cursor: not-allowed; }
.saved-account { min-height: 52px; display: grid; grid-template-columns: 18px 28px minmax(0, 1fr) 40px; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 8px; border: 1px solid #e0e7ef; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(31,51,77,.05); transition: border-color .15s ease, box-shadow .15s ease; }
.saved-account:has(.saved-account__checkbox:checked) { border-color: #8bc5f0; background: #f2f9ff; box-shadow: 0 2px 5px rgba(49,152,232,.12); }
.saved-account__number { min-width: 0; color: #57708c; font-weight: 700; text-align: center; }
.saved-account > .account-data__part { min-width: 0; padding: 8px 10px; overflow-wrap: anywhere; color: #26364c; line-height: 1.45; }
.saved-account > .account-data__copy { width: 40px; height: 38px; position: relative; top: auto; right: auto; border: 1px solid #f1c2c7; border-radius: 6px; background: #fff5f5; color: #c0394b; }
.saved-account__remove:hover { border-color: #e89aa6; background: #fbe1e4; color: #9e2637; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-action { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; background: #f7f8fa; color: #26364c; text-decoration: none; }
.quick-action i { color: #4ba7ec; font-size: 28px; }
.settings-panel__body { padding: 17px 15px 15px; }
.mail-method { display: flex; align-items: center; gap: 8px; }
.mail-method input { width: 16px; height: 16px; margin: 0; accent-color: #2479f2; }
.copied-notice { position: fixed; right: 16px; bottom: 16px; z-index: 10; padding: 10px 16px; border-radius: 6px; background: #26364c; color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease; }
.copied-notice--visible { opacity: 1; transform: translateY(0); }
.status-notice { position: fixed; top: 16px; right: 16px; z-index: 30; max-width: min(360px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 7px; color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .15s ease, transform .15s ease; }
.status-notice--visible { opacity: 1; transform: translateY(0); }
.status-notice--success { background: #198754; }
.status-notice--error { background: #c0394b; }

.floating-mini-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: auto;
    z-index: 40;
    width: min(360px, calc(100vw - 20px));
    border: 1px solid rgba(36, 121, 242, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}
.floating-mini-panel[hidden] { display: none; }
.floating-mini-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #e8edf2;
    background: linear-gradient(135deg, #ebf5ff 0%, #f8fbff 100%);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.floating-mini-panel__header:active { cursor: grabbing; }
.floating-mini-panel__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f334d;
    font-size: 13px;
}
.floating-mini-panel__state {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e7f3ff;
    color: #0d6efd;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.floating-mini-panel__header button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #edf3fa;
    color: #526987;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.floating-mini-panel__body {
    padding: 12px;
}
.floating-mini-panel__count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #526987;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.floating-mini-panel__count-row strong {
    color: #0d6efd;
    font-size: 28px;
    line-height: 1;
}
.floating-mini-panel__status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.floating-mini-panel__status--loading { background: #fff3cd; color: #8a6d1d; }
.floating-mini-panel__status--connected { background: #d1e7dd; color: #0f5132; }
.floating-mini-panel__status--error { background: #f8d7da; color: #842029; }
.floating-mini-panel__account {
    margin-top: 10px;
    max-height: 170px;
    overflow-y: auto;
    border-top: 1px solid #e8edf2;
}
.floating-mini-panel__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #eef3f8;
}
.floating-mini-panel__row--otp {
    border-left: 3px solid #0ea5e9;
    padding-left: 8px;
}
.floating-mini-panel__row span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #26364c;
}
.floating-mini-panel__otp {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0d6efd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.floating-mini-panel__otp-countdown {
    flex: 0 0 auto;
    color: #d97706;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.floating-mini-panel__row button {
    flex-shrink: 0;
    border: 1px solid #b9dff7;
    border-radius: 6px;
    background: #edf7ff;
    color: #0d6efd;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 7px;
    cursor: pointer;
}
.floating-mini-panel__add-form {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dbe7f3;
    border-radius: 8px;
    background: #f8fbff;
}
.floating-mini-panel__add-form[hidden] { display: none; }
.floating-mini-panel__add-form label {
    display: block;
    margin-bottom: 6px;
    color: #3d536e;
    font-size: 11px;
    font-weight: 700;
}
.floating-mini-panel__add-form textarea {
    width: 100%;
    min-height: 86px;
    display: block;
    resize: vertical;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #26364c;
    font: 12px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.floating-mini-panel__feedback { margin: 7px 0 0; font-size: 11px; font-weight: 700; }
.floating-mini-panel__feedback--success { color: #047857; }
.floating-mini-panel__feedback--error { color: #dc2626; }
.floating-mini-panel__form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.floating-mini-panel__form-actions button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.floating-mini-panel__form-actions button:first-child { background: #e2e8f0; color: #334155; }
.floating-mini-panel__form-actions button:last-child { background: #2479f2; color: #fff; }
.floating-mini-panel__form-actions button:disabled { opacity: .65; cursor: wait; }
.floating-mini-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.floating-mini-panel__add,
.floating-mini-panel__take {
    min-width: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.floating-mini-panel__add {
    background: linear-gradient(135deg, #2479f2 0%, #1d4ed8 100%);
    box-shadow: 0 4px 10px rgba(36, 121, 242, 0.25);
}
.floating-mini-panel__take {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}
.floating-mini-panel__take:disabled { background: #94a3b8; box-shadow: none; cursor: wait; }
body.dark-mode .floating-mini-panel {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}
body.dark-mode .floating-mini-panel__header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}
body.dark-mode .floating-mini-panel__title-wrap { color: #e2e8f0; }
body.dark-mode .floating-mini-panel__state { background: #0c4a6e; color: #7dd3fc; }
body.dark-mode .floating-mini-panel__header button { background: #334155; color: #e2e8f0; }
body.dark-mode .floating-mini-panel__count-row { color: #cbd5e1; }
body.dark-mode .floating-mini-panel__count-row strong { color: #7dd3fc; }
body.dark-mode .floating-mini-panel__status--loading { background: #451a03; color: #fbbf24; }
body.dark-mode .floating-mini-panel__status--connected { background: #052e16; color: #86efac; }
body.dark-mode .floating-mini-panel__status--error { background: #450a0a; color: #fca5a5; }
body.dark-mode .floating-mini-panel__account { border-top-color: #334155; }
body.dark-mode .floating-mini-panel__row { border-bottom-color: #1e293b; }
body.dark-mode .floating-mini-panel__row span { color: #f8fafc; }
body.dark-mode .floating-mini-panel__row button { background: #0f172a; border-color: #334155; color: #7dd3fc; }
body.dark-mode .floating-mini-panel__add-form { background: #111c30; border-color: #334155; }
body.dark-mode .floating-mini-panel__add-form label { color: #cbd5e1; }
body.dark-mode .floating-mini-panel__add-form textarea { background: #0f172a; border-color: #475569; color: #f8fafc; }
@media (max-width: 600px) {
    body { padding: 8px 8px 72px; font-size: 13px; }
    .main-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .main-actions-grid--primary .system-settings-button { min-height: 58px; }
    .secondary-actions-row { grid-template-columns: 1fr; gap: 8px; }
    .secondary-actions-row .system-settings-button { min-height: 44px; font-size: 13px; }
    .main-actions-grid .system-settings-button { min-height: 46px; }
    .device-time-bar { align-items: flex-start; gap: 7px; padding: 9px 10px; line-height: 1.5; }
    .device-time-bar__sep { display: none; }
    .queue-live-status, .queue-live-retry { margin-top: 2px; }
    .theme-toggle-btn { margin-left: 0; }
    .account-panel__header { align-items: flex-start; padding: 10px 12px; }
    .account-panel__header-info { width: 100%; margin-left: 0; gap: 6px 10px; }
    .account-panel__body, .account-form__body { padding: 14px 12px 12px; }
    .account-data__value { padding-left: 10px; padding-right: 44px; }
    .account-data__copy { width: 42px; }
    .quick-actions { grid-template-columns: 1fr; }
    .saved-accounts__toolbar { align-items: stretch; flex-direction: column; }
    .saved-accounts__delete-selected { width: 100%; }
    .saved-account { grid-template-columns: 18px 24px minmax(0, 1fr) 38px; gap: 7px; padding: 6px; }
    .saved-account > .account-data__part { padding: 7px 4px; font-size: 13px; }
}
