:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #142735;
  --muted: #526674;
  --line: #dce5e8;
  --canvas: #eff4f5;
  --primary: #176358;
  --primary-dark: #0e4c44;
  --pale: #e9f4f0;
  --radius: 17px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .file-label { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
button, a, input, textarea, select, .file-label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #2e8a7e; outline-offset: 3px; }
.frame { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.masthead { color: #fff; background: var(--ink); box-shadow: 0 2px 6px #14273512; }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 12px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 720; font-size: 19px; letter-spacing: -.025em; }
.mark { width: 35px; height: 35px; border-radius: 10px; background: #b7e5d2; display: grid; align-content: center; justify-items: start; gap: 3px; padding-left: 9px; }
.mark i { width: 16px; height: 2px; background: #15362f; border-radius: 4px; }
.mark i:last-child { width: 10px; }
nav { display: flex; gap: 8px; }
.nav-button { border: 0; background: transparent; color: #f0f7f5; min-height: 44px; border-radius: 8px; padding: 0 10px; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.nav-button:hover { background: #ffffff19; }
.count { padding: 3px 6px; min-width: 21px; border-radius: 20px; font-size: 11px; background: #ffffff20; text-align: center; }
.dot { height: 7px; width: 7px; border-radius: 50%; background: #e1b06a; }
.dot.ready { background: #87d8b8; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 39px 0 26px; }
.eyebrow { color: var(--primary); text-decoration: none; letter-spacing: .11em; font-weight: 760; font-size: 11px; }
h1 { margin: 7px 0 6px; font-weight: 750; font-size: clamp(29px, 5vw, 46px); line-height: 1.06; letter-spacing: -.052em; overflow-wrap: anywhere; }
h2 { font-size: 20px; margin: 0; font-weight: 730; letter-spacing: -.025em; }
p { margin: 0; }
.muted, .optional { color: var(--muted); }
.optional { font-weight: 450; margin-left: 3px; font-size: 12px; }
.page-head .muted { font-size: 14px; line-height: 1.5; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); align-items: start; gap: 20px; padding-bottom: 32px; }
.side { display: grid; gap: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 4px #14273504; min-width: 0; }
.section, .login { padding: 22px; }
.section + .section { border-top: 1px solid #e8edef; }
.section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 8px; margin-bottom: 14px; }
.pill { display: inline-block; border-radius: 99px; padding: 5px 9px; background: #eef2f4; color: #3e5867; font-weight: 650; font-size: 11px; white-space: nowrap; }
.pill.saved { color: var(--primary-dark); background: var(--pale); }
.fields { display: grid; gap: 15px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 13px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input, textarea, select { width: 100%; min-width: 0; color: var(--ink); background: #fcfefe; border: 1px solid #bacbd1; border-radius: 9px; padding: 10px 11px; min-height: 45px; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #647883; opacity: 1; }
input[type=date], input[type=time] { padding-left: 8px; padding-right: 7px; }
textarea { resize: vertical; }
.subtle-count { color: var(--muted); font-size: 12px; }
.position { display: grid; grid-template-columns: minmax(0, 1fr) 83px 43px; align-items: end; gap: 8px; }
.position + .position { margin-top: 12px; }
.primary, .secondary, .add, .icon, .file-label {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 45px; border: 1px solid transparent; border-radius: 9px;
  padding: 8px 13px; font-size: 14px; font-weight: 690; text-align: center;
}
.primary { background: var(--primary); color: #fff; }
.primary:hover { background: var(--primary-dark); }
.secondary, .file-label { border-color: #cddadd; background: #fff; color: var(--ink); }
.secondary:hover, .file-label:hover { background: #f1f6f7; }
.add { margin-top: 14px; width: 100%; border-color: #abcac2; color: var(--primary-dark); background: #f5faf8; border-style: dashed; }
.add:hover { background: var(--pale); }
.icon { color: var(--muted); background: transparent; width: 43px; padding: 0; font-size: 23px; font-weight: 400; }
.icon:hover { background: #eff3f5; }
.small { min-height: 43px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.feedback { color: #a12727; font-size: 14px; line-height: 1.45; }
.feedback:empty { display: none; }
.feedback.ok { color: var(--primary-dark); }
.save-section .feedback:not(:empty) { margin-bottom: 10px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.lane { border-radius: 11px; background: #f2f6f7; min-height: 128px; padding: 9px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 26px; font-weight: 690; font-size: 12px; margin-bottom: 5px; }
.lane-count { color: var(--muted); }
.lane-tab-bar { display: none; }
.lane-empty { color: var(--muted); font-size: 12px; margin: 10px 0 3px; }
.note { border: 1px solid #dfe8eb; padding: 8px; border-radius: 9px; background: white; }
.note + .note { margin-top: 8px; }
.note-open { text-align: left; width: 100%; min-height: 44px; background: transparent; border: 0; padding: 0; display: grid; gap: 6px; color: var(--ink); }
.note-open span { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.note img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; border-radius: 5px; }
.note .optional { margin-left: 0; }
.note select { font-size: 12px; min-height: 43px; margin-top: 7px; padding: 5px; }
dialog { width: min(94vw, 550px); max-height: min(90dvh, 780px); border: 1px solid var(--line); padding: 0; border-radius: var(--radius); color: var(--ink); box-shadow: 0 24px 80px #10243135; }
dialog::backdrop { background: #10243177; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 4; background: #fff; padding: 11px 16px 11px 20px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 19px 20px 22px; }
.dialog-body > label:not(:first-child) { margin-top: 15px; }
.dialog-body .feedback, .dialog-body > button:last-child, .dialog-body > .actions:last-child { margin-top: 12px; }
.calendar-fields { margin-top: 15px; grid-template-columns: 1.15fr 1fr; }
#period { font-size: 13px; margin: 8px 0; }
.login { margin: 56px auto; max-width: 424px; }
.login h1 { margin-bottom: 27px; font-size: 29px; }
.login button, .login .feedback { margin-top: 12px; }
.search { position: relative; }
.suggestions { position: absolute; width: 100%; top: calc(100% + 3px); z-index: 3; box-shadow: 0 10px 26px #14273522; padding: 3px; border: 1px solid #c6d6d9; border-radius: 9px; background: #fff; max-height: 190px; overflow: auto; }
.option { padding: 8px; min-height: 44px; display: grid; gap: 3px; align-content: center; cursor: pointer; font-size: 14px; overflow-wrap: anywhere; }
.option.active, .option:hover { background: var(--pale); border-radius: 6px; }
.option small, .search-message { color: var(--muted); font-size: 12px; }
.search-message:empty { display: none; }
.search-message:not(:empty) { padding-top: 4px; }
.chosen { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.chosen button { color: var(--primary-dark); background: var(--pale); border: 0; border-radius: 8px; padding: 0 9px; min-height: 44px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.photo { display: flex; flex-direction: column; min-width: 0; }
.photo img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 7px; }
.photo .icon { width: 100%; font-size: 16px; }
.photo-choices { margin-top: 8px; }
.file-label { position: relative; margin-bottom: 0; }
.file-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-label:focus-within { outline: 3px solid #2e8a7e; outline-offset: 2px; }
.inquiry-list, #appointments { display: grid; gap: 8px; }
.inquiry-list { margin-top: 14px; }
.inquiry-link, .appointment-entry { display: grid; gap: 3px; align-content: center; min-height: 51px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #f9fcfc; padding: 8px 11px; color: var(--ink); overflow-wrap: anywhere; }
.inquiry-link:hover { background: var(--pale); }
.inquiry-link small, .appointment-entry small { color: var(--muted); }
.appointment-entry button { margin-top: 5px; justify-self: start; }
.toast { color: #fff; background: var(--ink); border-radius: 8px; padding: 11px 15px; position: fixed; z-index: 6; bottom: calc(15px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); box-shadow: 0 5px 24px #14273530; font-size: 14px; }
@media (max-width: 870px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 560px) {
  .frame { padding-inline: 13px; }
  .bar { min-height: 58px; }
  .brand { gap: 7px; font-size: 17px; }
  .mark { width: 30px; height: 30px; padding-left: 8px; }
  nav { gap: 0; }
  .nav-button { font-size: 12px; padding-inline: 6px; }
  .page-head { padding: 24px 2px 16px; align-items: start; }
  .page-head .secondary { font-size: 12px; padding-inline: 7px; white-space: nowrap; }
  .page-head .muted { font-size: 13px; }
  .section, .login { padding: 15px; }
  .position { grid-template-columns: minmax(0, 1fr) 69px 39px; gap: 6px; }
  .position .icon { width: 39px; }
  .save-section .actions > button { flex: 1 1 130px; }
  .board { display: block; }
  .lane-tab-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-bottom: 7px; }
  .lane-tab-bar button { min-height: 44px; padding: 4px; border: 0; background: #eff4f5; color: var(--ink); border-radius: 7px; font-weight: 650; font-size: 12px; }
  .lane-tab-bar button[aria-pressed=true] { color: var(--primary-dark); background: #dceee8; }
  .lane:not(.current), .lane-head { display: none; }
  .lane { min-height: 60px; }
  .note img { max-width: 150px; }
  dialog { width: calc(100% - 16px); max-height: 94dvh; }
}
