/* Screen styling. The original document and print layout use styles.css. */
@media screen {
  :root {
    --green: #235f9e;
    --green-dark: #194978;
    --green-light: #edf4fc;
    --ink: #26364a;
    --muted: #65758b;
    --border: #dce5ee;
    --background: #f3f6fa;
    --yellow: #f2c94c;
    --shadow: 0 5px 24px rgba(34, 67, 103, .045);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  }
  body { font-size: 15px; background: #f3f6fa; color: var(--ink); }
  html { scroll-padding-top: 24px; }
  .site-header { border-top: 4px solid #e9c84b; border-bottom-color: #e0e8f1; }
  .header-inner { max-width: 1280px; min-height: 106px; padding: 17px 40px; gap: 29px; }
  .brand { flex: 0 0 auto; }
  .brand img { display: block; width: 268px; height: auto; aspect-ratio: 1233 / 304; object-fit: contain; }
  .header-divider { height: 42px; background: #dfe6ef; }
  .header-label { font-size: 11px; color: #335577; letter-spacing: 1.45px; }
  .header-label span { font-size: 13px; color: #718398; margin-top: 5px; }
  .original-link { border: 1px solid #dce5ee; padding: 10px 14px; border-radius: 9px; font-size: 12px; color: #4d6680; background: #fff; min-height: 42px; }
  .original-link:hover { background: #f1f6fc; border-color: #aebfd3; }
  .original-link svg { width: 18px; height: 18px; }
  .page-wrap { max-width: 1280px; padding: 34px 40px 0; }
  .page-heading { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding: 32px 34px; margin-bottom: 28px; border: 1px solid #dde6ef; border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
  .page-heading::after { display: none; }
  .heading-copy { min-width: 0; flex: 1; }
  .eyebrow { width: fit-content; background: #fff6d9; border: 1px solid #f4e5aa; padding: 5px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #80692b; letter-spacing: 1.3px; gap: 8px; }
  .brand-dot { width: 6px; height: 6px; background: #d4ac35; box-shadow: none; }
  .page-heading h1 { font-size: 33px; color: #1e3c60; line-height: 1.24; letter-spacing: -.85px; margin: 16px 0 8px; font-weight: 700; }
  .heading-subtitle { font-size: 17px; color: #536e89; margin: 0 0 13px; letter-spacing: 0; }
  .heading-description { font-size: 13px; color: #768598; line-height: 1.7; max-width: 540px; }
  .heading-guide { width: 229px; flex-shrink: 0; border-left: 1px solid #e3eaf2; padding-left: 29px; color: #607c98; }
  .heading-guide-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: #edf4fc; color: #4673a2; margin-bottom: 13px; }
  .heading-guide-icon svg { width: 27px; height: 27px; stroke-width: 1.25; }
  .guide-eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.5px; color: #7590a8; }
  .heading-guide p { font-size: 14px; line-height: 1.6; margin: 7px 0 13px; }
  .heading-guide strong { font-weight: 650; color: #30567c; }
  .guide-steps { display: flex; align-items: center; gap: 11px; }
  .guide-steps span { display: flex; align-items: center; gap: 4px; font-size: 10px; white-space: nowrap; color: #70839a; }
  .guide-steps b { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #edf2f8; font-weight: 650; font-size: 9px; color: #5a7898; }
  .workspace { grid-template-columns: minmax(0, 1fr) 306px; gap: 26px; }
  .form-card { border-radius: 16px; border-color: #dde6ef; box-shadow: var(--shadow); margin-bottom: 24px; }
  .section-heading { padding: 23px 30px; gap: 15px; background: #fcfdff; border-bottom-color: #e5ecf3; }
  .section-number { width: 43px; height: 43px; border-radius: 12px; background: #eaf2fc; color: #31689f; font-size: 15px; font-weight: 700; }
  #kelulusan .section-number { background: #eaf5ec; color: #42734b; }
  #doktor .section-number { background: #fff5da; color: #92733e; }
  .section-heading h2 { font-size: 19px; letter-spacing: -.3px; color: #2d4765; font-weight: 650; margin-bottom: 3px; }
  .section-heading p { font-size: 12px; color: #7a8a9e; }
  .section-tag { font-size: 9px; letter-spacing: .6px; background: #eaf2fc; color: #537899; border: 1px solid #deebf6; border-radius: 6px; padding: 5px 8px; }
  .neutral-tag { color: #708297; background: #f1f4f8; border-color: #e3e9ef; }
  .card-body { padding: 29px 30px 26px; }
  .field { margin-bottom: 24px; }
  .field label { font-size: 13px; font-weight: 600; color: #40546d; margin-bottom: 9px; line-height: 1.5; }
  .required { color: #b68338; }
  input:not([type=radio]):not([type=file]), textarea { background: #fff; border: 1px solid #d7e1ec; border-radius: 9px; color: #2c4360; font-size: 14px; min-height: 49px; padding: 12px 14px; }
  input::placeholder, textarea::placeholder { color: #8a99ac; font-size: 13px; }
  input:hover, textarea:hover { border-color: #a9bfd5; }
  input:focus, textarea:focus { border-color: #648fb8; box-shadow: 0 0 0 3px #eaf2fc; }
  input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 2px #b3313610; }
  input[type=time], input[type=date] { min-height: 49px; color-scheme: light; }
  textarea { min-height: 109px; line-height: 1.75; }
  .sentence-help { font-size: 12px; line-height: 1.7; color: #75869a; margin-top: 10px; }
  .field-meta { font-size: 11px; color: #8797a9; margin-top: 8px; }
  .field-hint { font-size: 11px; color: #8192a4; line-height: 1.8; margin-top: 11px; }
  .field-grid { gap: 20px; }
  .field-grid .field { margin-bottom: 23px; }
  .period-grid { padding: 17px 18px 0; border: 1px solid #e2eaf3; background: #f7fafe; border-radius: 11px; margin-bottom: 24px; }
  .period-grid .field { margin-bottom: 18px; }
  .period-grid input { background: #fff; }
  .duration-note { margin-top: -12px; margin-bottom: 25px; font-size: 12px; color: #547596; }
  .small-dot { background: #719bc0; }
  .signature-field { margin-bottom: 27px; }
  .signature-label-row { margin-bottom: 10px; }
  .signature-label-row label { font-size: 13px; font-weight: 600; color: #40546d; }
  .optional-label { font-size: 10px; background: #f1f5f9; color: #8393a4; border-radius: 5px; padding: 2px 7px; }
  .signature-pad { border: 1px dashed #bccdde; background: #fcfdff; border-radius: 10px; }
  .signature-pad canvas { min-height: 135px; }
  .signature-placeholder { color: #9cabc0; font-size: 15px; font-family: Georgia, serif; }
  .signature-baseline { background: #e1e9f2; }
  .signature-tools { margin-top: 11px; }
  .text-button { font-size: 12px; color: #4c75a0; padding: 4px 0; }
  .text-button svg { width: 16px; height: 16px; }
  .muted-button { color: #8193a7; }
  .required-note { color: #8291a2; font-size: 11px; }
  .approval-fieldset { padding: 18px; border: 1px solid #e1e8f0; background: #f8fafd; border-radius: 11px; margin-bottom: 26px; }
  .approval-fieldset legend { float: left; font-size: 13px; color: #5b7089; line-height: 1.75; margin-bottom: 14px; }
  .approval-fieldset:after { content: ""; display: block; clear: both; }
  .radio-options { clear: both; gap: 12px; }
  .radio-option { background: #fff; border-color: #d8e2ec; border-radius: 8px; font-size: 13px; min-height: 47px; padding: 12px 13px; gap: 10px; color: #61758f; }
  .radio-check { width: 17px; height: 17px; border-color: #b6c7d8; }
  .radio-option:has(input:checked) { background: #edf5ff; border-color: #759cc3; color: #235f9e; }
  .radio-option:has(input:focus-visible) { outline-color: #8db1d4; }
  #clear-approval { margin-top: 10px; font-size: 11px; }
  .doctor-upload-area { background: #f8fbfe; border-color: #cbdbea; border-radius: 11px; padding: 27px 20px; }
  .upload-illustration { width: 43px; height: 43px; color: #7394b6; }
  .doctor-upload-area h3 { font-size: 14px; color: #4b7095; margin-top: 12px; font-weight: 600; }
  .doctor-upload-area p { font-size: 11px; color: #8398ad; margin-top: 6px; margin-bottom: 17px; }
  .doctor-preview-area { background: #f9fbfe; border-color: #dde6ef; border-radius: 10px; padding: 19px; }
  .doctor-preview-area > div { font-size: 12px; }
  .button { min-height: 46px; padding: 11px 17px; border-radius: 9px; font-size: 13px; font-weight: 600; }
  .button svg { width: 18px; height: 18px; }
  .primary-button { background: #235f9e; border-color: #235f9e; box-shadow: 0 3px 8px #1d508815; }
  .primary-button:hover { background: #194b7d; border-color: #194b7d; }
  .secondary-button { border-color: #ccdae8; color: #41658a; background: #fff; }
  .secondary-button:hover { background: #f0f6fd; border-color: #a5bdd6; }
  .compact-button { min-height: 39px; font-size: 12px; padding: 8px 20px; }
  .button:focus-visible, .icon-button:focus-visible, a:focus-visible, .text-button:focus-visible { outline-color: #88afd2; }
  .form-actions { margin-top: 3px; padding: 16px 0 4px; gap: 12px; }
  .form-actions .button { min-height: 48px; padding: 12px 23px; font-size: 13px; }
  .side-column { top: 24px; }
  .summary-card { border-radius: 14px; border-color: #dce5ef; box-shadow: var(--shadow); }
  .summary-header { color: #fff; background: #284f78; border-bottom: 0; padding: 19px 22px; gap: 10px; }
  .summary-header h2 { font-size: 15px; font-weight: 600; }
  .summary-header svg { width: 19px; height: 19px; }
  .live-dot { background: #f5d368; width: 6px; height: 6px; }
  .summary-body { padding: 24px 22px 19px; }
  .completion-row { font-size: 11px; color: #7d91a8; margin-bottom: 10px; }
  .completion-row strong { color: #54779c; font-size: 12px; }
  .progress-track { height: 6px; background: #edf2f8; }
  .progress-track span { background: #77a0cb; }
  .summary-details { margin-top: 24px; margin-bottom: 25px; }
  .summary-details div { padding-bottom: 17px; }
  .summary-details dt { font-size: 10px; color: #8396ab; margin-bottom: 6px; }
  .summary-details dd { font-size: 13px; color: #496784; line-height: 1.6; }
  .pending-pill { background: #fff7dd; color: #9a8144; padding: 4px 8px; font-size: 11px; }
  .approved-pill { background: #eef6e9; color: #527b48; }
  .rejected-pill { background: #fbefed; color: #a0413c; }
  .summary-caption { color: #8a9aad; font-size: 10px; margin-top: 11px; line-height: 1.7; }
  .draft-info { background: #f8fafd; border-top-color: #e3ebf3; padding: 14px 22px; font-size: 10px; color: #8196aa; }
  .draft-state-dot { background: #bdcbda; }
  .draft-state-dot.saved { background: #75a56b; }
  .draft-state-dot.dirty { background: #d3b563; }
  .section-nav { margin: 18px 0 23px; padding: 6px 16px; background: #fff; border: 1px solid #dfe7ef; border-radius: 12px; }
  .section-nav a { padding: 12px 0; font-size: 12px; color: #728ba4; gap: 11px; }
  .section-nav a:not(:last-child) { border-bottom: 1px solid #edf2f7; }
  .section-nav a:hover { color: #235f9e; }
  .section-nav span { width: 22px; font-size: 10px; color: #7c9dbc; }
  .section-nav svg { color: #a7bacd; }
  .help-note { padding-top: 20px; border-top-color: #dce6f0; gap: 10px; }
  .help-icon { border-color: #97aec4; color: #7993ac; margin-top: 3px; }
  .help-note strong { color: #647d96; font-size: 11px; }
  .help-note p { color: #7d92a7; font-size: 11px; line-height: 1.8; margin-top: 8px; }
  .new-form-button { margin-top: 23px; color: #8395a9; font-size: 11px; }
  .page-footer { border-top-color: #dde5ef; color: #8b9aad; font-size: 11px; margin-top: 37px; padding: 24px 0; }
  .toast { background: #244f79; border-radius: 10px; font-size: 13px; }
  .toast.error-toast { background: #943a39; }
  .preview-dialog { border-color: #d5e1ee; border-radius: 16px; background: #f3f6fa; }
  dialog::backdrop { background: #18344c90; }
  .dialog-header .eyebrow { font-size: 9px; border: 0; padding: 0; color: #7a96b0; background: none; letter-spacing: 1.7px; }
  .dialog-header h2 { font-size: 19px; color: #345775; }
  .dialog-header { border-bottom-color: #dde6ef; }
  .icon-button { color: #7f96ae; border-color: #dae4ee; }
  .icon-button:hover { background: #edf4fc; }
  .preview-caption { color: #8699ab; font-size: 12px; }
  .dialog-actions { border-top-color: #dfe7f0; }
  .dialog-actions .button { min-height: 41px; font-size: 12px; }
  .reset-icon { background: #edf4fc; color: #4d80af; }
  .danger-text { color: var(--red); }
}
@media screen and (max-width: 1120px) {
  .header-inner, .page-wrap { padding-left: 28px; padding-right: 28px; }
  .page-heading { padding: 28px; gap: 20px; }
  .page-heading h1 { font-size: 30px; }
  .heading-guide { width: 207px; padding-left: 23px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 278px; gap: 22px; }
  .card-body, .section-heading { padding-left: 25px; padding-right: 25px; }
  .section-tag { display: none; }
}
@media screen and (max-width: 980px) {
  .workspace { display: flex; flex-direction: column; gap: 24px; }
  .form-column, .side-column { width: 100%; }
  .side-column { position: static; }
  .summary-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 25px; }
  .summary-card .full-width { max-width: 300px; margin: 0 auto; display: flex; }
  .section-nav { display: none; }
  .help-note { margin-top: 22px; }
  .heading-guide { display: none; }
  .page-heading h1 { font-size: 32px; }
  .desktop-break { display: none; }
}
@media screen and (max-width: 640px) {
  .header-inner { padding: 14px 20px; min-height: 91px; gap: 15px; }
  .brand img { width: 237px; }
  .header-label, .header-divider { display: none; }
  .original-link { padding: 9px; min-height: 37px; min-width: 37px; border-radius: 8px; }
  .original-link span { display: none; }
  .original-link svg { width: 17px; height: 17px; }
  .page-wrap { padding: 22px 16px 0; }
  .page-heading { padding: 24px 22px; margin-bottom: 23px; border-radius: 14px; }
  .page-heading h1 { font-size: 27px; line-height: 1.3; margin: 14px 0 10px; letter-spacing: -.65px; }
  .heading-subtitle { font-size: 15px; line-height: 1.5; margin-bottom: 11px; }
  .heading-description { font-size: 12px; line-height: 1.8; }
  .eyebrow { font-size: 9px; padding: 5px 8px; letter-spacing: 1px; }
  .section-heading { padding: 21px 21px; gap: 13px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading p { font-size: 11px; line-height: 1.7; }
  .section-number { width: 39px; height: 39px; font-size: 14px; flex-shrink: 0; }
  .form-card { border-radius: 13px; margin-bottom: 20px; }
  .card-body { padding: 25px 21px; }
  .field label, .signature-label-row label { font-size: 13px; }
  .field { margin-bottom: 24px; }
  .field-grid { gap: 16px; grid-template-columns: 1fr 1fr; }
  .period-grid { padding: 15px 13px 0; margin-bottom: 24px; }
  .period-grid .field label { font-size: 11px; min-height: 34px; display: flex; align-items: flex-end; flex-wrap: wrap; }
  input:not([type=radio]):not([type=file]), textarea { font-size: 16px; padding: 11px 12px; min-height: 47px; }
  input::placeholder, textarea::placeholder { font-size: 13px; }
  .signature-pad canvas { min-height: 130px; }
  .signature-placeholder { font-size: 14px; }
  .signature-tools { gap: 10px; }
  .text-button { font-size: 11px; }
  .approval-fieldset { padding: 16px 13px; }
  .approval-fieldset legend { font-size: 12px; }
  .radio-option { font-size: 12px; min-height: 46px; padding: 11px 10px; gap: 8px; }
  .doctor-upload-area { padding: 26px 15px; }
  .doctor-upload-area h3 { font-size: 13px; }
  .form-actions { gap: 10px; padding-top: 2px; }
  .form-actions .button { font-size: 12px; min-height: 47px; padding: 11px 12px; }
  .summary-body { padding: 24px 22px 20px; }
  .summary-details dd { font-size: 13px; }
  .page-footer { font-size: 10px; padding: 23px 0; margin-top: 29px; }
  .dialog-header { padding: 17px; }
  .dialog-header h2 { font-size: 17px; }
  .preview-caption { font-size: 11px; margin-left: 17px; margin-right: 17px; }
  .dialog-actions .button { font-size: 11px; min-height: 40px; padding: 8px 11px; }
}
@media screen and (max-width: 400px) {
  .header-inner { padding-left: 16px; padding-right: 16px; }
  .brand img { width: 218px; }
  .page-wrap { padding-left: 12px; padding-right: 12px; }
  .page-heading { padding: 23px 20px; }
  .page-heading h1 { font-size: 25px; }
  .card-body, .section-heading { padding-left: 19px; padding-right: 19px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .period-grid { grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px 11px 0; }
  .period-grid input { font-size: 14px; padding-left: 9px; padding-right: 9px; }
  .signature-tools .text-button { font-size: 10px; }
  .form-actions .button { padding-left: 9px; padding-right: 9px; font-size: 11px; }
  .form-actions .primary-button span { margin-left: 3px; }
  .radio-options { gap: 8px; }
  .radio-option { font-size: 11px; }
  .page-footer { gap: 6px; }
  .dialog-actions .button { font-size: 10px; padding: 8px; }
}
