* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #202124;
  background: #f5f7f6;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid #d9dedb;
}

a {
  color: #0f5f63;
}

.brand {
  color: #202124;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.desktop-nav a,
.mobile-nav a {
  color: #414141;
  text-decoration: none;
}

.logout-form {
  margin: 0;
}

.nav-button {
  appearance: none;
  border: 1px solid #c8c1b6;
  border-radius: 6px;
  padding: 8px 11px;
  color: #414141;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: center;
}

.login-card {
  width: min(440px, 100%);
  border: 1px solid rgba(214, 177, 92, 0.28);
  border-radius: 10px;
  padding: 30px;
  background: #080d1a;
  color: #f8f2e7;
  box-shadow: 0 18px 48px rgba(2, 4, 12, 0.28);
}

.login-mark {
  display: block;
  margin: 0 auto 16px;
  border-radius: 20px;
}

.login-card h1 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  text-align: center;
}

.login-card .muted,
.login-card .eyebrow {
  text-align: center;
}

.login-form {
  margin-top: 24px;
}

.login-form input {
  border-color: rgba(214, 177, 92, 0.36);
  color: #f8f2e7;
  background: #111827;
}

.remember-choice {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 600;
}

.remember-choice input {
  width: auto;
}

.login-button {
  width: 100%;
}

.login-error {
  border: 1px solid rgba(255, 145, 128, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffd9d2;
  background: rgba(122, 36, 29, 0.26);
}

h1,
h2 {
  margin: 0 0 10px;
  line-height: 1.15;
}

p {
  line-height: 1.5;
}

.muted {
  color: #66635d;
}

.toolbar,
.detail-head,
.item,
.platform-head,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel,
.item,
.platform {
  background: #ffffff;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(24, 36, 32, 0.05);
}

.list,
.versions {
  display: grid;
  gap: 14px;
}

.bottom-publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border-color: #b8d8c8;
  background: #f3fbf6;
}

.bottom-publish h2 {
  margin-bottom: 2px;
}

.bottom-publish form {
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.summary-grid article {
  border: 1px solid #d9dedb;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 36, 32, 0.05);
}

.summary-grid span {
  display: block;
  margin-bottom: 4px;
  color: #0f5f63;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.summary-grid strong {
  color: #59615b;
  font-size: 13px;
}

.connection-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.connection-panel h2 {
  font-size: 18px;
}

.connection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.connection-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.connection-connected {
  color: #0f4f36;
  background: #dceee4;
}

.connection-not-configured {
  color: #6b4b0b;
  background: #f5e6bf;
}

.connection-failed {
  color: #7a241d;
  background: #f6d8d4;
}

.versions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.source {
  margin-top: 18px;
  padding: 22px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c1b6;
  border-radius: 6px;
  padding: 10px 12px;
  color: #202124;
  background: #ffffff;
  font: inherit;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7cfca;
  border-radius: 6px;
  padding: 9px 14px;
  color: #202124;
  background: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: #8da39a;
  background: #f7faf8;
}

.button.primary {
  border-color: #0f5f63;
  color: #ffffff;
  background: #0f5f63;
}

.button.primary:hover {
  background: #0b4f52;
}

.approve-button {
  border-color: #1c7c4d;
  color: #ffffff;
  background: #1c7c4d;
}

.approve-button:hover {
  border-color: #16673f;
  background: #16673f;
}

.skip-button {
  color: #424844;
  border-color: #c6ccc8;
  background: #edf0ee;
}

.skip-button:hover {
  background: #e3e7e4;
}

.copy-button {
  color: #24466d;
  border-color: #cad7e5;
  background: #f5f8fc;
}

.preview-button {
  color: #5b3b07;
  border-color: #e3cd96;
  background: #fff9eb;
}

.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.actions form {
  margin: 0;
}

.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #3d362f;
  background: #ebe4d8;
  font-size: 13px;
  font-weight: 700;
}

.status-approved {
  color: #0f4f36;
  background: #dceee4;
}

.status-awaiting-review {
  color: #6b4b0b;
  background: #f5e6bf;
}

.status-published {
  color: #194f70;
  background: #dbeaf5;
}

.status-scheduled {
  color: #24466d;
  background: #dbe8f6;
}

.status-skipped {
  color: #555b57;
  background: #e8ece9;
}

.status-dry-run {
  color: #51446d;
  background: #e8ddf5;
}

.status-failed {
  color: #7a241d;
  background: #f6d8d4;
}

.status-draft {
  color: #3d4340;
  background: #edf0ee;
}

.media,
video {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 8px;
  object-fit: contain;
  background: #111111;
}

.hero-media {
  max-height: none;
  margin: 16px 0 18px;
}

.platform-media {
  width: 100%;
  max-height: 280px;
  margin: 10px 0 14px;
}

.media-meta {
  margin: 10px 0;
  color: #5c5850;
  font-size: 13px;
}

.media-meta code {
  overflow-wrap: anywhere;
}

.media-error {
  border: 1px solid #e0afa7;
  border-radius: 6px;
  padding: 10px 12px;
  color: #7a241d;
  background: #fff2ef;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  padding: 10px 12px;
  color: #687069;
  background: #ffffff;
}

.progress li span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #59615b;
  background: #edf0ee;
  font-weight: 700;
}

.progress li strong {
  font-size: 14px;
}

.progress li.is-complete {
  border-color: #b4d2c1;
  color: #123b27;
  background: #f3faf6;
}

.progress li.is-current {
  border-color: #0f5f63;
  color: #0f3f42;
  background: #eff8f6;
  box-shadow: 0 0 0 3px rgba(15, 95, 99, 0.12);
}

.progress li.is-future {
  color: #777f79;
  background: #ffffff;
}

.progress li.is-complete span {
  color: #ffffff;
  background: #1c7c4d;
}

.progress li.is-current span {
  color: #ffffff;
  background: #0f5f63;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.developer-link {
  font-size: 13px;
  text-decoration: none;
}

.source-message {
  margin-top: 16px;
  font-size: 17px;
}

.platform textarea {
  min-height: 190px;
}

.brand-head {
  border-left: 5px solid #8b98ff;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9fbfa;
}

.brand-title,
.single-preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0f5f63;
  font-size: 17px;
  font-weight: 800;
}

.platform-icon svg {
  width: 20px;
  height: 20px;
}

.brand-telegram .platform-icon svg {
  width: 24px;
  height: 24px;
}

.brand-discord {
  border-color: #5865f2;
}

.brand-discord .platform-icon {
  background: #5865f2;
}

.brand-telegram {
  border-color: #229ed9;
}

.brand-telegram .platform-icon {
  background: #229ed9;
}

.brand-facebook {
  border-color: #1877f2;
}

.brand-facebook .platform-icon {
  background: #1877f2;
}

.brand-instagram {
  border-color: #e4405f;
}

.brand-instagram .platform-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #515bd4);
}

.brand-x {
  border-color: #111111;
}

.brand-x .platform-icon {
  background: #111111;
}

.future-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.future-panel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.future-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed #cbd3ce;
  border-left: 5px solid #cbd3ce;
  border-radius: 8px;
  padding: 12px;
  color: #59615b;
  background: #f9fbfa;
}

.future-platform > span:last-child {
  margin-left: auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #59615b;
  background: #edf0ee;
  font-size: 12px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.preview-block {
  display: grid;
  gap: 10px;
}

.single-preview {
  width: min(680px, 100%);
  margin: 0 auto;
}

.mock-card {
  overflow: hidden;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(22, 34, 30, 0.08);
}

.mock-topline,
.phone-bar {
  padding: 12px 14px;
  font-weight: 700;
}

.mock-text {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.45;
}

.mock-author,
.social-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mock-author span,
.social-header span {
  display: block;
  color: #6f7671;
  font-size: 13px;
  font-weight: 400;
}

.avatar {
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0f5f63;
  font-size: 12px;
  font-weight: 700;
}

.discord-avatar {
  background: #5865f2;
}

.telegram-avatar {
  background: #229ed9;
}

.facebook-avatar {
  background: #1877f2;
}

.instagram-avatar {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #515bd4);
}

.x-avatar {
  background: #111111;
}

.mock-link {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: #0f5f63;
  text-decoration: none;
}

.hashtag {
  color: #0f5f63;
}

.mock-media-frame {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: #101312;
}

.mock-media-frame.is-landscape {
  aspect-ratio: 16 / 9;
}

.mock-media-frame.is-square {
  aspect-ratio: 1 / 1;
}

.mock-media-frame.is-vertical {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.mock-media-frame img,
.mock-media-frame video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  background: #101312;
}

.mock-video-frame video {
  filter: brightness(0.82);
}

.mock-play-button {
  position: absolute;
  inset: 0;
  display: grid;
  width: 58px;
  height: 58px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 22px;
}

.mock-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 4px;
  padding: 3px 6px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.discord-mock {
  color: #dbdee1;
  background: #313338;
  border-color: #25272b;
}

.discord-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #1f2125;
  padding: 12px 16px;
  color: #f2f3f5;
  background: #2b2d31;
}

.discord-window-bar span {
  color: #949ba4;
  font-size: 13px;
}

.discord-message {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 16px;
}

.discord-embed {
  margin-top: 8px;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  padding: 12px;
  background: #2b2d31;
}

.discord-embed .mock-media-frame,
.discord-embed .mock-link {
  margin-top: 12px;
}

.discord-embed-footer {
  margin-top: 10px;
  color: #949ba4;
  font-size: 12px;
}

.discord-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.discord-reactions span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #dbdee1;
  background: #3f4147;
  font-size: 13px;
}

.discord-mock .mock-link,
.discord-mock .hashtag {
  color: #00a8fc;
}

.telegram-mock {
  padding: 0;
  background: linear-gradient(145deg, #d7edf8, #eef7fb);
}

.telegram-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #ffffff;
  background: #299fd6;
}

.telegram-topbar span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.telegram-chat {
  padding: 18px 14px;
}

.telegram-bubble {
  max-width: 86%;
  border-radius: 8px 8px 8px 2px;
  padding: 9px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(30, 60, 90, 0.12);
}

.telegram-bubble .mock-media-frame {
  margin-bottom: 10px;
}

.telegram-time {
  margin-top: 8px;
  color: #6f7671;
  font-size: 12px;
  text-align: right;
}

.facebook-mock,
.x-mock {
  padding: 0;
}

.facebook-page-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e4e6eb;
  padding: 12px 14px;
  background: #f0f2f5;
}

.facebook-page-strip span {
  display: block;
  color: #65676b;
  font-size: 12px;
}

.facebook-mock > .social-header,
.facebook-mock > .mock-text,
.facebook-mock > .mock-link,
.facebook-reactions,
.facebook-mock .social-actions,
.comment-preview {
  margin-inline: 14px;
}

.facebook-mock > .social-header {
  margin-top: 14px;
}

.facebook-mock .mock-text,
.x-mock .mock-text {
  margin: 12px 0;
}

.facebook-mock > .mock-text {
  margin: 12px 14px;
}

.facebook-mock > .mock-link {
  margin: 10px 14px 0;
}

.facebook-mock .mock-media-frame,
.x-mock .mock-media-frame {
  margin: 12px 0;
}

.facebook-reactions {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e4e6eb;
  padding: 10px 0;
  color: #65676b;
  font-size: 13px;
}

.social-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  border-top: 1px solid #e5e9e6;
  padding-top: 10px;
  color: #6f7671;
  font-size: 13px;
}

.comment-preview {
  margin-top: 12px;
  border-radius: 18px;
  padding: 9px 12px;
  color: #202124;
  background: #f0f2f5;
  font-size: 13px;
}

.instagram-mock {
  max-width: 480px;
  margin: 0 auto;
}

.instagram-shell-top {
  border-bottom: 1px solid #dbdbdb;
  padding: 12px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.instagram-mock .social-header {
  justify-content: space-between;
  padding: 12px;
}

.instagram-header strong {
  margin-right: auto;
}

.instagram-mock .mock-media-frame {
  border-radius: 0;
}

.instagram-actions {
  display: flex;
  gap: 16px;
  padding: 12px 12px 4px;
  font-size: 22px;
}

.instagram-actions span:last-child {
  margin-left: auto;
}

.instagram-likes {
  padding: 2px 12px 8px;
  font-size: 13px;
  font-weight: 700;
}

.instagram-mock .mock-text,
.instagram-mock .mock-link {
  padding: 0 12px 12px;
}

.instagram-comment {
  padding: 0 12px 14px;
  color: #8e8e8e;
  font-size: 13px;
}

.tweet-layout {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 14px;
}

.x-header {
  justify-content: space-between;
}

.x-mock .mock-media-frame {
  border: 1px solid #cfd9de;
}

.x-engagement {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  border-top: 1px solid #eff3f4;
  padding-top: 12px;
  color: #536471;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #e5ded3;
  text-align: left;
  vertical-align: top;
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.email-actions form {
  margin: 0;
}

.notice {
  border-radius: 8px;
  font-weight: 700;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.notice.success {
  background: #dff4e8;
  color: #0a5c3d;
}

.notice.error {
  background: #f7d6d2;
  color: #8f2d22;
}

.email-search {
  display: grid;
  gap: 10px;
}

.email-search label {
  color: #59615b;
  font-weight: 800;
}

.email-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.email-list {
  display: grid;
  gap: 14px;
}

.attention-list {
  margin: 0 0 18px;
}

.attention-card {
  display: grid;
  gap: 8px;
  margin: 0;
}

.attention-card .button {
  justify-self: start;
  margin-top: 4px;
}

.attention-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.attention-actions form {
  margin: 0;
}

.attention-actions .button,
.attention-actions button {
  min-height: 44px;
}

.draft-reply-panel {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid #d7dfd9;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.draft-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.draft-edit-form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.draft-edit-form label {
  margin: 0;
}

.draft-edit-form textarea {
  min-height: 180px;
  line-height: 1.45;
}

.draft-edit-form button {
  justify-self: start;
}

.draft-actions {
  margin-top: 2px;
}

.send-reply-panel,
.send-reply-state {
  border-top: 1px solid #d7dfd9;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.send-reply-panel form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.send-confirm {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.35;
}

.send-confirm input {
  margin-top: 4px;
}

.email-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(22, 24, 26, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.email-card-main {
  min-width: 0;
}

.email-card-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.email-card-top strong {
  overflow-wrap: anywhere;
}

.email-meta {
  color: #59615b;
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0;
}

.classification {
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.classification-needs-review {
  background: #f7d6d2;
  color: #8f2d22;
}

.classification-routine {
  background: #dff4e8;
  color: #0a5c3d;
}

.classification-low-priority {
  background: #e8e8e8;
  color: #535853;
}

.email-value {
  border: 1px solid #d7dfd9;
  border-left: 6px solid #6e7871;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 16px;
}

.email-value div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.email-value strong {
  font-size: 18px;
}

.email-value span,
.email-value p {
  color: #59615b;
}

.email-value p {
  margin: 8px 0 0;
}

.email-value-high-value-opportunity {
  background: #e7f4ee;
  border-left-color: #10875a;
}

.email-value-needs-action {
  background: #eef5fb;
  border-left-color: #2b79b9;
}

.email-value-sensitive-risk {
  background: #fbe9e6;
  border-left-color: #b54234;
}

.email-value-routine {
  background: #f6f8f6;
  border-left-color: #6f7a73;
}

.email-value-low-priority,
.email-value-ignore {
  background: #f0f0ee;
  border-left-color: #8a8f8b;
}

.email-detail code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.email-reader-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.email-reader-meta p {
  margin: 0;
}

.email-reader-meta strong {
  display: block;
  color: #59615b;
  font-size: 13px;
  margin-bottom: 4px;
}

.email-reader-meta span {
  overflow-wrap: anywhere;
}

.email-body {
  border: 1px solid #e2ded7;
  border-radius: 8px;
  background: #fffdf9;
  color: #202124;
  line-height: 1.55;
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
}

.email-body * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.email-body table {
  width: 100%;
  border-collapse: collapse;
}

.email-body a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 760px) {
  * {
    box-sizing: border-box;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 78px);
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.2;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-nav summary {
    display: inline-flex;
    min-height: 44px;
    min-width: 64px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd8d3;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #202124;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 210px;
    border: 1px solid #d9dedb;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(31, 35, 32, 0.18);
  }

  .mobile-nav-panel a {
    min-height: 44px;
    border-radius: 6px;
    padding: 12px;
    font-weight: 700;
  }

  .mobile-nav-panel a:active,
  .mobile-nav-panel a:hover {
    background: #edf6f3;
  }

  main {
    width: 100%;
    margin: 0 auto 36px;
    padding: 18px 14px 32px;
  }

  .toolbar,
  .detail-head,
  .item {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .detail-head {
    gap: 14px;
  }

  h1 {
    overflow-wrap: anywhere;
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.08;
  }

  h2,
  h3,
  p,
  a,
  .muted,
  .source-message,
  .mock-text,
  .mock-link,
  textarea,
  input,
  select,
  td,
  th {
    overflow-wrap: anywhere;
  }

  .button,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
    max-width: 100%;
    font-size: 16px;
  }

  input[type="datetime-local"] {
    width: 100%;
  }

  .panel,
  .platform,
  .item,
  .connection-panel {
    max-width: 100%;
    overflow: hidden;
    padding: 16px;
  }

  .versions {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .connection-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .connection-panel .badge {
    align-self: flex-start;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .future-panel ul {
    grid-template-columns: 1fr;
  }

  .progress {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .progress li {
    min-height: 48px;
    padding: 10px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .actions form {
    display: contents;
  }

  .actions .button,
  .actions button,
  .actions .badge,
  .actions .action-note {
    width: 100%;
    justify-content: center;
  }

  .bottom-publish {
    align-items: stretch;
    flex-direction: column;
  }

  .bottom-publish form,
  .bottom-publish button {
    width: 100%;
  }

  .email-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .email-actions .button,
  .email-actions form,
  .email-actions button,
  .attention-actions,
  .attention-actions form,
	  .attention-actions .button,
	  .attention-actions button,
	  .attention-card .button,
	  .email-card .button,
	  .draft-edit-form button,
	  .send-reply-panel button {
	    width: 100%;
	    justify-content: center;
	  }

	  .draft-reply-head {
	    align-items: flex-start;
	    flex-direction: column;
	  }

	  .email-card,
	  .email-search div {
	    grid-template-columns: 1fr;
  }

  .email-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-reader-meta {
    grid-template-columns: 1fr;
  }

  .email-body {
    padding: 14px;
  }

  .classification {
    align-self: flex-start;
    white-space: normal;
  }

  .media,
  .platform .media {
    max-height: 66vh;
  }

  .mock-media-frame.is-vertical {
    width: min(100%, 280px);
  }

  .tweet-layout {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }

  table {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid #e5ded3;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }

  td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 7px 0;
  }

  td::before {
    content: attr(data-label);
    color: #59615b;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 10px;
  }

  .summary-grid,
  .actions {
    grid-template-columns: 1fr;
  }

  .summary-card strong {
    font-size: 34px;
  }

  td {
    grid-template-columns: 1fr;
  }
}

/* PRP editorial visual system */
:root {
  --prp-bg: #050711;
  --prp-bg-alt: #080d19;
  --prp-panel: #0d1422;
  --prp-panel-soft: #101827;
  --prp-border: rgba(235, 241, 255, 0.14);
  --prp-border-strong: rgba(201, 170, 98, 0.34);
  --prp-text: #f7f1e6;
  --prp-heading: #fffaf0;
  --prp-muted: #aab2c2;
  --prp-faint: #788296;
  --prp-blue: #72aaff;
  --prp-blue-soft: rgba(114, 170, 255, 0.13);
  --prp-green: #64c78b;
  --prp-green-soft: rgba(100, 199, 139, 0.14);
  --prp-gold: #d4b469;
  --prp-gold-soft: rgba(212, 180, 105, 0.16);
  --prp-danger: #f08f83;
  --prp-danger-soft: rgba(240, 143, 131, 0.15);
  --prp-purple: #c7a7ff;
  --prp-purple-soft: rgba(199, 167, 255, 0.14);
  --prp-radius: 10px;
  --prp-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

html {
  background: var(--prp-bg);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--prp-text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(180deg, #060815 0%, #08101e 48%, #050711 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.35), rgba(5, 7, 17, 0.95)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 96px);
}

a {
  color: var(--prp-blue);
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--prp-border);
  padding: 14px 28px;
  background: rgba(5, 7, 17, 0.94);
  box-shadow: 0 1px 0 rgba(212, 180, 105, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--prp-heading);
  text-align: center;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 180, 105, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  color: var(--prp-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-text span {
  color: var(--prp-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  grid-column: 3;
  justify-self: end;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--prp-muted);
  font-weight: 700;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--prp-heading);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 64px;
}

h1,
h2,
h3,
.section-title,
.platform h2,
.mock-title,
.email-value strong {
  color: var(--prp-heading);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  font-size: 48px;
  line-height: 1.05;
}

h2 {
  font-size: 28px;
}

p,
.muted,
.email-meta,
.email-value span,
.email-value p {
  color: var(--prp-muted);
}

.panel,
.item,
.platform,
.connection-panel,
.summary-grid article,
.future-panel,
.preview-card,
.attention-card,
.email-card,
.draft-reply-panel,
.send-reply-state,
.send-reply-panel {
  color: var(--prp-text);
  border: 1px solid var(--prp-border);
  background: linear-gradient(180deg, rgba(17, 27, 45, 0.96), rgba(10, 16, 29, 0.96));
  box-shadow: var(--prp-shadow);
}

.panel,
.item,
.platform,
.connection-panel,
.summary-grid article,
.future-panel,
.attention-card,
.email-card {
  border-radius: var(--prp-radius);
}

.panel,
.platform {
  padding: 22px;
}

.source {
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(8, 13, 24, 0.98));
}

.hero {
  align-items: end;
  border-bottom: 1px solid rgba(212, 180, 105, 0.18);
  padding-bottom: 24px;
}

.summary-grid article {
  min-height: 112px;
}

.summary-grid span {
  color: var(--prp-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.summary-grid strong {
  color: var(--prp-muted);
}

.connection-panel h2 {
  color: var(--prp-heading);
}

.connection-badge,
.badge,
.classification {
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.connection-connected,
.status-approved,
.status-published {
  color: #dff8e9;
  background: var(--prp-green-soft);
  border-color: rgba(100, 199, 139, 0.35);
}

.connection-not-configured,
.status-awaiting-review,
.status-scheduled,
.status-draft {
  color: #f5dda3;
  background: var(--prp-gold-soft);
  border-color: rgba(212, 180, 105, 0.35);
}

.connection-failed,
.connection-error,
.connection-unable-to-verify,
.status-failed {
  color: #ffd0c8;
  background: var(--prp-danger-soft);
  border-color: rgba(240, 143, 131, 0.4);
}

.status-dry-run {
  color: #eadbff;
  background: var(--prp-purple-soft);
  border-color: rgba(199, 167, 255, 0.4);
}

.status-skipped {
  color: #d7dce5;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--prp-border);
}

label,
.email-search label,
.email-reader-meta strong,
th {
  color: var(--prp-muted);
}

input,
select,
textarea {
  color: var(--prp-text);
  border: 1px solid rgba(212, 180, 105, 0.24);
  background: rgba(4, 8, 17, 0.78);
  border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(114, 170, 255, 0.34);
  border-color: rgba(114, 170, 255, 0.55);
}

input::placeholder,
textarea::placeholder {
  color: var(--prp-faint);
}

.button,
button,
input[type="submit"] {
  min-height: 44px;
  border: 1px solid rgba(212, 180, 105, 0.32);
  border-radius: 8px;
  color: var(--prp-heading);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  border-color: rgba(114, 170, 255, 0.45);
  background: rgba(114, 170, 255, 0.12);
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.primary,
button.primary,
input[type="submit"].primary {
  color: #06101d;
  border-color: rgba(126, 201, 230, 0.7);
  background: linear-gradient(180deg, #8fd4ff, #5aa6df);
}

.approve-button {
  color: #08160f;
  border-color: rgba(112, 218, 145, 0.72);
  background: linear-gradient(180deg, #8ce1a6, #55b978);
}

.skip-button {
  color: var(--prp-muted);
  border-color: var(--prp-border);
  background: rgba(255, 255, 255, 0.05);
}

.copy-button {
  color: #d7e8ff;
  border-color: rgba(114, 170, 255, 0.35);
  background: var(--prp-blue-soft);
}

.preview-button {
  color: #ffe4a7;
  border-color: rgba(212, 180, 105, 0.48);
  background: var(--prp-gold-soft);
}

.publish-button {
  color: #06101d;
  background: linear-gradient(180deg, #d4b469, #b99442);
  border-color: rgba(255, 225, 150, 0.62);
}

.bottom-publish {
  border-color: rgba(212, 180, 105, 0.42);
  background: linear-gradient(180deg, rgba(212, 180, 105, 0.14), rgba(17, 27, 45, 0.92));
}

.platform-head,
.brand-head {
  border: 1px solid var(--prp-border);
  background: rgba(255, 255, 255, 0.035);
}

.platform-icon {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.media,
.media img,
.media video,
.mock-media-frame,
.source-media,
.platform-media {
  border-color: var(--prp-border);
  background: #050711;
}

.media-error {
  color: #ffd0c8;
  border-color: rgba(240, 143, 131, 0.4);
  background: var(--prp-danger-soft);
}

.progress-step {
  color: var(--prp-muted);
  border-color: var(--prp-border);
  background: rgba(255, 255, 255, 0.035);
}

.progress-step.completed {
  color: #dff8e9;
  border-color: rgba(100, 199, 139, 0.35);
  background: var(--prp-green-soft);
}

.progress-step.active {
  color: #dcecff;
  border-color: rgba(114, 170, 255, 0.55);
  background: var(--prp-blue-soft);
}

.future-panel li,
.future-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

table {
  color: var(--prp-text);
}

th,
td {
  border-bottom-color: var(--prp-border);
}

.notice.success {
  color: #dff8e9;
  background: var(--prp-green-soft);
  border: 1px solid rgba(100, 199, 139, 0.35);
}

.notice.error {
  color: #ffd0c8;
  background: var(--prp-danger-soft);
  border: 1px solid rgba(240, 143, 131, 0.4);
}

.email-card {
  gap: 12px;
  padding: 14px 16px;
}

.email-card-top strong {
  color: var(--prp-heading);
}

.email-meta {
  font-size: 13px;
}

.email-value {
  border: 1px solid var(--prp-border);
  border-left-width: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.email-value div {
  min-width: 0;
}

.email-value-high-value-opportunity,
.email-value-needs-action,
.email-value-needs-attention,
.classification-needs-attention {
  color: #ffeac0;
  background: var(--prp-gold-soft);
  border-color: rgba(212, 180, 105, 0.35);
  border-left-color: var(--prp-gold);
}

.email-value-sensitive-risk,
.email-value-sensitive-review,
.classification-sensitive-review,
.classification-needs-review {
  color: #ffd0c8;
  background: var(--prp-danger-soft);
  border-color: rgba(240, 143, 131, 0.4);
  border-left-color: var(--prp-danger);
}

.email-value-routine,
.email-value-agent-handle,
.classification-agent-handle,
.classification-routine {
  color: #d7e8ff;
  background: var(--prp-blue-soft);
  border-color: rgba(114, 170, 255, 0.35);
  border-left-color: var(--prp-blue);
}

.email-value-low-priority,
.email-value-ignore,
.email-value-ignore-no-reply-needed,
.classification-ignore-no-reply-needed,
.classification-low-priority {
  color: #d7dce5;
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--prp-border);
  border-left-color: var(--prp-faint);
}

.email-body {
  color: var(--prp-text);
  border-color: var(--prp-border);
  background: rgba(4, 8, 17, 0.7);
}

.email-body a {
  color: var(--prp-blue);
}

.draft-reply-panel,
.send-reply-panel,
.send-reply-state {
  border-color: var(--prp-border);
  background: rgba(4, 8, 17, 0.45);
}

.mock-card,
.discord-mock {
  color: #dcddde;
  background: #313338;
}

.telegram-mock,
.facebook-mock,
.instagram-mock,
.x-mock {
  color: #1f2328;
  background: #fff;
  box-shadow: none;
}

.telegram-mock p,
.facebook-mock p,
.instagram-mock p,
.x-mock p {
  color: inherit;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text span {
    font-size: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    grid-column: 2;
    justify-self: end;
    display: block;
    margin-left: 0;
  }

  .mobile-nav summary {
    color: var(--prp-heading);
    border-color: rgba(212, 180, 105, 0.34);
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-panel {
    border-color: var(--prp-border);
    background: rgba(9, 14, 27, 0.98);
    box-shadow: var(--prp-shadow);
  }

  .mobile-nav-panel a {
    color: var(--prp-heading);
  }

  .mobile-nav-panel a:active,
  .mobile-nav-panel a:hover {
    background: var(--prp-blue-soft);
  }

  main {
    width: 100%;
    margin: 0 auto 36px;
    padding: 18px 14px 34px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  h2 {
    font-size: 28px;
  }

  .hero,
  .toolbar,
  .detail-head {
    display: grid;
    align-items: start;
  }

  .hero .button.primary,
  .toolbar .button.primary {
    width: auto;
    max-width: 360px;
  }

  .summary-grid,
  .grid,
  .versions,
  .preview-grid,
  .email-reader-meta {
    grid-template-columns: 1fr;
  }

  .panel,
  .item,
  .platform,
  .connection-panel,
  .attention-card,
  .email-card {
    padding: 16px;
  }

  .connection-panel,
  .bottom-publish {
    display: grid;
    align-items: start;
  }

  .connection-actions {
    justify-content: start;
  }

  .actions,
  .attention-actions,
  .email-actions,
  .draft-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .actions .button,
  .actions button,
  .actions .badge,
  .attention-actions .button,
  .attention-actions button,
  .email-actions .button,
  .email-actions button {
    width: 100%;
    justify-self: stretch;
  }

  .platform textarea {
    min-height: 160px;
  }

  .email-card,
  .email-card-top {
    grid-template-columns: 1fr;
  }

  .email-card-top {
    display: grid;
    gap: 8px;
  }

  .email-reader-meta {
    grid-template-columns: 1fr;
  }

  table,
  tbody,
  tr,
  td {
    width: 100%;
  }

  tr {
    border-color: var(--prp-border);
    background: rgba(255, 255, 255, 0.035);
  }

  td::before {
    color: var(--prp-muted);
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 10px;
  }

  h1 {
    font-size: 34px;
  }

  .summary-grid,
  .actions,
  .attention-actions,
  .email-actions,
  .draft-actions {
    grid-template-columns: 1fr;
  }

  td {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .mobile-nav {
    display: none;
  }
}
