/* Hostinger 1-to-1 Clone CSS (Modern Panel) */
:root {
  --h-surface: #ffffff;
  --h-border: #e3e5e8;
  --h-text-main: #1f2937;
  --h-text-sub: #6b7280;
  --h-btn-border: #d1d5db;
  --h-danger: #dc2626;
  --h-success: #16a34a;
}

body:has(.h-sidebar-layout) h1.wp-block-post-title,
body:has(.h-panel-wrapper) h1.wp-block-post-title,
body:has(.db-panel) h1.wp-block-post-title,
body:has(.ftp-panel) h1.wp-block-post-title,
body:has(.mail-panel) h1.wp-block-post-title,
body:has(.fm-panel) h1.wp-block-post-title {
    display: none;
}

.h-sidebar-layout,
.h-sidebar-layout.alignfull {
    position: relative;
    left: auto;
    max-width: calc(100vw - 48px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    box-sizing: border-box;
}

.entry-content > .h-sidebar-layout.alignfull,
.wp-block-post-content > .h-sidebar-layout.alignfull,
.site-main > .h-sidebar-layout.alignfull {
    margin-top: 0;
    margin-bottom: 0;
}

.h-sidebar {
    position: sticky;
    top: 32px;
}

.h-sidebar-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

.h-sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--h-text-sub);
    padding: 0 10px 8px;
}

.h-sidebar-nav {
    display: grid;
    gap: 6px;
}

.h-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 10px;
    color: var(--h-text-main);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.18s ease, color 0.18s ease;
}

.h-sidebar-link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c86a2;
}

.h-sidebar-link-icon svg,
.h-sidebar-link-icon i {
    width: 18px;
    height: 18px;
    display: block;
    font-size: 18px;
    line-height: 1;
}

.h-sidebar-link.is-active {
     background: rgba(255, 122, 0, 0.05);
     color: var(--color-primary);
}

.h-sidebar-link:hover .h-sidebar-link-icon,
.h-sidebar-link.is-active .h-sidebar-link-icon {
    color: var(--color-primary);
}

.h-sidebar-content {
    min-width: 0;
    width: 100%;
    padding-left: 0;
}

.h-sidebar-content .h-panel-wrapper,
.h-sidebar-content .db-panel,
.h-sidebar-content .mail-panel,
.h-sidebar-content .fm-panel,
.h-sidebar-content .ftp-panel {
    width: 100%;
    margin-left: 0;
    max-width: none;
}

.h-panel-wrapper {
    font-family: var(--font-base, 'Golos Text', system-ui, -apple-system, sans-serif);
    background: var(--h-surface);
    border: 1px solid var(--h-border);
    border-radius: 8px;
    color: var(--h-text-main);
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    width: 96vw;
    margin-left: calc((100% - 96vw) / 2);
    max-width: 1200px;
}
@media (min-width: 1250px) {
    .h-panel-wrapper {
        width: 1200px;
        margin-left: calc((100% - 1200px) / 2);
    }
}
@media (max-width: 600px) {
    .h-panel-wrapper {
        width: 100%;
        margin-left: 0;
    }
}

.h-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--h-border);
}

.h-title {
    font-size: 1.14rem;
    font-weight: 650;
    margin: 0;
    color: var(--h-text-main);
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.h-title-icon {width: 24px;height: 24px;color: var(--color-primary);flex-shrink: 0;display: inline-flex;align-items: center;justify-content: center;font-size: 24px;line-height: 1;}

.h-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.h-btn:hover,
.h-btn:focus,
.h-btn:active { box-shadow: none !important; }

.h-btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px var(--color-primary);
}
.h-btn-primary:hover {background-color: #ff7a00e3;color: #fff;}

.h-btn-ghost {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid transparent;
}
.h-btn-ghost:hover { background-color: #f9fafb; color: var(--color-primary); }

.h-btn-outline {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid var(--h-btn-border);
}
.h-btn-outline.gray-text { color: var(--h-text-sub); }
.h-btn-outline:hover {border-color: #9ca3af;color: var(--color-primary);}
.h-btn-outline.gray-text:hover { color: var(--h-text-main); }

.h-icon-btn {
    background: transparent;
    border: none;
    color: var(--h-text-sub);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}
.h-icon-btn:hover { background: #f3f4f6; color: var(--h-text-main); }

.h-list { display: flex; flex-direction: column; }

.h-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--h-border);
}
.h-list-item:hover { background-color: #fcfcfd; }

.h-list-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.h-domain-icon {
    width: 20px;
    height: 20px;
    color: #1f2937;
    margin-right: 0px;
}

.h-domain-name {
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--h-text-main);
    text-decoration: none;
}
.h-domain-name:hover { text-decoration: underline; }
.h-external-link { color: #9ca3af; width: 14px; height: 14px; }

.h-list-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 0.85rem;
    color: var(--h-text-sub);
    background: #fdfdfd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Dropdowns & Modals */
.h-dropdown-container { position: relative; }
.h-dropdown {
    position: absolute; right: 0; top: 100%; margin-top: 6px;
    background: #fff; border: 1px solid var(--h-border);
    border-radius: 6px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    min-width: 240px; white-space: nowrap; display: flex; z-index: 50; flex-direction: column; padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.3s;
}
.h-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
}
.h-dropdown-item {
    display: flex; align-items: center;
    padding: 10px 16px; text-align: left; background: none; border: none;
    width: 100%; box-sizing: border-box; cursor: pointer; font-size: 0.85rem; color: var(--h-text-main); font-weight: 500;
}
.h-dropdown-item svg,
.h-dropdown-item i { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.15s; margin-right: 10px; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.h-dropdown-item:hover svg,
.h-dropdown-item:hover i { transform: scale(1.15); }
.h-dropdown-item:hover { background: #f9fafb; color: var(--color-primary); }

.h-dropdown-item-danger { color: var(--h-danger) !important; }
.h-dropdown-item-danger svg,
.h-dropdown-item-danger i { color: var(--h-danger) !important; }
.h-dropdown-item-danger:hover { background: #fef2f2 !important; color: #b91c1c !important; }
.h-dropdown-item-danger:hover svg,
.h-dropdown-item-danger:hover i { color: #b91c1c !important; transform: scale(1.15); }
.h-dropdown-divider { height: 1px; background: var(--h-border); margin: 6px 0; }
.h-dropdown-label { padding: 4px 16px; font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; font-weight: 600;}

.hestia-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  background: rgba(31, 41, 55, 0.4); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 9999;
}
.hestia-modal-overlay.show { opacity: 1; pointer-events: auto; }
.hestia-modal {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.22);
  transform: translateY(20px);
  transition: transform 0.2s;
}
.show .hestia-modal { transform: translateY(0); }
.hestia-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--h-btn-border);
  border-radius: 6px;
  font-size: 12px;
  box-sizing: border-box;
  font-family: inherit;
}
.hestia-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.15); }
.hestia-modal h3 {
    margin: 0 0 12px 0;
    font-size: 1.08rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.hestia-modal h3 svg,
.hestia-modal h3 i { width: 22px; height: 22px; color: var(--color-primary); font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.fm-modal-danger-title { color: #b91c1c; }
.h-modal-card { max-width: 460px; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.22); transform: translateY(16px) scale(0.985); }
.show .h-modal-card { transform: translateY(0) scale(1); }
.h-modal-wide { max-width: 800px; }
.h-modal-medium { max-width: 500px; }
.h-modal-no-pad { padding: 0; overflow: hidden; }
.h-modal-content { margin: 16px 0; }
.h-modal-meta { color: var(--h-text-sub); font-size: 0.88rem; margin: 0 0 16px; line-height: 1.6; }
.h-modal-label { display:block; font-size:0.75rem; font-weight:700; color:var(--h-text-sub); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.04em; }
.h-modal-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--h-text-main);
}
.h-modal-note-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}
.h-modal-note-row + .h-modal-note-row { margin-top: 0; }
.h-modal-note-row:last-child { border-bottom: none; }
.h-modal-note-label {
    color: var(--h-text-sub);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
}
.h-modal-note-value {
    min-width: 0;
    font-weight: 560;
    color: var(--h-text-main);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.h-modal-detail-surface {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    padding: 6px 16px;
}
.h-modal-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.h-modal-detail-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f6f8fb;
    border: 1px solid #e8edf3;
    color: #344054;
    font-size: 0.81rem;
    font-weight: 500;
    line-height: 1.2;
}
.h-modal-detail-code {
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 0.83rem;
}
.h-modal-card.h-backup-details-modal {
    max-width: 640px;
}

@media (max-width: 640px) {
    .h-modal-note-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.h-modal-danger-copy { color: #b91c1c; font-weight: 500; margin: 0 0 16px; }
.h-form-group { margin-bottom: 14px; }
.h-form-group label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--h-text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.h-input-row { display: flex; gap: 8px; }
.h-input-row .hestia-input { flex: 1; }
.h-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.loader-container,
.h-loader-wrap { display:flex; justify-content:center; padding: 40px; }
.h-loader {
  border: 3px solid #f3f4f6; border-top: 3px solid var(--color-primary);
  border-radius: 50%; width: 24px; height: 24px; animation: spin 0.8s linear infinite;
}
.h-spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Toasts */
#h-toast-container {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  pointer-events: none;
}
.h-toast {
  width: auto;
  max-width: min(560px, calc(100vw - 32px));
  margin: 0 auto;
  background: var(--color-primary); color: #fff; padding: 12px 24px; border-radius: 30px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  opacity: 0; transform: translateY(100%); transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500;
}
.h-toast svg,
.h-toast i { width: 18px; height: 18px; flex-shrink: 0; font-size: 18px; line-height: 1; }
.h-toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: #dc2626; color: white;}
.toast-success,
.toast-info,
.toast-positive { background: var(--color-primary); color: white; }
.h-empty { display: flex; flex-direction: column; align-items: center; padding: 56px 24px; color: var(--h-text-sub); text-align: center; }
.h-empty > svg,
.h-empty > i { width: 56px; height: 56px; margin-bottom: 16px; opacity: 0.35; font-size: 56px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.h-empty > p { margin: 0 0 20px 0; font-size: 0.95rem; }
.h-empty .h-btn svg,
.h-empty .h-btn i { width: 16px; height: 16px; margin: 0; opacity: 1; font-size: 16px; line-height: 1; }

/* Database Panel CSS */

.db-panel {
    font-family: var(--font-base, 'Golos Text', system-ui, -apple-system, sans-serif);
    background: var(--h-surface);
    border: 1px solid var(--h-border);
    border-radius: 12px;
    color: var(--h-text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    width: 96vw; margin-left: calc((100% - 96vw) / 2); max-width: 1200px; box-sizing: border-box;
}
@media (min-width: 1250px) { .db-panel { width: 1200px; margin-left: calc((100% - 1200px) / 2); } }
@media (max-width: 600px) { .db-panel { width: 100%; margin-left: 0; border-radius: 0; } }

.db-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--h-border);
}
.db-title { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.db-title-icon {width: 24px;height: 24px;color: var(--color-primary);font-size: 24px;}
.db-header-actions { display: flex; gap: 8px; }

.h-btn-danger {background: var(--h-danger);color: #fff;border-color: var(--h-danger);border: none;}
.h-btn-danger:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.h-btn-sm {font-size: 0.78rem;border-radius: 6px;}
.h-btn svg,
.h-btn i { width: 16px; height: 16px; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.h-btn-sm svg,
.h-btn-sm i { width: 14px; height: 14px; font-size: 14px; line-height: 1; }

.db-list { display: flex; flex-direction: column; }
.db-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; border-bottom: 1px solid var(--h-border); transition: background 0.12s;
}
.db-list-item:last-child { border-bottom: none; }
.db-list-item:hover { background: #f9fafb; }

.db-item-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.db-item-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff7a00 0%, #ff7a008f 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.db-item-icon svg,
.db-item-icon i { width: 20px; height: 20px; color: #fff; stroke: #fff; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.db-item-details { min-width: 0; }
.db-item-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-item-meta { font-size: 0.78rem; color: var(--h-text-sub); display: flex; gap: 14px; margin-top: 3px; flex-wrap: wrap; }
.db-item-meta span { display: flex; align-items: center; gap: 4px; }
.db-item-meta svg,
.db-item-meta i { width: 13px; height: 13px; opacity: 0.6; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.db-item-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.db-menu-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--h-btn-border);
    border-radius: 8px;
    color: var(--h-text-sub);
}
.db-menu-toggle:hover {
    border-color: #d1d5db;
    color: var(--h-text-main);
}
.db-menu-icon-import { color: #0ea5e9; }
.db-menu-icon-backup { color: #6366f1; }
.db-menu-icon-password { color: #f59e0b; }
.db-menu-icon-delete { color: var(--h-danger); }

.db-badge {
    font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 12px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.db-badge-mysql {background: rgba(255, 122, 0, 0.05);color: var(--color-primary);}
.db-badge-pgsql { background: #e0e7ff; color: #3730a3; }

.db-hint { font-size: 0.73rem; color: var(--h-text-sub); margin-top: 4px; }

/* File Upload Zone */
.db-upload-zone {
    border: 2px dashed var(--h-btn-border); border-radius: 10px; padding: 28px 20px;
    text-align: center; cursor: pointer; transition: all 0.2s; background: #fafbfc;
}
.db-upload-zone:hover, .db-upload-zone.dragover { border-color: var(--color-primary); background: rgba(255, 122, 0, 0.08); }
.db-upload-zone svg,
.db-upload-zone i { width: 36px; height: 36px; color: var(--h-text-sub); margin-bottom: 10px; font-size: 36px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.db-upload-zone p { margin: 0; font-size: 0.88rem; color: var(--h-text-sub); }
.db-upload-zone .db-upload-accent { color: var(--color-primary); font-weight: 600; }
.db-upload-file-info { margin-top: 10px; font-size: 0.82rem; color: var(--h-text-main); font-weight: 600; display: none; align-items: center; gap: 6px; justify-content: center; }
.db-upload-file-info svg,
.db-upload-file-info i { width: 16px; height: 16px; color: var(--h-success); font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* Progress */
.db-progress { width: 100%; height: 6px; background: #e5e7eb; border-radius: 3px; margin-top: 12px; overflow: hidden; display: none; }
.db-progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-primary), #ffb066); border-radius: 3px; transition: width 0.3s; width: 0%; }

/* Size display */
.db-size-bar { width: 60px; height: 4px; background: #e5e7eb; border-radius: 2px; display: inline-block; vertical-align: middle; margin-left: 4px; }
.db-size-fill { height: 100%; background: var(--color-primary); border-radius: 2px; }

/* ============================================ */
/* File Manager CSS                              */
/* ============================================ */

.fm-panel {
    font-family: var(--font-base, 'Golos Text', system-ui, -apple-system, sans-serif);
    background: var(--h-surface);
    border: 1px solid var(--h-border);
    border-radius: 12px;
    color: var(--h-text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    width: 96vw; margin-left: calc((100% - 96vw) / 2); max-width: 1200px; box-sizing: border-box;
}
@media (min-width: 1250px) { .fm-panel { width: 1200px; margin-left: calc((100% - 1200px) / 2); } }
@media (max-width: 600px) { .fm-panel { width: 100%; margin-left: 0; border-radius: 0; } }

.fm-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; border-bottom: 1px solid var(--h-border);
}
.fm-header-left { display: flex; align-items: center; gap: 10px; }
.fm-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.fm-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.fm-title-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    font-size: 24px;
    line-height: 1;
}

.fm-toolbar-icon {
    border: 1px solid var(--h-btn-border);
    width: 34px;
    height: 34px;
}

/* Breadcrumbs */
.fm-breadcrumbs {
    display: flex; align-items: center; gap: 2px; padding: 10px 18px;
    font-size: 0.82rem; background: #f9fafb; border-bottom: 1px solid var(--h-border);
    flex-wrap: wrap; overflow: hidden;
}
.fm-bulkbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--h-border);
    background: #f8fafc;
    flex-wrap: wrap;
}
.fm-bulkbar.is-active {background: rgba(255, 122, 0, 0.05);}
.fm-bulkbar.has-selection { justify-content: space-between; }
.fm-bulkbar-left, .fm-bulkbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fm-bulkbar-actions { display: none; }
.fm-bulkbar-actions .h-btn {
    width: 32px;
    min-width: 32px;
    height: 22px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid var(--h-btn-border);
}
.fm-bulkbar-actions .h-btn svg,
.fm-bulkbar-actions .h-btn i {
    margin: 0;
}
.fm-bulk-btn-label {
    display: none;
}
.fm-bulk-count { font-size: 0.82rem; font-weight: 600; color: var(--h-text-main); }
.fm-bulk-count.is-hidden { display: none; }
.fm-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--h-text-sub);
}
.fm-check-wrap input,
.fm-th-select input,
.fm-td-select input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.fm-crumb-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 28px;
    padding: 4px 8px;
}
.fm-crumb {
    color: var(--color-primary); font-weight: 500; text-decoration: none; padding: 2px 4px; border-radius: 4px;
    transition: background 0.12s;
}
.fm-crumb:hover { background: rgba(255, 122, 0, 0.08); text-decoration: none; color: var(--color-primary); }
.fm-crumb-active { color: var(--h-text-main); font-weight: 600; cursor: default; }
.fm-crumb-active:hover { background: transparent; }
.fm-crumb-sep { color: #d1d5db; margin: 0 1px; font-weight: 400; }

/* Loader */
.fm-loader-wrap { display: flex; justify-content: center; padding: 48px; }

/* Table */
.fm-table-wrap { overflow-x: auto; }
.fm-table {width: 100%;border-collapse: collapse;}
.fm-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--h-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--h-border);
    background: #fdfdfd;
    white-space: nowrap;
}
.fm-table thead th:first-child { padding-left: 18px; padding-right: 4px; }
.fm-table thead th:last-child { padding-right: 12px; }
.fm-th-select { width: 34px; }
.fm-th-name { width: auto; }
.fm-table thead .fm-th-name { padding-left: 0; }
.fm-table thead .fm-th-name > span,
.fm-table thead .fm-th-name {
    text-indent: 5px;
}
.fm-th-size { width: 110px; }
.fm-th-perms { width: 110px; }
.fm-th-date { width: 150px; }
.fm-th-actions { width: 18%; text-align: right; }
.fm-th-actions, .fm-td-actions { display: none; }

.fm-row { transition: background 0.1s; }
.fm-row:hover { background: #f8f9fb; }
.fm-row td {padding: 10px 12px;font-size: 14px;border-bottom: 1px solid #f1f3f5;vertical-align: middle;}
.fm-row td:first-child { padding-left: 18px; padding-right: 4px; }
.fm-row td:last-child { padding-right: 12px; }

.fm-td-select { width: 34px; }
.fm-th-select { width: 34px; }
.fm-row.is-selected {background: rgba(255, 122, 0, 0.05);}
.fm-td-name { padding-left: 0 !important; }
.fm-name-wrap {display: flex;align-items: center;gap: 8px;margin-left: 5px;}
.fm-entry-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}
.fm-entry-icon {
    border-radius: 6px;
    padding: 2px;
}
.fm-entry-icon:hover {
    background: rgba(255, 122, 0, 0.08);
}
.fm-entry-trigger:focus,
.fm-entry-trigger:focus-visible,
.fm-file-link:focus,
.fm-file-link:focus-visible,
.fm-file-name:focus,
.fm-file-name:focus-visible {
    outline: none;
    box-shadow: none;
}
.fm-icon { width: 20px; height: 20px; flex-shrink: 0; }
.fm-icon-folder {color: #f59e0b;font-size: 20px;}
.fm-icon-file { color: #6b7280; }
.fm-icon-code { color: #3b82f6; }
.fm-icon-image { color: #10b981; }
.fm-icon-archive { color: #8b5cf6; }
.fm-file-link {color: var(--h-text-main);text-decoration: none;font-weight: 500;word-break: break-all;}
.fm-file-link:hover { color: var(--color-primary); text-decoration: underline; }
.fm-file-name { color: var(--h-text-main); font-weight: 500; word-break: break-all; text-decoration: none; }
.fm-file-name:hover { color: var(--color-primary); text-decoration: underline; }

.fm-td-size { color: var(--h-text-sub); font-size: 0.82rem; white-space: nowrap; }
.fm-td-perms { }
.fm-perms-code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.78rem; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; color: var(--h-text-main);
}
.fm-td-date {color: var(--h-text-sub);font-size: 14px;white-space: nowrap;}
.fm-td-actions { text-align: right; }

.fm-action-btns { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.fm-act-btn {
    background: transparent; border: none; color: var(--h-text-sub); cursor: pointer;
    padding: 5px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
    transition: all 0.12s;
}
.fm-act-btn:hover { background: rgba(255, 122, 0, 0.08); color: var(--color-primary); }
.fm-act-btn svg { transition: transform 0.12s; }
.fm-act-btn:hover svg { transform: scale(1.15); }
.fm-act-btn-danger:hover { background: #fef2f2; color: #dc2626; }
.fm-context-menu {
    position: fixed;
    z-index: 10020;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 4px;
}
.fm-context-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 7px 8px;
    color: var(--h-text-main);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    box-shadow: none;
}
.fm-context-item:hover {
    background: rgba(255, 122, 0, 0.08);
    color: var(--color-primary);
}
.fm-context-item:focus,
.fm-context-item:focus-visible {
    outline: none;
    box-shadow: none;
    background: #f8fafc;
}
.fm-context-item.is-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
.fm-context-item svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

/* Editor */
.fm-editor-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; background: #1e293b; color: #e2e8f0;
}
.fm-editor-filename {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.88rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%;
}
.fm-editor-textarea {
    width: 100%; height: 500px; max-height: 70vh; border: none; outline: none; resize: vertical;
    padding: 16px 20px; box-sizing: border-box;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.88rem; line-height: 1.6; tab-size: 4; color: #1e293b; background: #f8fafc;
}
.fm-editor-textarea:focus { background: #fff; }

/* Chmod grid */
.fm-chmod-grid {
    display: grid; grid-template-columns: auto 1fr 1fr 1fr;
    gap: 6px 12px; align-items: center; font-size: 0.82rem;
}
.fm-chmod-label { font-weight: 600; color: var(--h-text-sub); font-size: 0.78rem; }
.fm-chmod-grid input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer;
}
.fm-chmod-presets { display: flex; gap: 6px; flex-wrap: wrap; }

/* Empty state */
.fm-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 56px 24px; color: var(--h-text-sub); text-align: center;
}
.fm-empty p { margin: 12px 0 0; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 768px) {
    .fm-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .fm-header-actions { width: 100%; }
    .fm-bulkbar { padding: 8px 14px; }
    .fm-th-perms, .fm-td-perms, .fm-th-date, .fm-td-date { display: none; }
    .fm-th-actions { width: auto; }
    .fm-action-btns { flex-wrap: wrap; }
    .fm-editor-textarea { height: 350px; }
    .fm-editor-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .fm-editor-filename { max-width: 100%; }
}

@media (max-width: 900px) {
    .h-sidebar-layout,
    .h-sidebar-layout.alignfull {
        left: auto;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .h-sidebar {
        position: static;
    }

    .h-sidebar-content {
        padding-left: 0;
    }
}

/* FTP panel */
.ftp-layout {
    width: min(1320px, 98vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ftp-sidebar {
    position: sticky;
    top: 32px;
}

.ftp-sidebar-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

.ftp-sidebar-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--h-text-sub);
    padding: 0 10px 10px;
}

.ftp-sidebar-nav {
    display: grid;
    gap: 6px;
}

.ftp-sidebar-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--h-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ftp-sidebar-link:hover {
    background: #f8fafc;
    color: var(--color-primary);
}

.ftp-sidebar-link.is-active {
    background: rgba(90, 72, 212, 0.08);
    color: var(--color-primary);
}

.ftp-content {
    min-width: 0;
    padding-left: 10px;
}

.ftp-panel {
    font-family: var(--font-base, 'Golos Text', system-ui, -apple-system, sans-serif);
    background: var(--h-surface);
    border: 1px solid var(--h-border);
    border-radius: 12px;
    color: var(--h-text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    width: 100%;
    margin-left: 0;
    max-width: none;
    box-sizing: border-box;
}

@media (min-width: 1250px) {
    .ftp-panel {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .ftp-panel {
        width: 100%;
        margin-left: 0;
        border-radius: 0;
    }
}

.ftp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--h-border);
}

.ftp-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ftp-title-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    font-size: 24px;
}

.ftp-header-actions {
    display: flex;
    gap: 8px;
}

.ftp-list {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.ftp-domain-card {
    border: 1px solid var(--h-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ftp-domain-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
}

.ftp-domain-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ftp-domain-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--h-text-main);
    word-break: break-word;
}

.ftp-domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    color: var(--h-text-sub);
    font-size: 0.83rem;
}

.ftp-domain-meta span,
.ftp-account-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ftp-domain-meta svg,
.ftp-account-name svg,
.ftp-account-meta svg,
.ftp-empty-accounts svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ftp-domain-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.05);
    color: var(--color-primary);
    font-weight: 700;
}

.ftp-account-list {
    padding: 14px 20px 18px;
    display: grid;
    gap: 12px;
}

.ftp-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    background: #fbfcfe;
}

.ftp-account-main {
    min-width: 0;
}

.ftp-account-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--h-text-main);
    word-break: break-word;
}

.ftp-account-meta {
    margin-top: 6px;
    color: var(--h-text-sub);
    font-size: 0.82rem;
}

.ftp-account-meta span {
    word-break: break-all;
}

.ftp-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ftp-empty-accounts {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px 2px;
    color: var(--h-text-sub);
    font-size: 0.88rem;
}

.ftp-input-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ftp-input-prefix span {
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--h-text-sub);
}

.ftp-input-prefix .hestia-input {
    margin-top: 0;
}

.ftp-modal-meta {
    font-size: 0.88rem;
    color: var(--h-text-sub);
    margin: 0 0 16px;
}

@media (max-width: 900px) {
    .ftp-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ftp-sidebar {
        position: static;
    }

    .ftp-content {
        padding-left: 0;
    }

    .ftp-domain-head,
    .ftp-account-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ftp-account-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .ftp-list {
        padding: 14px;
    }

    .ftp-header {
        padding: 16px;
    }

    .ftp-domain-head,
    .ftp-account-list {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ftp-account-actions .h-btn {
        width: 100%;
    }
}

/* Mail panel */
.mail-panel {
    font-family: var(--font-base, 'Golos Text', system-ui, -apple-system, sans-serif);
    background: var(--h-surface);
    border: 1px solid var(--h-border);
    border-radius: 12px;
    color: var(--h-text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    width: 100%;
    margin-left: 0;
    max-width: none;
    box-sizing: border-box;
}

.mail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--h-border);
}

.mail-header-copy {
    min-width: 0;
}

.mail-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-title-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    font-size: 24px;
}

.mail-subtitle {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--h-text-sub);
}

.mail-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mail-list {
    display: flex;
    flex-direction: column;
}

.mail-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--h-border);
    transition: background 0.12s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mail-list-item:last-child {
    border-bottom: none;
}

.mail-list-item:hover {
    background: #f9fafb;
}

.mail-list-item.is-removing {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.mail-panel .h-btn.is-loading {
    cursor: wait;
    opacity: 0.82;
    pointer-events: none;
}

.mail-panel .h-btn.is-retry {
    color: var(--color-primary);
    border-color: rgba(255, 122, 0, 0.28);
}

.mail-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.mail-item-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff7a00 0%, rgba(255, 122, 0, 0.56) 100%);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.mail-item-details {
    min-width: 0;
    flex: 1 1 260px;
}

.mail-item-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mail-item-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--h-text-main);
    word-break: normal;
    overflow-wrap: anywhere;
}

.mail-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    color: var(--h-text-sub);
    font-size: 0.83rem;
}

.mail-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mail-item-meta i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mail-item-flags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mail-flag,
.mail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mail-flag {
    color: var(--h-text-sub);
    background: #f6f7f8;
}

.mail-badge {
    color: #475569;
    background: #f1f5f9;
}

.mail-badge.is-success {
    color: #166534;
    background: #dcfce7;
}

.mail-badge.is-warning {
    color: #9a3412;
    background: #ffedd5;
}

.mail-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 1 auto;
    align-items: center;
}

.mail-row-menu .h-dropdown {
    min-width: 240px;
}

.mail-menu-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid var(--h-btn-border);
    border-radius: 8px;
    color: var(--color-primary);
    padding: 0;
}

.mail-menu-toggle:hover {
    color: var(--color-primary);
    border-color: #9ca3af;
    background: #fff;
}

.mail-modal-meta {
    font-size: 0.88rem;
    color: var(--h-text-sub);
    margin: 0 0 16px;
}

.mail-input-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-input-prefix .hestia-input {
    margin-top: 0;
}

.mail-input-prefix span {
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--h-text-sub);
}

.mail-field-hint {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--h-text-sub);
}

.mail-textarea {
    min-height: 160px;
    resize: vertical;
}

.mail-connection-card {
    margin: 18px 24px 0;
    border: 1px solid var(--h-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    overflow: hidden;
}

.mail-connection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.mail-connection-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--h-text-main);
}

.mail-connection-host {
    font-size: 0.82rem;
    color: var(--h-text-sub);
    font-weight: 600;
    word-break: break-word;
}

.mail-connection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #eef2f7;
}

.mail-connection-main {
    min-width: 0;
    flex: 1;
}

.mail-connection-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--h-text-main);
}

.mail-connection-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--h-text-sub);
}

.mail-connection-values span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mail-connection-link {
    word-break: break-all;
}

.mail-connection-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mail-manage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mail-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf3;
}

.mail-manage-value {
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--h-text-main);
    word-break: break-word;
}

.mail-manage-empty {
    font-size: 0.84rem;
    color: var(--h-text-sub);
    padding: 4px 2px;
}

.mail-inline-empty {
    margin-top: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px 24px;
    color: var(--h-text-sub);
    font-size: 0.9rem;
}

.mail-dns-wrap {
    padding: 18px 24px 24px;
    overflow-x: auto;
}

.mail-dns-card {
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.mail-dns-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.mail-dns-table th,
.mail-dns-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.mail-dns-table thead th {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5f6b7a;
    text-transform: none;
    background: #fff;
}

.mail-dns-col-type,
.mail-dns-col-priority,
.mail-dns-col-ttl {
    font-weight: 600;
    color: #596579;
    white-space: nowrap;
}

.mail-dns-input {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #d7dce5;
    border-radius: 6px;
    background: #fff;
    line-height: 1.25;
    color: #2a3445;
    word-break: break-word;
}

.mail-dns-value-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-dns-col-value .mail-dns-input {
    flex: 1;
}

.mail-dns-copy-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d7dce5;
    background: #fff;
    border-radius: 6px;
    color: #ff8a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color .2s ease, border-color .2s ease;
}

.mail-dns-copy-btn:hover {
    color: #ef6f00;
    border-color: #ffbe73;
}

.mail-dns-table tbody tr:last-child td {
    border-bottom: none;
}

.mail-dns-table .mail-dns-value {
    word-break: break-word;
}

@media (max-width: 900px) {
    .mail-header,
    .mail-list-item {
        flex-direction: column;
        align-items: stretch;
    }

    .mail-header-actions,
    .mail-item-actions,
    .mail-connection-actions {
        justify-content: flex-start;
    }

    .mail-connection-row,
    .mail-connection-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .mail-panel {
        width: 100%;
        margin-left: 0;
        border-radius: 0;
    }

    .mail-header {
        padding: 16px;
    }

    .mail-list-item {
        padding: 14px 16px;
    }

    .mail-item-actions .h-btn {
        width: 100%;
    }

    .mail-connection-card {
        margin: 16px 16px 0;
    }

    .mail-connection-actions .h-btn {
        width: 100%;
    }
}
