@font-face { font-family: Vazirmatn; src: url('/assets/fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url('/assets/fonts/Vazirmatn-Medium.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url('/assets/fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700 950; font-display: swap; }
.ky-public-tool { font-family: Vazirmatn, Tahoma, sans-serif; }
.ky-public-tool .hero h1 { font-size: 32px; }
.ky-public-tool * { letter-spacing: 0; }
.ky-public-tool .brand-mark, .ky-public-tool .logo { background: #fff; flex-shrink: 0; }
.ky-public-tool .brand-mark img, .ky-public-tool .logo img, .ky-public-tool .print-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ky-public-tool .print-logo { width: 26px; height: 26px; display: inline-flex; vertical-align: middle; background: #fff; }
.ky-public-tool .print-brand strong { display: flex; align-items: center; gap: 6px; }
.ky-public-tool .ticket-row dt { flex: 0 1 48%; }
.ky-public-tool .ticket-row dd, .ky-public-tool .print-line b { min-width: 0; overflow-wrap: anywhere; }
.ky-public-tool .ticket-row, .ky-public-tool .print-line { gap: 8px; }
.ky-public-tool .print-line span { flex: 0 1 48%; min-width: 0; }
.ky-public-tool .ticket-footer, .ky-public-tool .print-bottom { flex-wrap: wrap; overflow-wrap: anywhere; }
.ky-public-tool .result-actions { flex-wrap: wrap; }
.ky-public-tool .related-tools { margin: 24px 0; padding: 16px 0; border-top: 1px solid #e4edf5; }
.related-tools h2 { font-size: 17px; margin: 0 0 12px; }
.related-tools-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.related-tools-links a { color: #0876d1; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.ky-tools-dialog { max-width: min(560px, calc(100% - 24px)); width: 100%; max-height: 85dvh; overflow-y: auto; border: 1px solid #e4edf5; border-radius: 16px; padding: 20px; color: #1e293b; background: #fff; font-family: Vazirmatn, Tahoma, sans-serif; }
.ky-tools-dialog::backdrop { background: rgba(15, 23, 42, .35); }
body.ky-tools-menu-open { overflow: hidden; }
.ky-tools-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ky-tools-dialog h2 { font-size: 18px; margin: 0; }
.ky-tools-dialog button { width: 44px; height: 44px; display: grid; place-items: center; background: #f6f9fc; color: #64748b; border: 1px solid #e4edf5; border-radius: 8px; cursor: pointer; }
.ky-tools-dialog svg { width: 20px; height: 20px; }
.ky-tools-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ky-tools-links a { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 52px; border: 1px solid #e4edf5; border-radius: 8px; color: #1976d2; font-size: 13px; text-decoration: none; }
.ky-tools-links a[aria-current] { background: #eaf4ff; }
.ky-tools-bottom-nav { display: none; }
.ky-tools-menu-trigger { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d6e4f0; background: #fff; color: #1976d2; border-radius: 8px; padding: 6px 10px; min-height: 40px; cursor: pointer; font: 12px Vazirmatn, Tahoma, sans-serif; }
.ky-tools-menu-trigger svg { width: 18px; height: 18px; }
.ky-tools-dialog a:focus-visible, .ky-tools-dialog button:focus-visible, .ky-tools-bottom-nav :focus-visible { outline: 3px solid #1976d2; outline-offset: -3px; }
@media (max-width: 760px) {
  body.ky-has-tools-nav { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .ky-public-tool .hero h1 { font-size: 27px; }
  .ky-public-tool .topbar-left .nav-pill, .ky-public-tool .topnav .nav-chip { display: none; }
  .ky-public-tool input:not([type=checkbox]), .ky-public-tool select { font-size: 16px; min-height: 46px; }
  .ky-public-tool .form-grid, .ky-public-tool .grid2 { grid-template-columns: minmax(0, 1fr); }
  .ky-public-tool .field label { font-size: 12px; }
  .ky-public-tool .field-note, .ky-public-tool .hint { font-size: 11px; }
  .ky-tools-bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; position: fixed; z-index: 80; inset: auto 0 0; background: rgba(255, 255, 255, .97); border-top: 1px solid #e4edf5; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(15, 23, 42, .04); }
  .ky-tools-bottom-nav a, .ky-tools-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 56px; min-width: 0; color: #64748b; font: 11px Vazirmatn, Tahoma, sans-serif; text-decoration: none; border: 0; background: transparent; cursor: pointer; }
  .ky-tools-bottom-nav svg { width: 21px; height: 21px; }
  .ky-tools-bottom-nav [aria-current] { color: #1976d2; }
  .ky-tools-links { grid-template-columns: minmax(0, 1fr); }
  .ky-public-tool .renew-row, .ky-public-tool .year-head { gap: 5px; }
}
@media print {
  @page ky-tool-label { size: 100mm 150mm; margin: 3mm; }
  body.ky-public-tool { page: ky-tool-label; }
  html:has(body.ky-public-tool), body.ky-public-tool { width: 94mm !important; height: 144mm !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important; }
  body.ky-public-tool > :not(#printOnly):not(#printLabel) { display: none !important; }
  body.ky-public-tool #printOnly, body.ky-public-tool #printLabel { display: block !important; position: relative !important; inset: auto !important; width: 94mm !important; height: 144mm !important; max-height: 144mm !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden !important; font-family: Vazirmatn, Tahoma, sans-serif !important; }
  .ky-label-content { width: 100%; transform-origin: top right; }
  #printLabel .ky-label-content { padding: 2mm; }
  .ky-label-content img { object-fit: contain; }
  .ky-public-tool .print-table { font-size: 8.5px; }
  .ky-public-tool .ticket-brand { font-size: 15px !important; }
  .ky-public-tool .ticket-body { padding: 3mm 4mm !important; }
  .ky-public-tool .ticket-rule { margin: 3mm 0 !important; }
  .ky-public-tool .ticket-rows { gap: 2mm !important; }
  .ky-public-tool .ticket-footer { padding: 2mm 4mm !important; }
  .ky-public-tool .print-line { align-items: flex-start; padding: 1.8px 0 !important; line-height: 1.4; }
  .ky-public-tool .print-bottom { margin-top: 6px; }
}
