:root {
    --navy: #0b1220;
    --navy-2: #111c30;
    --ink: #111827;
    --ink-2: #334155;
    --muted: #6b7a90;
    --line: #e4eaf2;
    --line-strong: #d3dce8;
    --canvas: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eaf1ff;
    --green: #059669;
    --green-soft: #e8fff6;
    --amber: #d97706;
    --amber-soft: #fff7e6;
    --violet: #7c3aed;
    --violet-soft: #f2ebff;
    --red: #dc2626;
    --red-soft: #fff0f0;
    --radius: 15px;
    --shadow: 0 14px 40px rgba(19, 34, 59, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }

.app-shell { min-height: 100vh; }
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    width: 264px;
    flex-direction: column;
    color: #dbe6f7;
    background:
        radial-gradient(circle at 20% 0, rgba(51, 102, 204, .16), transparent 26%),
        linear-gradient(180deg, #101b2d 0%, #0b1422 100%);
    border-right: 1px solid rgba(255,255,255,.05);
}
.app-main { min-height: 100vh; margin-left: 264px; }
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 78px;
    padding: 17px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(37,99,235,.33);
}
.sidebar-brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: -.01em; }
.sidebar-brand small, .sidebar-user small { display: block; margin-top: 1px; color: #8191aa; font-size: 10px; }
.sidebar-close { display: none !important; margin-left: auto; }
.sidebar-nav { display: grid; gap: 3px; padding: 17px 13px 12px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 9px 12px;
    color: #9fafc5;
    border-radius: 10px;
    transition: .18s ease;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(37,99,235,.26), rgba(37,99,235,.08)); box-shadow: inset 3px 0 #3b82f6; }
.sidebar-nav a.active .icon { color: #60a5fa; }
.sidebar-section { min-height: 0; padding: 13px; border-top: 1px solid rgba(255,255,255,.055); overflow: hidden; }
.sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 9px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}
.sidebar-section-title a { display: grid; width: 26px; height: 26px; place-items: center; color: #8fa0b8; border-radius: 7px; }
.sidebar-section-title a:hover { color: #fff; background: rgba(255,255,255,.08); }
.account-tabs { display: grid; max-height: calc(100vh - 410px); gap: 4px; overflow: auto; scrollbar-width: thin; }
.account-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 11px;
}
.account-tab:hover, .account-tab.active { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.05); }
.account-tab.active { box-shadow: inset 2px 0 #3b82f6; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { display: block; overflow: hidden; color: #d7e2f2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { display: block; overflow: hidden; margin-top: 1px; color: #718198; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-dot {
    position: relative;
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--account-color, #2563eb);
    border-radius: 9px;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    overflow: hidden;
}
.account-dot.large { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
.account-dot.xlarge { width: 54px; height: 54px; border-radius: 16px; font-size: 16px; }
.account-dot.has-logo {
    overflow: hidden;
    padding: 3px;
    color: transparent;
    background: #fff;
    border: 1px solid #dbe3ed;
    box-shadow: 0 4px 13px rgba(15,23,42,.08);
}
.account-dot.has-logo img,
.account-dot > img.account-logo-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: inherit;
}
.count-badge {
    min-width: 20px;
    padding: 2px 6px;
    color: #dbeafe;
    background: rgba(37,99,235,.35);
    border-radius: 99px;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}
.account-empty { padding: 12px; color: #93a4bc; border: 1px dashed rgba(255,255,255,.14); border-radius: 10px; font-size: 11px; text-align: center; }
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 15px 17px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-user > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-user strong { display: block; overflow: hidden; color: #e5edf8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: #dbeafe;
    background: #24334c;
    border: 1px solid #354967;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}
.icon-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}
.icon-button:hover { background: rgba(255,255,255,.08); }
.mobile-header { display: none; }
.app-overlay { display: none; }

.page { width: min(1450px, 100%); margin: 0 auto; padding: 34px 38px 48px; }
.narrow-page { max-width: 1250px; }
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}
.page-header h1 { margin: 4px 0 3px; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.18; letter-spacing: -.035em; }
.page-header p { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.header-actions { display: flex; gap: 9px; }
.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: .17s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(15,23,42,.08); }
.button-primary { color: #fff; background: linear-gradient(135deg, #2f6fec, #2455d7); border-color: #2455d7; box-shadow: 0 7px 18px rgba(37,99,235,.22); }
.button-primary:hover { background: linear-gradient(135deg, #3678f5, #1d4ed8); }
.button-soft { color: #1e40af; background: var(--blue-soft); border-color: #d7e5ff; }
.button-ghost { background: transparent; }
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-wide { width: 100%; }
.back-link { display: inline-block; margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 750; }

.flash-stack { position: fixed; top: 18px; right: 22px; z-index: 100; display: grid; width: min(440px, calc(100vw - 30px)); gap: 9px; }
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: #17304c;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 11px;
    box-shadow: var(--shadow);
    font-size: 12px;
}
.flash-success { border-left-color: var(--green); }
.flash-warning { border-left-color: var(--amber); }
.flash-error { color: #991b1b; background: #fff9f9; border-left-color: var(--red); }
.flash button { color: inherit; background: none; border: 0; font-size: 20px; cursor: pointer; }
.static-flash { position: static; width: auto; margin-bottom: 16px; }

body.modal-open { overflow: hidden; }
.app-modal-layer[hidden] { display: none; }
.app-modal-layer { position: fixed; inset: 0; z-index: 300; display: grid; padding: 24px; place-items: center; }
.app-modal-backdrop { position: absolute; inset: 0; background: rgba(7,15,28,.62); backdrop-filter: blur(5px); animation: modal-fade-in .18s ease-out; }
.app-modal {
    position: relative;
    z-index: 1;
    width: min(470px, 100%);
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(2,8,23,.3);
    animation: modal-enter .22s cubic-bezier(.2,.8,.2,1);
}
.app-modal::before { position: absolute; inset: 0 0 auto; height: 5px; content: ""; background: var(--blue); }
.app-modal-close { position: absolute; top: 15px; right: 16px; display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: #7c8999; background: #f4f7fa; border: 0; border-radius: 9px; font-size: 20px; cursor: pointer; }
.app-modal-close:hover { color: var(--ink); background: #e9eef5; }
.app-modal-icon { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 14px; font-size: 23px; font-weight: 850; }
.app-modal-eyebrow { display: block; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.app-modal h2 { margin: 7px 42px 8px 0; color: var(--ink); font-size: 22px; line-height: 1.22; letter-spacing: -.025em; }
.app-modal p { margin: 0; color: #65758a; font-size: 13px; line-height: 1.65; }
.app-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.app-modal-actions .button { min-width: 112px; }
.app-modal.modal-success::before { background: var(--green); }
.app-modal.modal-success .app-modal-icon { color: var(--green); background: var(--green-soft); }
.app-modal.modal-success .app-modal-eyebrow { color: var(--green); }
.app-modal.modal-warning::before { background: var(--amber); }
.app-modal.modal-warning .app-modal-icon { color: var(--amber); background: var(--amber-soft); }
.app-modal.modal-warning .app-modal-eyebrow { color: var(--amber); }
.app-modal.modal-error::before,
.app-modal.modal-danger::before { background: var(--red); }
.app-modal.modal-error .app-modal-icon,
.app-modal.modal-danger .app-modal-icon { color: var(--red); background: var(--red-soft); }
.app-modal.modal-error .app-modal-eyebrow,
.app-modal.modal-danger .app-modal-eyebrow { color: var(--red); }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(24,39,65,.035);
}
.stat-icon, .section-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 12px;
}
.stat-icon.green, .section-icon.green { color: var(--green); background: var(--green-soft); }
.stat-icon.amber, .section-icon.amber { color: var(--amber); background: var(--amber-soft); }
.stat-icon.violet, .section-icon.violet { color: var(--violet); background: var(--violet-soft); }
.section-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-card > div { min-width: 0; }
.stat-card small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-card strong { display: block; margin: 1px 0 -2px; color: #0f172a; font-size: 25px; line-height: 1.25; letter-spacing: -.04em; }
.stat-card span:last-child { color: #94a3b8; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .8fr); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(24,39,65,.035); }
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 69px;
    padding: 15px 19px;
    border-bottom: 1px solid var(--line);
}
.panel-header h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.panel-header p { margin: 1px 0 0; color: var(--muted); font-size: 10px; }
.panel-header > a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 10px; font-weight: 750; }
.recent-list { display: grid; }
.recent-message {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #eef2f6;
}
.recent-message:last-child { border-bottom: 0; }
.recent-message:hover { background: #f9fbff; }
.recent-message.unread { background: #fbfdff; box-shadow: inset 3px 0 var(--blue); }
.sender-avatar {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--account-color, #315fba);
    background: color-mix(in srgb, var(--account-color, #315fba) 12%, white);
    border: 1px solid color-mix(in srgb, var(--account-color, #315fba) 22%, white);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 850;
}
.sender-avatar.large { width: 44px; height: 44px; font-size: 12px; }
.recent-copy { display: block; min-width: 0; flex: 1; }
.recent-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.recent-copy > span strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy > span small { flex: 0 0 auto; color: #94a3b8; font-size: 9px; }
.recent-copy b { display: block; overflow: hidden; margin-top: 2px; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy em { display: block; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.recent-message.unread .recent-copy b { font-weight: 800; }
.row-icon { color: #9aa8ba; }
.account-summary-list { display: grid; }
.account-summary-list a { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid #eef2f6; }
.account-summary-list a:last-child { border-bottom: 0; }
.account-summary-list a:hover { background: #f9fbff; }
.account-summary-list a > span:nth-child(2) { min-width: 0; flex: 1; }
.account-summary-list strong, .account-summary-list small, .account-summary-list em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-list strong { font-size: 11px; }
.account-summary-list small { color: var(--muted); font-size: 9px; }
.account-summary-list em { margin-top: 4px; color: #9aa6b7; font-size: 8px; font-style: normal; }
.account-summary-list b { min-width: 23px; padding: 3px 7px; color: #1d4ed8; background: var(--blue-soft); border-radius: 99px; font-size: 9px; text-align: center; }
.mini-empty { padding: 50px 20px; color: var(--muted); font-size: 11px; text-align: center; }

.empty-state {
    padding: 70px 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.empty-icon { display: inline-grid; width: 66px; height: 66px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 20px; }
.empty-state h1 { margin: 13px 0 0; font-size: 40px; }
.empty-state h2 { margin: 16px 0 5px; font-size: 18px; }
.empty-state p { width: min(500px, 100%); margin: 0 auto 18px; color: var(--muted); font-size: 11px; }
.hero-empty { padding-block: 90px; }
.compact-empty { padding: 50px 20px; border: 0; }

.account-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.account-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(24,39,65,.035); }
.account-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.status-pill { padding: 4px 9px; color: #047857; background: var(--green-soft); border: 1px solid #c5f4df; border-radius: 99px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.status-error { color: #b45309; background: var(--amber-soft); border-color: #fde5ad; }
.account-card h2 { margin: 15px 0 0; font-size: 15px; }
.account-card > p { margin: 2px 0 17px; color: var(--muted); font-size: 10px; }
.account-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); }
.account-card dl div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.account-card dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.account-card dd { margin: 3px 0 0; font-size: 11px; font-weight: 750; }
.account-error { margin-top: 12px; padding: 9px 10px; color: #92400e; background: #fffbeb; border-radius: 8px; font-size: 9px; }
.account-card-actions { display: flex; gap: 8px; margin-top: 15px; }
.account-card-actions .button { flex: 1; }

.settings-form { display: grid; gap: 18px; }
.form-tabs { display: flex; padding: 5px; background: #e9eef5; border-radius: 12px; }
.form-tabs button { min-height: 38px; flex: 1; padding: 8px 15px; color: #64748b; background: transparent; border: 0; border-radius: 9px; font-size: 11px; font-weight: 750; cursor: pointer; }
.form-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.form-panel { display: none; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-panel.active { display: block; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading.compact .section-icon { width: 36px; height: 36px; border-radius: 10px; }
.section-heading h2 { margin: 0; font-size: 15px; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid.one-column { grid-template-columns: 1fr; }
.field-full { grid-column: 1/-1; }
.stack-form { display: grid; gap: 15px; }
.form-grid label > span, .stack-form label > span, .server-card label > span {
    display: block;
    margin-bottom: 6px;
    color: #46566e;
    font-size: 10px;
    font-weight: 750;
}
label small { color: #94a3b8; font-weight: 500; }
input, textarea, select {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ccd6e2;
    border-radius: 9px;
    outline: 0;
    transition: .15s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #6595ef; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
input[type=file] { padding: 7px; color: var(--muted); font-size: 10px; }
.logo-upload-field { display: flex; align-items: center; gap: 10px; }
.logo-upload-field img,
.logo-upload-field img.account-logo-preview { display: block; width: 64px !important; height: 50px !important; max-width: 64px !important; max-height: 50px !important; flex: 0 0 auto; padding: 4px; object-fit: contain !important; background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.switch-field { display: flex !important; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.switch-field > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; background: #cbd5e1; border-radius: 99px; transition: .2s; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(15,23,42,.2); transition: .2s; }
.switch-field > input:checked + .switch { background: var(--blue); }
.switch-field > input:checked + .switch::after { transform: translateX(16px); }
.switch-field > span:last-child strong, .switch-field > span:last-child small { display: block; }
.switch-field > span:last-child strong { font-size: 10px; }
.switch-field > span:last-child small { color: var(--muted); font-size: 9px; }
.hostinger-note { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 16px; color: #1e3a8a; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 11px; }
.hostinger-note > span { color: var(--blue); }
.hostinger-note strong { display: block; font-size: 11px; }
.hostinger-note p { margin: 2px 0 0; font-size: 9px; }
.server-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.server-card { padding: 19px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 13px; }
.split-fields { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.check-line { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.check-line input { width: 16px; min-height: 16px; accent-color: var(--blue); }
.check-line span { margin: 0 !important; }
.credentials-card { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.credentials-card > p { display: flex; align-items: center; gap: 5px; margin: 11px 0 0; color: var(--muted); font-size: 9px; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-field button { position: absolute; inset: 3px 4px 3px auto; display: grid; width: 34px; place-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code-editor { min-height: 320px; color: #25364f; background: #f8fafc; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.field-help { display: block; margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.field-help code { padding: 2px 4px; color: #334155; background: #edf1f6; border-radius: 4px; }
.template-preview { margin: 0 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.template-preview-header { display: flex; justify-content: space-between; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.template-preview-header strong { font-size: 10px; }
.template-preview-header span { color: var(--muted); font-size: 9px; }
.template-preview iframe { display: block; width: 100%; height: 360px; background: #fff; border: 0; }
.sticky-form-actions { position: sticky; bottom: 10px; z-index: 5; display: flex; justify-content: flex-end; gap: 9px; padding: 12px 14px; background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 19px 22px; background: #fffafa; border: 1px solid #fecaca; border-radius: var(--radius); }
.danger-zone h2 { margin: 0; color: #991b1b; font-size: 13px; }
.danger-zone p { margin: 2px 0 0; color: #a86464; font-size: 9px; }

.mail-workspace { display: grid; min-height: 100vh; grid-template-columns: 214px minmax(0, 1fr); background: #fff; }
.folder-pane { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 23px 13px 15px; background: #f8fafc; border-right: 1px solid var(--line); }
.mail-account-heading { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 0 7px 17px; }
.mail-account-heading > span:last-child { min-width: 0; }
.mail-account-heading strong, .mail-account-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-account-heading strong { font-size: 11px; }
.mail-account-heading small { color: var(--muted); font-size: 8px; }
.compose-button { width: 100%; margin-bottom: 17px; }
.folder-nav { display: grid; gap: 3px; overflow-y: auto; }
.folder-nav a { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 8px 10px; color: #5b6c82; border-radius: 9px; font-size: 10px; }
.folder-nav a:hover { background: #eef3f8; }
.folder-nav a.active { color: #164ab6; background: #e8f0ff; font-weight: 750; }
.folder-nav a span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-nav a b { min-width: 21px; padding: 2px 6px; color: #1d4ed8; background: #dbeafe; border-radius: 99px; font-size: 8px; text-align: center; }
.folder-footer { margin-top: auto; padding: 13px 6px 0; border-top: 1px solid var(--line); }
.folder-footer button { display: flex; width: 100%; align-items: center; gap: 7px; padding: 4px 0; color: #52647b; background: none; border: 0; font-size: 9px; font-weight: 700; cursor: pointer; }
.folder-footer small { display: block; margin-top: 3px; color: #9aa7b8; font-size: 7px; }
.folder-footer .auto-sync-status { margin-top: 7px; color: #39745f; line-height: 1.35; }
.message-pane { min-width: 0; background: #fff; }
.message-list-header { display: flex; min-height: 107px; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 23px 25px 17px; background: #fff; border-bottom: 1px solid var(--line); }
.message-list-header h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; }
.message-list-header p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.mail-search { display: flex; width: min(360px, 45%); align-items: center; gap: 7px; padding: 0 5px 0 11px; background: #f6f8fb; border: 1px solid #e1e7ef; border-radius: 10px; }
.mail-search.standalone { width: 340px; background: #fff; }
.mail-search input { min-width: 0; min-height: 36px; flex: 1; padding: 7px 3px; background: transparent; border: 0; box-shadow: none; font-size: 10px; }
.mail-search button { padding: 6px 9px; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; font-weight: 750; cursor: pointer; }
.message-list { display: grid; }
.message-row-wrap { position: relative; border-bottom: 1px solid #edf1f5; }
.message-row {
    display: grid;
    min-width: 0;
    min-height: 66px;
    grid-template-columns: 38px minmax(130px, .85fr) minmax(260px, 2.2fr) 83px;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    padding-right: 58px;
    border-bottom: 0;
    transition: .13s ease;
}
.message-row:hover { background: #f8fbff; box-shadow: inset 3px 0 #a6c6ff; }
.message-row.unread { background: #fbfdff; box-shadow: inset 3px 0 var(--blue); }
.message-sender, .message-summary { min-width: 0; }
.message-sender strong, .message-sender small, .message-summary strong, .message-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-sender strong { font-size: 10px; }
.message-sender small { color: #8a98aa; font-size: 8px; }
.message-summary strong { color: #334155; font-size: 10px; font-weight: 600; }
.message-summary small { margin-top: 2px; color: #8b98a8; font-size: 9px; }
.message-row.unread .message-sender strong, .message-row.unread .message-summary strong { color: #0f172a; font-weight: 800; }
.message-meta { display: grid; align-self: stretch; align-content: space-between; justify-items: end; padding-block: 4px; color: #96a4b5; font-size: 8px; }
.message-meta > span { display: flex; gap: 5px; }
.message-row-wrap .message-meta { padding-right: 23px; }
.message-quick-delete { position: absolute; top: 50%; right: 13px; z-index: 2; transform: translateY(-50%); }
.message-quick-delete button {
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    color: #94a3b8;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    opacity: 0;
    cursor: pointer;
    transition: .15s ease;
}
.message-row-wrap:hover .message-quick-delete button,
.message-quick-delete button:focus { color: var(--red); border-color: #fecaca; opacity: 1; box-shadow: 0 5px 14px rgba(15,23,42,.08); }
.draft-row { text-decoration: none; }
.draft-row .message-meta { grid-template-rows: auto auto; }
.draft-row .message-meta form { justify-self: end; }
.draft-delete { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; color: #94a3b8; background: transparent; border: 0; cursor: pointer; }
.draft-delete:hover { color: var(--red); }
.starred { color: #f59e0b; fill: #f59e0b; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 15px 21px; color: var(--muted); font-size: 9px; }
.pagination div { display: flex; gap: 7px; }
.pagination a { padding: 6px 10px; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-weight: 750; }
.mail-empty { margin: 30px; border: 0; background: #f9fbfd; }

.message-reader { min-height: 100vh; padding: 0 25px 45px; }
.reader-toolbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; margin-inline: -25px; padding: 10px 25px; background: rgba(244,247,251,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(13px); }
.back-button { color: #5a6b82; font-size: 10px; font-weight: 750; }
.reader-actions { display: flex; align-items: center; gap: 6px; }
.reader-actions form { display: contents; }
.toolbar-button { display: inline-flex; min-height: 35px; align-items: center; gap: 6px; padding: 7px 10px; color: #53647b; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; font-weight: 700; cursor: pointer; }
.toolbar-button:hover { color: var(--blue); border-color: #bfd2f7; }
.toolbar-button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.toolbar-button.danger:hover { color: var(--red); border-color: #f4baba; }
.reader-card { width: min(980px, 100%); margin: 23px auto 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 37px rgba(24,39,65,.055); }
.reader-subject { padding: 25px 27px 17px; }
.reader-subject h1 { margin: 10px 0 0; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.28; letter-spacing: -.028em; }
.account-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: #64748b; background: #f4f6f9; border-radius: 7px; font-size: 8px; font-weight: 700; }
.account-chip i { width: 7px; height: 7px; border-radius: 50%; }
.sender-block { display: flex; align-items: center; gap: 11px; padding: 15px 27px; border-block: 1px solid var(--line); }
.sender-details { min-width: 0; flex: 1; }
.sender-details strong, .sender-details span { display: inline; font-size: 10px; }
.sender-details span { margin-left: 4px; color: var(--muted); }
.sender-details button { display: block; margin-top: 2px; padding: 0; color: var(--blue); background: none; border: 0; font-size: 8px; cursor: pointer; }
.sender-block time { color: var(--muted); font-size: 9px; }
.address-details { padding: 11px 27px; color: #65758a; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 8px; word-break: break-all; }
.address-details div + div { margin-top: 3px; }
.attachment-strip { padding: 13px 27px; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.attachment-strip > div:first-child { display: flex; align-items: center; gap: 8px; }
.attachment-strip > div:first-child strong { display: flex; align-items: center; gap: 5px; font-size: 9px; }
.attachment-strip > div:first-child span { color: var(--muted); font-size: 8px; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.attachment-list a { display: flex; align-items: center; gap: 7px; min-width: 170px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.attachment-list a:hover { color: var(--blue); border-color: #bfd2f7; }
.attachment-list span { min-width: 0; }
.attachment-list strong, .attachment-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-list strong { max-width: 190px; font-size: 8px; }
.attachment-list small { color: var(--muted); font-size: 7px; }
.email-frame-wrap { padding: 10px; }
.email-frame { display: block; width: 100%; min-height: 500px; background: #fff; border: 0; }

.compose-page { min-height: 100vh; padding: 27px 34px 50px; }
.compose-page > form { width: min(1230px, 100%); margin: auto; }
.compose-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.compose-header h1 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.compose-header > div:last-child { display: flex; gap: 8px; }
.compose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; }
.compose-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.compose-from, .recipient-row, .subject-row { display: flex; min-height: 53px; align-items: center; gap: 12px; padding: 8px 17px; border-bottom: 1px solid var(--line); }
.compose-from > span:first-child, .recipient-row label, .subject-row label { width: 55px; flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 750; }
.sender-account { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; }
.sender-account strong, .sender-account small { display: block; }
.sender-account strong { font-size: 10px; }
.sender-account small { color: var(--muted); font-size: 8px; }
.compose-from > a { color: var(--blue); font-size: 8px; font-weight: 700; }
.recipient-row input, .subject-row input { min-height: 37px; flex: 1; padding-inline: 0; border: 0; box-shadow: none; }
.recipient-row > button { color: var(--blue); background: none; border: 0; font-size: 8px; cursor: pointer; }
.recipient-extras { display: none; }
.recipient-extras.visible { display: block; }
.editor-toolbar { display: flex; min-height: 43px; align-items: center; gap: 3px; padding: 5px 13px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.editor-toolbar button { min-width: 29px; height: 29px; padding: 0 7px; color: #526177; background: transparent; border: 0; border-radius: 6px; font-size: 9px; cursor: pointer; }
.editor-toolbar button:hover { color: var(--blue); background: #e9f0fc; }
.editor-toolbar > span { width: 1px; height: 19px; margin: 0 4px; background: var(--line); }
.compose-editor { min-height: 370px; padding: 23px; outline: 0; font: 14px/1.65 Arial, sans-serif; }
.compose-editor:empty::before { color: #a2adba; content: "Escreva sua mensagem..."; }
.compose-attachments { min-height: 54px; padding: 11px 17px; background: #fbfcfe; border-top: 1px solid var(--line); }
.attachment-picker { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: #53647b; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; font-weight: 700; cursor: pointer; }
.attachment-picker input { display: none; }
.compose-attachments > small { margin-left: 8px; color: var(--muted); font-size: 8px; }
.selected-files { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 8px; vertical-align: middle; }
.selected-files span { padding: 4px 7px; color: #475569; background: #edf2f7; border-radius: 6px; font-size: 8px; }
.compose-aside { display: grid; align-content: start; gap: 12px; }
.compose-tip, .signature-summary { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.compose-tip { display: flex; gap: 10px; color: #2450a0; background: #f3f7ff; border-color: #d9e5fb; }
.compose-tip > span { flex: 0 0 auto; }
.compose-tip strong { display: block; font-size: 10px; }
.compose-tip p, .signature-summary p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.signature-summary h3 { margin: 7px 0 0; font-size: 13px; }
.signature-summary a { display: inline-flex; align-items: center; gap: 3px; margin-top: 13px; color: var(--blue); font-size: 9px; font-weight: 750; }

.settings-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-panel { padding: 23px; }
.settings-panel .button { justify-self: start; }
.security-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.security-overview > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 3px 10px; padding: 17px; background: #fff; }
.security-overview > div > span { display: grid; width: 34px; height: 34px; grid-row: 1/3; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 9px; }
.security-overview strong { font-size: 10px; }
.security-overview small { color: var(--muted); font-size: 8px; }

.contacts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; }
.contacts-table-wrap { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 15px; color: #7b899b; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; }
.data-table td { padding: 11px 15px; border-bottom: 1px solid #edf1f5; color: #526177; font-size: 9px; }
.contact-cell { display: flex; align-items: center; gap: 9px; }
.contact-cell strong, .contact-cell small { display: block; }
.contact-cell strong { color: var(--ink); font-size: 10px; }
.contact-cell small { color: var(--muted); font-size: 8px; }
.table-actions { display: flex; justify-content: flex-end; gap: 3px; }
.table-actions a, .table-actions button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; color: #708095; background: #fff; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.table-actions a:hover, .table-actions button:hover { color: var(--blue); }
.table-actions form { display: contents; }
.contact-form-panel { padding: 20px; }

.login-body { background: #07101e; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.12fr) minmax(430px, .88fr); }
.login-visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 60px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(9,19,35,.88), rgba(12,36,73,.72)),
        radial-gradient(circle at 70% 30%, #174b9c 0%, #091529 48%, #050b14 100%);
}
.login-visual::before, .login-visual::after { position: absolute; content: ""; border: 1px solid rgba(96,165,250,.14); border-radius: 50%; }
.login-visual::before { width: 650px; height: 650px; right: -280px; top: -290px; box-shadow: 0 0 0 100px rgba(59,130,246,.02), 0 0 0 200px rgba(59,130,246,.018); }
.login-visual::after { width: 400px; height: 400px; left: -220px; bottom: -220px; }
.login-visual-inner { position: relative; z-index: 2; width: min(590px, 100%); }
.secure-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #bfdbfe; background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.2); border-radius: 99px; font-size: 9px; font-weight: 750; }
.login-visual h1 { margin: 28px 0 18px; font-size: clamp(38px, 4.7vw, 64px); line-height: 1.05; letter-spacing: -.055em; }
.login-visual h1 em { color: #60a5fa; font-style: normal; }
.login-visual > div > p { width: min(500px,100%); margin: 0; color: #9fb0c8; font-size: 13px; line-height: 1.7; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 40px; }
.login-feature-grid > div { padding: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); border-radius: 12px; }
.login-feature-grid > div > span { display: block; margin-bottom: 9px; color: #60a5fa; }
.login-feature-grid strong, .login-feature-grid small { display: block; }
.login-feature-grid strong { font-size: 10px; }
.login-feature-grid small { color: #7588a3; font-size: 8px; }
.login-panel { display: grid; place-items: center; padding: 45px; background: #f6f8fc; }
.login-card { width: min(410px, 100%); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 55px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 16px; }
.login-brand small { color: var(--muted); font-size: 9px; }
.login-heading > span { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.login-heading h2 { margin: 7px 0 4px; font-size: 29px; letter-spacing: -.035em; }
.login-heading p { margin: 0 0 24px; color: var(--muted); font-size: 10px; }
.login-panel .stack-form label > span { color: #3c4a5e; font-size: 10px; }
.login-panel input { min-height: 47px; padding: 11px 13px; background: #fff; border-radius: 10px; }
.login-panel .button { min-height: 47px; margin-top: 3px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; color: #8996a7; font-size: 8px; }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .account-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toolbar-button span { display: none; }
}
@media (max-width: 960px) {
    .app-sidebar { width: 232px; transform: translateX(-102%); transition: transform .22s ease; }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-close { display: inline-grid !important; }
    .app-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(5,11,20,.48); backdrop-filter: blur(2px); }
    body.sidebar-open .app-overlay { display: block; }
    .app-main { margin-left: 0; padding-top: 56px; }
    .mobile-header { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; height: 56px; align-items: center; justify-content: space-between; padding: 8px 14px; color: #dce7f6; background: #0d1727; }
    .mobile-header strong { font-size: 13px; }
    .page { padding: 25px 22px 40px; }
    .dashboard-grid, .compose-layout { grid-template-columns: 1fr; }
    .compose-aside { grid-template-columns: 1fr 1fr; }
    .mail-workspace { min-height: calc(100vh - 56px); grid-template-columns: 185px minmax(0, 1fr); }
    .folder-pane { height: calc(100vh - 56px); top: 56px; }
    .message-row { grid-template-columns: 36px minmax(120px,.8fr) minmax(190px,1.6fr) 70px; padding-inline: 13px; }
    .template-grid, .server-columns, .settings-columns { grid-template-columns: 1fr; }
    .contacts-layout { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; }
}
@media (max-width: 700px) {
    .app-modal-layer { padding: 14px; }
    .app-modal { padding: 25px 20px 20px; border-radius: 17px; }
    .app-modal h2 { font-size: 19px; }
    .app-modal-actions { flex-direction: column-reverse; }
    .app-modal-actions .button { width: 100%; }
    .page { padding: 20px 14px 34px; }
    .page-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .page-header .button, .page-header > form { width: 100%; }
    .page-header > form .button { width: 100%; }
    .stats-grid, .account-card-grid, .form-grid, .security-overview { grid-template-columns: 1fr; }
    .security-overview { gap: 1px; }
    .server-columns { grid-template-columns: 1fr; }
    .mail-workspace { display: block; }
    .folder-pane { position: relative; top: auto; height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
    .mail-account-heading { padding-bottom: 10px; }
    .folder-nav { display: flex; gap: 5px; padding-bottom: 2px; overflow-x: auto; }
    .folder-nav a { flex: 0 0 auto; }
    .folder-footer { display: none; }
    .compose-button { display: none; }
    .message-list-header { min-height: auto; align-items: stretch; flex-direction: column; padding: 15px; }
    .mail-search, .mail-search.standalone { width: 100%; }
    .message-row { grid-template-columns: 36px minmax(0,1fr) 64px; gap: 8px; }
    .message-row { padding-right: 45px; }
    .message-row-wrap .message-meta { padding-right: 8px; }
    .message-quick-delete { right: 7px; }
    .message-quick-delete button { width: 29px; height: 29px; opacity: 1; }
    .message-sender { grid-column: 2; }
    .message-summary { grid-column: 2; }
    .message-meta { grid-column: 3; grid-row: 1/3; }
    .message-row .sender-avatar { grid-row: 1/3; }
    .message-reader { padding: 0 10px 30px; }
    .reader-toolbar { margin-inline: -10px; padding: 8px 10px; }
    .back-button span { display: none; }
    .reader-actions { gap: 3px; }
    .toolbar-button { min-width: 33px; padding: 7px; justify-content: center; }
    .reader-subject, .sender-block, .attachment-strip { padding-inline: 17px; }
    .sender-block { align-items: flex-start; flex-wrap: wrap; }
    .sender-block time { width: 100%; padding-left: 55px; }
    .compose-page { padding: 19px 10px 35px; }
    .compose-header { align-items: stretch; flex-direction: column; }
    .compose-header > div:last-child .button { flex: 1; }
    .compose-aside { grid-template-columns: 1fr; }
    .compose-editor { min-height: 300px; padding: 17px; }
    .template-grid { grid-template-columns: 1fr; }
    .form-panel { padding: 17px; }
    .form-tabs { overflow-x: auto; }
    .form-tabs button { min-width: 130px; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .danger-zone .button { width: 100%; }
    .data-table th:nth-child(2), .data-table td:nth-child(2), .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
    .login-panel { padding: 28px 20px; }
    .login-brand { margin-bottom: 38px; }
}
