:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #202b3a;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202b3a;
  --muted: #707d8d;
  --line: #e3e8ee;
  --brand-blue: #2f83ee;
  --brand-blue-dark: #176bd5;
  --brand-blue-pale: #eaf3ff;
  --green: #268c65;
  --green-pale: #e8f6ef;
  --amber: #946408;
  --amber-pale: #fff3d9;
  --red: #ad4444;
  --red-pale: #fff0ef;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
a { color: var(--brand-blue-dark); }
a:hover { color: #115cbd; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .brand { font-family: Arial, Helvetica, sans-serif; }
h1 { margin: 0 0 7px; font-size: 30px; line-height: 1.15; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.2px; }
h3 { font-size: 13px; }
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; z-index: 3; inset: 0 auto 0 0; display: flex; flex-direction: column;
  width: 246px; min-height: 100vh; padding: 20px 15px 14px; overflow: hidden;
  background: #fff; border-right: 1px solid var(--line);
}
.brand { display: flex; flex: none; align-items: center; gap: 10px; margin: 0 7px 18px; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 38px; height: 34px; object-fit: contain; }
.brand-lockup { min-width: 0; }
.brand-name, .login-brand { color: #202b3a; font-size: 16px; font-weight: 800; letter-spacing: -.65px; white-space: nowrap; }
.brand-ai { color: var(--brand-blue); }
.brand-lockup small { display: block; margin-top: 3px; color: #788493; font-size: 8px; font-weight: 700; letter-spacing: 1.45px; }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nav-group { margin: 0 0 11px; }
.nav-heading { margin: 0 9px 4px; color: #98a2af; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-link { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; color: #586575; font-size: 12px; font-weight: 600; line-height: 1.25; text-align: left; text-decoration: none; }
.nav-link:hover { background: #f3f7fc; color: var(--brand-blue-dark); }
.nav-link.active { background: #d6e8ff; color: var(--brand-blue-dark); font-weight: 700; box-shadow: inset 3px 0 var(--brand-blue); }
.logout-form { flex: none; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.logout { cursor: pointer; background: transparent; font-weight: 700; }
.sidebar-foot { flex: none; margin-top: 8px; padding: 11px 10px 0; border-top: 1px solid var(--line); color: #8994a2; font-size: 10px; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: #50a982; }
.main-content { width: min(100% - 246px, 1500px); margin-left: 246px; padding: 35px 44px 20px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: #8a96a4; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; }
.page-description { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.muted { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.date-chip, .count-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: #647180; font-size: 11px; white-space: nowrap; }
.panel, .metric-card { margin-bottom: 16px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 2px 8px #21304408; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.brief-list, .simple-list { margin: 0; padding: 0; list-style: none; }
.brief-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0f3; font-size: 13px; line-height: 1.5; }
.brief-list li:first-child { border-top: 0; }
.brief-bullet { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--brand-blue); }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.simple-list li { padding: 10px 0; border-top: 1px solid #edf0f3; font-size: 12px; line-height: 1.5; }
.empty { padding: 7px 0; color: #7c8795; font-size: 12px; }
.notice { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #f2e4c4; border-radius: 9px; background: #fff9ed; color: #775d25; font-size: 12px; }
/* Banner colours: green = done, amber = caution (default), red = needs your action. */
.notice.success { border-color: #bfe3d0; background: var(--green-pale); color: #1d6b4d; }
.notice.warning { border-color: #f2e4c4; background: #fff9ed; color: #775d25; }
.notice.danger { border-color: #efc4c1; background: var(--red-pale); color: #8f3434; font-weight: 600; }
.status-pill, .hot-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; background: #edf0f3; color: #576475; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.status-pill.pending, .status-pill.held { background: var(--amber-pale); color: var(--amber); }
.status-pill.success, .status-pill.approved, .status-pill.active { background: var(--green-pale); color: var(--green); }
.status-pill.blocked, .status-pill.rejected, .status-pill.blocklisted { background: var(--red-pale); color: var(--red); }
.status-pill.draft { background: #eef2f7; color: #596879; }
.hot-pill { background: #fff0e8; color: #bd6032; }
.email-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; color: #344254; font-size: 11px; }
.email-meta span { min-width: 0; overflow-wrap: anywhere; }
.email-meta strong { display: block; margin-bottom: 4px; color: #8994a2; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.email-preview { padding: 15px 0; border-top: 1px solid var(--line); }
.email-preview > p { margin: 13px 0 8px; font-size: 12px; }
.email-body { margin: 0; padding: 13px; border-radius: 8px; background: #f6f8fa; color: #4f5b69; font: 12px/1.55 Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.action-row, .form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.action-row { padding-top: 14px; border-top: 1px solid var(--line); }
.action-row form { display: flex; align-items: center; gap: 6px; }
.button { min-height: 34px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.2; }
.button.primary { background: var(--brand-blue); color: #fff; }
.button.primary:hover { background: var(--brand-blue-dark); }
.button.secondary { border-color: #dbe2e9; background: #fff; color: #4f5d6c; }
.button.secondary:hover { border-color: #bac7d4; background: #f6f8fa; }
:focus-visible { outline: 3px solid #79b5ff; outline-offset: 2px; }
.table-panel { padding: 4px 17px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; }
.table-scroll table { min-width: 640px; }
.data-table { min-width: 680px; }
th { padding: 12px 11px; border-bottom: 1px solid var(--line); color: #7e8996; font-size: 9px; font-weight: 700; letter-spacing: .65px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { max-width: 340px; padding: 12px 11px; border-bottom: 1px solid #edf0f3; color: #344254; font-size: 12px; line-height: 1.45; vertical-align: middle; overflow-wrap: anywhere; }
tbody tr:hover { background: #f8fafc; }
td small { display: block; margin-top: 3px; color: #82909f; font-size: 10px; }
td strong { font-size: 12px; }
td .button { min-height: 30px; padding: 7px 10px; font-size: 11px; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll form { display: inline-flex; }
.company-actions, .button-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.company-actions form, .button-cell form { display: inline-flex; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.metric-card { position: relative; min-width: 0; padding: 17px; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--brand-blue-pale); color: var(--brand-blue); font-size: 15px; }
.metric-icon.violet, .metric-icon.blue { background: var(--brand-blue-pale); color: var(--brand-blue); }
.metric-icon.amber { background: var(--amber-pale); color: #b27b10; }
.metric-icon.green { background: var(--green-pale); color: var(--green); }
.metric-card p { margin: 13px 0 4px; color: var(--muted); font-size: 11px; }
.metric-card > strong { display: block; font: 800 26px Arial, sans-serif; letter-spacing: -.6px; }
.metric-card small { color: #85919f; font-size: 10px; }
.spend-panel { padding: 21px 23px; }
.spend-amount { font: 800 18px Arial, sans-serif; }
.spend-amount small { color: #7f8996; font: 500 11px Arial, sans-serif; }
.progress-track { height: 8px; overflow: hidden; border-radius: 9px; background: #e9f1fa; }
.progress-track span { display: block; height: 100%; border-radius: 9px; background: var(--brand-blue); }
.spend-panel > .muted { margin-top: 9px; font-size: 11px; }
.rules-list { display: grid; gap: 9px; }
.rule-card { display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rule-number { padding-top: 1px; color: var(--brand-blue-dark); font: 700 11px Arial, sans-serif; }
.rule-copy { flex: 1; min-width: 0; }
.rule-copy > p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; }
.rule-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.rule-meta small { color: #84909e; font-size: 10px; }
.check-mark { color: var(--green); font-size: 15px; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-state h2 { margin: 9px 0 6px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-icon { display: grid; width: 38px; height: 38px; margin: auto; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: 19px; }
.footer { padding: 18px 8px 2px; color: #85919f; font-size: 10px; text-align: center; }
.footer > span:not(.brand-name) { padding: 0 5px; color: #aab3bc; }
.footer .brand-name { font-size: 11px; }
form:not(.action-row form) { min-width: 0; }
form label { display: grid; gap: 6px; margin: 0 0 13px; color: #465464; font-size: 11px; font-weight: 700; }
input, select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #d5dde6; border-radius: 7px; background: #fff; color: var(--ink); }
input, select { min-height: 38px; padding: 9px 11px; }
textarea { min-height: 18lh; padding: 11px 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-blue); outline: 3px solid #d7eaff; }
input[type="checkbox"] { display: inline-block; width: 15px; min-height: 15px; margin: 0; accent-color: var(--brand-blue); }
.inline-form { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(130px, 1.4fr) minmax(130px, 1.4fr) auto; align-items: end; gap: 10px; }
.inline-form label { margin: 0; }
.inline-form .button { margin-bottom: 13px; }
.bulk-form { display: flex; justify-content: flex-end; margin-top: 15px; }
.bulk-form label { width: min(100%, 260px); }
.advanced-editor { margin: 0 0 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f9fafb; }
.advanced-editor > summary { padding: 14px 17px; color: #465464; cursor: pointer; font-size: 12px; font-weight: 700; }
.advanced-editor[open] > summary { border-bottom: 1px solid var(--line); }
.advanced-editor > .muted { padding: 13px 17px 0; }
.advanced-editor .panel { margin: 13px; }
.summary-panel { padding-bottom: 18px; }
.summary-subheading { margin: 19px 0 9px; color: #465464; font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.summary-grid > div { min-width: 0; padding: 11px; border: 1px solid #e8edf2; border-radius: 8px; background: #fafbfd; }
.summary-grid span { display: block; margin-bottom: 5px; color: #84909e; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.summary-grid strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.summary-copy { max-width: 800px; margin: 10px 0 0; color: #576474; font-size: 12px; line-height: 1.55; }
.summary-list { margin: 0; padding-left: 18px; color: #576474; font-size: 12px; }
.summary-list li { padding: 3px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.summary-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfd; color: #5a6877; font-size: 10px; }
.summary-chip strong { margin-right: 6px; color: var(--ink); }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: #f3f7fb; }
.login-card { width: min(100%, 390px); padding: 31px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 12px 38px #1d355012; }
.login-mark { display: block; width: 88px; height: 78px; margin: 0 auto 12px; object-fit: contain; }
.login-brand { display: block; margin-bottom: 23px; font-size: 20px; text-align: center; text-decoration: none; }
.login-brand small { display: block; margin-top: 4px; color: #8793a0; font-size: 8px; letter-spacing: 1.4px; }
.login-card h1 { margin-bottom: 7px; font-size: 24px; text-align: center; }
.login-card > .muted { text-align: center; }
.login-card form { display: grid; gap: 8px; margin-top: 22px; }
.login-card label { margin-bottom: 0; }
.login-card .button { margin-top: 4px; }
.error { padding: 10px; border-radius: 7px; background: var(--red-pale); color: var(--red); font-size: 12px; }
@media (max-height: 720px) and (min-width: 681px) {
  .sidebar { padding-top: 13px; padding-bottom: 9px; }
  .brand { margin-bottom: 10px; }
  .nav-group { margin-bottom: 6px; }
  .nav-heading { margin-bottom: 2px; }
  .nav-link { padding-top: 5px; padding-bottom: 5px; }
}
@media (max-width: 1050px) and (min-width: 681px) {
  .sidebar { width: 218px; }
  .main-content { width: calc(100% - 218px); margin-left: 218px; padding: 30px 25px 18px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sidebar { position: relative; width: 100%; min-height: 0; padding: 12px 14px 9px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 2px 10px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .nav-group { min-width: 0; margin: 0; }
  .nav-heading { margin: 2px 5px 4px; font-size: 8px; }
  .nav-link { padding: 6px 5px; font-size: 10px; line-height: 1.25; }
  .logout-form { margin-top: 8px; padding-top: 6px; }
  .logout { padding-left: 6px; }
  .sidebar-foot { margin-top: 5px; padding: 8px 6px 0; }
  .main-content { width: 100%; margin: 0; padding: 22px 14px 16px; }
  .page-header { align-items: flex-start; margin-bottom: 19px; }
  .page-header h1 { font-size: 25px; }
  .page-description { font-size: 12px; }
  .date-chip { padding: 6px 8px; font-size: 9px; }
  .panel { padding: 16px 14px; }
  .two-column { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .email-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { padding: 13px; }
  .metric-card > strong { font-size: 22px; }
  .summary-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form label:first-child { grid-column: 1 / -1; }
  .inline-form .button { margin-bottom: 13px; }
  .bulk-form { display: grid; grid-template-columns: 1fr; }
  .bulk-form label { width: 100%; }
  .action-row { gap: 6px; }
  .action-row form { flex: 1 1 auto; }
  .action-row .button { width: 100%; padding: 8px 9px; }
  .advanced-editor .panel { margin: 9px; }
  .rule-card { gap: 9px; padding: 12px 10px; }
  .rule-copy > p { font-size: 11px; }
}

.button.warning { background: #f08a24; color: #fff; }
.button.warning:hover { background: #d9771a; }
.button.review { background: #f5b301; color: #2b2100; display: inline-block; margin-bottom: 6px; }
.button.review:hover { background: #dc9f00; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.button-row form { display: inline-flex; margin: 0; }
.rules-form { display: grid; gap: 12px; margin-top: 12px; }
.rules-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #4f5d6c; }
.rules-form .check-row { display: flex; align-items: center; gap: 8px; }
.paste-details { margin: 10px 0; }
.paste-details summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #4f5d6c; }
td a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }

.en-ar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.en-ar textarea { width: 100%; box-sizing: border-box; line-height: 1.6; }
.en-ar .ar { background: #f7f8f5; font-size: 1.05rem; }
.seg-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .en-ar { grid-template-columns: 1fr; } }

.tile-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
a.metric-card.tile { text-decoration: none; color: inherit; border-left: 4px solid transparent; }
a.metric-card.tile.success { border-left-color: #2e9e6b; }
a.metric-card.tile.warning { border-left-color: #d99a1c; }
a.metric-card.tile.danger { border-left-color: #d64545; }
.period-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* File pickers match the theme everywhere */
input[type="file"] { width: 100%; padding: 10px 12px; border: 1.5px dashed #c9d6e6; border-radius: 10px; background: var(--brand-blue-pale); color: var(--muted); font-size: 13px; cursor: pointer; }
input[type="file"]:hover { border-color: var(--brand-blue); background: #e1eefe; }
input[type="file"]::file-selector-button { margin-right: 12px; min-height: 34px; padding: 8px 14px; border: 0; border-radius: 7px; background: var(--brand-blue); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--brand-blue-dark); }

/* Text boxes start small and grow with what is typed */
textarea { min-height: 64px; resize: vertical; line-height: 1.5; }

/* Person page: compact header, tabs, two-column workbench */
.person-head { margin-bottom: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 2px 8px #21304408; }
.person-id { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.person-id h2 { margin: 0; font-size: 20px; }
.person-id p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-blue-pale); color: var(--brand-blue-dark); font-size: 12px; font-weight: 600; }
.chip-red { background: var(--red-pale); color: var(--red); }
.notice.slim { margin: 8px 0 0; padding: 9px 12px; font-size: 13px; }
.notice .sep { margin: 0 6px; opacity: .6; }
.button.small { min-height: 28px; padding: 5px 10px; font-size: 11px; margin-left: 8px; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.workbench .panel { margin-bottom: 0; }
.tabs { display: flex; gap: 4px; margin: -6px -8px 14px; padding: 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--brand-blue-dark); border-bottom-color: var(--brand-blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.compact-form { display: grid; gap: 10px; }
.compact-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #4f5d6c; }
.compact-form input, .compact-form select, .compact-form textarea, .inline-form select { width: 100%; padding: 8px 10px; border: 1px solid #d5dde6; border-radius: 8px; background: #fff; font-size: 13px; }
.compact-form input:focus, .compact-form select:focus, .compact-form textarea:focus { outline: 2px solid var(--brand-blue-pale); border-color: var(--brand-blue); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chip-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed #c9d6e6; border-radius: 8px; background: var(--brand-blue-pale); color: var(--brand-blue-dark) !important; cursor: pointer; }
.chip-check input { width: auto; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.inline-form select { width: auto; }
.draft { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.draft summary { cursor: pointer; font-size: 13px; }
.draft-label { margin: 12px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.deck-row, .note-row { font-size: 13px; margin: 8px 0; }
.work-side .small { font-size: 12px; }
.work-side textarea { margin-bottom: 8px; }
.back-row { margin: 14px 0 0; }
@media (max-width: 900px) { .workbench { grid-template-columns: 1fr; } }
.compact-form textarea, .en-ar textarea, .work-main textarea, .work-side textarea { font: 14px/1.55 Arial, Helvetica, sans-serif; padding: 9px 11px; }
.en-ar .ar { font-size: 15px; }
.compact-form .form-actions { justify-content: flex-start; }
.field-row { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }

.voice-wrap { position: relative; display: block; }
.voice-wrap textarea { padding-right: 46px; }
.voice-btn { position: absolute; top: 8px; right: 8px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand-blue); font-size: 15px; line-height: 1; cursor: pointer; }
.voice-btn:hover { background: var(--brand-blue-pale); }
.voice-btn:disabled { opacity: .4; cursor: not-allowed; }
.voice-btn.rec { border-color: #d64545; background: #fdeaea; color: #d64545; animation: voice-pulse 1.2s infinite; }
@keyframes voice-pulse { 0% { box-shadow: 0 0 0 0 rgba(214,69,69,.45); } 100% { box-shadow: 0 0 0 9px rgba(214,69,69,0); } }
