[hidden] { display: none !important; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-card {
  appearance: none;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-height: 162px;
  padding: 18px;
  border: 1px solid #eadbe0;
  border-radius: 14px;
  background: #fff;
  color: #352a32;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.method-card:hover {
  border-color: #c9899c;
  background: #fcf7f8;
}

.method-card:focus-visible {
  outline: 3px solid #a9576f;
  outline-offset: 3px;
}

.method-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: #f6e8ec;
  color: #78374c;
}

.method-icon svg { width: 21px; height: 21px; }
.method-card b { font-size: 0.95rem; }
.method-card small { color: #675d63; font-size: 0.78rem; line-height: 1.5; }
.small-field { width: min(100%, 390px); margin-left: auto; }
.stack-form { display: grid; gap: 14px; }
.stack-form > .content-card { margin-top: 0; }
.print-intro + .stack-form { margin-top: 15px; }
.review-years { display: grid; gap: 9px; }

.record-disclosure {
  overflow: hidden;
  border: 1px solid #eae0e3;
  border-radius: 11px;
}

.record-disclosure > summary {
  display: list-item;
  padding: 12px 14px;
  background: #faf6f7;
  color: #3d3339;
  cursor: pointer;
}

.record-disclosure > summary b { margin-left: 4px; }
.record-disclosure > summary span { margin-left: 15px; color: #74344a; font-size: 0.78rem; }

.marks-table { min-width: 320px; }
.marks-table th,
.marks-table td { text-align: left; }
.mark-input { width: 86px; min-height: 38px; padding: 6px 9px; border: 1px solid #d6c9ce; border-radius: 7px; font: inherit; color: inherit; }
.mark-input:focus { outline: 2px solid #ad6076; outline-offset: 1px; }
.check-line { display: flex; align-items: flex-start; gap: 9px; color: #453a41; font-size: .86rem; margin: 14px 0 0; line-height: 1.45; }
.check-line input { min-width: 16px; min-height: 16px; margin: 2px 0 0; }
.button:disabled { opacity: .55; cursor: default; }
.button-compact { min-height: 35px; padding: 6px 11px; font-size: .75rem; }
.notice-error { white-space: pre-line; }

.review-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #eddcbb;
  border-radius: 999px;
  background: #fff6e3;
  color: #755322;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-person { display: flex; align-items: center; gap: 9px; min-width: 130px; text-align: left; }
.table-person small,
.file-list small { display: block; margin-top: 3px; color: #736771; font-size: .74rem; }
.table-person a { color: #71344a; font-weight: 700; }
.table-person > img,
.table-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.table-avatar { display: grid; place-items: center; background: #f7eaed; color: #863950; font-weight: 700; }
.admin-avatar { overflow: hidden; }
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-avatar img[src$="cognia-avatar.png"] { object-fit: contain; background: #fff; }
.record-profile { width: 100%; }
.record-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }
.profile-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.profile-fields > div { min-width: 0; padding: 11px 12px; border: 1px solid #ece3e6; border-radius: 9px; background: #fcfafb; overflow-wrap: anywhere; }
.profile-fields dt { color: #76666f; font-size: .76rem; }
.profile-fields dd { margin: 4px 0 0; color: #352a32; font-size: .88rem; font-weight: 650; }

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list.compact { margin-top: 12px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee7ea; overflow-wrap: anywhere; }
.file-list li:last-child { border-bottom: 0; }
.file-list a { flex-shrink: 0; color: #78374c; font-size: .83rem; font-weight: 700; }
.document-editor { margin-top: 16px; border: 1px solid #eae0e3; border-radius: 12px; padding: 13px; }
.document-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.document-editor h3 { margin: 0; font-size: .92rem; }
.document-editor small { color: #6e6269; font-size: .75rem; }
.document-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(130px, .75fr) minmax(170px, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; }
.document-row .field,
.document-row .field input,
.document-row .field select { text-align: left; min-width: 0; }

.row-choice { min-width: 132px; max-width: 100%; min-height: 36px; padding: 5px 8px; background: #fff; border: 1px solid #dfd2d8; border-radius: 8px; font: inherit; color: #443844; }
.account-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.table-picker input[type="checkbox"] { min-width: 17px; min-height: 17px; accent-color: #80334b; }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 0; grid-template-columns: auto 1fr; gap: 5px 12px; align-items: center; padding: 13px; }
  .method-icon { grid-row: span 2; }
  .profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-panels { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 600px) {
  .document-row { grid-template-columns: 1fr; padding-top: 10px; border-top: 1px solid #eee7ea; }
  .record-actions { width: 100%; }
  .record-actions > a { flex: 1 1 auto; }
  .marks-table { min-width: 290px; }
  .mark-input { font-size: 16px; }
  .check-line { font-size: .8rem; }
}
