/* src/admin/guide-workspace.css */
.gw {
  --gw-ink:#151718;
  --gw-muted:#77766e;
  --gw-line:#e7e2d9;
  --gw-gold:#b48b3e;
  --gw-cream:#f4f1e9;
  --gw-red:#b42318;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: var(--gw-ink);
  font-family: inherit;
  line-height: 1.6;
  box-sizing: border-box;
}
.gw * {
  box-sizing: border-box;
}
.gw button,
.gw input,
.gw select,
.gw textarea {
  font: inherit;
}
.gw button {
  cursor: pointer;
}
.gw button:disabled {
  cursor: default;
  opacity: .5;
}
.gw button:focus-visible,
.gw a:focus-visible,
.gw input:focus,
.gw select:focus,
.gw textarea:focus {
  outline: 3px solid #b48b3e40;
  outline-offset: 3px;
}
.gw h1,
.gw h2,
.gw h3,
.gw p {
  margin: 0;
}
.gw h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 5px 0;
}
.gw h2 {
  font-size: 24px;
  line-height: 1.5;
}
.gw h3 {
  font-size: 18px;
  line-height: 1.5;
}
.gw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.gw-header p {
  color: var(--gw-muted);
  font-size: 14px;
  max-width: 650px;
}
.gw-eyebrow {
  font-size: 12px;
  color: #94702f;
  font-weight: 700;
  letter-spacing: .02em;
}
.gw-button {
  border: 1px solid var(--gw-ink);
  border-radius: 12px;
  background: var(--gw-ink);
  color: #fff;
  padding: 11px 20px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
}
.gw-button:hover:not(:disabled) {
  background: #353535;
}
.gw-button.secondary {
  background: #fff;
  color: var(--gw-ink);
  border-color: var(--gw-line);
}
.gw-button.secondary:hover:not(:disabled) {
  background: #f8f6f0;
  border-color: #cbb889;
}
.gw-button.danger {
  background: var(--gw-red);
  border-color: var(--gw-red);
}
.gw-tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 7px;
  border: 1px solid var(--gw-line);
  border-radius: 16px;
  margin-bottom: 26px;
  overflow-x: auto;
}
.gw-tabs button {
  background: none;
  flex: 1;
  white-space: nowrap;
  border: 0;
  border-radius: 11px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #77766e;
  min-height: 46px;
}
.gw-tabs button.active {
  color: #fff;
  background: var(--gw-ink);
}
.gw-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 25px 0 18px;
}
.gw-card > .gw-section-heading:first-child {
  margin-top: 0;
}
.gw-hint {
  font-size: 12px;
  color: var(--gw-muted);
  line-height: 1.8;
  margin-top: 6px !important;
}
.gw-card {
  background: #fff;
  border: 1px solid var(--gw-line);
  padding: 28px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.gw-welcome {
  display: flex;
  gap: 25px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gw-line);
  border-radius: 22px;
  padding: 32px;
}
.gw-welcome-icon {
  height: 92px;
  width: 92px;
  border-radius: 22px;
  flex: none;
  background: var(--gw-cream);
  display: grid;
  place-items: center;
  color: #a6813f;
}
.gw-welcome p {
  font-size: 14px;
  color: var(--gw-muted);
  margin-top: 8px;
  max-width: 650px;
}
.gw-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.gw-help-card {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid #e2d5b9;
  border-radius: 18px;
  padding: 24px;
  margin-top: 26px;
  background: #f8f5ee;
}
.gw-help-card > svg {
  color: #9f7c39;
  flex: none;
}
.gw-help-card > div {
  flex: 1;
}
.gw-help-card p {
  font-size: 13px;
  color: var(--gw-muted);
  margin-top: 4px;
}
.gw-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.gw-category-tabs button {
  padding: 8px 17px;
  min-height: 40px;
  border: 1px solid var(--gw-line);
  border-radius: 30px;
  background: #fff;
  color: #69685f;
  font-size: 13px;
}
.gw-category-tabs button.active {
  border-color: #b48b3e;
  background: #f2ebdd;
  color: #5f491e;
  font-weight: 700;
}
.gw-lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gw-lesson-card {
  text-align: start;
  background: #fff;
  border: 1px solid var(--gw-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-height: 230px;
  color: var(--gw-ink);
}
.gw-lesson-card:hover {
  border-color: #bca471;
}
.gw-lesson-card p {
  font-size: 13px;
  color: var(--gw-muted);
  line-height: 1.8;
}
.gw-lesson-card .gw-card-link {
  margin-top: auto;
}
.gw-card-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b6b2b;
  font-size: 13px;
  font-weight: 700;
}
.gw[dir=rtl] .gw-card-link svg {
  transform: rotate(180deg);
}
.gw-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gw-muted);
}
.gw-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: #f2ecdf;
  color: #82662f;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.gw-badge.resolved,
.gw-badge.closed {
  background: #e7f2eb;
  color: #28734d;
}
.gw-badge.applied {
  background: #e9effb;
  color: #3d5f99;
}
.gw-badge.reopened {
  background: #fae9e6;
  color: #a84c39;
}
.gw-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #28734d;
}
.gw-empty {
  border: 1px dashed #dcd3c3;
  background: #faf9f6;
  min-height: 200px;
  border-radius: 18px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: #9a885f;
}
.gw-empty p {
  font-size: 14px;
  color: var(--gw-muted);
  max-width: 460px;
}
.gw-feedback {
  padding: 13px 17px;
  border: 1px solid #c5dfce;
  border-radius: 12px;
  background: #eef8f1;
  color: #286d45;
  font-size: 14px;
  margin-bottom: 18px;
}
.gw-feedback.error {
  background: #fff1f0;
  color: var(--gw-red);
  border-color: #e8b7b2;
}
.gw-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--gw-muted);
  font-size: 14px;
}
.gw-spinner {
  width: 23px;
  height: 23px;
  border: 2px solid var(--gw-line);
  border-top-color: var(--gw-gold);
  border-radius: 50%;
  animation: gw-spin 1s linear infinite;
}
@keyframes gw-spin {
  to {
    transform: rotate(360deg);
  }
}
.gw-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: none;
  color: #6e675a;
  padding: 4px 0;
  margin: 0 0 18px;
  font-size: 13px;
}
.gw-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.gw-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.gw-field > span {
  color: #514e46;
}
.gw input:not([type=checkbox]):not([type=file]),
.gw select,
.gw textarea {
  border: 1px solid #ddd8ce;
  border-radius: 12px;
  background: #fff;
  color: var(--gw-ink);
  padding: 11px 13px;
  width: 100%;
  font-size: 14px;
  min-height: 45px;
}
.gw textarea {
  resize: vertical;
  line-height: 1.85;
}
.gw-field small {
  font-size: 12px;
  font-weight: 400;
  color: var(--gw-muted);
}
.gw-invalid input,
.gw-invalid select,
.gw-invalid textarea {
  border-color: var(--gw-red) !important;
  background: #fffafa !important;
}
.gw-field-error {
  font-size: 12px !important;
  color: var(--gw-red) !important;
  font-weight: 500;
  margin: 7px 0 !important;
}
.gw-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 20px 0 0;
}
.gw-check input {
  accent-color: #a47c33;
  width: 18px;
  height: 18px;
}
.gw-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 2;
  margin-top: 20px !important;
}
.gw-summary {
  background: #f6f3ed;
  border-radius: 12px;
  padding: 17px 20px;
  margin-top: 20px !important;
  font-size: 14px;
  line-height: 1.9;
  color: #716854;
}
.gw-composer {
  border: 1px solid var(--gw-line);
  border-radius: 14px;
  background: #fbfaf7;
  padding: 18px;
  margin: 17px 0;
}
.gw-composer-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gw-composer .gw-button {
  font-size: 12px;
  padding: 9px 13px;
  min-height: 42px;
}
.gw-upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gw-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.gw-upload:focus-within {
  outline: 3px solid #b48b3e40;
  outline-offset: 3px;
}
.gw-link-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}
.gw-link-input input {
  flex: 1;
  min-width: 0;
  font-size: 13px !important;
}
.gw-external {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f6f0;
  border: 1px solid var(--gw-line);
  color: #746032;
  border-radius: 12px;
  padding: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.gw-external > span {
  margin-inline-start: auto;
}
.gw-media-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.gw-media {
  margin: 0;
  border: 1px solid var(--gw-line);
  border-radius: 14px;
  overflow: hidden;
  background: #faf9f6;
}
.gw-media img {
  display: block;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  margin: auto;
}
.gw-media video {
  display: block;
  width: 100%;
  max-height: 540px;
  background: #161718;
}
.gw-media audio {
  display: block;
  width: calc(100% - 28px);
  margin: 18px 14px;
}
.gw-media figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gw-muted);
  background: #fff;
  border-top: 1px solid var(--gw-line);
  overflow-wrap: anywhere;
}
.gw-media-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  color: var(--gw-muted);
  font-size: 13px;
}
.gw-link-button {
  background: none;
  border: 0;
  color: #80612c;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 5px;
  min-height: 32px;
  font-size: 13px;
}
.gw-link-button.danger {
  color: var(--gw-red);
}
.gw-attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.gw-attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--gw-line);
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 12px;
}
.gw-attachment > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.gw-audio-review {
  display: grid;
  gap: 10px;
  padding: 15px;
  background: #fff;
  border: 1px solid #d5c5a1;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.gw-audio-review audio {
  width: 100%;
}
.gw-audio-review .gw-actions {
  margin: 0;
}
.gw-recording {
  background: #9d2821;
  border-color: #9d2821;
}
.gw-record-dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #fff;
  animation: gw-pulse 1s ease-in-out infinite;
}
@keyframes gw-pulse {
  50% {
    opacity: .3;
  }
}
.gw-record-note {
  font-size: 12px;
  color: #9d2821;
  margin-top: 8px !important;
}
.gw-ack {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--gw-line);
  margin-top: 28px;
  padding-top: 22px;
}
.gw-ack p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #28734d;
  font-weight: 700;
  font-size: 14px;
}
.gw-ack > span {
  color: var(--gw-muted);
  font-size: 12px;
  max-width: 440px;
}
.gw-delete-draft {
  border-top: 1px solid var(--gw-line);
  margin-top: 25px;
  padding-top: 20px;
}
.gw-delete-draft p {
  font-size: 13px;
  margin-bottom: 12px;
}
.gw-filters {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 18px;
}
.gw-case-list {
  display: grid;
  gap: 12px;
}
.gw-case-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: start;
  border: 1px solid var(--gw-line);
  border-radius: 15px;
  background: #fff;
  padding: 20px;
  color: var(--gw-ink);
}
.gw-case-row:hover {
  border-color: #bca471;
}
.gw-case-row > div {
  flex: 1;
}
.gw-case-row h3 {
  margin-top: 5px;
  font-size: 16px;
}
.gw-case-row p {
  font-size: 12px;
  color: var(--gw-muted);
  margin-top: 4px;
}
.gw-case-row .gw-card-link {
  white-space: nowrap;
}
.gw-guidance {
  margin: 25px 0;
  background: #f8f3e8;
  border-inline-start: 3px solid #b48b3e;
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 14px;
}
.gw-guidance .gw-content {
  margin-top: 8px !important;
}
.gw-guidance.resolved {
  background: #edf5ef;
  border-color: #548867;
}
.gw-case-detail > h3 {
  margin: 28px 0 18px;
}
.gw-timeline {
  display: grid;
  gap: 0;
}
.gw-event {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 13px;
  padding-bottom: 24px;
  position: relative;
}
.gw-event::before {
  position: absolute;
  content: "";
  border-inline-start: 1px solid var(--gw-line);
  inset-inline-start: 6px;
  top: 10px;
  bottom: 0;
}
.gw-event:last-child::before {
  display: none;
}
.gw-event-dot {
  width: 13px;
  height: 13px;
  background: #d6c69f;
  border: 3px solid #f5f0e4;
  border-radius: 50%;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.gw-event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.gw-event-heading time {
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-event .gw-content {
  font-size: 14px;
  margin-top: 7px !important;
}
.gw-response,
.gw-supervisor {
  padding-top: 24px;
  border-top: 1px solid var(--gw-line);
  margin-top: 20px;
}
.gw-supervisor > h3 {
  margin-bottom: 8px;
}
.gw-supervisor > .gw-field {
  margin-top: 16px;
}
.gw-reader-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.gw-reader-columns h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 16px;
}
.gw-count {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  background: #f0eadc;
  border-radius: 30px;
  color: #927331;
  font-size: 12px;
}
.gw-reader {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--gw-line);
  padding: 13px 0;
  font-size: 13px;
}
.gw-reader > span {
  font-size: 11px;
  color: var(--gw-muted);
}
.gw-footer {
  text-align: center;
  color: #a09b8e;
  font-size: 11px;
  padding: 35px 0 15px;
}
.gw-print-only {
  display: none;
}
@media (max-width:760px) {
  .gw {
    padding: 18px 12px;
  }
  .gw h1 {
    font-size: 25px;
  }
  .gw h2 {
    font-size: 21px;
  }
  .gw-header {
    align-items: flex-start;
    gap: 12px;
  }
  .gw-header p {
    font-size: 12px;
  }
  .gw-header > .gw-button {
    padding: 8px 12px;
    min-width: 92px;
    min-height: 42px;
    font-size: 12px;
  }
  .gw-header > .gw-button svg {
    width: 18px;
  }
  .gw-tabs {
    padding: 5px;
    gap: 3px;
    margin-bottom: 20px;
    border-radius: 13px;
  }
  .gw-tabs button {
    font-size: 12px;
    padding: 9px 11px;
    gap: 6px;
    min-height: 43px;
  }
  .gw-tabs button svg {
    display: none;
  }
  .gw-welcome {
    padding: 23px 18px;
    gap: 16px;
    align-items: flex-start;
  }
  .gw-welcome-icon {
    width: 53px;
    height: 53px;
    border-radius: 15px;
  }
  .gw-welcome-icon svg {
    width: 27px;
  }
  .gw-welcome p {
    font-size: 12px;
  }
  .gw-welcome .gw-actions {
    margin-top: 15px;
    gap: 8px;
  }
  .gw-welcome .gw-button {
    font-size: 12px;
    padding: 9px 13px;
  }
  .gw-section-heading {
    align-items: flex-start;
    margin: 23px 0 15px;
  }
  .gw-section-heading > .gw-button {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 42px;
    flex: none;
  }
  .gw-lesson-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gw-lesson-card {
    padding: 21px;
    min-height: 195px;
  }
  .gw-help-card {
    align-items: flex-start;
    padding: 20px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .gw-help-card > div {
    min-width: 180px;
  }
  .gw-help-card > .gw-button {
    margin-inline-start: 43px;
    font-size: 12px;
  }
  .gw-card {
    padding: 21px 17px;
    border-radius: 16px;
  }
  .gw-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .gw-composer {
    padding: 13px;
  }
  .gw-composer-toolbar .gw-button {
    flex: 1;
  }
  .gw-link-input {
    gap: 7px;
  }
  .gw-link-input > .gw-button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .gw-media img,
  .gw-media video {
    max-height: 380px;
  }
  .gw-ack {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .gw-ack .gw-button {
    width: 100%;
  }
  .gw-filters {
    grid-template-columns: 1fr;
  }
  .gw-case-row {
    padding: 17px 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .gw-case-row > div {
    flex-basis: 70%;
  }
  .gw-case-row .gw-card-link {
    width: 100%;
    font-size: 12px;
  }
  .gw-case-row h3 {
    font-size: 15px;
  }
  .gw-event-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .gw-reader-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gw-category-tabs {
    gap: 6px;
  }
  .gw-category-tabs button {
    padding: 7px 12px;
    font-size: 12px;
  }
  .gw-actions > .gw-button {
    flex: 1;
  }
  .gw-supervisor .gw-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .gw-supervisor .gw-button {
    font-size: 12px;
    min-height: 46px;
  }
  .gw-empty {
    padding: 28px 18px;
  }
  .gw-content {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .gw * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .gw {
    max-width: none;
    padding: 0;
    color: #000;
  }
  .gw-header,
  .gw-tabs,
  .gw-back,
  .gw-button,
  .gw-footer,
  .gw-ack,
  .gw-composer,
  .gw-supervisor,
  .gw-response,
  .gw-feedback {
    display: none !important;
  }
  .gw-card {
    border: 0;
    padding: 0;
  }
  .gw-media img {
    max-height: 400px;
  }
  .gw-media video,
  .gw-media audio {
    display: none;
  }
  .gw-print-only {
    display: block;
  }
  .gw-lesson-detail {
    break-inside: avoid;
  }
}
@media print {
  body:has(.gw-lesson-detail) * {
    visibility: hidden;
  }
  .gw-lesson-detail,
  .gw-lesson-detail * {
    visibility: visible;
  }
  .gw-lesson-detail {
    position: absolute;
    inset: 0;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 12mm !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .gw-lesson-detail button,
  .gw-lesson-detail video,
  .gw-lesson-detail audio,
  .gw-ack {
    display: none !important;
  }
  .gw-lesson-detail img {
    max-width: 100%;
    max-height: 150mm;
    object-fit: contain;
  }
  .gw-media {
    break-inside: avoid;
  }
  .gw-content {
    white-space: pre-wrap !important;
  }
}
.gw-lesson-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background: #eee5d2;
  color: #a78034;
  flex: none;
}
.gw-lesson-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gw-preview-simple {
  background:
    linear-gradient(
      135deg,
      #f6f0e3,
      #ece1c9);
}
.gw-preview-play {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #ffffffed;
  color: #29251e;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 12px #0000000d;
}
.gw-linked-media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}
.gw-linked-media figcaption > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.gw-linked-media figcaption strong {
  font-size: 13px;
  color: #55482f;
  overflow-wrap: anywhere;
}
.gw-linked-media figcaption small {
  display: block;
  max-width: 320px;
  font-size: 11px;
  line-height: 1.7;
}
.gw-linked-media figcaption > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #926c27;
  font-size: 12px;
  flex: none;
  min-height: 36px;
}
.gw-video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #171614;
  overflow: hidden;
}
.gw-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gw-video-cover {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #25221e;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: #fff;
}
.gw-video-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.gw-video-cover > strong {
  position: relative;
  font-size: 13px;
  text-shadow: 0 1px 4px #000;
}
.gw-play-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fffffff2;
  color: #151515;
  box-shadow: 0 3px 20px #0003;
}
.gw-play-circle svg {
  fill: currentColor;
  stroke-width: 1;
  margin-inline-start: 3px;
}
.gw-link-pending {
  padding: 10px 12px;
  margin-top: 10px !important;
  color: #725921;
  background: #f5edd9;
  border: 1px solid #e6d7b6;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
}
.gw-captain {
  --gw-ink:#141310;
  --gw-muted:#827b70;
  --gw-line:#e9e2d7;
  --gw-gold:#ad7d27;
  max-width: 480px;
  padding: 0;
  margin: 12px auto 0;
  position: relative;
  background: #faf7ef;
  border: 1px solid #e9e3d8;
  border-radius: 20px;
  overflow: clip;
  box-shadow: 0 8px 35px #4c371406;
  min-height: 690px;
  isolation: isolate;
}
.gw-captain button {
  touch-action: manipulation;
}
.gw-captain h1 {
  font-size: 27px;
  line-height: 1.35;
  margin: 0;
  font-weight: 800;
  color: #141310;
}
.gw-captain h2 {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
}
.gw-captain h3 {
  font-size: 17px;
  line-height: 1.6;
}
.gw-captain-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #ece7dd;
  background: #fcf9f2;
}
.gw-captain-header h1 {
  font-size: 19px;
  flex: 1;
  text-align: start;
}
.gw-captain-header.gw-is-home {
  border-bottom: 0;
  align-items: flex-start;
  min-height: 85px;
}
.gw-captain-brand {
  display: grid;
  justify-items: center;
  line-height: 1;
  gap: 7px;
}
.gw-captain-brand strong {
  font-size: 31px;
  letter-spacing: -1px;
}
.gw-captain-brand span {
  font-size: 11px;
  letter-spacing: 5px;
  padding-inline-start: 5px;
  font-weight: 700;
}
.gw-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: #26231c;
  padding: 4px;
  flex: none;
}
.gw-icon-button i {
  position: absolute;
  top: 3px;
  inset-inline-end: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bd8a2f;
  border: 2px solid #fcf9f2;
}
.gw-captain-work {
  font-size: 11px !important;
  padding: 6px 10px;
  color: #74674d;
  border: 1px solid #e3d8c3;
  border-radius: 8px;
  background: transparent;
  margin-inline-start: auto;
  white-space: nowrap;
}
.gw-captain-header:not(.gw-is-home) .gw-captain-work {
  font-size: 10px !important;
  padding: 5px 8px;
  margin: 0;
}
.gw-captain-header:not(.gw-is-home) .gw-icon-button {
  order: -1;
}
.gw-captain-header:not(.gw-is-home) h1 {
  text-align: center;
}
.gw-captain-body {
  padding: 18px 22px 24px;
  min-height: 520px;
}
.gw-captain .gw-button {
  border-radius: 9px;
  min-height: 45px;
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: 0 3px 8px #1d180e08;
}
.gw-full {
  width: 100%;
  display: flex !important;
}
.gw-captain-home > h1 {
  font-size: 34px;
  text-align: start;
  margin: 0 2px 22px;
}
.gw-start-card {
  display: grid;
  justify-items: center;
  text-align: center;
  background: #fffdf8;
  border: 1px solid #e9e2d4;
  border-radius: 16px;
  padding: 24px 18px 18px;
  box-shadow: 0 3px 10px #4c37140a;
}
.gw-start-card > svg {
  color: var(--gw-gold);
  margin-bottom: 8px;
}
.gw-start-card > h2 {
  font-size: 27px;
}
.gw-start-card > p {
  font-size: 14px;
  color: #3f3a31;
  margin: 5px 0 18px;
}
.gw-home-rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.gw-home-rows > button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 65px;
  padding: 14px 16px;
  border: 1px solid #e9e2d6;
  border-radius: 13px;
  background: #fffdf9;
  text-align: start;
  color: #171510;
  box-shadow: 0 3px 10px #4c371406;
}
.gw-home-rows > button > svg:first-child {
  color: var(--gw-gold);
  flex: none;
}
.gw-home-rows > button > strong {
  font-size: 17px;
  flex: 1;
}
.gw-home-rows > button > svg:last-child {
  transform: rotate(180deg);
  width: 18px;
}
.gw-home-rows > button > b {
  min-width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0e5d0;
  color: #89651f;
  font-size: 11px;
}
.gw-new-training {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  text-align: start;
  border: 0;
  background: transparent;
  border-top: 1px solid #e9e1d3;
  margin-top: 21px;
  width: 100%;
  padding: 17px 4px 0;
  color: #383024;
}
.gw-new-training > span {
  grid-column: 1/-1;
  color: #a17a31;
  font-size: 11px;
}
.gw-new-training > strong {
  font-size: 14px;
}
.gw-new-training svg {
  transform: rotate(180deg);
  color: #a17a31;
}
.gw-bottom-nav {
  display: flex;
  position: sticky;
  bottom: 0;
  background: #fffef9;
  border-top: 1px solid #e8e1d5;
  min-height: 76px;
  z-index: 3;
  padding: 8px 14px max(10px, env(safe-area-inset-bottom));
  gap: 8px;
}
.gw-bottom-nav > button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #534c40;
  font-size: 11px;
  font-weight: 500;
  min-height: 55px;
  padding: 3px;
}
.gw-bottom-nav > button.active {
  color: #a97b2d;
  font-weight: 800;
}
.gw-bottom-nav > button.active svg {
  fill: #ad812f22;
}
.gw-preview-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 13px;
  background: #f0e5cf;
  color: #6c5121;
  font-size: 11px;
  line-height: 1.6;
}
.gw-preview-banner button {
  border: 1px solid #cfb987;
  background: #fffdf8;
  color: #6b5124;
  flex: none;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
}
.gw-captain .gw-feedback {
  font-size: 12px;
  padding: 10px 12px;
  margin-bottom: 15px;
}
.gw-captain-library > .gw-section-heading {
  margin-top: 0;
  display: block;
}
.gw-captain-library > .gw-section-heading h2 {
  font-size: 22px;
}
.gw-captain .gw-lesson-grid {
  grid-template-columns: 1fr;
  gap: 17px;
}
.gw-captain .gw-lesson-card {
  padding: 0;
  gap: 0;
  border-radius: 13px;
  overflow: hidden;
  min-height: 0;
  background: #fffdf9;
  width: 100%;
  box-shadow: 0 3px 10px #4c371405;
}
.gw-captain .gw-lesson-preview {
  height: 175px;
  border-radius: 0;
}
.gw-lesson-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  width: 100%;
  text-align: start;
}
.gw-lesson-card-copy h3 {
  font-size: 21px;
  font-weight: 800;
}
.gw-captain .gw-lesson-card p {
  font-size: 12px;
}
.gw-lesson-card-copy .gw-card-link {
  margin-top: 4px;
  font-size: 12px;
}
.gw-captain-lesson {
  text-align: center;
}
.gw-captain-lesson > h2 {
  font-size: 27px;
  margin: 10px 0 18px;
}
.gw-lesson-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 3px 0 22px;
}
.gw-lesson-dots span {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #e9e3d7;
}
.gw-lesson-dots span.active {
  background: #b88731;
  box-shadow: 0 0 0 2px #b887311a;
}
.gw-lesson-dots span.done {
  background: #cbb47f;
}
.gw-captain .gw-primary-media .gw-media-list {
  margin: 0;
}
.gw-captain .gw-primary-media .gw-media {
  border-radius: 12px;
  overflow: hidden;
  background: #f4eee0;
}
.gw-captain .gw-video-frame {
  aspect-ratio: 1.24;
}
.gw-captain .gw-video-cover > img {
  object-fit: cover;
}
.gw-captain .gw-linked-media figcaption {
  padding: 10px 11px;
  align-items: flex-start;
  text-align: start;
  gap: 8px;
}
.gw-captain .gw-linked-media figcaption > div strong {
  font-size: 11px;
}
.gw-captain .gw-linked-media figcaption small {
  font-size: 10px;
  max-width: 190px;
}
.gw-captain .gw-linked-media figcaption > a {
  font-size: 12px;
  gap: 4px;
  min-height: 36px;
}
.gw-captain .gw-linked-media figcaption > a svg {
  width: 15px;
}
.gw-training-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 17px;
}
.gw-training-categories > button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  text-align: center;
  min-height: 88px;
  padding: 12px 5px;
  border: 1px solid #e6dfd2;
  border-radius: 10px;
  background: #fffdf8;
  color: #7e7460;
  line-height: 1.5;
}
.gw-training-categories > button > svg {
  color: #a78136;
}
.gw-training-categories > button > span {
  font-size: 11px;
  font-weight: 700;
  color: #373128;
}
.gw-training-categories > button.active {
  background: #f7f0df;
  border-color: #d5bb83;
}
.gw-library-categories {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  gap: 7px;
  scrollbar-width: thin;
}
.gw-library-categories > button {
  flex: 0 0 89px;
  min-height: 85px;
}
.gw-captain-summary {
  font-size: 13px;
  color: #756c5b;
  line-height: 1.85;
  margin: 17px 0 !important;
}
.gw-captain .gw-content {
  text-align: start;
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px !important;
}
.gw-captain .gw-content + .gw-button {
  margin-top: 22px;
}
.gw-captain-lesson > .gw-button {
  margin-top: 22px;
}
.gw-audio-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #efe8d8;
  min-height: 53px;
  padding: 11px;
  color: #332e23;
  font-size: 16px;
  font-weight: 700;
  margin-top: 17px;
}
.gw-read-confirm {
  font-size: 13px;
  margin: 16px 0 !important;
  justify-content: center;
}
.gw-captain-form > h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}
.gw-captain .gw-field {
  font-size: 14px;
  margin-bottom: 18px;
  gap: 9px;
}
.gw-captain .gw-field > span {
  color: #27231d;
  font-weight: 800;
}
.gw-captain input:not([type=checkbox]):not([type=file]),
.gw-captain select,
.gw-captain textarea {
  border-color: #e7e0d3;
  background: #fffefb;
  border-radius: 10px;
  padding: 13px 12px;
  font-size: 13px;
  min-height: 47px;
}
.gw-captain textarea {
  min-height: 145px;
}
.gw-captain .gw-composer {
  background: none;
  border: 0;
  padding: 0;
  margin: 14px 0 20px;
}
.gw-captain .gw-composer-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.gw-captain .gw-composer-toolbar > .gw-button {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e6dfd3;
  border-radius: 10px;
  background: #fffefb;
  color: #181611;
  padding: 16px 8px;
  line-height: 1.6;
  font-size: 12px;
}
.gw-captain .gw-composer-toolbar > .gw-button svg {
  width: 27px;
  height: 27px;
}
.gw-captain .gw-composer .gw-hint {
  font-size: 10px;
}
.gw-captain .gw-link-input {
  gap: 7px;
}
.gw-captain .gw-link-input > .gw-button {
  font-size: 10px;
  min-height: 42px;
  padding: 8px;
}
.gw-private-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #756c5b;
  font-size: 12px;
  margin: 19px 0 !important;
}
.gw-captain-case > h2 {
  font-size: 23px;
  text-align: center;
  margin: 3px 0 3px;
}
.gw-case-number {
  font-size: 11px;
  color: #9d8d6f;
  display: block;
  text-align: center;
}
.gw-followup-steps {
  background: #fffefb;
  border: 1px solid #ebe4d8;
  border-radius: 13px;
  padding: 23px 20px 7px;
  margin: 18px 0 20px;
  text-align: start;
}
.gw-followup-step {
  display: flex;
  gap: 14px;
  position: relative;
  min-height: 75px;
  isolation: isolate;
}
.gw-followup-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  top: 25px;
  bottom: -2px;
  border-inline-start: 1px solid #d7c398;
  z-index: -1;
}
.gw-followup-step > span {
  height: 25px;
  width: 25px;
  border: 1.5px solid #cfb677;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: #fffdf8;
  color: #fff;
  box-shadow: 0 0 0 4px #fffefb;
}
.gw-followup-step.done > span {
  background: #ad7e2d;
  border-color: #ad7e2d;
}
.gw-followup-step.current > span {
  background: #b88a35;
  box-shadow: 0 0 0 4px #f2e9d7;
  border: 6px solid #fbf7ed;
}
.gw-followup-step > div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-top: 1px;
}
.gw-followup-step strong {
  font-size: 15px;
  font-weight: 800;
}
.gw-followup-step small {
  font-size: 11px;
  color: #a49b8b;
}
.gw-followup-step:not(.done):not(.current) strong {
  font-weight: 500;
  color: #6d665b;
}
.gw-supervisor-message {
  background: #fffefb;
  border: 1px solid #e7dfd1;
  border-radius: 13px;
  padding: 17px 16px;
  margin: 16px 0;
}
.gw-supervisor-message h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  font-size: 17px;
}
.gw-supervisor-message h3 svg {
  color: #b2873a;
}
.gw-supervisor-message .gw-content {
  font-size: 13px;
  text-align: center;
  margin-top: 12px !important;
}
.gw-supervisor-message .gw-media-list {
  margin-top: 16px;
}
.gw-case-original {
  border: 1px solid #e8e0d3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fffefb;
  font-size: 13px;
  margin: 16px 0;
}
.gw-case-original summary {
  cursor: pointer;
  color: #7c663c;
  font-weight: 700;
}
.gw-case-comment {
  border-top: 1px solid #e8e1d5;
  margin-top: 14px;
  padding-top: 14px;
  text-align: start;
}
.gw-case-comment strong {
  font-size: 12px;
}
.gw-case-comment time {
  display: block;
  font-size: 10px;
  color: #958b79;
  margin: 4px 0;
}
.gw-case-comment p {
  font-size: 13px;
  white-space: pre-wrap;
}
.gw-captain-comment {
  padding: 17px 0;
  margin: 0 0 18px;
  border-bottom: 1px solid #e8e0d3;
}
.gw-captain-comment .gw-composer-toolbar > .gw-button {
  min-height: 72px;
  font-size: 11px;
}
.gw-captain-cases > .gw-section-heading {
  margin-top: 0;
}
.gw-captain-cases > .gw-section-heading h2 {
  font-size: 21px;
}
.gw-captain-cases > .gw-section-heading > .gw-button {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 38px;
}
.gw-captain .gw-case-row {
  padding: 16px 13px;
  gap: 10px;
  border-radius: 12px;
}
.gw-captain .gw-case-row .gw-case-number {
  text-align: start;
  font-size: 10px;
}
.gw-captain .gw-case-row h3 {
  font-size: 16px;
}
.gw-captain .gw-case-row small {
  font-size: 10px;
  color: #958b7b;
}
.gw-captain .gw-case-row > svg {
  flex: none;
  color: #9d7c39;
  transform: rotate(180deg);
}
.gw-captain .gw-empty {
  min-height: 180px;
  background: #fffdf8;
  border-style: solid;
  padding: 26px 18px;
}
.gw-captain .gw-empty p {
  font-size: 13px;
}
.sg-shell:has(.gw-captain) > .sg-shell-nav {
  max-width: 480px;
  margin: 0 auto 7px;
  background: none;
  border: 0;
  padding-inline: 0;
}
@media (max-width:520px) {
  .gw-captain {
    border: 0;
    border-radius: 0;
    max-width: none;
    min-height: calc(100dvh - 130px);
    margin: 0;
    width: 100%;
    box-shadow: none;
  }
  .gw-captain-header {
    padding: 20px 22px 15px;
  }
  .gw-captain-body {
    padding: 18px 20px 22px;
  }
  .gw-captain .gw-lesson-grid {
    grid-template-columns: 1fr;
  }
  .gw-captain .gw-actions > .gw-button {
    flex: 1;
  }
  .gw-captain .gw-section-heading {
    gap: 10px;
  }
  .gw-linked-media figcaption {
    gap: 10px;
    flex-wrap: wrap;
  }
  .gw-captain .gw-linked-media figcaption {
    flex-wrap: nowrap;
  }
  .gw-captain .gw-filters {
    grid-template-columns: 1fr;
  }
  .gw-captain-header:not(.gw-is-home) .gw-captain-work {
    margin: 0;
    font-size: 9px !important;
  }
  .gw-captain-header:not(.gw-is-home) h1 {
    font-size: 17px;
  }
  .gw-preview-banner {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .gw-preview-banner button {
    font-size: 10px;
  }
  .gw-bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .gw-captain .gw-play-circle {
    width: 54px;
    height: 54px;
  }
}
@media (min-width:761px) {
  .gw-captain .gw-form-grid {
    grid-template-columns: 1fr;
  }
  .gw:not(.gw-captain) .gw-lesson-preview {
    height: 210px;
  }
  .gw-captain-body {
    min-height: 570px;
  }
}
@media print {
  .gw-bottom-nav,
  .gw-captain-header,
  .gw-preview-banner,
  .gw-training-categories,
  .gw-audio-shortcut {
    display: none !important;
  }
  .gw-captain {
    max-width: none;
    border: 0;
  }
  .gw-captain-lesson .gw-primary-media iframe {
    display: none !important;
  }
}
.sg-shell-admin:has(.gw-captain) > .sg-shell-admin-switch {
  display: none;
}

/* src/admin/guide-shells.css */
.sg-shell {
  color: #191919;
  font-family: inherit;
  min-width: 0;
}
.sg-shell-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e7e2d8;
}
.sg-shell-nav button,
.sg-shell-admin-switch button {
  font: inherit;
  font-size: 14px;
  border: 1px solid #ddd6c9;
  border-radius: 12px;
  background: #fff;
  color: #222;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}
.sg-shell-nav button.selected {
  background: #191919;
  color: #fff;
  border-color: #191919;
}
.sg-shell-nav button span {
  display: inline-block;
  font-size: 12px;
  background: #c2a05b;
  color: #161616;
  border-radius: 8px;
  margin-inline-start: 8px;
  padding: 2px 6px;
}
.sg-shell-nav .sg-shell-logout {
  margin-inline-start: auto;
}
.sg-shell-notice {
  padding: 12px 16px;
  margin: 8px 16px;
  background: #fff7df;
  border: 1px solid #e7d09a;
  border-radius: 10px;
  color: #664500;
}
.sg-shell-admin-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.sg-shell-nav button:focus-visible,
.sg-shell-admin-switch button:focus-visible {
  outline: 3px solid #c2a05b;
  outline-offset: 3px;
}
@media (max-width:480px) {
  .sg-shell-nav {
    padding: 10px;
  }
  .sg-shell-nav button {
    padding: 10px;
  }
  .sg-shell-nav button span {
    margin-inline-start: 5px;
  }
}
