:root {
  --ink: #121212;
  --graphite: #343a46;
  --orange: #e15a00;
  --orange-dark: #bc4b00;
  --paper: #fff;
  --canvas: #f5f5f3;
  --line: #deded9;
  --muted: #71717a;
  --soft: #efefec;
  --success: #247a52;
  --warning: #ad6500;
  --danger: #a33b32;
  --radius: 12px;
  --shadow: 0 14px 42px rgba(18, 18, 18, .07);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 1.16rem; line-height: 1.25; letter-spacing: -.02em; }
small { color: var(--muted); }
.muted { color: var(--muted); }
.is-hidden { display: none !important; }
.eyebrow { margin-bottom: 7px; color: var(--orange); font: 700 .68rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1rem; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 700; line-height: 1.2; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button--primary { color: #fff; background: var(--orange); }
.button--primary:hover:not(:disabled) { background: var(--orange-dark); }
.button--secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button--secondary:hover:not(:disabled) { border-color: var(--graphite); }
.button--ghost { min-height: 36px; padding: 7px 10px; color: var(--muted); background: transparent; }
.button--small { min-height: 34px; padding: 6px 11px; font-size: .82rem; }
.button--wide { width: 100%; }
.text-link { padding: 0; color: var(--orange); background: none; border: 0; cursor: pointer; font-weight: 750; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 32px; height: 32px; padding: 0; color: currentColor; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.3rem; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .78rem; font-weight: 750; letter-spacing: .01em; }
.field em { color: var(--orange); font-size: .68rem; font-style: normal; font-weight: 650; }
.field input, .field select, .field textarea, .request-actions select, .search-form input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .request-actions select:focus, .search-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(225, 90, 0, .1); }
.field--wide { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.stack-md > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 20px; }
.help-text { display: block; margin-top: 10px; }
.file-drop { padding: 16px; background: #fafaf8; border: 1px dashed #c8c8c2; border-radius: 9px; }
.file-drop input { min-height: unset; padding: 0; border: 0; }
.code-editor { min-height: 270px; color: #e4e7ec !important; background: #20232a !important; border-color: #20232a !important; font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace !important; }

.panel { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 14px rgba(18, 18, 18, .025); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel--subtle { background: #fafaf8; box-shadow: none; }
.panel--dark { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.panel--dark small { color: #a9abb0; }
.content-grid { display: grid; gap: 22px; }
.content-grid--dashboard { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); }
.content-grid--form { grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); align-items: start; }
.content-grid--companies { grid-template-columns: minmax(0, 1.45fr) minmax(310px, .65fr); align-items: start; }
.content-grid--templates { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); align-items: start; }
.section-gap { margin-top: 22px; }

.toast-stack { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; width: min(430px, calc(100vw - 32px)); gap: 8px; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; color: #fff; background: var(--graphite); border-radius: 9px; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.toast--success { background: var(--success); }
.toast--warning { background: var(--warning); }
.toast--error { background: var(--danger); }

/* Connexion */
.auth-page { min-height: 100vh; background: radial-gradient(circle at 72% 20%, rgba(225, 90, 0, .09), transparent 24%), var(--canvas); }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 30px 18px; }
.auth-card { width: min(520px, 100%); padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.auth-card--compact { width: min(460px, 100%); }
.auth-logo { display: block; width: 210px; height: auto; margin-bottom: 38px; }
.auth-card h1 { margin-bottom: 14px; }
.auth-card .lead { margin-bottom: 28px; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 23px 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.auth-footer a { color: var(--ink); font-weight: 700; }
.notice { margin-top: 18px; padding: 12px 14px; background: #f7f5ed; border-radius: 8px; font-size: .82rem; }
.notice a { display: block; margin-top: 5px; color: var(--orange); font-weight: 700; word-break: break-all; }

/* Administration */
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; display: flex; height: 100vh; flex-direction: column; padding: 27px 17px 20px; color: #d9d9d6; background: var(--ink); }
.sidebar-brand { display: flex; margin: 0 8px 27px; padding: 8px 9px; background: #fff; border-radius: 7px; }
.sidebar-brand img { display: block; width: 173px; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 11px; padding: 10px 13px; color: #aeb0b5; border-radius: 8px; font-size: .88rem; font-weight: 650; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: #282828; }
.nav-item.is-active { box-shadow: inset 3px 0 var(--orange); }
.nav-icon { width: 20px; color: var(--orange); text-align: center; font-size: 1rem; }
.nav-item--button { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #2f2f2f; padding-top: 16px; }
.admin-identity { display: flex; align-items: center; gap: 10px; padding: 8px 12px 16px; }
.admin-identity span:last-child, .person-cell > span:last-child, .employee-account > span:not(.avatar) { display: flex; min-width: 0; flex-direction: column; }
.admin-identity strong { color: #fff; font-size: .82rem; }
.admin-identity small { color: #82858c; }
.avatar { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--graphite); border-radius: 50%; font-size: .7rem; font-weight: 800; line-height: 1; letter-spacing: 0; text-align: center; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; min-height: 116px; align-items: center; justify-content: space-between; gap: 25px; padding: 26px clamp(24px, 4vw, 54px); background: rgba(245, 245, 243, .94); border-bottom: 1px solid var(--line); }
.topbar-actions { display: flex; gap: 10px; }
.admin-content { padding: 30px clamp(24px, 4vw, 54px) 60px; }
.menu-button { display: none; width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card { position: relative; display: flex; min-height: 160px; flex-direction: column; padding: 21px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.metric-card::after { position: absolute; right: -14px; bottom: -18px; width: 65px; height: 65px; content: ""; background: var(--soft); border-radius: 50%; }
.metric-card:hover { border-color: #babbb7; }
.metric-card > span { color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.metric-card > strong { margin-top: 9px; font-size: 2.5rem; line-height: 1; letter-spacing: -.05em; }
.metric-card > small { margin-top: auto; }
.metric-card--alert::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--orange); }
.step-list { display: grid; margin: 24px 0 0; padding: 0; gap: 20px; list-style: none; }
.step-list li { display: flex; gap: 13px; }
.step-list li > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--orange); border-radius: 50%; font: 700 .7rem ui-monospace, monospace; }
.step-list li div { display: flex; flex-direction: column; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.search-form { display: flex; width: min(660px, 100%); gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 13px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .69rem; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 13px; border-bottom: 1px solid #ecece8; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.person-cell { display: flex; min-width: 210px; align-items: center; gap: 11px; }
.person-cell strong { font-size: .88rem; }
.person-cell small, .cell-note { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-action { color: var(--orange); font-size: .8rem; font-weight: 750; }
.status, .source-pill { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 8px; color: var(--graphite); background: #efefec; border-radius: 999px; font-size: .67rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.status--success { color: var(--success); background: #e8f5ee; }
.status--warning { color: var(--warning); background: #fff2db; }
.status--error, .status--failed { color: var(--danger); background: #f9e8e7; }
.status--muted, .status--draft, .status--archived { color: var(--muted); background: #efefec; }
.empty-state { display: grid; min-height: 220px; place-items: center; align-content: center; padding: 28px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 1rem; }
.empty-state p { max-width: 480px; margin: 6px 0 0; }
.empty-state--small { min-height: 135px; padding: 15px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.toggle-row > span { display: flex; flex-direction: column; }
.toggle-row input { width: 42px; height: 22px; accent-color: var(--orange); }
.company-checklist { display: grid; gap: 7px; margin-top: 16px; }
.company-check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.company-check:has(input:first-child:checked) { background: #fff8f2; border-color: #e6a578; }
.company-check > span { display: flex; min-width: 0; flex-direction: column; }
.company-check input { accent-color: var(--orange); }
.company-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 17px; padding: 17px 20px; }
.company-mark { display: grid; width: 72px; height: 44px; place-items: center; overflow: hidden; background: #fafaf8; border: 1px solid #ecece8; border-radius: 7px; }
.company-mark img { max-width: 64px; max-height: 34px; object-fit: contain; }
.company-mark span { color: var(--orange); font-weight: 900; }
.company-card__info { display: flex; min-width: 0; flex-direction: column; }
.sticky-panel { position: sticky; top: 22px; }
.variable-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0; }
.variable-list span { padding: 4px 7px; color: var(--graphite); background: var(--soft); border-radius: 4px; font: .67rem ui-monospace, monospace; }
.analysis-card { border-left: 4px solid var(--line); }
.analysis-card--valid { border-left-color: var(--success); }
.analysis-card--invalid { border-left-color: var(--danger); }
.analysis-line { margin-top: 10px; padding: 9px 11px; border-radius: 7px; font-size: .8rem; }
.analysis-line--error { color: var(--danger); background: #f9e8e7; }
.analysis-line--warning { color: var(--warning); background: #fff2db; }
.version-list { display: grid; gap: 9px; margin-top: 17px; }
.version-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.version-item:last-child { border-bottom: 0; }
.version-item > div { display: flex; flex-direction: column; }
.version-item form { grid-column: 1 / -1; }
.asset-list { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.asset-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.asset-item > div { display: flex; min-width: 0; flex-direction: column; }
.asset-item strong { max-width: 220px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; word-break: break-all; }
.download-model { display: inline-block; margin: -3px 0 18px; }
.request-list { display: grid; gap: 10px; }
.request-card { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.2fr) auto auto; align-items: center; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; }
.request-card--pending { border-left: 4px solid var(--orange); }
.request-change small { display: block; font-weight: 700; text-transform: uppercase; }
.request-change span { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.request-change del { color: var(--muted); }
.request-change b { color: var(--orange); }
.request-change p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
.request-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.request-actions { display: flex; gap: 6px; }
.request-actions select { min-height: 34px; padding: 5px 8px; font-size: .76rem; }
.text-error { color: var(--danger); }
.sync-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.sync-card { display: flex; min-height: 410px; flex-direction: column; }
.sync-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.sync-card__head .status { margin-left: auto; }
.source-logo { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--graphite); border-radius: 8px; font-weight: 900; }
.source-logo--google { color: #2d66c3; background: #e9f0fd; }
.source-logo--excel { color: #157347; background: #e7f4ec; }
.sync-card > p { min-height: 68px; color: var(--muted); }
.sync-action-form { margin-top: auto; padding-top: 20px; }
.sync-card--manual .button { margin-top: auto; }
.summary-code { display: block; max-width: 540px; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

/* Espace salarié */
.employee-page { background: #f4f4f1; }
.employee-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(22px, calc((100vw - 1240px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.employee-header > a img { display: block; width: 200px; }
.employee-account { display: flex; align-items: center; gap: 10px; }
.employee-account strong { font-size: .8rem; }
.employee-account small { font-size: .68rem; }
.employee-account form { margin-left: 8px; }
.employee-main { width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: 46px 0 70px; }
.employee-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.employee-intro h1 { font-size: clamp(1.7rem, 2.45vw, 2.2rem); }
.employee-intro p { margin: 11px 0 0; color: var(--muted); }
.company-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 3px; }
.company-tab { display: grid; min-width: 175px; min-height: 70px; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.company-tab img, .company-tab__mark { display: grid; width: 42px; max-height: 30px; grid-row: 1 / 3; place-items: center; object-fit: contain; color: var(--orange); font-weight: 900; }
.company-tab > span:nth-child(2) { font-size: .78rem; font-weight: 800; white-space: nowrap; }
.company-tab small { font-size: .63rem; text-transform: uppercase; }
.company-tab.is-active { background: #fff9f4; border-color: var(--orange); box-shadow: inset 0 -2px var(--orange); }
.employee-grid { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(480px, 1.28fr); gap: 20px; align-items: start; }
.locked-fields { border-top: 1px solid var(--line); }
.readonly-field { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.readonly-field > div { display: flex; min-width: 0; flex-direction: column; }
.readonly-field small { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.readonly-field strong { max-width: 330px; overflow: hidden; margin-top: 4px; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.mobile-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 22px; padding: 18px; background: #fff8f2; border: 1px solid #efc5a8; border-radius: 9px; }
.mobile-visibility { grid-column: 1 / -1; padding-top: 4px; }
.signature-preview { min-height: 235px; padding: 29px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.signature-preview iframe, .iphone-copy-zone iframe { display: block; width: 100%; min-height: 170px; background: #fff; border: 0; }
.signature-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.iphone-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px 0 3px; color: var(--ink); background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer; font-weight: 800; }
.iphone-toggle span { color: var(--orange); font-size: .72rem; }
.iphone-guide { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(300px, 1.35fr); gap: 18px; margin-top: 14px; padding: 18px; background: #fafaf8; border-radius: 9px; }
.iphone-guide ol { margin-bottom: 0; padding-left: 18px; color: var(--muted); font-size: .78rem; }
.iphone-copy-zone { min-height: 160px; padding: 18px; overflow: auto; background: #fff; border: 2px dashed #c8c8c2; border-radius: 7px; }
.signature-empty { min-height: 340px; background: #fafaf8; border: 1px dashed #ccccca; border-radius: 9px; }
.empty-icon { display: grid; width: 47px; height: 47px; place-items: center; margin-bottom: 12px; color: var(--orange); background: #fff1e6; border-radius: 50%; font-size: 1.4rem; }
.recent-requests { margin-top: 25px; }
.recent-requests h2 { margin-bottom: 12px; }
.request-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.request-chip { padding: 8px 11px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.modal { width: min(545px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 13px; box-shadow: 0 28px 70px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(18, 18, 18, .58); backdrop-filter: blur(2px); }
.modal > form { display: grid; gap: 17px; padding: 27px; }
.modal-head, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.current-value { display: flex; flex-direction: column; padding: 13px; background: var(--soft); border-radius: 7px; }
.modal-note { margin: 0; color: var(--muted); font-size: .75rem; }
.modal-actions { justify-content: flex-end; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sync-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid--templates { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 1fr 1.3fr; }
  .request-meta, .request-actions { align-self: end; }
}

@media (max-width: 860px) {
  .admin-shell { display: block; }
  .sidebar { position: fixed; left: -270px; width: 248px; transition: left .2s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .2); }
  .admin-page.menu-open .sidebar { left: 0; }
  .menu-button { display: inline-grid; place-items: center; }
  .admin-topbar { justify-content: flex-start; min-height: 95px; }
  .topbar-actions { margin-left: auto; }
  .content-grid--dashboard, .content-grid--form, .content-grid--companies { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .employee-grid { grid-template-columns: 1fr; }
  .employee-account > span { display: none; }
  .iphone-guide { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .panel { padding: 18px; }
  .auth-card { padding: 29px 22px; }
  .auth-logo { width: 185px; }
  .admin-topbar { flex-wrap: wrap; padding: 20px 18px; }
  .admin-topbar h1 { font-size: 1.6rem; }
  .admin-content { padding: 20px 14px 50px; }
  .topbar-actions { width: 100%; }
  .topbar-actions .button { width: 100%; }
  .metric-grid, .sync-grid, .form-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 128px; }
  .toolbar, .search-form { align-items: stretch; flex-direction: column; }
  .company-card { grid-template-columns: 55px 1fr auto; }
  .company-card .button { grid-column: 2 / -1; }
  .request-card { grid-template-columns: 1fr; }
  .request-actions { align-self: auto; }
  .employee-header { padding: 13px 16px; }
  .employee-header > a img { width: 165px; }
  .employee-main { width: calc(100% - 28px); padding-top: 30px; }
  .employee-intro h1 { font-size: 1.75rem; }
  .employee-account .avatar { display: none; }
  .mobile-form { grid-template-columns: 1fr; }
  .signature-actions > * { width: 100%; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .toast-stack { right: 16px; bottom: 16px; }
}
