@layer base, layout, components, responsive;
@layer base {
  :root {
    --blue: #0947b9;
    --dark: #003576;
    --navy: #04122c;
    --teal: #01bea2;
    --pale: #ebf1fa;
    --bg: #f5f8fc;
    --muted: #5e6c82;
    --border: #d9e2f1;
    --green: #067647;
    --amber: #b54708;
    --red: #b42318;
    --heading:
      "YWCT Clarify", "YWFT Clarify", Inter, "Segoe UI", Arial, sans-serif;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.55;
    background: var(--bg);
  }
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
  }
  h1,
  h2,
  h3,
  h4,
  th,
  label,
  .app-title,
  .nav-label {
    font-family: var(--heading);
  }
  h1,
  h2,
  h3,
  p {
    margin: 0 0 12px;
  }
  h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.7px;
  }
  h2 {
    font-size: 21px;
    letter-spacing: -0.3px;
  }
  h3 {
    font-size: 17px;
  }
  a {
    color: var(--blue);
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }
  button {
    cursor: pointer;
  }
  button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid #4488ee;
    outline-offset: 3px;
  }
  input,
  select,
  textarea {
    border: 1px solid #bac9df;
    border-radius: 8px;
    padding: 10px 12px;
    background: white;
    color: var(--navy);
    max-width: 100%;
  }
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    accent-color: var(--blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  label {
    font-weight: 600;
    font-size: 14px;
  }
  small,
  .small {
    font-size: 12px;
  }
  .muted {
    color: var(--muted);
  }
  .hidden {
    display: none !important;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .skip-link {
    position: fixed;
    top: -60px;
    left: 10px;
    z-index: 100;
    background: white;
    padding: 12px;
  }
  .skip-link:focus {
    top: 10px;
  }
  svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 24px 0;
  }
}
@layer layout {
  .header {
    height: 104px;
    background: white;
    border-bottom: 5px solid var(--teal);
    box-shadow: 0 2px 12px #04122c08;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 max(30px, calc((100vw - 1480px) / 2));
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .header-brand {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .wordmark {
    font-size: 31px;
    color: var(--blue);
    font-weight: 750;
    letter-spacing: -1.5px;
    line-height: 1;
  }
  .wordmark span {
    color: var(--teal);
  }
  .wordmark small {
    display: block;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 8px;
    margin-top: 7px;
    color: var(--muted);
  }
  .wordmark img {
    display: inline-block;
    width: 180px;
    height: 44px;
    object-fit: cover;
    vertical-align: middle;
  }
  .brand-divider {
    height: 43px;
    width: 1px;
    background: var(--border);
  }
  .app-title {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.7px;
  }
  .subtitle {
    font-size: 12px;
    color: var(--muted);
  }
  .identity {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .identity-name {
    font-size: 13px;
    font-weight: 650;
  }
  .avatar {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    background: var(--pale);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-weight: 650;
    color: var(--blue);
  }
  .identity select {
    padding: 5px;
    font-size: 11px;
    max-width: 150px;
  }
  .shell {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 34px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 30px;
  }
  #sidebar {
    position: sticky;
    top: 134px;
    height: calc(100vh - 164px);
    display: flex;
    flex-direction: column;
    padding-right: 8px;
  }
  .nav-group {
    margin-bottom: 25px;
  }
  .nav-label {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.7px;
    color: #7b8ba3;
    margin: 7px 14px 10px;
  }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    margin: 3px 0;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }
  .nav-link:hover {
    background: #e9eff8;
  }
  .nav-link.active {
    color: var(--blue);
    background: #e5eefc;
  }
  .nav-link.active svg {
    stroke: var(--blue);
  }
  .sidebar-footer {
    margin-top: auto;
    padding: 18px 14px;
    color: var(--muted);
    font-size: 11px;
    border-top: 1px solid var(--border);
  }
  #main {
    min-width: 0;
    padding-bottom: 50px;
    outline: none;
  }
  .section {
    margin-top: 28px;
  }
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
  }
  .section-header h2 {
    margin: 0;
  }
  .grid {
    display: grid;
    gap: 18px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flex {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .spread {
    justify-content: space-between;
  }
  .wrap {
    flex-wrap: wrap;
  }
  .stack {
    display: grid;
    gap: 16px;
  }
  .mobile-menu {
    display: none;
  }
  .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
  }
  .toolbar input {
    min-width: 240px;
  }
  .toolbar .push {
    margin-left: auto;
  }
  .two-column {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
  }
}
@layer components {
  .hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 33px 36px;
    color: white;
    background: linear-gradient(115deg, #041b42 0%, #064492 100%);
    min-height: 183px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .hero:after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border: 45px solid #01bea215;
    border-radius: 50%;
    right: -45px;
    top: -80px;
    pointer-events: none;
  }
  .hero > div {
    position: relative;
    z-index: 1;
  }
  .hero p {
    max-width: 610px;
    color: #d8e5f7;
    font-size: 14px;
    margin-bottom: 0;
  }
  .eyebrow {
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 13px;
    color: var(--teal);
  }
  .hero .eyebrow {
    color: #70e2d1;
  }
  .hero-badge {
    border: 1px solid #ffffff25;
    border-radius: 12px;
    padding: 14px 20px;
    white-space: nowrap;
    color: #d6e5fc;
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .hero-badge svg {
    color: #68ddca;
    width: 23px;
    height: 23px;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
  }
  .metric {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: white;
    box-shadow: 0 3px 9px #04122c03;
  }
  .metric-label {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
  }
  .metric-label svg {
    color: #8aa6cf;
    width: 17px;
    height: 17px;
  }
  .metric-value {
    font-family: var(--heading);
    font-size: 32px;
    letter-spacing: -1px;
    font-weight: 700;
    margin: 9px 0 3px;
  }
  .metric-note {
    font-size: 11px;
    color: var(--muted);
  }
  .card {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: white;
    padding: 24px;
    box-shadow: 0 4px 14px #04122c04;
  }
  .course-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition:
      transform 0.15s,
      box-shadow 0.15s;
  }
  .course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px #04122c09;
  }
  .course-card h3 {
    line-height: 1.4;
    margin: 17px 0 9px;
  }
  .course-card p {
    font-size: 12px;
    color: var(--muted);
    flex: 1;
  }
  .course-card .meta {
    margin: 12px 0 17px;
  }
  .course-card .button {
    margin-top: 17px;
  }
  .brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--pale);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--blue);
    font-size: 15px;
    flex-shrink: 0;
  }
  .brand-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }
  .brand-icon.large {
    width: 64px;
    height: 64px;
    font-size: 21px;
  }
  .meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .meta svg {
    width: 13px;
    height: 13px;
  }
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pale);
    color: var(--blue);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
    border-radius: 5px;
    padding: 4px 8px;
    white-space: nowrap;
  }
  .tag.green {
    background: #e9f7ee;
    color: var(--green);
  }
  .tag.amber {
    background: #fff3e5;
    color: var(--amber);
  }
  .tag.red {
    background: #fff0ee;
    color: var(--red);
  }
  .tag.grey {
    background: #f0f3f8;
    color: var(--muted);
  }
  .progress-label {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: var(--muted);
  }
  progress {
    appearance: none;
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--pale);
    display: block;
  }
  progress::-webkit-progress-bar {
    background: var(--pale);
  }
  progress::-webkit-progress-value {
    background: var(--blue);
    border-radius: 20px;
  }
  progress::-moz-progress-bar {
    background: var(--blue);
  }
  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
  }
  .button:hover {
    filter: brightness(0.95);
  }
  .button.secondary {
    background: var(--pale);
    color: var(--blue);
  }
  .button.outline {
    background: white;
    border-color: var(--border);
    color: var(--blue);
  }
  .button.teal {
    background: var(--teal);
    color: #003a39;
  }
  .button.danger {
    background: #fff0ee;
    color: var(--red);
  }
  .button.small {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .button svg {
    width: 15px;
    height: 15px;
  }
  .icon-button {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 7px;
    border-radius: 6px;
  }
  .text-link {
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    text-decoration: none;
  }
  .callout {
    display: flex;
    gap: 17px;
    padding: 22px 25px;
    background: #eaf2fc;
    border: 1px solid #d7e5f8;
    border-radius: 13px;
  }
  .callout p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
  }
  .callout h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .callout > svg {
    color: var(--blue);
    margin-top: 2px;
  }
  .callout.warning {
    background: #fff8ec;
    border-color: #f0dfbc;
  }
  .callout.warning p {
    color: #825020;
  }
  .demo-banner {
    font-size: 11px;
    color: #765012;
    padding: 8px 14px;
    background: #fff4dc;
    border-radius: 8px;
    margin-bottom: 18px;
  }
  .table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
  }
  th {
    background: #f9fbfe;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 650;
    padding: 14px 16px;
    white-space: nowrap;
  }
  td {
    padding: 17px 16px;
    border-top: 1px solid #e9eef6;
    vertical-align: middle;
  }
  td strong {
    font-size: 12px;
  }
  td .muted {
    font-size: 11px;
  }
  td .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 11px;
    border-radius: 9px;
  }
  td progress {
    min-width: 85px;
  }
  .empty {
    text-align: center;
    padding: 45px 20px;
    color: var(--muted);
  }
  .empty h3 {
    color: var(--navy);
    margin-top: 14px;
  }
  .empty svg {
    width: 30px;
    height: 30px;
    color: var(--blue);
  }
  .lesson-nav {
    padding: 12px;
  }
  .lesson-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 10px;
    text-decoration: none;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    margin: 3px 0;
  }
  .lesson-item.active {
    color: var(--blue);
    background: var(--pale);
  }
  .lesson-number {
    border: 1px solid var(--border);
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 10px;
  }
  .lesson-number.done {
    background: #e6f7ee;
    color: var(--green);
    border-color: #b6e4cc;
  }
  .lesson-content {
    padding: 32px;
    min-height: 400px;
  }
  .lesson-body {
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-line;
    color: #394b63;
    margin: 25px 0;
    max-width: 760px;
  }
  .lesson-content video,
  .lesson-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
  }
  .lesson-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 28px;
  }
  .question {
    border: 0;
    margin: 0 0 25px;
    padding: 0;
  }
  .question legend {
    font-weight: 650;
    font-size: 15px;
    margin-bottom: 12px;
  }
  .answer {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 14px;
    margin: 9px 0;
    font-weight: 400;
    cursor: pointer;
  }
  .answer:has(input:checked) {
    border-color: var(--blue);
    background: var(--pale);
  }
  .champion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .champion .avatar {
    background: #e6f7f1;
    color: var(--green);
  }
  .award-module {
    padding: 13px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .field.full {
    grid-column: 1/-1;
  }
  .check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 12px;
  }
  .modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
  }
  .modal-heading h2 {
    margin: 0;
  }
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  dialog {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: min(840px, calc(100% - 30px));
    max-height: 90vh;
    color: var(--navy);
    box-shadow: 0 20px 100px #04122c44;
  }
  dialog::backdrop {
    background: #04122c77;
    backdrop-filter: blur(3px);
  }
  .form-error {
    color: var(--red);
    font-size: 13px;
    margin-top: 14px;
  }
  .editor-block {
    border: 1px solid var(--border);
    background: #f9fbfe;
    border-radius: 10px;
    padding: 18px;
    margin: 15px 0;
  }
  .editor-block textarea {
    width: 100%;
  }
  .editor-block .field {
    margin-bottom: 12px;
  }
  .icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .icon-choice {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 8px;
    background: var(--pale);
    display: grid;
    gap: 7px;
    justify-items: center;
    font-weight: 400;
  }
  .icon-choice:has(input:checked) {
    border-color: var(--blue);
  }
  #toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 430px;
    background: var(--navy);
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 20px #04122c30;
    z-index: 100;
    font-size: 13px;
    display: none;
  }
  #toast.visible {
    display: block;
  }
  .loading {
    padding: 60px;
    text-align: center;
    color: var(--muted);
  }
  .login {
    max-width: 700px;
    margin: 50px auto;
  }
  .login .hero {
    min-height: 250px;
  }
  .login .card {
    margin-top: 20px;
  }
  .login .button {
    margin-top: 15px;
  }
  .certificate {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid #c9d8e9;
    border-left: 10px solid var(--blue);
    border-radius: 22px;
    padding: 40px 50px;
    background: linear-gradient(140deg, white 65%, #ebf8f6);
    outline: 1px solid #e2eaf3;
    outline-offset: -14px;
  }
  .certificate:before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(var(--blue), var(--teal));
  }
  .certificate .wordmark {
    display: inline-block;
    margin-bottom: 26px;
  }
  .certificate .brand-icon {
    margin: 20px auto;
  }
  .certificate .recipient {
    color: var(--blue);
    font-size: 31px;
    font-weight: 700;
    font-family: var(--heading);
    margin: 12px 0;
  }
  .certificate .rule {
    height: 3px;
    width: 70px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    margin: 16px auto;
  }
  .certificate h1 {
    font-size: 33px;
    margin: 15px 0;
  }
  .certificate p {
    font-size: 13px;
    color: var(--muted);
  }
  .certificate .details {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 30px 0;
  }
  .certificate .details > div {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: left;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .certificate footer {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.5px;
  }
  .review-number {
    font-size: 11px;
    color: var(--muted);
  }
  .pill-count {
    margin-left: auto;
    background: white;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 10px;
  }
}
@layer responsive {
  #sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
  }
  @media (min-width: 1600px) {
    .shell {
      padding-left: 0;
      padding-right: 0;
    }
  }
  @media (max-width: 1150px) {
    .shell {
      grid-template-columns: 200px minmax(0, 1fr);
      gap: 22px;
      padding: 24px;
    }
    .grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metrics {
      gap: 10px;
    }
    .metric {
      padding: 15px;
    }
    .hero {
      padding: 28px;
    }
    .hero-badge {
      display: none;
    }
    .two-column {
      grid-template-columns: 220px minmax(0, 1fr);
    }
  }
  @media (max-width: 850px) {
    .header {
      padding: 0 20px;
      height: 88px;
    }
    .header-brand {
      gap: 15px;
    }
    .wordmark {
      font-size: 26px;
    }
    .subtitle {
      display: none;
    }
    .shell {
      grid-template-columns: minmax(0, 1fr);
      padding: 20px;
    }
    #sidebar {
      display: none;
      position: fixed;
      left: 0;
      top: 88px;
      bottom: 0;
      height: auto;
      background: white;
      width: 250px;
      padding: 20px;
      box-shadow: 8px 0 25px #04122c22;
      z-index: 30;
      overflow: auto;
    }
    #sidebar.open {
      display: flex;
    }
    .mobile-menu {
      display: block;
    }
    .app-title {
      font-size: 21px;
    }
    .identity-name {
      display: none;
    }
    .identity .small {
      display: none;
    }
    .metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .two-column {
      grid-template-columns: 1fr;
    }
    .lesson-nav {
      display: flex;
      overflow: auto;
      gap: 5px;
    }
    .lesson-item {
      min-width: 160px;
    }
    .grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 540px) {
    .shell {
      padding: 16px;
    }
    .header {
      padding: 0 12px;
    }
    .header-brand {
      gap: 10px;
    }
    .wordmark {
      font-size: 23px;
    }
    .brand-divider {
      height: 30px;
    }
    .app-title {
      font-size: 18px;
    }
    .avatar {
      width: 33px;
      height: 33px;
      font-size: 11px;
    }
    .identity select {
      max-width: 90px;
    }
    .identity {
      gap: 4px;
    }
    .hero {
      padding: 25px 22px;
      min-height: 180px;
    }
    h1 {
      font-size: 27px;
    }
    .grid-3,
    .grid-2,
    .form-grid {
      grid-template-columns: 1fr;
    }
    .card {
      padding: 20px;
    }
    .metric-value {
      font-size: 29px;
    }
    .section-header {
      align-items: flex-start;
    }
    .section-header .button {
      white-space: nowrap;
    }
    .lesson-content {
      padding: 22px;
    }
    .certificate {
      padding: 30px 22px;
    }
    .certificate h1 {
      font-size: 26px;
    }
    .certificate .recipient {
      font-size: 26px;
    }
    .certificate .details {
      flex-direction: column;
    }
    .toolbar input {
      min-width: 0;
      width: 100%;
    }
    dialog {
      padding: 20px;
    }
    .check-grid {
      grid-template-columns: 1fr;
    }
    .identity .icon-button {
      padding: 4px;
    }
  }
}
@layer responsive {
  @media (max-width: 540px) {
    .header {
      gap: 8px;
    }
    .header .brand-divider,
    .header .wordmark small,
    .identity .avatar {
      display: none;
    }
    .header .wordmark img {
      width: 112px;
      height: 28px;
    }
    .app-title {
      font-size: 16px;
      white-space: nowrap;
    }
    .header-brand {
      gap: 8px;
    }
    .identity select {
      max-width: 78px;
    }
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body > * {
    display: none !important;
  }
  body > dialog[open] {
    display: block !important;
    position: static;
    border: 0;
    box-shadow: none;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  dialog::backdrop {
    display: none;
  }
  dialog .modal-heading,
  dialog .modal-actions {
    display: none !important;
  }
  .certificate {
    min-height: 165mm;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .certificate .details {
    flex-direction: row;
  }
}
