/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  color: #17221b;
  background: #eef3ed;
  margin: 0;
}

a {
  color: #245d34;
  font-weight: 650;
}

button, input, textarea, select {
  font: inherit;
}

button, .button {
  color: #fff;
  cursor: pointer;
  background: #245d34;
  border: 0;
  border-radius: .65rem;
  padding: .8rem 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

button:hover, .button:hover {
  background: #194725;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.secondary {
  color: #245d34;
  background: #dce9df;
}

.secondary:hover {
  background: #c9ddce;
}

main {
  min-height: 100vh;
}

.card {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: 1.5rem;
  width: min(100% - 4rem, 42rem);
  margin: auto;
  padding: 4rem;
  transform: translateY(calc(50vh - 50%));
  box-shadow: 0 1.5rem 4rem #28452d14;
}

.eyebrow {
  color: #397047;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 800;
}

h1 {
  letter-spacing: -.05em;
  margin: .5rem 0;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

h2 {
  margin-top: 0;
}

p {
  color: #526259;
  line-height: 1.6;
}

.shell {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.narrow {
  max-width: 48rem;
}

.page-header {
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  display: flex;
}

.state-card, .workspace-empty, .danger-zone {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: 1rem;
  padding: 2rem;
}

.state-card.error, .alert.error {
  color: #8a2218;
  background: #fff2f0;
  border-color: #dca6a0;
}

.empty {
  text-align: center;
  padding: 4rem 2rem;
}

.project-list {
  gap: .75rem;
  padding: 0;
  list-style: none;
  display: grid;
}

.project-list li {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: .9rem;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.project-list li > a:first-child {
  color: inherit;
  flex: 1;
  gap: .35rem;
  padding: 1.25rem;
  text-decoration: none;
  display: grid;
}

.project-list li > a:first-child:hover strong {
  color: #245d34;
}

.project-list span {
  color: #66736b;
  font-weight: 400;
}

.settings-link {
  margin-right: 1.25rem;
}

.project-form {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: 1rem;
  gap: 1.25rem;
  padding: 2rem;
  display: grid;
}

.project-form label {
  gap: .45rem;
  font-weight: 700;
  display: grid;
}

.project-form input, .project-form textarea, .project-form select, .search input {
  color: #17221b;
  background: #fff;
  border: 1px solid #9eada2;
  border-radius: .5rem;
  width: 100%;
  padding: .75rem;
}

.project-form input:focus, .project-form textarea:focus {
  outline-offset: 1px;
  outline: 3px solid #8fbd99;
}

.project-form small {
  color: #66736b;
  font-weight: 400;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  display: grid;
}

.project-form > button {
  justify-self: start;
}

.alert {
  border: 1px solid;
  border-radius: .5rem;
  padding: 1rem;
}

.workspace-empty {
  text-align: center;
  place-content: center;
  min-height: 18rem;
  margin-top: 1rem;
  display: grid;
}

.danger-zone {
  border-color: #dca6a0;
  margin-top: 2rem;
}

.danger {
  background: #a52b21;
}

.danger:hover {
  background: #841d15;
}

.project-form fieldset {
  border: 1px solid #cad7cc;
  border-radius: .75rem;
  padding: 1rem;
}

.project-form legend {
  font-weight: 800;
}

.search {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .75rem;
  margin-bottom: 1rem;
  display: grid;
}

.search label {
  grid-column: 1 / -1;
  font-weight: 700;
}

.name-list {
  gap: .75rem;
  padding: 0;
  list-style: none;
  display: grid;
}

.name-list li {
  border-bottom: 1px solid #dce5de;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  display: flex;
}

.name-list li > div:last-child {
  gap: .5rem;
  display: flex;
}

.button-row {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  display: flex;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .75rem;
  display: grid;
}

.metric-grid p {
  background: #f8fbf8;
  border: 1px solid #dce5de;
  border-radius: .75rem;
  gap: .25rem;
  margin: 0;
  padding: 1rem;
  display: grid;
}

.metric-grid strong {
  color: #245d34;
  font-size: 1.8rem;
}

.warning {
  color: #7b4f00;
}

.privacy-block {
  margin-top: 1rem;
}

.document-viewer-shell {
  width: min(100% - 2rem, 96rem);
}

.viewer-grid {
  grid-template-columns: 15rem minmax(0, 1fr) 18rem;
  align-items: start;
  gap: 1rem;
  display: grid;
}

.page-strip, .metadata-panel {
  max-height: calc(100vh - 2rem);
  position: sticky;
  top: 1rem;
  overflow: auto;
}

.thumbnail-list {
  gap: .75rem;
  padding: 0;
  list-style: none;
  display: grid;
}

.thumbnail-list li {
  background: #f8fbf8;
  border: 1px solid #dce5de;
  border-radius: .75rem;
  padding: .5rem;
}

.thumbnail-list li[aria-current="page"] {
  outline: 3px solid #8fbd99;
}

.thumbnail-button {
  color: #17221b;
  text-align: left;
  background: none;
  gap: .4rem;
  width: 100%;
  padding: .4rem;
  display: grid;
}

.thumbnail-button:hover {
  background: #dce9df;
}

.thumbnail-button img, .thumbnail-placeholder {
  object-fit: contain;
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: .5rem;
  width: 100%;
  height: 7rem;
}

.thumbnail-placeholder {
  color: #66736b;
  place-content: center;
  display: grid;
}

.compact {
  justify-content: start;
  gap: .35rem;
  margin-top: .4rem;
}

.compact button {
  padding: .45rem .6rem;
}

.viewer-stage-card {
  min-height: 40rem;
}

.viewer-toolbar, .viewer-settings {
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  display: flex;
}

.viewer-toolbar button, .viewer-settings button {
  padding: .55rem .75rem;
}

.viewer-stage {
  cursor: grab;
  touch-action: none;
  background: #162018;
  border: 1px solid #cad7cc;
  border-radius: .75rem;
  min-height: 34rem;
  position: relative;
  overflow: auto;
}

.viewer-stage.selecting {
  cursor: crosshair;
}

.viewer-stage img {
  transform-origin: center;
  -webkit-user-select: none;
  user-select: none;
  max-width: 100%;
  margin: 2rem auto;
  transition: filter .12s;
  display: block;
}

.fullscreen-fallback {
  z-index: 1000;
  background: #eef3ed;
  border-radius: 0;
  inset: 0;
  overflow: auto;
  position: fixed !important;
}

.selection-box {
  pointer-events: none;
  background: #e6ff7233;
  border: 2px solid #e6ff72;
  position: absolute;
}

.selection-box .resize-handle {
  pointer-events: auto;
  background: #e6ff72;
  border: 2px solid #102018;
  border-radius: 999px;
  width: .9rem;
  height: .9rem;
  padding: 0;
  position: absolute;
}

.resize-handle.top-left {
  cursor: nwse-resize;
  top: -.55rem;
  left: -.55rem;
}

.resize-handle.top-right {
  cursor: nesw-resize;
  top: -.55rem;
  right: -.55rem;
}

.resize-handle.bottom-left {
  cursor: nesw-resize;
  bottom: -.55rem;
  left: -.55rem;
}

.resize-handle.bottom-right {
  cursor: nwse-resize;
  bottom: -.55rem;
  right: -.55rem;
}

.selection-overlay {
  color: #102018;
  cursor: pointer;
  pointer-events: auto;
  background: #35d0a233;
  border: 2px solid #35d0a2;
  border-radius: .2rem;
  place-items: start;
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding: .2rem;
  display: grid;
  position: absolute;
}

.selection-overlay:hover, .selection-overlay.selected {
  background: #e6ff7255;
  border-color: #e6ff72;
}

.selection-overlay.confirmed {
  border-style: solid;
}

.selection-overlay.draft {
  border-style: dashed;
}

.selection-overlay span {
  color: #102018;
  background: #e6ff72;
  border-radius: 999px;
  place-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  font-size: .8rem;
  font-weight: 900;
  display: inline-grid;
}

.region-panel {
  background: #f8fbf8;
  border: 1px dashed #8fbd99;
  border-radius: .75rem;
  padding: 1rem;
}

.viewer-settings label {
  gap: .25rem;
  min-width: 11rem;
  font-weight: 700;
  display: grid;
}

.metadata-panel dl {
  grid-template-columns: 7rem 1fr;
  gap: .5rem;
  display: grid;
}

.metadata-panel dt {
  color: #66736b;
  font-weight: 800;
}

.metadata-panel dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.empty-state {
  color: #526259;
  background: #f8fbf8;
  border: 1px dashed #9eada2;
  border-radius: .75rem;
  place-content: center;
  min-height: 20rem;
  display: grid;
}

.record-selection-panel {
  border-top: 1px solid #dce5de;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: grid;
}

.panel-header {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.panel-header h2 {
  margin: 0;
}

.selection-filters, .selection-editor {
  gap: .8rem;
  display: grid;
}

.selection-filters label, .selection-editor label {
  gap: .35rem;
  font-weight: 800;
  display: grid;
}

.selection-filters select, .selection-editor select, .selection-editor input, .selection-editor textarea {
  color: #17221b;
  background: #fff;
  border: 1px solid #9eada2;
  border-radius: .5rem;
  width: 100%;
  padding: .65rem;
}

.selection-list {
  gap: .6rem;
  padding: 0;
  list-style: none;
  display: grid;
}

.selection-list li {
  background: #f8fbf8;
  border: 1px solid #dce5de;
  border-radius: .75rem;
  padding: .5rem;
}

.selection-list li[aria-current="true"] {
  outline: 3px solid #8fbd99;
}

.selection-list-main {
  color: #17221b;
  text-align: left;
  background: none;
  gap: .25rem;
  width: 100%;
  padding: .5rem;
  display: grid;
}

.selection-list-main:hover {
  background: #dce9df;
}

.selection-list-main span {
  color: #66736b;
  font-size: .9rem;
}

.selection-editor {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: .75rem;
  padding: 1rem;
}

.selection-editor h3 {
  margin: 0;
}

.region-summary {
  background: #f8fbf8;
  border: 1px dashed #8fbd99;
  border-radius: .5rem;
  gap: .35rem;
  padding: .75rem;
  display: grid;
}

.selection-actions {
  gap: .75rem;
  display: grid;
}

.selection-preview {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: .5rem;
  max-width: 100%;
}

.empty-inline {
  background: #f8fbf8;
  border: 1px dashed #9eada2;
  border-radius: .5rem;
  margin: 0;
  padding: .75rem;
}

.transcription-panel {
  border-top: 1px solid #dce5de;
  gap: .85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  display: grid;
}

.transcription-consent, .transcription-result, .segment-list {
  gap: .75rem;
  display: grid;
}

.transcription-panel label {
  gap: .35rem;
  font-weight: 800;
  display: grid;
}

.transcription-panel textarea, .transcription-panel input {
  color: #17221b;
  background: #fff;
  border: 1px solid #9eada2;
  border-radius: .5rem;
  width: 100%;
  padding: .65rem;
}

.transcription-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8fbf8;
  border: 1px solid #cad7cc;
  border-radius: .5rem;
  padding: .75rem;
}

.structure-panel, .structure-result, .structure-form {
  gap: .85rem;
  display: grid;
}

.structure-form fieldset {
  background: #fff;
  border: 1px solid #d8c7ad;
  border-radius: .75rem;
  gap: .75rem;
  padding: 1rem;
  display: grid;
}

.structure-form legend {
  font-weight: 900;
}

.structure-form label {
  gap: .35rem;
  font-weight: 800;
  display: grid;
}

.structure-form input, .structure-form textarea, .structure-panel select {
  color: #17221b;
  background: #fff;
  border: 1px solid #9eada2;
  border-radius: .5rem;
  width: 100%;
  padding: .65rem;
}

.repeat-row {
  border-left: 3px solid #b9854d;
  gap: .5rem;
  padding-left: .75rem;
  display: grid;
}

.provider-card {
  background: #f8fbf8;
  border: 1px solid #cad7cc;
  border-radius: .75rem;
  gap: .35rem;
  padding: .75rem;
  display: grid;
}

.provider-card.warning {
  background: #fff9ec;
  border-color: #d59231;
}

.segment {
  background: #fff;
  border: 1px solid #cad7cc;
  border-radius: .5rem;
  gap: .35rem;
  padding: .75rem;
  display: grid;
}

.segment.uncertain {
  border-style: dashed;
}

.segment.unreadable {
  background: #fff9ec;
}

ins {
  background: #d8f5df;
  padding: .1rem .2rem;
  text-decoration: none;
}

del {
  background: #ffe0dc;
  padding: .1rem .2rem;
}

@media (max-width: 42rem) {
  .page-header, .project-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .settings-link {
    margin: 0 1.25rem 1.25rem;
  }

  .card {
    padding: 2rem;
  }
}

@media (max-width: 70rem) {
  .viewer-grid {
    grid-template-columns: 1fr;
  }

  .page-strip, .metadata-panel {
    max-height: none;
    position: static;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/