:root {
  --bg: #f7f7f4;
  --paper: #fff;
  --cream: #f0eee7;
  --ink: #22231f;
  --muted: #7c7e75;
  --line: #e7e8e1;
  --green: #47705c;
  --red: #a34848;
  --radius: 15px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable]:focus-visible {
  outline: 2px solid #777e6a;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 600;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
.label,
.eyebrow,
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
}
.wordmark {
  font-size: 23px;
  letter-spacing: 5px;
  font-weight: 650;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 12px 29px;
}
.brand .label {
  letter-spacing: 2.6px;
  font-size: 8px;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  padding: 35px 20px 20px;
  background: #f0f0e9;
  border-right: 1px solid #e2e3da;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 10px;
  border: 1px solid #ddded4;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 550;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  margin-top: 4px;
}
.workspace-mark {
  width: 30px;
  height: 32px;
  border-radius: 7px;
  background: #dddccd;
  display: grid;
  place-items: center;
  font: 18px Georgia;
}
.lock {
  margin-left: auto;
  color: #858875;
}
.primary,
.secondary,
.danger {
  padding: 11px 17px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.primary {
  background: #272921;
  color: #fff;
  box-shadow: 0 2px 3px #0000000a;
}
.primary:hover:not(:disabled) {
  background: #3c4032;
}
.secondary {
  border: 1px solid #dfe1d7;
  background: #fff;
  color: #4d5145;
}
.danger {
  background: #f6e8e5;
  color: var(--red);
}
.full {
  width: 100%;
}
.sidebar-compose {
  width: 100%;
  margin-bottom: 30px;
  justify-content: flex-start;
  padding-left: 15px;
}
.nav-label {
  margin: 0 14px 12px;
  font-size: 8px;
  letter-spacing: 1.4px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  color: #777b6b;
  font-size: 12px;
}
nav a:hover {
  background: #e9e9e0;
}
nav a.active {
  background: #e1e2d5;
  color: #353a2d;
  font-weight: 600;
}
nav svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.provider-indicator {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 12px 22px;
  font-size: 10px;
}
.provider-indicator small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #7d8b69;
  border-radius: 50%;
  flex-shrink: 0;
}
.account {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  border-top: 1px solid #dedfd5;
  padding: 18px 6px 0;
  font-size: 10px;
}
.account > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.account > span:last-child {
  margin-left: auto;
}
.avatar,
.top-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4e3d8;
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.main-shell {
  margin-left: 252px;
  width: calc(100% - 252px);
  min-width: 0;
}
.topbar {
  height: 79px;
  background: #fff9;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: #aaaca3;
}
.breadcrumb strong {
  font-weight: 500;
  color: #5d6154;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.private-pill {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7f8474;
}
.top-avatar {
  height: 29px;
  width: 29px;
  font-weight: 600;
}
#main {
  padding: 36px 38px 45px;
  max-width: 1600px;
  margin: auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-bottom: 11px;
}
.heading-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  min-width: 0;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #777c6f;
}
.metric-label svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8b927d;
  stroke-width: 1.4;
}
.metric strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1.2px;
  font-weight: 500;
  margin: 18px 0 10px;
}
.metric small {
  font-size: 9px;
  color: #94988b;
}
.metric-accent {
  background: #ebeddf;
  border-color: #dce0cb;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 23px;
  border-bottom: 1px solid #f0f0eb;
  gap: 12px;
}
.panel-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.panel-body {
  padding: 23px;
}
.panel + .panel {
  margin-top: 23px;
}
.period {
  font-size: 9px;
  color: #727767;
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.chart {
  height: 200px;
  padding: 22px 18px 0;
}
.chart svg {
  width: 100%;
  height: 150px;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin: 4px 12px;
  color: #9a9d92;
  font-size: 8px;
}
.legend {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: #737969;
  margin-top: 10px;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #808c69;
}
.text-button {
  font-size: 11px;
  color: #646d55;
  padding: 5px 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 5px 8px;
  background: #f0f1ea;
  color: #7c816f;
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.status-badge.good {
  background: #edf2e8;
  color: #5e7650;
}
.status-badge.bad {
  background: #f8ece8;
  color: #a36b5b;
}
.status-badge.warn {
  background: #f6f1e2;
  color: #8e7c4d;
}
.empty-state {
  padding: 45px 25px;
  text-align: center;
}
.empty-icon {
  width: 45px;
  height: 45px;
  background: #f1f2eb;
  border: 1px solid #e4e7dc;
  border-radius: 13px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  color: #788264;
  font-size: 21px;
  box-shadow:
    inset 0 1px #fff,
    0 3px #edf0e5;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 550;
}
.empty-state p {
  font-size: 11px;
  color: #95998c;
  line-height: 1.7;
  margin: 8px auto 19px;
  max-width: 290px;
}
.sender-card {
  padding: 23px;
}
.sender-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.resend-logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -1px;
}
.sender-card h3 {
  margin-top: 5px;
}
.sender-card > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 18px;
}
.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0e8;
}
.check-circle {
  display: grid;
  place-items: center;
  background: #eef0e6;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  color: #71805c;
}
.check-row small {
  margin-left: auto;
  color: #919582;
  font-size: 8px;
}
.note-card {
  margin-top: 20px;
  padding: 22px;
  background: #eceee2;
  border: 1px solid #e0e4d2;
  border-radius: var(--radius);
}
.note-card .eyebrow {
  margin-bottom: 12px;
}
.note-card h3 {
  font:
    22px/1.25 Georgia,
    serif;
  letter-spacing: -0.5px;
}
.note-card p {
  color: #8b907d;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 8px;
  letter-spacing: 0.6px;
  font-weight: 500;
  color: #949989;
  padding: 13px 22px;
  background: #fbfbf8;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid #f0f0eb;
}
td strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
}
td small {
  display: block;
  color: #929789;
  font-size: 9px;
  margin-top: 5px;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-action {
  font-size: 10px;
  color: #727d60;
  padding: 4px 7px;
}
.table-action.remove {
  color: #9b7368;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
  min-width: 170px;
}
.toolbar select {
  max-width: 220px;
}
.count-caption {
  font-size: 10px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #e1e3d9;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 40px;
  font-size: 12px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #b0b3a6;
}
input[type="checkbox"] {
  min-height: 0;
  accent-color: #606c4a;
  width: 14px;
  height: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}
label .muted {
  font-size: 10px;
  font-weight: 400;
}
form {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .span-2 {
  grid-column: 1/-1;
}
.check-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.65;
  font-size: 11px;
}
.check-label input {
  flex-shrink: 0;
  margin-top: 3px;
}
.composer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 370px);
  gap: 22px;
  align-items: start;
}
.compose-fields {
  display: grid;
  gap: 20px;
  padding: 23px;
}
.compose-row {
  display: flex;
  gap: 15px;
  align-items: center;
}
.compose-row > label {
  width: 70px;
  flex-shrink: 0;
  color: #8c9183;
  font-size: 10px;
}
.compose-row > input,
.compose-row > select {
  flex: 1;
  min-width: 0;
}
.compose-row > input {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eaece4;
}
.compose-divider {
  border-top: 1px solid var(--line);
  margin: 0 23px;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 13px 19px;
  border-bottom: 1px solid #efefe9;
}
.rich-toolbar button {
  min-width: 30px;
  height: 30px;
  border-radius: 5px;
  font-size: 12px;
  color: #6f7761;
}
.rich-toolbar button:hover {
  background: #eef0e7;
}
.tool-separator {
  width: 1px;
  background: var(--line);
  margin: 4px 8px;
}
.editor {
  min-height: 300px;
  padding: 26px;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  outline-offset: -3px;
}
.editor:empty:before {
  content: attr(data-placeholder);
  color: #afb3a4;
  pointer-events: none;
}
.editor h1 {
  font-size: 25px;
  margin: 12px 0;
}
.editor h2 {
  margin: 15px 0;
}
.editor p {
  margin: 12px 0;
}
.editor img {
  max-width: 100%;
  height: auto;
}
.editor a {
  color: #65754d;
  text-decoration: underline;
}
.compose-foot {
  padding: 18px 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.compose-foot small {
  font-size: 9px;
  color: #959b8b;
}
.tabs {
  display: flex;
  padding: 3px;
  background: #f3f4ef;
  border-radius: 7px;
  gap: 3px;
}
.tabs button {
  padding: 6px 10px;
  color: #888e7c;
  font-size: 9px;
  border-radius: 5px;
}
.tabs button.active {
  background: #fff;
  color: #4d5740;
  box-shadow: 0 1px 3px #0000000a;
}
.preview-body {
  padding: 16px;
  background: #f7f7f2;
  display: flex;
  justify-content: center;
  overflow: auto;
  min-height: 400px;
}
.email-preview {
  width: 100%;
  border: 0;
  background: #f5f3ee;
  min-height: 560px;
  border-radius: 8px;
  flex-shrink: 0;
}
.email-preview.mobile-preview {
  width: min(100%, 360px);
}
.preview-note {
  padding: 13px 20px;
  font-size: 9px;
  color: #929987;
  line-height: 1.6;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.template-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.template-art {
  height: 180px;
  background: #eeeee5;
  padding: 25px 38px;
  overflow: hidden;
}
.mini-letter {
  background: #fff;
  padding: 16px;
  border-radius: 3px;
  min-height: 180px;
  box-shadow: 0 5px 14px #464d3610;
}
.mini-letter small {
  font-size: 6px;
  letter-spacing: 2px;
}
.mini-letter strong {
  display: block;
  font: 19px/1.1 Georgia;
  margin: 16px 0 12px;
  max-width: 140px;
}
.mini-letter i {
  display: block;
  height: 3px;
  background: #e9eadd;
  margin-top: 6px;
  width: 90%;
}
.mini-letter i:last-child {
  width: 60%;
}
.template-description {
  padding: 20px;
}
.template-description .eyebrow {
  font-size: 7px;
}
.template-description h3 {
  margin: 9px 0 15px;
  font-size: 13px;
}
.template-description .actions {
  justify-content: space-between;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eeefe7;
  font-size: 11px;
}
.settings-row > span {
  color: #8a907f;
}
.settings-row strong {
  font-size: 11px;
  font-weight: 500;
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
}
.settings-row:last-child {
  border: 0;
}
.notice {
  background: #f1f2ea;
  border: 1px solid #e4e7d9;
  border-radius: 9px;
  padding: 13px 15px;
  color: #7a846b;
  font-size: 10px;
  line-height: 1.8;
}
.notice.error {
  background: #f8efec;
  color: #a36e5f;
  border-color: #efddd5;
}
.notice + .notice {
  margin-top: 12px;
}
.loading {
  padding: 60px;
  color: #929987;
  text-align: center;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  padding: 18px 22px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: #303728;
  color: #fff;
  box-shadow: 0 8px 30px #0002;
  padding: 14px 22px;
  border-radius: 10px;
  z-index: 100;
  font-size: 12px;
  max-width: calc(100% - 30px);
}
.toast.error {
  background: #6a4840;
}
dialog {
  border: 1px solid #e0e3d4;
  border-radius: 18px;
  background: #fff;
  width: min(560px, calc(100% - 30px));
  padding: 28px;
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 90px #2225;
}
dialog::backdrop {
  background: #20271b60;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.dialog-heading p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}
.icon-btn {
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  color: #838e72;
}
.icon-btn:hover {
  background: #eff1e8;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.confirm-count {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 20px 0 5px;
}
.confirm-meta {
  font-size: 11px;
  color: #8a947a;
  line-height: 1.7;
}
.recipient-samples {
  font-size: 11px;
  color: #818e6d;
  margin: 15px 0;
  line-height: 1.8;
}
.form-error {
  font-size: 11px;
  line-height: 1.6;
  color: #a36958;
}
.mobile-only {
  display: none;
}
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f2;
  padding: 35px;
  gap: 100px;
}
.login-card {
  width: 370px;
  max-width: 100%;
}
.login-mark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 50px;
}
.login-mark .label {
  font-size: 8px;
  letter-spacing: 2px;
}
.private-label {
  color: #8a9379;
  font-size: 10px;
  margin-bottom: 17px;
}
.login-card h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1.8px;
}
.login-card > p {
  color: #939b85;
  line-height: 1.7;
  font-size: 12px;
  margin: 15px 0 27px;
}
.login-card form {
  gap: 18px;
}
.login-card form label {
  font-size: 11px;
}
.login-card input {
  background: #fff;
  font-size: 14px;
  min-height: 45px;
}
.login-card .primary {
  margin-top: 4px;
  justify-content: space-between;
}
.login-foot {
  border-top: 1px solid #e4e7d9;
  margin-top: 30px;
  padding-top: 22px;
  font-size: 9px;
  color: #9aa38c;
}
.login-aside {
  width: 380px;
  background: #e9ecde;
  border: 1px solid #e0e5d0;
  padding: 40px;
  border-radius: 25px;
  align-self: center;
  min-height: 510px;
  overflow: hidden;
}
.login-aside > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #879375;
  line-height: 1.7;
}
.login-aside p {
  font: 27px/1.2 Georgia;
  max-width: 240px;
  letter-spacing: -0.5px;
  color: #596447;
}
.envelope-art {
  height: 240px;
  display: grid;
  place-items: center;
  position: relative;
  perspective: 500px;
}
.envelope-art > div {
  width: 210px;
  height: 140px;
  background: linear-gradient(135deg, #fdfef8, #d4dac5);
  border: 1px solid #c2cbb0;
  border-radius: 7px;
  transform: rotate(-10deg) rotateY(-16deg);
  box-shadow:
    18px 25px 25px #61733b25,
    inset 0 2px #fff;
  position: relative;
}
.envelope-art > div:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 49%, #aab598 50%, transparent 51%),
    linear-gradient(215deg, transparent 49%, #aab598 50%, transparent 51%);
  clip-path: polygon(0 0, 100% 0, 50% 65%);
}
.envelope-art > div:after {
  content: "L";
  position: absolute;
  top: 64px;
  left: 94px;
  font: 18px Georgia;
  color: #85966c;
}
.login-page:has(form[action]) {
  color: #303728;
}
@media (min-width: 1600px) {
  #main {
    padding-top: 44px;
  }
  .metrics {
    gap: 22px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .chart {
    height: 230px;
  }
  .chart svg {
    height: 180px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-inline: 15px;
  }
  .main-shell {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
  #main {
    padding: 28px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .composer-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-panel {
    margin-top: 0 !important;
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .heading-actions .primary,
  .heading-actions .secondary {
    font-size: 10px;
    padding: 10px 12px;
  }
  .login-page {
    gap: 60px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 190px;
  }
  .main-shell {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .overview-aside .note-card {
    margin: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-aside {
    display: none;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    width: 252px;
    box-shadow: 15px 0 40px #0002;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
    width: 100%;
  }
  .mobile-only {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
    padding: 0 17px;
  }
  .breadcrumb {
    gap: 10px;
  }
  .crumb-brand {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
  .private-pill {
    font-size: 8px;
  }
  #main {
    padding: 25px 17px 35px;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric strong {
    font-size: 28px;
    margin-top: 14px;
  }
  .metric-label {
    font-size: 9px;
  }
  .overview-aside {
    grid-template-columns: 1fr;
  }
  .panel-heading {
    padding: 19px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-body {
    padding: 19px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar select {
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
  .compose-fields {
    padding: 19px;
  }
  .compose-row > label {
    width: 50px;
  }
  .editor {
    padding: 20px;
    min-height: 250px;
  }
  .compose-foot {
    padding: 15px;
    flex-wrap: wrap;
  }
  .composer-layout {
    gap: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .toast {
    left: 50%;
    width: max-content;
  }
  .login-page {
    padding: 30px 25px;
    align-items: flex-start;
  }
  .login-card {
    margin: 20px auto;
  }
  .login-mark {
    margin-bottom: 40px;
  }
  .login-card h1 {
    font-size: 39px;
  }
  .settings-row {
    font-size: 10px;
  }
  .settings-row strong {
    font-size: 10px;
  }
  .period {
    font-size: 8px;
  }
  .rich-toolbar {
    padding-inline: 13px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .check-label {
    font-size: 11px;
  }
  dialog {
    padding: 23px;
  }
  td,
  th {
    padding-inline: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
.overview-grid > div,
.settings-grid > div {
  min-width: 0;
}
.composer-layout > .panel {
  margin-top: 0;
}
@media (max-width: 950px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dialog-footer{flex-wrap:wrap}.sidebar-close{position:absolute;right:12px;top:25px}
