.nn-practice-log {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
  color: #17202b;
}

.nn-practice-log__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #52606d;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nn-practice-log__back:hover,
.nn-practice-log__back:focus-visible {
  color: #0f766e;
}

.nn-practice-log__header {
  margin-bottom: 24px;
}

.nn-practice-log__header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
}

.nn-practice-log__header p {
  margin: 8px 0 0;
  color: #64748b;
}

.nn-practice-log .nn-student-page-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  margin-bottom: 28px;
}

.nn-practice-log .nn-student-page-shortcut[aria-current="page"] {
  border-color: #5eead4;
  background: #f0fdfa;
}

.nn-practice-log .nn-student-page-shortcut__icon {
  color: #0f766e;
  background: #e6fffb;
}

.nn-practice-notice {
  margin: 0 0 20px;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nn-practice-notice--success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.nn-practice-notice--error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.nn-practice-card {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.nn-practice-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.nn-practice-card h2,
.nn-practice-dialog h2 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nn-practice-eyebrow {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nn-practice-log__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #15803d;
  border-radius: 10px;
  color: #fff;
  background: #16a34a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nn-practice-log__primary:hover,
.nn-practice-log__primary:focus-visible {
  border-color: #166534;
  color: #fff;
  background: #15803d;
}

.nn-practice-goals {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-practice-goals--readonly {
  margin-top: 24px;
}

.nn-practice-goals li,
.nn-practice-goals label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: #253143;
  line-height: 1.5;
}

.nn-practice-goals input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 2px 0 0;
  accent-color: #0f766e;
}

.nn-practice-goals--readonly input:disabled {
  opacity: 0.62;
}

.nn-practice-source {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8edf1;
  color: #64748b;
}

.nn-practice-source p,
.nn-practice-source small {
  margin: 0;
}

.nn-practice-source p {
  font-size: 0.88rem;
  font-weight: 650;
}

.nn-practice-source small {
  font-size: 0.82rem;
  line-height: 1.45;
}

.nn-practice-source a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #0f766e;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.nn-practice-source a:hover,
.nn-practice-source a:focus-visible {
  color: #115e59;
  text-decoration: underline;
}

.nn-practice-empty {
  margin: 22px 0 0;
  color: #64748b;
}

.nn-practice-session-list {
  margin-top: 8px;
}

.nn-practice-session {
  padding: 22px 0;
  border-bottom: 1px solid #edf0f3;
}

.nn-practice-session:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nn-practice-session__summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nn-practice-session__summary h3 {
  margin: 0;
  color: #17202b;
  font-size: 1rem;
}

.nn-practice-session__summary > span {
  color: #64748b;
  font-size: 0.88rem;
}

.nn-practice-session__goals {
  margin-top: 12px;
}

.nn-practice-session__goals strong {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 0.8rem;
}

.nn-practice-session__goals ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-practice-session__goals li span {
  color: #15803d;
  font-weight: 700;
}

.nn-practice-session blockquote {
  margin: 13px 0 0;
  padding-left: 13px;
  border-left: 2px solid #99f6e4;
  color: #475569;
  font-size: 0.92rem;
  font-style: italic;
}

.nn-practice-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 16px;
  color: #17202b;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.nn-practice-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
}

.nn-practice-dialog__form {
  display: flex;
  max-height: min(820px, calc(100vh - 32px));
  flex-direction: column;
}

.nn-practice-dialog__head,
.nn-practice-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.nn-practice-dialog__head {
  border-bottom: 1px solid #e8edf1;
}

.nn-practice-dialog__close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.nn-practice-dialog__body {
  display: grid;
  gap: 25px;
  padding: 24px;
  overflow-y: auto;
}

.nn-practice-field,
.nn-practice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.nn-practice-field > label,
.nn-practice-fieldset > legend,
.nn-practice-custom-duration > label {
  display: block;
  margin-bottom: 9px;
  color: #253143;
  font-size: 0.9rem;
  font-weight: 700;
}

.nn-practice-field input[type="date"],
.nn-practice-field textarea,
.nn-practice-custom-duration input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #17202b;
  background: #fff;
  font: inherit;
}

.nn-practice-field textarea {
  min-height: 105px;
  resize: vertical;
}

.nn-practice-duration {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.nn-practice-duration label {
  position: relative;
  margin: 0;
}

.nn-practice-duration input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nn-practice-duration span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.nn-practice-duration input:checked + span {
  border-color: #0f766e;
  color: #115e59;
  background: #ccfbf1;
}

.nn-practice-duration input:focus-visible + span {
  outline: 3px solid rgba(13, 148, 136, 0.25);
  outline-offset: 2px;
}

.nn-practice-custom-duration {
  width: min(180px, 100%);
  margin-top: 14px;
}

.nn-practice-character-count {
  display: block;
  margin-top: 6px;
  color: #7c8798;
  font-size: 0.76rem;
  text-align: right;
}

.nn-practice-dialog__actions {
  justify-content: flex-end;
  border-top: 1px solid #e8edf1;
  background: #f8fafc;
}

.nn-practice-dialog__cancel {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nn-student-shortcut__lastPractice {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 163, 74, 0.14);
}

.nn-student-shortcut__practiceSource {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 250px;
  margin-top: 12px;
  color: #64748b;
  font-size: 0.78rem;
  text-align: left;
}

.nn-student-shortcut__practiceSource > a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  color: #0f766e;
  font-weight: 750;
  text-decoration: none;
}

.nn-student-shortcut__practiceSource > a:hover,
.nn-student-shortcut__practiceSource > a:focus-visible {
  color: #115e59;
  text-decoration: underline;
}

.nn-student-shortcut__lastPractice strong {
  color: #475569;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nn-student-shortcut__lastPractice span {
  color: #17202b;
  font-size: 0.9rem;
  font-weight: 650;
}

@media (max-width: 700px) {
  .nn-practice-log {
    width: min(100% - 28px, 1120px);
    padding: 24px 0 44px;
  }

  .nn-practice-log .nn-student-page-shortcuts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nn-practice-card__head {
    align-items: stretch;
    flex-direction: column;
  }

  .nn-practice-log__primary {
    width: 100%;
  }

  .nn-student-shortcut__practiceSource {
    max-width: none;
  }

  .nn-practice-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .nn-practice-dialog__form {
    max-height: calc(100dvh - 16px);
  }

  .nn-practice-dialog__head,
  .nn-practice-dialog__body,
  .nn-practice-dialog__actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nn-practice-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .nn-practice-dialog__actions {
    grid-template-columns: 1fr;
  }

  .nn-practice-dialog__cancel {
    order: 2;
  }
}
