:root {
  --ink: #10231b;
  --muted: #64756d;
  --green-950: #063d2b;
  --green-900: #075238;
  --green-700: #0d7952;
  --green-100: #e9f4ef;
  --gold: #c6a052;
  --gold-soft: #f7efdf;
  --red: #a43f3a;
  --red-soft: #fff1ef;
  --blue-soft: #eaf2fb;
  --line: #dce5e0;
  --paper: #f4f7f5;
  --white: #fff;
  --shadow: 0 18px 55px rgba(11, 61, 44, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Tahoma, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.kicker { margin: 0 0 8px; color: var(--green-700); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.lead { color: var(--muted); line-height: 1.8; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-size: 12px; font-weight: 800; transition: transform .15s ease, background .15s ease, border .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green-900); border-color: var(--green-900); }
.button.gold { color: var(--green-950); background: var(--gold); border-color: var(--gold); }
.button.ghost { color: var(--green-950); background: white; border-color: var(--line); }
.button.danger-outline { color: var(--red); background: white; border-color: #e6c4c1; }
.button.approve { color: white; background: var(--green-700); border-color: var(--green-700); }
.button.reject { color: white; background: var(--red); border-color: var(--red); }
.button.wide { width: 100%; }
.button.small { min-height: 36px; padding: 0 12px; font-size: 10px; }
.button.tiny { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 9px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--green-700); font-size: 12px; font-weight: 700; }

label { display: grid; gap: 7px; color: #45554d; font-size: 11px; font-weight: 800; }
label small { color: #829087; font-size: 9px; font-weight: 500; line-height: 1.6; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 11px; color: var(--ink); background: white; border: 1px solid #d4ded9; border-radius: 10px; outline: none; }
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }

.alert { max-width: 1380px; margin: 18px auto; padding: 14px 17px; border: 1px solid; border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 1.7; }
.alert.success { color: #17633f; background: #eaf7ef; border-color: #badfc9; }
.alert.danger { color: #85342f; background: var(--red-soft); border-color: #e9c5c2; }

/* Installation and login */
.install-page, .login-page, .access-page { min-height: 100vh; background: radial-gradient(circle at 20% 5%, #edf8f3 0, transparent 35%), var(--paper); }
.install-shell, .login-shell, .access-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.install-card, .login-card, .access-card { width: min(760px, 100%); padding: 36px; background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.login-card, .access-card { width: min(480px, 100%); text-align: center; }
.install-card h1, .login-card h1, .access-card h1 { margin: 5px 0 9px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.03em; }
.logo-pair { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; }
.logo-pair img:first-child { width: 62px; height: 76px; object-fit: contain; }
.logo-pair img:last-child { width: 220px; height: 78px; object-fit: contain; }
.logo-pair span { color: var(--gold); font-size: 28px; }
.install-form { display: grid; gap: 18px; margin-top: 24px; }
.install-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.install-form legend { padding: 0 9px; color: var(--green-900); font-size: 12px; font-weight: 900; }
.install-form fieldset label:first-of-type:last-of-type { grid-column: 1 / -1; }
.login-logo { width: 84px; height: 104px; object-fit: contain; }
.login-card > p:not(.kicker), .access-card p { color: var(--muted); line-height: 1.8; }
.login-form { display: grid; gap: 14px; margin-top: 24px; text-align: start; }

/* Admin */
.admin-header, .provider-header { position: sticky; top: 0; z-index: 30; height: 76px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.admin-header { display: flex; align-items: center; gap: 24px; padding: 0 max(20px, calc((100vw - 1380px) / 2)); }
.admin-brand, .provider-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.admin-brand img, .provider-brand img { width: 40px; height: 52px; object-fit: contain; }
.admin-brand span, .provider-brand span { display: grid; gap: 2px; }
.admin-brand strong, .provider-brand strong { font-size: 13px; }
.admin-brand small, .provider-brand small { color: var(--muted); font-size: 9px; }
.admin-header nav { display: flex; align-items: center; gap: 16px; margin-inline: auto; }
.admin-header nav a { color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 800; }
.admin-header nav a:hover { color: var(--green-700); }
.header-actions, .provider-header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions form { margin: 0; }
.admin-shell { max-width: 1380px; margin: 0 auto; padding: 28px 24px 70px; }
.admin-hero { min-height: 240px; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 38px 48px; color: white; background: linear-gradient(115deg, #063d2b, #0a6d4a); border-radius: 26px; box-shadow: var(--shadow); }
.admin-hero h1 { max-width: 800px; margin: 5px 0 10px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; }
.admin-hero p:not(.kicker) { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .72); line-height: 1.8; }
.admin-hero .kicker { color: #ead6a9; }
.admin-hero img { width: 260px; height: 105px; padding: 10px 16px; object-fit: contain; background: white; border-radius: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0 34px; }
.stats-grid article { min-height: 128px; display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.stats-grid article > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.stats-grid article > strong { margin-top: 9px; color: var(--green-950); font-size: 29px; }
.stats-grid article > small { color: #84918a; font-size: 9px; }
.stats-grid article.highlight { color: white; background: var(--green-950); border-color: var(--green-950); }
.stats-grid article.highlight > span, .stats-grid article.highlight > strong { color: white; }
.admin-section, .agreement-section { scroll-margin-top: 92px; margin-top: 54px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(23px, 3vw, 31px); letter-spacing: -.035em; }
.section-heading > p, .section-heading > div > p:not(.kicker) { max-width: 600px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.panel, .table-panel { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 25px rgba(13, 54, 39, .04); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; padding: 24px; }
.full-span { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.table-panel { overflow: auto; }
.admin-table, .schedule-table { width: 100%; border-collapse: collapse; }
.admin-table { min-width: 1060px; }
.admin-table th, .schedule-table th { padding: 13px 14px; color: #738179; background: #edf2ef; font-size: 9px; font-weight: 900; text-align: start; white-space: nowrap; }
.admin-table td { min-width: 105px; padding: 9px; border-top: 1px solid #e6ece9; }
.admin-table td:nth-child(4), .admin-table td:nth-child(5) { min-width: 180px; }
.admin-table input { min-height: 37px; padding: 7px 8px; font-size: 10px; }
.row-actions { display: flex; gap: 5px; white-space: nowrap; }
.add-row-form { display: grid; grid-template-columns: auto repeat(5, 1fr) auto; align-items: end; gap: 10px; margin-top: 12px; padding: 18px; }
.add-row-form > strong { align-self: center; font-size: 12px; }
.legal-warning, .legal-note { padding: 14px 17px; color: #725a2a; background: var(--gold-soft); border: 1px solid #ead8ad; border-radius: 13px; font-size: 11px; line-height: 1.8; }
.legal-warning { margin-bottom: 14px; }
.clause-admin-list { display: grid; gap: 12px; }
.clause-editor { display: grid; grid-template-columns: 42px 1fr 130px; gap: 16px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.clause-index { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--green-900); border-radius: 50%; font-size: 11px; font-weight: 900; }
.clause-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clause-controls { display: flex; flex-direction: column; gap: 9px; }
.clause-controls .check { display: flex; align-items: center; gap: 7px; }
.clause-controls .check input, .authority-check input { width: 18px; min-height: 18px; }
.add-clause { margin-top: 15px; background: #fbfcfb; border-style: dashed; }
.publish-form { display: grid; grid-template-columns: 1fr 220px auto; align-items: end; gap: 14px; padding: 22px; }
.published-link { margin-bottom: 13px; padding: 20px; }
.published-link > strong { display: block; margin-bottom: 10px; }
.published-link small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { direction: ltr; }
.history-list { display: grid; gap: 10px; }
.history-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 17px 19px; background: white; border: 1px solid var(--line); border-inline-start: 4px solid #b4bdb8; border-radius: 14px; }
.history-card.status-approve { border-inline-start-color: var(--green-700); }
.history-card.status-reject { border-inline-start-color: var(--red); }
.history-card > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.history-card > div:first-child small { grid-column: 2; color: var(--muted); font-size: 9px; }
.revision-badge { grid-row: 1 / 3; align-self: center; padding: 6px 8px; color: var(--green-900); background: var(--green-100); border-radius: 7px; font-size: 10px; font-weight: 900; }
.history-status { display: grid; gap: 4px; text-align: end; }
.history-status b { font-size: 11px; }
.history-status small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.empty-state { padding: 35px; color: var(--muted); background: white; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }

/* Provider agreement */
.provider-header-inner { max-width: 1380px; height: 100%; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; padding: 0 26px; }
.revision-chip { display: inline-grid; place-items: center; min-width: 42px; height: 34px; padding: 0 10px; color: white; background: var(--green-900); border: 1px solid var(--gold); border-radius: 9px; font-size: 11px; font-weight: 900; }
.provider-shell { max-width: 1380px; margin: 0 auto; padding: 28px 26px 45px; }
.agreement-hero { min-height: 360px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 52px 58px; color: white; background: linear-gradient(120deg, #053b2a, #08734e); border-radius: 28px; box-shadow: var(--shadow); }
.agreement-hero::after { content: ''; position: absolute; width: 430px; height: 430px; inset-inline-end: -150px; top: -230px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.025); }
.agreement-hero-copy { position: relative; z-index: 1; max-width: 850px; }
.agreement-hero .kicker { color: #e5d09d; }
.agreement-hero h1 { margin: 5px 0 12px; font-size: clamp(34px, 5vw, 59px); line-height: 1.08; letter-spacing: -.045em; }
.agreement-hero-copy > p:not(.kicker):not(.hero-parties) { max-width: 760px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.9; }
.hero-parties { margin: 0 0 13px; color: white; font-size: 17px; font-weight: 800; }
.hero-parties span { margin: 0 9px; color: var(--gold); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-meta span { padding: 7px 10px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font-size: 9px; }
.hero-meta b { color: white; }
.agreement-hero-logo { position: relative; z-index: 1; flex: 0 0 300px; display: grid; gap: 5px; padding: 18px; color: var(--green-900); background: white; border-radius: 19px; text-align: center; }
.agreement-hero-logo span { font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.agreement-hero-logo img { width: 100%; height: 105px; object-fit: contain; }
.official-stats { margin-bottom: 12px; }
.commercial-note { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.commercial-note span { padding: 6px 10px; color: var(--muted); background: var(--paper); border-radius: 8px; font-size: 9px; font-weight: 800; }
.category-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 6px; background: #e8eeeb; border-radius: 13px; }
.category-filter button { min-height: 35px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 10px; font-weight: 800; }
.category-filter button.active { color: var(--green-950); background: white; box-shadow: 0 3px 10px rgba(10,60,42,.08); }
.category-filter b { min-width: 19px; display: inline-grid; place-items: center; margin-inline-start: 4px; padding: 3px 5px; color: white; background: var(--green-700); border-radius: 99px; font-size: 8px; }
.schedule-table-wrap { overflow: auto; background: white; border: 1px solid var(--line); border-radius: 18px; }
.schedule-table { min-width: 980px; }
.schedule-table td { padding: 15px 14px; border-top: 1px solid #e7eeea; color: #4f5f56; font-size: 10px; vertical-align: middle; }
.schedule-table td strong { color: var(--ink); }
.schedule-table tbody tr:hover { background: #fbfcfb; }
.team-pill { display: inline-flex; padding: 5px 8px; color: var(--green-700); background: var(--green-100); border-radius: 7px; font-weight: 900; }
.team-pill.u17 { color: #88641f; background: var(--gold-soft); }.team-pill.u15 { color: #36518d; background: #eaf0fb; }.team-pill.u14 { color: #7d3c74; background: #f6eaf4; }.team-pill.u13 { color: #9a4b27; background: #fff0e7; }
.time-pill { direction: ltr; display: inline-flex; padding: 5px 8px; color: var(--green-950); background: var(--gold-soft); border-radius: 7px; font-weight: 900; white-space: nowrap; }
.fixture { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.fixture small { color: #99a39e; }
.club-mark { width: 26px; height: 28px; display: grid; place-items: center; color: white; background: var(--green-900); border: 1px solid var(--gold); border-radius: 6px 6px 9px 9px; font-size: 8px; font-weight: 900; }
.terms-count { padding: 7px 10px; color: var(--green-900); background: var(--green-100); border-radius: 8px; font-size: 10px; font-weight: 900; }
.terms-list { counter-reset: terms; display: grid; gap: 10px; margin: 0 0 15px; padding: 0; list-style: none; }
.terms-list li { counter-increment: terms; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.term-number::before { content: counter(terms, decimal-leading-zero); width: 32px; height: 32px; display: grid; place-items: center; color: var(--green-900); background: var(--green-100); border-radius: 50%; font-size: 9px; font-weight: 900; }
.terms-list h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 14px; }
.terms-list h3 span { padding: 3px 6px; color: #735c29; background: var(--gold-soft); border-radius: 5px; font-size: 7px; }
.terms-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.provider-response-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.authority-check { display: flex; align-items: flex-start; gap: 9px; padding: 14px; color: var(--ink); background: var(--gold-soft); border: 1px solid #ead8ad; border-radius: 11px; line-height: 1.7; }
.authority-check input { flex: 0 0 18px; margin-top: 2px; }
.decision-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decision-buttons .button { min-height: 52px; }
.decision-certificate { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 27px; background: white; border: 1px solid var(--line); border-inline-start: 5px solid; border-radius: 18px; }
.decision-certificate.approved { border-inline-start-color: var(--green-700); }.decision-certificate.rejected { border-inline-start-color: var(--red); }
.decision-icon { width: 58px; height: 58px; display: grid; place-items: center; color: white; border-radius: 50%; font-size: 28px; font-weight: 900; }
.approved .decision-icon { background: var(--green-700); }.rejected .decision-icon { background: var(--red); }
.decision-certificate h3 { margin: 3px 0 16px; font-size: 27px; }
.decision-certificate dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 0 0 16px; }
.decision-certificate dl div { padding: 11px; background: var(--paper); border-radius: 9px; }
.decision-certificate dt { color: var(--muted); font-size: 8px; font-weight: 800; }.decision-certificate dd { margin: 5px 0 0; font-size: 11px; font-weight: 800; }
.final-notes { margin-bottom: 15px; padding: 14px; background: var(--gold-soft); border-radius: 10px; }
.final-notes strong { font-size: 10px; }.final-notes p { margin: 5px 0 0; color: #6f5c35; font-size: 11px; line-height: 1.8; }
.agreement-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding: 22px 4px; color: #829088; border-top: 1px solid var(--line); font-size: 8px; }
.agreement-footer p { margin: 0; }

@media (max-width: 1100px) {
  .admin-header nav { display: none; }
  .admin-header .header-actions { margin-inline-start: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .add-row-form { grid-template-columns: repeat(2, 1fr); }
  .add-row-form > strong, .add-row-form > button { grid-column: 1 / -1; }
  .clause-editor { grid-template-columns: 38px 1fr; }
  .clause-controls { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: end; }
  .agreement-hero-logo { flex-basis: 250px; }
}

@media (max-width: 760px) {
  .admin-header, .provider-header { height: 68px; }
  .admin-header { padding: 0 14px; }
  .admin-brand span, .provider-brand span { display: none; }
  .admin-shell, .provider-shell { padding: 16px 13px 40px; }
  .admin-hero { min-height: 350px; align-items: flex-start; padding: 30px 25px; }
  .admin-hero img { position: absolute; width: calc(100% - 50px); max-width: 290px; margin-top: 170px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid article { min-height: 115px; padding: 16px; }
  .stats-grid article > strong { font-size: 23px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .form-grid, .provider-response-form { grid-template-columns: 1fr; padding: 17px; }
  .full-span { grid-column: auto; }
  .clause-editor { grid-template-columns: 1fr; }
  .clause-index { grid-row: auto; }
  .clause-fields { grid-template-columns: 1fr; }
  .clause-controls { grid-column: auto; }
  .publish-form { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
  .history-card { grid-template-columns: 1fr; }
  .history-status { text-align: start; }
  .agreement-hero { min-height: 500px; align-items: flex-start; padding: 35px 25px; }
  .agreement-hero h1 { font-size: 35px; }
  .agreement-hero-logo { position: absolute; inset-inline: 25px; bottom: 24px; height: 125px; }
  .agreement-hero-logo img { height: 82px; }
  .hero-meta { gap: 5px; }
  .category-filter { overflow-x: auto; flex-wrap: nowrap; }
  .category-filter button { flex: 0 0 auto; }
  .schedule-table-wrap { overflow: visible; background: transparent; border: 0; }
  .schedule-table, .schedule-table tbody { display: block; min-width: 0; }
  .schedule-table thead { display: none; }
  .schedule-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 10px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 14px; }
  .schedule-table td { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; }
  .schedule-table td:nth-child(1), .schedule-table td:nth-child(2) { display: none; }
  .schedule-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 1; }
  .schedule-table td:nth-child(3) { grid-column: 1 / -1; }
  .schedule-table td:nth-child(3)::before { content: 'Date'; color: var(--muted); font-size: 8px; }
  [dir="rtl"] .schedule-table td:nth-child(3)::before { content: 'التاريخ'; }
  .fixture { flex-wrap: wrap; }
  .terms-list li { grid-template-columns: 34px 1fr; padding: 15px; }
  .decision-buttons { grid-template-columns: 1fr; }
  .decision-certificate { grid-template-columns: 1fr; }
  .decision-certificate dl { grid-template-columns: 1fr 1fr; }
  .agreement-footer { flex-direction: column; word-break: break-all; }
  .install-card, .login-card, .access-card { padding: 25px 18px; }
  .install-form fieldset { grid-template-columns: 1fr; padding: 15px; }
  .logo-pair img:last-child { width: 170px; }
}

@media (max-width: 440px) {
  .stats-grid { grid-template-columns: 1fr; }
  .agreement-hero { min-height: 575px; }
  .agreement-hero h1 { font-size: 30px; }
  .decision-certificate dl { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 landscape; margin: 9mm; }
  body { background: white; }
  .provider-header, .category-filter, .print-button, .provider-response-form, .legal-note, .button { display: none !important; }
  .provider-shell { max-width: none; padding: 0; }
  .agreement-hero { min-height: auto; padding: 20px 28px; border-radius: 10px; box-shadow: none; }
  .agreement-hero h1 { font-size: 26px; }
  .agreement-hero-copy > p:not(.kicker):not(.hero-parties) { display: none; }
  .agreement-hero-logo { flex-basis: 230px; padding: 8px 14px; }
  .agreement-hero-logo img { height: 62px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); margin: 10px 0; }
  .stats-grid article { min-height: 78px; padding: 10px; }
  .stats-grid article > strong { font-size: 20px; }
  .agreement-section { break-before: page; margin-top: 0; }
  .schedule-table { min-width: 0; }
  .schedule-table th, .schedule-table td { padding: 6px 7px; font-size: 7px; }
  .terms-list { gap: 5px; }
  .terms-list li { break-inside: avoid; padding: 9px; }
  .terms-list p { font-size: 8px; line-height: 1.5; }
  .terms-list h3 { font-size: 10px; }
  .decision-certificate { break-inside: avoid; }
}
