/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .relative {
    position: relative;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .contents {
    display: contents;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f5f0;
  color: #223028;
  font-family: Arial,Helvetica,sans-serif;
  font-size: 14px;
}
button,input,select,textarea {
  font: inherit;
}
button,.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  background: white;
  border: 1px solid #dce2d6;
  border-radius: 7px;
  padding: 9px 12px;
  color: #364736;
}
button:hover,.file-button:hover {
  background: #edf2e7;
}
button:disabled {
  opacity: .6;
  cursor: wait;
}
.primary {
  background: #42653c;
  color: white;
  border-color: #42653c;
}
.primary:hover {
  background: #335330;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.7px;
  margin: 6px 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 7px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0;
}
p {
  margin: 5px 0;
  color: #748071;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  flex-shrink: 0;
  background: #1e3229;
  color: #d5dfd4;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d5e9b2;
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 42px;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #afbeb0;
  margin-top: 5px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #8ea290;
  margin: 26px 8px 12px;
  display: flex;
  justify-content: space-between;
}
.sidebar button {
  background: transparent;
  border: 0;
  color: #c7d6c9;
  justify-content: flex-start;
  width: 100%;
  margin: 3px 0;
  text-align: left;
}
.sidebar .side-active,.sidebar .selected {
  background: #34483a;
  color: #e7efd9;
}
.record-list {
  overflow: auto;
  flex: 1;
}
.record-list button div {
  overflow: hidden;
  text-overflow: ellipsis;
}
.record-list small {
  display: block;
  font-size: 11px;
  color: #9db29e;
  margin-top: 5px;
}
.new-side {
  border: 1px solid #52664f !important;
}
.side-bottom {
  margin-top: 30px;
  font-size: 11px;
  color: #9cb19c;
}
.side-bottom small {
  display: block;
  font-style: italic;
  margin: 10px 0;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8cac65;
  border-radius: 100%;
  margin-right: 6px;
}
main {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e0e5da;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #84907f;
}
.topbar>div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.private {
  border: 1px solid #dfe6d7;
  padding: 4px 10px;
  border-radius: 20px;
  color: #648152;
}
.page-top {
  padding: 30px 30px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #859676;
}
.actions {
  display: flex;
  gap: 10px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(360px,430px) minmax(450px,1fr);
  gap: 22px;
  padding: 0 30px 30px;
}
.editor {
  background: white;
  border: 1px solid #dfe4d8;
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
}
.editor-top {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.editor-top small {
  display: block;
  color: #88927e;
  font-size: 12px;
  margin-top: 4px;
}
.badge {
  background: #edf3e5;
  color: #627b4d;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 5px;
}
.amber {
  background: #fff3dd;
  color: #957328;
}
nav {
  display: flex;
  border-bottom: 1px solid #e3e8dc;
  padding: 0 8px;
  gap: 2px;
}
nav button {
  border: 0;
  border-radius: 0;
  background: white;
  font-size: 12px;
  padding: 13px 10px;
}
nav button.active {
  border-bottom: 2px solid #557844;
  color: #42653c;
}
.editor-body {
  padding: 22px;
  max-height: calc(100vh - 310px);
  overflow: auto;
  min-height: 390px;
}
.hint {
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
label {
  display: block;
  font-size: 11px;
  color: #6b7764;
  margin-bottom: 11px;
}
input,select,textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce2d5;
  border-radius: 6px;
  padding: 9px;
  color: #33412d;
  background: #fcfdfb;
  margin-top: 6px;
  outline: none;
}
input:focus,textarea:focus,select:focus {
  border-color: #678b4f;
  box-shadow: 0 0 0 2px #eef3e7;
}
textarea {
  min-height: 65px;
  resize: vertical;
}
.note {
  font-size: 11px;
  line-height: 1.6;
  background: #f5f7f0;
  padding: 13px;
  border-radius: 7px;
  margin-top: 15px;
  color: #79836c;
}
.import-box {
  border-top: 1px solid #e5e9df;
  margin-top: 24px;
  padding-top: 10px;
}
.import-box p {
  font-size: 12px;
  margin-bottom: 12px;
}
.import-box button,.import-box .file-button {
  font-size: 11px;
  margin: 3px;
}
.file-button input {
  display: none;
}
.file-button {
  font-size: 11px;
  margin: 0;
}
.save-status {
  border-top: 1px solid #e2e6dd;
  background: #fafbf8;
  padding: 13px 20px;
  font-size: 11px;
  line-height: 1.4;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.entry {
  border: 1px solid #e0e5d9;
  border-radius: 8px;
  padding: 14px;
  margin: 15px 0;
}
.entry-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}
.remove {
  font-size: 10px;
  padding: 4px 6px;
  color: #a27566;
  border: 0;
}
.empty {
  padding: 50px 10px;
  text-align: center;
  color: #8a9881;
}
.empty svg {
  margin: auto;
}
.empty p {
  font-size: 12px;
}
.csv-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.csv-row button {
  font-size: 11px;
}
.photo-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.photo-row img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.photo-row button {
  font-size: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
}
.check input {
  width: auto;
  margin: 0;
}
.preview {
  min-width: 0;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 16px;
  gap: 10px;
  font-size: 12px;
}
.preview-toolbar>div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-toolbar span {
  color: #8c9881;
  font-size: 10px;
}
.preview-toolbar button {
  font-size: 11px;
}
.pages {
  background: #e7eade;
  border: 1px solid #dde2d4;
  border-radius: 10px;
  padding: 20px;
  max-height: calc(100vh - 255px);
  overflow: auto;
}
.log-page {
  background: white;
  padding: 20px;
  box-shadow: 0 3px 15px #24331a15;
  margin: 0 auto 20px;
  max-width: 780px;
  color: #222;
}
.log-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 10px;
  padding: 2px 0 6px;
  border-bottom: 2px solid;
}
.log-brand {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 600;
}
.log-brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
}
.log-brand small {
  display: block;
  font-size: 6px;
  margin-top: 3px;
  font-weight: 400;
}
.log-header h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 3px;
}
.log-header p {
  font-size: 7px;
  line-height: 1.2;
  margin: 2px 0;
  color: #333;
}
.log-id {
  font-size: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.log-meta {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-left: 1px solid #777;
  margin: 4px 0 0;
}
.log-meta>div {
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
  padding: 2px 4px;
  font-size: 6.5px;
  line-height: 1.1;
  min-height: 18px;
}
.log-meta span {
  display: block;
  color: #777;
  margin-bottom: 1px;
}
.log-meta b {
  font-weight: 400;
}
.log-svg {
  display: block;
  width: 100%;
  height: auto;
}
.log-notes {
  font-size: 6px;
  line-height: 1.2;
}
.log-notes p {
  font-size: 6px;
  line-height: 1.2;
  margin: 2px 0;
  color: #333;
}
.log-page footer {
  border-top: 1px solid #aaa;
  padding-top: 5px;
  margin-top: 7px;
  font-size: 6px;
  color: #45663e;
}
.warnings {
  padding: 12px;
  background: #fff3df;
  color: #8b6229;
  margin-bottom: 10px;
  font-size: 12px;
}
.loading {
  padding: 70px;
  color: #557844;
}
@media (max-width:1100px) {
  .sidebar {
    width: 180px;
  }
  .workspace {
    grid-template-columns: minmax(310px,380px) minmax(330px,1fr);
    padding: 0 18px 20px;
    gap: 15px;
  }
  .page-top {
    padding: 25px 18px;
  }
  .pages {
    padding: 10px;
  }
  .log-page {
    padding: 10px;
  }
  .preview-toolbar span {
    display: none;
  }
}
@media (max-width:850px) {
  .sidebar {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .editor-body {
    max-height: 550px;
  }
  .pages {
    max-height: none;
  }
  .page-top {
    gap: 10px;
    align-items: flex-start;
  }
  .actions {
    flex-direction: column;
  }
  .topbar {
    padding: 0 18px;
  }
  h1 {
    font-size: 24px;
  }
}
@media print {
  body {
    background: white;
  }
  .no-print {
    display: none !important;
  }
  .shell,main,.workspace,.preview,.pages {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: white !important;
    overflow: visible !important;
    max-height: none !important;
  }
  .log-page {
    width: 194mm;
    max-width: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }
  .log-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .log-header {
    padding-bottom: 1.5mm;
  }
  .log-meta {
    margin-top: 1mm;
  }
  .log-svg {
    max-height: 222mm;
  }
  .log-notes {
    font-size: 6px;
  }
  .log-page footer {
    font-size: 7px;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.log-brand img {
  width: 100%;
  max-width: 115px;
  max-height: 45px;
  object-fit: contain;
  object-position: left center;
  height: auto;
  display: block;
}
.symbol-choice {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6f8f2;
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
}
.symbol-choice svg {
  flex-shrink: 0;
}
.lithology-legend {
  border-top: 1px solid #ddd;
  margin-top: 4px;
  padding-top: 3px;
}
.lithology-legend>div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 3px 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 180px;
  font-size: 6px;
}
.legend-item svg {
  width: 26px;
  height: 16px;
  flex-shrink: 0;
}
.lithology-legend small {
  display: block;
  font-size: 6px;
  color: #777;
}
@media print {
  .legend-item {
    break-inside: avoid;
  }
}
.photo-size {
  min-width: 90px;
  margin: 0;
}
.photo-size select {
  padding: 5px;
  margin-top: 3px;
}
.rotation-status {
  font-size: 10px;
  color: #78856c;
}
.log-page {
  aspect-ratio: 210/297;
}
.log-svg {
  max-height: 740px;
}
@media print {
  .log-page {
    aspect-ratio: auto;
  }
  .log-svg {
    max-height: 195mm;
  }
  .log-header p,.log-id,.log-meta b {
    overflow-wrap: anywhere;
  }
}
.logo-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0 20px;
  padding: 12px;
  border: 1px solid #e1e6d9;
  border-radius: 7px;
}
.logo-controls img {
  width: 100px;
  height: 65px;
  object-fit: contain;
}
.logo-controls button {
  font-size: 10px;
}
.fine-print {
  font-size: 6px;
  line-height: 1.4;
  margin-top: 4px;
  color: #555;
}
@media print {
  .fine-print {
    font-size: 7px;
  }
}
.naming-panel {
  border: 1px solid #dce5d4;
  border-radius: 8px;
  background: #f7f9f2;
  padding: 14px;
  margin-bottom: 22px;
}
.naming-panel h3 {
  margin-top: 0;
}
.naming-panel small {
  font-size: 10px;
  line-height: 1.7;
  color: #7d896f;
}
input[readonly] {
  background: #eef3e7;
  color: #557344;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-content>div {
  flex: 1;
  min-width: 0;
}
.footer-image {
  object-fit: contain;
  flex-shrink: 0;
  max-width: 25%;
}
.footer-image.small {
  width: 60px;
  height: 25px;
}
.footer-image.medium {
  width: 90px;
  height: 35px;
}
.footer-image.large {
  width: 120px;
  height: 45px;
}
@media print {
  .footer-image.small {
    width: 18mm;
    height: 7mm;
  }
  .footer-image.medium {
    width: 25mm;
    height: 10mm;
  }
  .footer-image.large {
    width: 32mm;
    height: 12mm;
  }
}
.refusal-panel {
  border: 1px solid #e6dcc9;
  border-radius: 6px;
  padding: 10px;
  margin: 12px 0;
  background: #fffdf7;
}
.refusal-panel .hint {
  font-size: 10px;
  margin-bottom: 0;
}
.app-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 22px;
  background: #fafcf8;
  border-bottom: 1px solid #dce2d6;
  position: relative;
  z-index: 20;
}
.app-menu>strong {
  font-size: 13px;
  margin-right: 18px;
  color: #41673d;
}
.app-menu details {
  position: relative;
}
.app-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 4px;
}
.app-menu details[open] summary {
  background: #e8efdf;
}
.menu-popup {
  position: absolute;
  left: 0;
  top: 100%;
  width: 245px;
  padding: 5px;
  background: white;
  border: 1px solid #dbe3d4;
  box-shadow: 0 8px 25px #20332625;
  border-radius: 5px;
}
.menu-popup button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border: 0;
  text-align: left;
  font-size: 12px;
}
.menu-popup hr {
  border: 0;
  border-top: 1px solid #e4e9df;
}
.sidebar {
  width: 245px;
  padding-top: 22px;
}
.brand {
  margin-bottom: 24px;
}
.tree-project {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  padding: 9px 8px;
  background: #2b4134;
  border-radius: 5px;
}
.tree-project span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tree-project small {
  display: block;
  font-size: 10px;
  color: #afc1af;
  margin-top: 4px;
}
.tree-tab {
  padding-left: 23px !important;
  font-size: 12px;
}
.tree-group summary {
  cursor: pointer;
  font-size: 11px;
  color: #a9c2a4;
  padding: 10px 5px;
  overflow-wrap: anywhere;
}
.tree-record {
  display: flex;
  align-items: center;
}
.tree-record>button:first-child {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.tree-record span {
  overflow-wrap: anywhere;
}
.sidebar .tree-delete {
  width: 24px;
  flex-shrink: 0;
  justify-content: center;
  color: #d6ac94;
  font-size: 18px;
  padding: 3px;
}
.clear-side {
  font-size: 11px;
  color: #deb7a2 !important;
}
.tree-empty {
  font-size: 11px;
  color: #a3b7a4;
  padding: 10px;
}
.setup-overlay {
  position: fixed;
  inset: 0;
  background: #15271c77;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.setup-dialog {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 15px 60px #0003;
}
.setup-dialog p {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.view-editor .preview {
  display: none;
}
.view-editor .workspace {
  grid-template-columns: 1fr;
  max-width: 1000px;
}
.view-preview .editor {
  display: none;
}
.view-preview .workspace {
  grid-template-columns: 1fr;
}
.view-preview .preview {
  max-width: 1000px;
  width: 100%;
  margin: auto;
}
.preview-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.preview-toolbar button {
  font-size: 11px;
}
.log-page {
  aspect-ratio: var(--paper-ratio,215.9/279.4);
}
.log-svg {
  max-height: var(--graph-height,158mm);
}
.mobile-tree {
  display: none;
}
.actions {
  flex-wrap: wrap;
}
.save-status {
  overflow-wrap: anywhere;
}
.side-bottom {
  margin-top: 12px;
}
@media (max-width:850px) {
  .mobile-tree {
    display: flex;
    gap: 7px;
    padding: 0 18px 12px;
    align-items: center;
  }
  .mobile-tree select {
    min-width: 0;
  }
  .app-menu {
    padding: 0 8px;
  }
  .app-menu>strong {
    margin-right: 4px;
  }
  .app-menu summary {
    padding: 9px;
  }
  .menu-popup {
    width: 220px;
  }
  .page-top {
    flex-wrap: wrap;
  }
  .actions {
    flex-direction: row;
  }
  .preview-toolbar span {
    display: inline;
  }
  .topbar>div {
    flex-wrap: wrap;
  }
  .topbar {
    height: auto;
    min-height: 60px;
  }
}
@media print {
  .view-editor .preview {
    display: block !important;
  }
  .log-page {
    break-inside: avoid;
  }
  .preview {
    max-width: none !important;
    width: auto !important;
  }
}
.print-measure {
  position: absolute;
  left: -10000px;
  top: 0;
  background: white;
  visibility: hidden;
}
.print-measure .log-header {
  padding-bottom: 1.5mm;
}
.print-measure .log-meta {
  margin-top: 1mm;
}
.print-measure .log-notes {
  font-size: 6px;
}
.print-measure .log-page footer {
  font-size: 7px;
}
.print-measure .fine-print {
  font-size: 7px;
}
.print-measure .footer-image.small {
  width: 18mm;
  height: 7mm;
}
.print-measure .footer-image.medium {
  width: 25mm;
  height: 10mm;
}
.print-measure .footer-image.large {
  width: 32mm;
  height: 12mm;
}
@media print {
  .print-measure {
    display: none !important;
  }
  .log-svg {
    max-height: var(--fitted-graph-height,158mm) !important;
  }
}
.layer-tools {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 14px;
}
.layer-tools>span {
  font-size: 11px;
  color: #7b8871;
  margin-right: auto;
}
.layer-tools button {
  font-size: 11px;
  padding: 6px 8px;
}
.layer-entry {
  padding: 0;
  overflow: hidden;
}
.layer-heading {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 10px;
  background: #f7f9f3;
}
.layer-toggle {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent !important;
  padding: 6px 2px;
  justify-content: flex-start;
  text-align: left;
  align-items: flex-start;
}
.layer-toggle>svg {
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform .15s;
}
.expanded-arrow {
  transform: rotate(90deg);
}
.layer-toggle span {
  min-width: 0;
}
.layer-toggle strong {
  display: block;
  font-size: 12px;
}
.layer-toggle small {
  display: block;
  font-size: 10px;
  color: #7b8871;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.layer-heading .remove {
  flex-shrink: 0;
  font-size: 10px;
  padding: 5px;
}
.layer-fields {
  padding: 16px 14px 8px;
}
.layer-toggle:focus-visible {
  outline: 2px solid #668753;
  outline-offset: 2px;
}
.project-tree {
  max-height: 49vh;
  overflow: auto;
  flex-shrink: 0;
}
.project-tree>summary {
  cursor: pointer;
  list-style: disclosure-closed;
}
.project-tree[open]>summary {
  list-style: disclosure-open;
}
.tree-branch {
  margin: 4px 0 3px 13px;
}
.tree-branch>summary {
  cursor: pointer;
  padding: 8px 7px;
  color: #c7d6c9;
  font-size: 12px;
  border-radius: 5px;
}
.tree-branch>summary.active-branch {
  background: #34483a;
  color: #e7efd9;
}
.tree-branch>summary>span {
  float: right;
  font-size: 10px;
  color: #9eb696;
}
.tree-leaves {
  margin-left: 8px;
  border-left: 1px solid #50634c;
  padding-left: 6px;
}
.tree-leaves button {
  font-size: 10px;
  padding: 6px 7px;
  line-height: 1.4;
}
.tree-leaves button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-leaves small {
  display: block;
  font-size: 9px;
  color: #9fb39d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.tree-no-items {
  padding: 8px;
}
.sidebar .side-label {
  margin-top: 16px;
}
.tree-group summary {
  font-weight: 600;
}
.project-name-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #dce5d4;
  background: #f4f8ee;
  border-radius: 7px;
}
.project-name-panel>span {
  font-size: 10px;
  color: #7c8c70;
}
.project-name-panel strong {
  font-size: 12px;
  flex: 1;
  overflow-wrap: anywhere;
}
.project-name-panel button {
  font-size: 10px;
  padding: 5px 7px;
}
.sidebar .project-open {
  font-size: 10px;
  color: #b9d6a5;
}
.project-open small {
  font-size: 9px;
}
.app-menu .menu-popup {
  max-height: 75vh;
  overflow: auto;
}
.saved-project-heading {
  position: relative;
  padding-right: 30px !important;
}
.saved-project-heading>span {
  overflow-wrap: anywhere;
}
.sidebar .saved-project-heading .tree-delete {
  position: absolute;
  right: 0;
  top: 4px;
  margin: 0;
  display: inline-flex;
}
.log-notes,.log-notes p {
  font-size: 5.5px;
  line-height: 1.2;
}
.log-notes p {
  margin: 2px 0;
}
.log-page footer {
  padding-top: 3px;
  margin-top: 4px;
  font-size: 5.5px;
}
.fine-print {
  font-size: 5.5px;
  line-height: 1.2;
  margin-top: 2px;
}
.lithology-legend {
  margin-top: 3px;
  padding-top: 2px;
}
.print-measure .log-notes,.print-measure .log-page footer,.print-measure .fine-print {
  font-size: 5.5px;
}
@media print {
  .log-notes,.log-notes p,.log-page footer,.fine-print {
    font-size: 5.5px;
    line-height: 1.2;
  }
}
.log-meta {
  margin-top: 8px;
}
.log-svg {
  margin-top: 4px;
}
.log-notes {
  margin-top: 9px;
}
@media print {
  .log-meta {
    margin-top: 2mm;
  }
  .log-svg {
    margin-top: 1mm;
  }
  .log-notes {
    margin-top: 2.5mm;
  }
}
.print-measure .log-meta {
  margin-top: 2mm;
}
.print-measure .log-svg {
  margin-top: 1mm;
}
.print-measure .log-notes {
  margin-top: 2.5mm;
}
.pages {
  container-type: inline-size;
}
.log-page {
  width: min(780px,100%);
  padding-top: calc(var(--margin-top,8)/var(--paper-width,215.9)*min(780px,100cqw));
  padding-right: calc(var(--margin-right,8)/var(--paper-width,215.9)*min(780px,100cqw));
  padding-bottom: calc(var(--margin-bottom,8)/var(--paper-width,215.9)*min(780px,100cqw));
  padding-left: calc(var(--margin-left,8)/var(--paper-width,215.9)*min(780px,100cqw));
}
.log-content {
  width: var(--preview-scale,90%);
  margin: 0 auto;
}
.print-measure .log-content {
  width: 100%;
}
@media print {
  .pages {
    container-type: normal;
  }
  .log-content {
    width: 100%;
  }
}
@media screen {
  .pages.preview-zoom .log-page {
    width: min(780px,100cqw);
    max-width: none;
    zoom: var(--log-zoom,1);
  }
  .log-zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .preview-toolbar .log-zoom-controls span {
    display: inline-block;
    color: #41673d;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
  }
  .log-zoom-controls button {
    min-width: 36px;
    min-height: 36px;
  }
}
@media print {
  .log-page {
    zoom: 1 !important;
  }
}
.log-id>span {
  overflow-wrap: anywhere;
}
.account-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  background: #eef1e9;
  font-size: 11px;
}
.account-bar button {
  padding: 4px 10px;
  font-size: 11px;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #eff2e9;
}
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.login-card {
  width: min(420px,100%);
  padding: 30px;
  border: 1px solid #d9e1d3;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 30px #18332512;
}
.login-card>img {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
}
.login-card label {
  display: block;
  margin: 18px 0 0;
}
.login-card input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #cdd8c5;
  border-radius: 7px;
  margin-top: 6px;
}
.login-card>button {
  width: 100%;
  margin-top: 22px;
}
.login-message {
  color: #9c3424;
  margin-top: 16px;
}
[hidden] {
  display: none !important;
}
@media print {
  .account-bar,.login-screen {
    display: none !important;
  }
}
.platform-home {
  max-width: 1000px;
  margin: 50px auto;
  padding: 25px;
}
.platform-home>img {
  width: 160px;
  height: 90px;
  object-fit: contain;
  object-position: left;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
  margin-top: 28px;
}
.module-card {
  display: block;
  text-align: left;
  padding: 28px;
  background: white;
  min-height: 180px;
}
.module-card strong {
  display: block;
  color: #42653c;
  margin-top: 24px;
}
.admin-overlay {
  position: fixed;
  inset: 0;
  background: #18332580;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5000;
}
.admin-panel {
  background: white;
  padding: 26px;
  border-radius: 12px;
  max-height: 94vh;
  overflow: auto;
  width: min(1000px,100%);
}
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  margin-top: 20px;
}
.admin-user {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 8px;
}
.admin-user small {
  display: block;
  color: #6f7a67;
  margin-top: 5px;
}
.admin-columns form>label:not(.check) {
  display: block;
  margin-top: 15px;
}
.admin-columns form input:not([type=checkbox]),.admin-columns form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #cdd8c5;
  border-radius: 6px;
  margin-top: 5px;
}
.admin-columns form>.primary {
  margin-top: 18px;
  display: block;
}
.admin-project-list {
  max-height: 200px;
  overflow: auto;
}
.admin-message {
  padding: 12px;
  background: #eef2e9;
  color: #42653c;
}
.viewer-workspace .editor,.viewer-workspace .actions,.viewer-workspace .new-side,.viewer-workspace .clear-side,.viewer-workspace .tree-delete,.viewer-workspace .mobile-tree>button,.viewer-workspace .app-menu>details:nth-of-type(1),.viewer-workspace .app-menu>details:nth-of-type(2) {
  display: none !important;
}
.viewer-workspace .workspace {
  display: block;
}
.account-bar {
  flex-wrap: wrap;
}
@media (max-width:650px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .platform-home {
    margin: 20px auto;
  }
}
@media print {
  .platform-home,.admin-overlay {
    display: none !important;
  }
}
@media print {
  body:has(.staff-workspace) * {
    display: none !important;
  }
}
.portal-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 24px;
}
.portal-page h1 {
  font-size: 28px;
  color: #166534;
}
.portal-page h2 {
  font-size: 20px;
  margin: 16px 0;
}
.portal-page section {
  background: white;
  border: 1px solid #d1ded5;
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.portal-page label {
  display: block;
  margin: 12px 0;
}
.portal-page input:not([type=checkbox]),.portal-page select {
  display: block;
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 8px;
}
.portal-page button {
  border: 1px solid #aabcb0;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 3px;
  background: #f0f7f2;
}
.portal-page button:disabled {
  opacity: .5;
}
.portal-table {
  overflow: auto;
}
.portal-table table {
  width: 100%;
  border-collapse: collapse;
}
.portal-table td,.portal-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
.portal-table a,.portal-preview a {
  color: #166534;
  text-decoration: underline;
}
.portal-preview {
  width: min(1100px,95vw);
  height: 92vh;
  display: flex;
  flex-direction: column;
}
.portal-preview iframe {
  width: 100%;
  flex: 1;
  border: 1px solid #ccc;
}
.portal-upload {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}
@media (max-width:700px) {
  .portal-grid,.portal-upload {
    grid-template-columns: 1fr;
  }
}
.portal-page .admin-user.selected {
  background: #42653c;
  color: white;
  border: 2px solid #294b28;
}
.portal-page .admin-user.selected small {
  color: #fff;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}
