/* Shared working surfaces. The existing palette and all data operations stay intact. */
:root {
  --ink: #173746;
  --muted: #48616b;
  --teal: #176c59;
  --navy: #173746;
  --line: #c3d1ce;
  --bg: #f5f7f7;
  --paper: #fff;
  --surface: #edf2f1;
  --focus: #176c59;
  --warning: #805814;
  --radius-panel: 12px;
  --radius-control: 6px;
}
body {
  font-family: 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.loading {
  color: var(--muted);
}
dialog {
  box-shadow: 0 24px 72px #00000030;
}
::selection {
  background: #cce6dc;
  color: #123f33;
}
input,
textarea {
  caret-color: var(--teal);
}
input::placeholder,
textarea::placeholder {
  color: #536a73;
  opacity: 1;
}
button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.sidebar :is(button, a):focus-visible {
  outline-color: #b1e7d5;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  text-underline-offset: 0.2em;
}
.btn,
.task {
  min-height: 40px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
}
.btn {
  color: var(--ink);
  border-color: #a9bdb7;
  padding: 9px 13px;
}
.btn.primary {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}
.btn:hover {
  filter: none;
  background: #edf4f0;
}
.btn.primary:hover {
  background: #115543;
  border-color: #115543;
}
.btn.danger {
  color: #963e30;
  border-color: #ca9e94;
}
.btn.danger:hover {
  background: #fbedeb;
}
input,
select,
textarea {
  min-height: 40px;
  border-color: #6f8a84;
  border-radius: var(--radius-control);
  color: var(--ink);
  font-size: 14px;
}
.muted,
.sub,
.section-head .sub {
  color: var(--muted);
  font-size: 13px;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.015em;
}
.heading {
  margin-bottom: 22px;
  gap: 16px;
}
.heading .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
main {
  padding: 24px 30px 44px;
}
.sidebar {
  width: 212px;
  padding: 26px 16px;
  background: var(--navy);
}
.workspace {
  margin-left: 212px;
}
.brand {
  gap: 10px;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.brand small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #c2d3d9;
  margin-top: 2px;
}
.brand-mark {
  border-radius: 7px;
  width: 34px;
  height: 38px;
}
.sidebar nav {
  margin-top: 36px;
  gap: 6px;
}
.sidebar nav button {
  padding: 12px;
  gap: 11px;
  min-height: 46px;
  font-size: 14px;
  border-radius: 6px;
  color: #d8e5e9;
}
.sidebar nav button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.65;
}
.sidebar nav button:hover {
  background: #254754;
}
.sidebar nav button.active {
  background: #315967;
  color: white;
}
.sidebar nav button.active svg {
  color: #c4efde;
}
.sidebar-note {
  margin: auto 8px 0;
  color: #d8e5e9;
}
.sidebar-note p {
  color: #c2d3d9;
  font-size: 12px;
}
.topbar {
  height: 68px;
  padding: 0 30px;
  box-shadow: none;
  border-color: var(--line);
}
.breadcrumb {
  color: var(--ink);
  font-size: 14px;
}
.breadcrumb strong {
  font-weight: 600;
}
.top-right {
  gap: 12px;
  flex-wrap: nowrap;
}
.camp-switch-label {
  color: var(--muted);
  font-size: 13px;
}
.database-status {
  color: #365e4d;
  font-size: 12px;
}
.account-menu {
  position: relative;
  min-width: 150px;
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary:hover {
  background: #edf2ef;
}
.account-menu strong,
.account-menu small {
  display: block;
}
.account-menu strong {
  font-size: 13px;
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-menu small {
  font-size: 12px;
  color: var(--muted);
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2f0e7;
  color: #17553d;
  font-weight: 600;
}
.account-menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  min-width: 205px;
}
.account-menu-items button {
  display: block;
  width: 100%;
  min-height: 42px;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
}
.account-menu-items button:hover {
  background: #edf4f0;
}
.signed-out .sidebar,
.signed-out .topbar,
.signed-out .preview-note {
  display: none;
}
.signed-out .workspace {
  margin-left: 0;
}
.signed-out main {
  padding: 24px;
}
.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 48px);
}
.auth-shell form {
  width: min(440px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.auth-brand .brand-mark {
  color: var(--teal);
  border-color: #a9bdb7;
}
.auth-brand h1 {
  font-size: 24px;
  margin: 0;
}
.auth-shell h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.auth-shell p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-shell .field-label {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-top: 18px;
  font-weight: 600;
}
.auth-shell :is(input, .btn) {
  min-height: 44px;
  font-size: 15px;
}
.auth-shell .btn {
  width: 100%;
  margin-top: 20px;
}
.auth-shell .auth-environment {
  font-size: 12px;
  margin-bottom: 0;
}
.account-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0 16px;
}
.account-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
}
.account-check input,
.account-camp-list input {
  min-height: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
#account-camps {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 12px;
}
#account-camps[hidden] {
  display: none;
}
#account-camps legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0 5px;
}
.account-camp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}
.account-camp-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.user-filters input {
  flex: 1;
  max-width: 420px;
}
.user-login {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
}
.user-camp-cell {
  max-width: 270px;
  min-width: 150px;
  overflow-wrap: anywhere;
}
.user-table {
  min-width: 960px;
}
.user-table th:first-child,
.user-table td:first-child {
  min-width: 175px;
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
}
.user-table th:first-child {
  background: #edf2ef;
}
#user-panel .table-wrap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.user-role-guide {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.user-role-guide summary {
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0;
}
.user-audit {
  margin-top: 26px;
}
.user-audit ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.user-audit li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 13px 0;
  border-top: 1px solid #dce5e2;
  font-size: 13px;
}
.user-audit li span {
  color: var(--muted);
  flex: 1;
}
.user-audit li time {
  color: var(--muted);
}
.top-right > select {
  width: 230px;
  max-width: 290px;
  font-size: 14px;
  background: white;
  border-color: #6f8a84;
  font-weight: 600;
}
.preview-note {
  padding: 0;
  background: transparent;
  color: #6b551c;
  border-radius: 0;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.6;
}

/* A single totals band; separate cards would imply unrelated measures. */
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: white;
  overflow: hidden;
  margin-bottom: 22px;
}
.metric,
.metric.highlight {
  padding: 17px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.metric + .metric {
  border-left: 1px solid #dce5e2;
}
.metric .label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.metric .number {
  font-size: 29px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-top: 6px;
  color: var(--ink);
  text-align: left;
}
.metrics .metric:first-child .number {
  grid-column: auto;
  grid-row: auto;
  text-align: left;
}
.metric.highlight {
  background: #edf6f1;
}
.metric.highlight .number {
  color: #155d48;
}
.availability {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 22px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.availability > div h2 {
  font-size: 16px;
  margin-bottom: 3px;
}
.availability span {
  font-size: 13px;
  color: var(--muted);
}
.availability select {
  font-size: 13px;
}

/* Common columns make comparisons possible without rereading every card. */
.section-head {
  margin-bottom: 14px;
}
.comparison-labels,
.comparison > summary {
  display: grid;
  grid-template-columns: minmax(170px, 1.7fr) repeat(6, minmax(80px, 1fr)) 20px;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
}
.comparison-labels {
  min-height: 42px;
  background: #eaf0ee;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #36534e;
}
.comparison-labels > span:not(:first-child) {
  text-align: right;
}
.camp-comparison {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: white;
  overflow: hidden;
}
.comparison {
  border: 0;
  border-bottom: 1px solid #dce5e2;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.comparison:last-child {
  border-bottom: 0;
}
.comparison > summary {
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.comparison > summary:hover {
  background: #f1f6f3;
}
.comparison[open] > summary {
  background: #eaf4ef;
}
.comparison summary div small {
  font-size: 12px;
  color: var(--muted);
}
.comparison summary .comparison-value {
  text-align: right;
}
.comparison .comparison-value small {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.comparison summary div b {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.comparison .free-value b {
  color: #155d48;
}
.camp-summary-name strong {
  font-size: 16px;
  font-weight: 650;
}
.camp-summary-name small {
  margin-top: 3px;
}
.expand-symbol {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--teal);
  transition: transform 150ms ease-out;
}
.expand-symbol svg {
  width: 20px;
  height: 20px;
}
.comparison-content {
  background: #fafcfb;
  padding: 18px;
}
.comparison-content > .table-wrap {
  border-radius: 6px;
}
.definition {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 85ch;
  padding-top: 14px;
}
.definition strong {
  color: var(--ink);
}
.task-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.task {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: white;
  color: var(--ink);
  border: 1px solid #a9bdb7;
  box-shadow: none;
  transition: none;
}
.task:hover {
  border-color: var(--teal);
  box-shadow: none;
  background: #edf4f0;
}
.task.primary-task {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.task.primary-task:hover {
  background: #115543;
}

/* The room number anchors the card; people are the primary content. */
.room-tools {
  top: 68px;
  padding: 10px 0;
  margin-bottom: 18px;
  gap: 10px;
  background: var(--bg);
}
.room-tools :is(input, select) {
  font-size: 14px;
}
.room-tools select {
  max-width: 260px;
}
.room-layout {
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 22px;
}
.building-picker {
  top: 138px;
  max-height: calc(100dvh - 160px);
  gap: 3px;
  padding: 0 6px 8px 0;
}
.building-pick {
  /* Kaydırılan sütun listesinde düğmeler sıkışıp metin taşmasın. */
  flex-shrink: 0;
  padding: 12px;
  min-height: 46px;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
}
.building-pick:hover {
  background: #e8eeeb;
  border-color: transparent;
}
.building-pick b {
  background: #e1eae5;
  color: #34534a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.building-pick.active {
  background: #176c59;
  border-color: #176c59;
  color: white;
}
.building-pick.active:hover {
  background: #115543;
}
.building-pick.active b {
  color: white;
  background: #2b7b67;
}
.building-pick small {
  color: #48616b;
  font-size: 12px;
}
.room-result-head {
  margin-bottom: 10px;
}
.room-result-head .muted {
  font-size: 12px;
}
.floor-heading {
  margin-bottom: 14px;
  padding: 12px 0;
  border-color: var(--line);
}
.floor-heading h2 {
  font-size: 15px;
  letter-spacing: 0;
}
.floor-heading h2 span {
  color: var(--muted);
}
.floor-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.rooms-grid {
  gap: 14px;
}
.room-card,
.room-card:is(.full, .empty, .partial, .held, .warning, .closed) {
  border: 1px solid #b9cdc4;
  border-radius: 12px;
  padding: 18px;
  background: white;
  box-shadow: none;
}
.room-card:hover {
  border-color: #91aea1;
  box-shadow: none;
}
.room-heading {
  padding-bottom: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.room-num {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.room-heading .muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.person-name {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--ink);
}
.person-role {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.person-note {
  font-size: 13px;
  color: #48616b;
}
.person-tags {
  gap: 5px;
  margin-top: 7px;
}
.pill {
  font-size: 12px;
  padding: 3px 7px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 4px;
}
.pill:is(.empty, .partial, .present) {
  color: #17553d;
  background: #e2f0e7;
}
.pill.full {
  color: #304e65;
  background: #e8edf3;
}
.pill:is(.away, .held, .warning) {
  color: #755016;
  background: #fff0d7;
  border: 0;
}
.pill.company {
  color: #594080;
  background: #ede8f6;
}
.pill.internal {
  color: #34515c;
  background: #e7eef0;
}
.pill.closed {
  color: #415560;
  background: #e9edf0;
}
.occupant-line {
  padding: 13px 0;
  border-color: #dce5e2;
}
.occupant-line.away {
  border-left: 0;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  background: #fff7e9;
}
.room-empty-message {
  font-size: 14px;
  padding: 18px 0;
  line-height: 1.6;
  color: #365e4d;
}
.held-note {
  font-size: 13px;
  color: #755016;
}
.available-note {
  display: none;
}
.bed-summary {
  margin-top: 14px;
}
.bed-state-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  overflow: hidden;
  border-radius: 2px;
}
.bed-state-bar > span {
  min-width: 3px;
}
.bed-state-present {
  background: #365f71;
}
.bed-state-away {
  background: #ac791f;
}
.bed-state-held {
  background: #846698;
}
.bed-state-free {
  background: #b5dcca;
  border: 1px solid #7ca88e;
}
.bed-state-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  color: #405d67;
  font-size: 12px;
}
.bed-state-labels b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.bed-label-free {
  color: #17553d;
}
.bed-label-away {
  color: #755016;
}
.bed-label-held {
  color: #594080;
}
.room-card-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-color: #dce5e2;
}
.room-card-actions .btn {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 36px;
}

/* Tables and edit sheets share labels and legible input states. */
.table-wrap {
  border-color: var(--line);
  border-radius: 12px;
}
.table-wrap th {
  color: #36534e;
  background: #edf2ef;
  font-size: 13px;
  padding: 13px 16px;
  font-weight: 600;
}
.table-wrap td {
  font-size: 14px;
  padding: 14px 16px;
}
.table-wrap td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}
.table-wrap td .btn {
  min-height: 36px;
  font-size: 12px;
}
.filters {
  gap: 10px;
}
.filters > span {
  font-size: 13px;
  color: var(--muted);
}
.layout-switch {
  background: #e9f0ec;
  border-color: #b8ccc0;
  border-radius: 7px;
}
.layout-switch button {
  font-size: 13px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 4px;
}
.layout-switch button:not(.active):hover {
  background: white;
}
.sheet-panel {
  border-color: var(--line);
  border-radius: 12px;
}
#sheet-tabpanel:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.sheet-tabs {
  background: #edf2ef;
  border-color: var(--line);
}
.sheet-tabs button {
  font-size: 14px;
  min-height: 44px;
  padding: 12px 24px;
  color: #36534e;
}
.sheet-tools {
  padding: 14px;
}
.sheet-tools :is(input, select) {
  font-size: 14px;
}
.sheet-count {
  font-size: 13px;
  color: #48616b;
}
.sheet-savebar {
  background: #f7faf8;
}
.sheet-savebar strong {
  font-size: 14px;
}
.sheet-savebar span {
  font-size: 12px;
  color: #486358;
}
.sheet-scroll {
  max-height: calc(100dvh - 370px);
}
.edit-sheet,
.edit-sheet :is(input, select, textarea) {
  font-size: 14px;
}
.edit-sheet :is(input, select, textarea) {
  height: 42px;
  min-height: 42px;
  background: #fffef5;
  color: #173e30;
}
.edit-sheet .sheet-labels th {
  font-size: 13px;
  height: 40px;
}
.edit-sheet .sheet-letters th {
  font-size: 11px;
  color: #405f4e;
}
.edit-sheet .sheet-value {
  font-size: 13px;
  color: #466052;
}
.edit-sheet input::placeholder {
  color: #516e5e;
  font-size: 13px;
}
.edit-sheet tr:is(.sheet-row--vacancy, .sheet-row--unnamed) > th {
  border-left: 0;
}
.sheet-footer {
  font-size: 12px;
  color: #486358;
}
.sheet-panel button:disabled {
  opacity: 1;
  background: #edf2ef;
  border-color: #cbd7d1;
  color: #64796d;
}

/* Secondary flows use the same control scale rather than a second UI system. */
.camp-plan {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px 28px;
  margin-bottom: 20px;
}
.plan-file-icon {
  color: #176c59;
  background: #eef5f0;
  border-color: #b9ccc1;
}
.plan-file-info > span {
  color: #405e4e;
  font-size: 14px;
}
.plan-file-info small,
.plan-file-limit {
  color: #486358;
  font-size: 12px;
}
.plan-file-limit {
  bottom: 7px;
}
.plan-viewer-head .btn {
  min-height: 40px;
}
.history-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 75ch;
}
.history-entry {
  border-color: var(--line);
  border-radius: 12px;
}
.history-entry small,
.history-entry time,
.history-entry summary > span {
  font-size: 13px;
  color: var(--muted);
}
.history-entry li strong,
.history-entry li span {
  font-size: 14px;
}
.field-label :is(input, select, textarea) {
  font-size: 15px;
  min-height: 44px;
  border-color: #6f8a84;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-row > * {
  min-width: 0;
}
.form-row > .company-help {
  grid-column: 1 / -1;
  margin-top: -4px;
}
.dialog-head {
  padding: 22px 24px;
}
.close-btn {
  min-height: 44px;
  min-width: 44px;
  color: #405e52;
}
.close-btn svg {
  width: 18px;
  height: 18px;
}
.sheet-locked {
  display: inline-flex;
  margin-left: 5px;
  vertical-align: middle;
  color: #466052;
}
.sheet-locked svg {
  width: 13px;
  height: 13px;
}
dialog::backdrop {
  backdrop-filter: none;
  background: #17374680;
}
.dialog-head h2 {
  font-size: 22px;
}
.dialog-head .muted,
.search-option span {
  font-size: 13px;
}
.search-option strong {
  font-size: 14px;
}
.search-option {
  padding: 14px;
}
.resident-actions button {
  min-height: 36px;
  font-size: 13px;
  border-radius: 5px;
}
.dialog-body .muted {
  line-height: 1.7;
}
.toast {
  font-size: 14px;
  line-height: 1.6;
  padding: 13px 20px;
  border-radius: 8px;
  color: white;
  background: #173e32;
}

@media (min-width: 1800px) {
  .rooms-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1350px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metric:nth-child(4) {
    border-left: 0;
  }
  .metric:nth-child(n + 4) {
    border-top: 1px solid #dce5e2;
  }
  .comparison-labels,
  .comparison > summary {
    grid-template-columns: minmax(140px, 1.5fr) repeat(6, minmax(64px, 1fr)) 16px;
    gap: 9px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .comparison-labels {
    font-size: 11px;
  }
  .room-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 182px;
    padding: 22px 12px;
  }
  .workspace {
    margin-left: 182px;
  }
  .brand {
    font-size: 16px;
  }
  .sidebar nav button {
    font-size: 13px;
    gap: 8px;
    padding: 11px 9px;
  }
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .comparison-labels {
    display: none;
  }
  .camp-comparison {
    border-radius: 12px;
  }
  .comparison > summary {
    grid-template-columns: minmax(140px, 1.5fr) repeat(3, minmax(0, 1fr)) 16px;
    gap: 13px 18px;
  }
  .camp-summary-name {
    grid-row: span 2;
  }
  .comparison .comparison-value small {
    display: block;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 11px;
    margin-bottom: 4px;
  }
  .comparison .expand-symbol {
    grid-column: 5;
    grid-row: 1 / 3;
  }
  .room-tools {
    flex-wrap: wrap;
  }
  .room-tools input {
    flex-basis: 100%;
  }
  .room-tools select {
    max-width: none;
  }
  .building-picker {
    top: 188px;
  }
  .availability {
    flex-wrap: wrap;
  }
  .availability > div {
    flex-basis: 100%;
  }
  .availability select {
    flex: 1;
    max-width: none;
  }
  .plan-file-actions .btn {
    font-size: 12px;
  }
}
@media (max-width: 740px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60px;
    padding: 8px 12px;
    gap: 10px;
    align-items: center;
    flex-direction: row;
  }
  .brand {
    flex-shrink: 0;
  }
  .brand > span:last-child {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 34px;
    font-size: 23px;
  }
  .sidebar nav {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 3px;
    margin: 0;
    overflow-x: auto;
  }
  .sidebar nav button {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    min-height: 44px;
    font-size: 12px;
    white-space: nowrap;
  }
  .sidebar nav button svg {
    display: none;
  }
  .sidebar-note {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    min-height: 60px;
    height: 60px;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .breadcrumb {
    display: none;
  }
  .top-right {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .database-status {
    display: none;
  }
  .topbar:has(.account-menu) {
    height: auto;
  }
  .top-right:has(.account-menu) {
    flex-wrap: wrap;
  }
  .top-right:has(.account-menu) > select {
    min-width: 130px;
  }
  .account-menu {
    margin-left: auto;
    min-width: 0;
  }
  .account-menu summary {
    padding: 3px;
    min-height: 44px;
  }
  .account-menu strong {
    max-width: 100px;
    font-size: 12px;
  }
  .account-menu small {
    font-size: 11px;
  }
  .account-avatar {
    display: none;
  }
  .signed-out main {
    padding: 16px;
  }
  .auth-shell {
    min-height: calc(100dvh - 32px);
  }
  .auth-shell form {
    padding: 24px;
  }
  .auth-shell input {
    font-size: 16px;
  }
  .account-camp-list {
    grid-template-columns: 1fr;
  }
  .account-camp-list label {
    min-height: 44px;
  }
  .account-menu-items button {
    min-height: 44px;
  }
  .user-actions .btn {
    min-height: 44px;
  }
  .user-filters input {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }
  .user-filters select {
    min-width: 160px;
    flex: 1;
  }
  .user-filters > span {
    flex-basis: 100%;
    order: 3;
  }
  .top-right > select {
    width: auto;
    flex: 1;
    max-width: none;
    min-height: 42px;
    font-size: 16px;
  }
  main {
    padding: 18px 16px 32px;
  }
  .preview-note {
    margin-bottom: 18px;
    font-size: 12px;
  }
  h1 {
    font-size: 24px;
  }
  .heading {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
  }
  .heading .actions {
    justify-content: flex-start;
    width: 100%;
  }
  .heading .actions .btn {
    min-height: 40px;
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric,
  .metric.highlight {
    padding: 15px 16px;
  }
  .metrics .metric:first-child {
    display: block;
    grid-column: auto;
  }
  .metric:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }
  .metric:nth-child(even) {
    border-left: 1px solid #dce5e2;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid #dce5e2;
  }
  .metric .label {
    font-size: 13px;
  }
  .metric .number {
    font-size: 28px;
  }
  .availability {
    padding-bottom: 20px;
    gap: 12px;
  }
  .availability select {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
    min-height: 44px;
    font-size: 14px;
  }
  .availability .btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 4px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .section-head .sub {
    font-size: 12px;
  }
  .comparison > summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
    gap: 15px 10px;
    position: relative;
  }
  .camp-summary-name {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-right: 25px;
  }
  .camp-summary-name strong {
    font-size: 18px;
  }
  .comparison summary .comparison-value {
    text-align: left;
  }
  .comparison .comparison-value small {
    font-size: 11px;
    line-height: 1.4;
  }
  .comparison summary div b {
    font-size: 22px;
  }
  .comparison .expand-symbol {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    top: 18px;
    right: 16px;
  }
  .comparison-content {
    padding: 12px;
  }
  .definition {
    font-size: 13px;
  }
  .task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .task {
    min-height: 44px;
    padding: 10px;
    font-size: 13px;
    text-align: center;
  }
  .room-tools {
    position: relative;
    top: 0;
    padding: 0;
  }
  .room-tools :is(input, select) {
    min-height: 44px;
    font-size: 16px;
  }
  .room-layout {
    display: block;
  }
  .building-picker {
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 0 0 8px;
    margin-bottom: 16px;
    max-height: none;
  }
  .building-pick {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    border-color: #bdcec5;
    background: white;
  }
  .room-result-head {
    flex-wrap: wrap;
  }
  .room-result-head .muted {
    width: 100%;
    font-size: 12px;
  }
  .floor-heading h2 {
    font-size: 14px;
  }
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  .room-card {
    padding: 18px;
  }
  .person-name {
    font-size: 15px;
  }
  .person-role {
    font-size: 14px;
  }
  .room-card-actions .btn {
    min-height: 44px;
    font-size: 13px;
  }
  .table-wrap th {
    font-size: 12px;
    padding: 12px;
  }
  .table-wrap td {
    font-size: 14px;
    padding: 12px;
  }
  .layout-switch {
    width: 100%;
  }
  .layout-switch button {
    min-height: 40px;
    font-size: 13px;
  }
  .sheet-tools :is(input, select) {
    min-height: 44px;
    font-size: 16px;
  }
  .sheet-tabs button {
    padding: 12px 10px;
    min-height: 44px;
  }
  .sheet-savebar .btn {
    min-height: 44px;
  }
  .sheet-scroll {
    max-height: 60dvh;
  }
  .edit-sheet :is(input, select, textarea) {
    font-size: 16px;
    min-height: 44px;
    height: 44px;
  }
  .sheet-savebar span {
    font-size: 12px;
  }
  .sheet-footer {
    font-size: 12px;
  }
  .camp-plan {
    padding: 15px 14px 32px;
  }
  .plan-file-actions .btn {
    min-height: 44px;
    font-size: 13px;
  }
  .plan-file-info > span {
    font-size: 14px;
  }
  .plan-file-limit {
    font-size: 11px;
  }
  .plan-viewer-head .btn {
    min-height: 44px;
    font-size: 12px;
    padding: 8px;
  }
  .field-label :is(input, select, textarea) {
    font-size: 16px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .resident-actions button {
    min-height: 44px;
    font-size: 13px;
  }
  .toast {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
@media print {
  .comparison-labels {
    display: grid;
  }
  .comparison > summary {
    grid-template-columns: minmax(140px, 1.5fr) repeat(6, minmax(60px, 1fr)) 16px;
  }
  .comparison .comparison-value small {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .metric:nth-child(n) {
    border-top: 0;
  }
  .metric + .metric {
    border-left: 1px solid #dce5e2;
  }
  .camp-plan,
  .bed-state-bar,
  .sheet-savebar,
  .sheet-tools,
  .task-grid {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .sheet-scroll {
    max-height: none;
    overflow: visible;
  }
}

/* ---- Arayüz denetimi düzeltmeleri · 23.11.2026 ---- */

/* Klavye kullanıcıları için içeriğe atlama bağlantısı; yalnız odaklanınca görünür. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: var(--radius-control);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
#app:focus {
  outline: none;
}

/* Kapasitesi aşılmış odalar; toplamların neden tutmadığını açıklar. */
.capacity-notice {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #e3c98f;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-control);
  background: #fdf7ea;
  color: var(--ink);
}
.capacity-notice strong {
  color: var(--warning);
}
.capacity-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.capacity-notice ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.capacity-notice li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.capacity-notice li small {
  margin-left: 6px;
  color: var(--warning);
  font-weight: 600;
}

/* Oda penceresi özet kutuları: okunur etiket rengi ve beş kutunun (tutulan dahil) tek satırda durması. */
.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.dialog-metrics > div {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

/* "+ Yeni firma" bağlantısının tıklama alanı en az 24 px. */
.company-help .link {
  min-height: 28px;
  padding: 4px 8px;
}

/* Tablo görünümünde kamp seçilmemişken doğrudan kamp seçimi. */
.sheet-choose-camps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media screen and (max-width: 740px) {
  /* Menüdeki bütün sayfalar görünsün; yatay kaydırmaya gizlenmesin. */
  .sidebar nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .sidebar nav button {
    flex: 1 1 auto;
  }

  /* Oda filtreleri daha az yer kaplasın: arama tam satır, iki seçim yan yana. */
  .room-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .room-tools input {
    grid-column: 1 / -1;
  }
  .room-tools select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .room-result-head .muted {
    display: none;
  }

  /* Dokunmatik ekranda önerilen en küçük hedef yüksekliği. */
  .btn,
  .heading .actions .btn,
  .table-wrap td .btn,
  .layout-switch button,
  .building-pick {
    min-height: 44px;
  }
  .dialog-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Çok dar ekranda seçimlerin metni kesilmesin: filtreler tek sütun. */
@media screen and (max-width: 480px) {
  .room-tools {
    grid-template-columns: minmax(0, 1fr);
  }
}
.capacity-notice li em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
/* "İçeriğe atla" sonrası başlık yapışkan üst çubuğun altında kalmasın. */
#app {
  scroll-margin-top: 80px;
}
/* Ekran okuyucuya duyurulan ama görünmeyen durum metni. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media print {
  .skip-link,
  .capacity-notice button,
  .sheet-choose-camps,
  .company-results {
    display: none !important;
  }
}

/* Firma arama önerileri (yerleştirme ve kişi düzenleme formları). */
.company-combo {
  position: relative;
}
.company-combo .field-label {
  display: block;
}
.company-combo input {
  width: 100%;
}
.company-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  box-shadow: 0 10px 28px #17374626;
}
.company-option {
  padding: 9px 10px;
  min-height: 36px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}
.company-option:hover,
.company-option[aria-selected='true'] {
  background: #e3eee9;
}
.company-option[aria-selected='true'] {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.company-new-note {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

/* Bina taşıma: binada kişi varsa açık uyarı ve zorunlu onay. */
.transfer-warning {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e3c98f;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-control);
  background: #fdf7ea;
}
.transfer-warning strong {
  color: var(--warning);
}
.transfer-warning p {
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--ink);
}
.transfer-confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  cursor: pointer;
}
#room-dialog .transfer-confirm input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Görev yazımlarını birleştirme önizlemesi. */
.role-merge-list {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.role-merge-list li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}
.role-merge-list li:first-child {
  border-top: 0;
}
.role-merge-list span {
  color: var(--muted);
  font-size: 14px;
}
@media screen and (max-width: 480px) {
  .role-merge-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Kamp işlemleri: ikonlu düğmeler; telefonda "Kişi yerleştir" tam genişlik ve büyük. */
.task-grid .task {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  justify-content: start;
  min-height: 64px;
  padding: 10px 16px;
  text-align: left;
  border-radius: 10px;
}
.task-grid .task svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--teal);
}
.task-grid .task > span {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  font-size: inherit;
  color: inherit;
}
.task-grid .task strong {
  font-size: 15px;
}
.task-grid .task small {
  font-size: 13px;
  color: var(--muted);
}
.task-grid .task.primary-task svg,
.task-grid .task.primary-task small {
  color: #e1efe9;
}

/* Doluluk çubuğu: kampta, kamp dışında, tutulan (oda kartı renkleriyle aynı). */
.usage-bar {
  display: flex;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e1eae5;
}
.usage-bar > span {
  display: block;
  height: 100%;
}
.building-pick.active .usage-bar {
  background: #2b7b67;
}
.building-picker-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.building-pick > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.building-pick b {
  align-self: flex-start;
}

/* Kamp kartları ("Bütün kamplar" seçiliyken oda ekranı). */
.camp-cards-intro {
  margin: 0 0 14px;
  color: var(--muted);
}
.camp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.camp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.camp-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 14px #17374614;
}
.camp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.camp-card-head > span:first-child {
  display: flex;
  flex-direction: column;
}
.camp-card-head strong {
  font-size: 18px;
}
.camp-card-head small,
.camp-card-usage span,
.camp-card-numbers small {
  color: var(--muted);
  font-size: 13px;
}
.camp-card-usage {
  display: flex;
  justify-content: space-between;
  margin-bottom: -4px;
}
.camp-card .usage-bar {
  height: 8px;
  margin-top: 0;
}
.camp-card-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.camp-card-numbers > span {
  display: flex;
  flex-direction: column;
}
.camp-card-numbers b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.camp-card-numbers .free b,
.camp-card-numbers .free small {
  color: #17553d;
}
.camp-card-open {
  color: var(--teal);
  font-weight: 600;
}

/* Oda kartında her yatak bir kutu; kapasiteyi aşan kayıt turuncu kenarlı. */
.bed-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bed-box {
  width: 22px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 3px;
}
.bed-box-present {
  background: #365f71;
}
.bed-box-away {
  background: #ac791f;
}
.bed-box-held {
  background: #846698;
}
.bed-box-free {
  background: #eef6f1;
  border: 2px dashed #4f7a68;
}
.bed-box-over {
  outline: 2px solid #b5541c;
  outline-offset: 1px;
}
.bed-box-more {
  font-size: 12px;
  color: var(--muted);
  align-self: center;
}
.bed-label-over {
  color: #9a4614;
  font-weight: 600;
}

/* Kişi yerleştirme: geniş ekranda tek form, telefonda üç adım. */
.place-step {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.place-step legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.place-steps .step-indicator,
.place-steps [data-step-next],
.place-steps [data-step-back],
.place-steps .place-review {
  display: none;
}
.step-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.name-dupe:not(:empty) {
  margin: 8px 0 4px;
  padding: 10px 12px;
  background: #fdf7ea;
  border: 1px solid #c99a3b;
  border-radius: var(--radius-control);
  color: #6b4a10;
}
.name-dupe p {
  margin: 0 0 6px;
}
.name-dupe ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.name-dupe li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 6px;
}
.review-list dt {
  color: var(--muted);
}
.review-list dd {
  margin: 0;
  font-weight: 650;
}
.review-list small {
  font-weight: 400;
  color: var(--muted);
}
.review-room {
  display: flex;
  flex-direction: column;
  margin: 14px 0 4px;
}
.place-review .link {
  min-height: 44px;
}
@media screen and (max-width: 740px) {
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-grid .task.primary-task,
  .task-grid .task:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
  .task-grid .task.primary-task {
    min-height: 72px;
  }
  .task-grid .task.primary-task strong {
    font-size: 18px;
  }
  .camp-cards {
    grid-template-columns: 1fr;
  }
  .building-picker-head {
    display: none;
  }
  .place-steps .step-indicator {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
  }
  .place-steps .step-indicator li {
    padding-top: 6px;
    border-top: 4px solid var(--line);
  }
  .place-steps[data-step='1'] .step-indicator li:nth-child(-n + 1),
  .place-steps[data-step='2'] .step-indicator li:nth-child(-n + 2),
  .place-steps[data-step='3'] .step-indicator li {
    border-top-color: var(--teal);
    color: var(--ink);
    font-weight: 600;
  }
  .place-steps .place-step {
    display: none;
  }
  .place-steps[data-step='1'] [data-step-panel='1'],
  .place-steps[data-step='2'] [data-step-panel='2'],
  .place-steps[data-step='3'] [data-step-panel='3'] {
    display: block;
  }
  .place-step legend,
  .place-review h3 {
    font-size: 18px;
    margin: 0 0 12px;
  }
  .place-steps:not([data-step='3']) .flow-submit {
    display: none;
  }
  .place-steps:not([data-step='3']) [data-step-next],
  .place-steps:not([data-step='1']) [data-step-back] {
    display: inline-flex;
  }
  .step-nav {
    position: sticky;
    bottom: 0;
    padding: 10px 0 4px;
    background: var(--paper);
  }
  .step-nav .btn {
    margin: 0;
    flex: 1;
    min-height: 48px;
    justify-content: center;
  }
}
/* Kamp kartları aynı hizada: etiketler kırılmaz, alt satır (aç + uyarı) her kartta en altta. */
.camp-card-numbers small,
.camp-card-head small {
  white-space: nowrap;
}
.camp-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin-top: auto;
  padding-top: 4px;
}
.camp-card-foot .pill {
  white-space: nowrap;
}

/* Oda ekranı (taslakla hizalı): çerçeveli bina paneli, bina özeti, sayılı filtreler,
   renk açıklaması ve sıkı oda kartları. */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 2px;
  font-size: 13px;
}
.building-picker {
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.building-picker .building-pick {
  padding: 9px 10px;
  min-height: 44px;
}
.building-picker .building-pick > span {
  font-weight: 600;
}
.building-picker .building-pick small {
  font-weight: 400;
}
.building-picker .building-pick b {
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}
.building-picker .building-pick.active b {
  background: transparent;
}
.building-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.building-summary > div:first-child {
  display: flex;
  flex-direction: column;
}
.building-summary strong {
  font-size: 18px;
}
.building-summary span {
  color: var(--muted);
  font-size: 13px;
}
.building-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.room-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.filter-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #6f8a84;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.filter-chip:hover {
  border-color: var(--teal);
  background: #edf4f0;
}
.filter-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}
.filter-chip.attention:not(.active) {
  background: #fdf7ea;
  border-color: #c99a3b;
  color: #6b4a10;
  font-weight: 600;
}
.bed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.bed-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bed-legend .bed-box {
  width: 14px;
  height: 14px;
}
.rooms-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.room-card,
.room-card:is(.full, .empty, .partial, .held, .warning, .closed) {
  padding: 12px 14px;
  border-radius: 10px;
}
.room-card.warning {
  border-color: #c99a3b;
}
.room-heading {
  padding-bottom: 8px;
}
.room-num {
  font-size: 16px;
}
.room-heading .muted {
  font-size: 12px;
  margin-top: 0;
}
.room-people {
  flex: 1;
}
.occupant-line,
.occupant-line.away {
  padding: 7px 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
}
.person-name {
  font-size: 13px;
}
.person-role {
  font-size: 12px;
}
.person-away {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #755016;
}
.room-empty-message {
  font-size: 13px;
  padding: 8px 0;
  color: var(--muted);
}
.held-note {
  margin-top: 6px;
  font-size: 12px;
}
.bed-summary {
  margin-top: 10px;
}
.room-card-actions {
  margin-top: 10px;
  padding-top: 10px;
  gap: 6px;
}
.room-card-actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 40px;
}
@media screen and (max-width: 740px) {
  .room-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .filter-chip {
    flex-shrink: 0;
    min-height: 44px;
  }
  .building-picker {
    padding: 6px;
  }
  .rooms-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 740px) {
  .back-link,
  .room-card-actions .btn,
  .building-summary .btn {
    min-height: 44px;
  }
}

/* Kamp özeti: hızlı arama, son işlem şeridi, telefonda diğer işlemler */
.home-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 22px;
}
.home-search {
  position: relative;
  min-width: 0;
}
.home-search .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.home-search input {
  width: 100%;
  max-width: 520px;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #6f8a84;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
}
.home-search .search-results {
  max-width: 520px;
  background: var(--paper);
}
.home-search .search-results p {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
}
.last-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f3f8f6;
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
  box-sizing: border-box;
}
.last-action .btn {
  margin: 0;
}
.more-actions {
  display: none;
}
@media (max-width: 740px) {
  .home-extras {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-search input,
  .home-search .search-results {
    max-width: none;
  }
  .last-action {
    justify-content: space-between;
  }
  .more-actions {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--paper);
    overflow: hidden;
  }
  .more-actions button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 1px solid #e4ece8;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .more-actions h2 {
    margin: 0;
    padding: 12px 16px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid #e4ece8;
  }
  .more-actions button:last-child {
    border-bottom: 0;
  }
  .more-actions small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    text-align: right;
  }
}

/* Yerleştirme: bina düğmeleri ve boş yatağı olan odalar listesi */
.place-buildings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.place-buildings .filter-chip {
  margin: 0;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
#place-room-search {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid #6f8a84;
  border-radius: var(--radius-control);
  box-sizing: border-box;
}
.room-radios {
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  max-height: 320px;
  overflow: auto;
}
.room-radios p {
  margin: 0;
  padding: 12px 14px;
}
.room-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 1px solid #e4ece8;
  cursor: pointer;
  color: var(--ink);
}
.room-radio:last-child {
  border-bottom: 0;
}
.room-radio input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--teal);
}
.room-radio span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.room-radio strong {
  font-size: 14px;
}
.room-radio small {
  font-size: 13px;
  color: var(--muted);
}
.room-radio:hover {
  background: #f3f8f6;
}
.room-radio:has(input:checked) {
  background: #e3f0eb;
  box-shadow: inset 3px 0 0 var(--teal);
}

/* Kayıttan önce onay isteyen not (hata değil) */
.form-error.form-confirm {
  color: #6b4a0e;
  background: #fdf1d8;
  border: 1px solid #e7c98a;
  border-radius: var(--radius-control);
  padding: 10px 12px;
}
.form-error.form-confirm:empty {
  display: none;
}

@media (max-width: 740px) {
  /* Telefonda bina düğmeleri tek satırda kayar; oda listesi ekranda kalır. */
  .place-buildings {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .place-buildings .filter-chip {
    flex: none;
    white-space: nowrap;
  }
}

.place-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f3f8f6;
  font-size: 14px;
}
.place-selected:has(strong) {
  border-color: var(--teal);
  background: #e3f0eb;
}
.place-selected span:not(.muted) {
  font-size: 13px;
  color: var(--muted);
}
.place-selected small {
  color: var(--muted);
  font-size: 13px;
}
.more-rooms {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: center;
}

/* Codex incelemesi: dokunma hedefleri, okunur kişi satırları, telefonda alt menü */
.company-help [data-new-company] {
  min-height: 44px;
  padding: 0 4px;
}
.nav-short {
  display: none;
}
.toast-undo {
  margin-left: 14px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ffffff80;
  border-radius: var(--radius-control);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.toast.visible:has(.toast-undo) {
  display: flex;
  align-items: center;
  gap: 4px;
}
@media screen and (max-width: 740px) {
  .person-name {
    font-size: 15px;
  }
  .person-role,
  .person-away {
    font-size: 13px;
  }
  .sidebar nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: #173746;
    box-shadow: 0 -2px 10px #0b1f2730;
  }
  .sidebar nav button {
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    min-height: 56px;
    padding: 6px 2px;
    font-size: 12px;
    border-radius: 8px;
  }
  .sidebar nav button svg {
    display: block;
    width: 22px;
    height: 22px;
  }
  .sidebar nav .nav-long {
    display: none;
  }
  .sidebar nav .nav-short {
    display: inline;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

.review-impact {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #b9d8c8;
  border-radius: var(--radius-control);
  background: #eef6f1;
  color: var(--ink);
  font-size: 14px;
}
.home-kpis {
  display: none;
}
@media screen and (max-width: 740px) {
  .home-kpis {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
  }
  .home-kpis > div {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--paper);
  }
  .home-kpis strong {
    font-size: 24px;
    line-height: 1.2;
    color: var(--ink);
  }
  .home-kpis span {
    font-size: 13px;
    color: var(--muted);
  }
  .home-kpis .kpi-free {
    background: #e3f0eb;
    border-color: #b9d8c8;
  }
  .home-kpis .kpi-free strong {
    color: var(--teal);
  }
}
@media screen and (max-width: 740px) {
  /* Menü alta taşındı; üstte yalnız logo kalan koyu şerit yer kaplamasın. */
  .sidebar {
    min-height: 0;
    padding: 0;
    background: none;
  }
  .sidebar .brand {
    display: none;
  }
}

/* Odalar başlığı: "Bina ve oda işlemleri" ve "Çıktı" açılır menüleri. */
.header-menu {
  position: relative;
}
.header-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  background: #fff;
  border: 1px solid #6f8a84;
}
.header-menu > summary::-webkit-details-marker {
  display: none;
}
.header-menu[open] > summary {
  background: #e3f0eb;
}
.header-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 10px 28px rgba(23, 55, 70, 0.16);
}
.header-menu-list button {
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
}
.header-menu-list button:hover,
.header-menu-list button:focus-visible {
  background: #eef5f2;
}
.header-menu-note {
  margin: 4px 12px 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Görev / firma: isteğe bağlı olduğu etikette yazar. */
.field-label .optional {
  font-weight: 400;
  color: var(--muted);
}
#role-hint:empty {
  margin: 0;
}

/* Kontrol adımı: Kişi ve Oda ayrı kartlarda. */
.review-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #fff;
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.review-card-head h4 {
  margin: 0;
  font-size: 15px;
}
.review-card .review-room {
  margin: 0;
}

/* Oda adımında kim için oda seçildiği yalnız telefonda (geniş ekranda kişi alanları üstte görünür). */
.place-person {
  display: none;
}
@media (max-width: 740px) {
  .place-person:not(:empty) {
    display: block;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--muted);
  }
  /* Telefonda menü düğmenin altında değil, başlık satırı genişliğinde açılır (sağdan taşmaz). */
  .heading .actions {
    position: relative;
  }
  .header-menu {
    position: static;
  }
  .header-menu-list {
    left: 0;
    right: 0;
    min-width: 0;
  }
}
@media print {
  .header-menu,
  [data-action='more-rooms'] {
    display: none !important;
  }
}

/* Uzun, boşluksuz ad/görev/firma telefonda kartı genişletmesin. */
.review-list {
  grid-template-columns: auto minmax(0, 1fr);
}
.review-list dd,
.review-room,
.place-person {
  overflow-wrap: anywhere;
}
@media (max-width: 740px) {
  .company-option {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
/* Marka işareti: elle çizilmiş çatı + yatak simgesi. */
.brand-mark svg {
  width: 24px;
  height: 24px;
}

/* Excel'den içe aktarma */
.import-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 4px;
  font-variant-numeric: tabular-nums;
}
.import-table th,
.import-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.import-table th[scope='row'],
.import-table thead th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.import-table thead th {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.import-warning,
.import-problem {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d9a54a;
  background: #fff7e6;
  color: #5c3d00;
  overflow-wrap: anywhere;
}
.import-problem {
  border-color: #d08a8a;
  background: #fdeeee;
  color: #6b1f1f;
}
.import-problem p {
  margin: 4px 0 0;
}
.import-list {
  margin: 10px 0 0;
}
.import-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  min-height: 32px;
}
.import-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
  max-height: 180px;
  overflow: auto;
}
.import-list small {
  color: var(--muted);
}
.import-note {
  margin: 12px 0 0;
  color: var(--muted);
}
#import-form input[type='file'] {
  display: block;
  margin-top: 6px;
  max-width: 100%;
}
.import-warning p {
  margin: 0;
}
.import-confirm {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 600;
  cursor: pointer;
}
.import-confirm input {
  width: 20px;
  height: 20px;
}
#import-new-wrap[hidden] {
  display: none;
}
.import-table th[scope="row"] {
  font-size: 0.95rem;
}

/* Telefon uygulaması: giriş ekranında yükleme önerisi ve bağlantı uyarısı. */
.auth-shell {
  align-content: center;
  gap: 16px;
}
.install-card {
  width: min(440px, 100%);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #edf4f0;
  border: 1px solid #b9d3ca;
  border-radius: 14px;
  padding: 18px 20px;
}
.install-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
}
.install-icon svg {
  width: 24px;
  height: 24px;
}
.install-card strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.auth-shell .install-card p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.install-card b {
  color: var(--ink);
  font-weight: 600;
}
.install-share {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  margin: 0 2px;
  color: #1a73e8;
}
.install-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.auth-shell .install-actions .btn {
  width: auto;
  margin: 0;
  min-height: 40px;
  padding-inline: 16px;
}
.offline-banner {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100% - 32px);
  background: #5b3a0c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0003;
}
.offline-banner[hidden] {
  display: none;
}

/* Hesap menüsü: masaüstünde sol menünün altında; dar ekranda üst çubukta kalır. */
.sidebar-account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #2c4f5c;
}
.sidebar-account:empty {
  display: none;
}
.sidebar-account .account-menu {
  min-width: 0;
}
.sidebar-account .account-menu summary {
  padding: 8px;
  min-height: 48px;
  color: #e7eff1;
}
.sidebar-account .account-menu summary:hover {
  background: #254754;
}
.sidebar-account .account-menu summary > span:last-child {
  min-width: 0;
}
.sidebar-account .account-menu strong {
  max-width: 130px;
  color: white;
}
.sidebar-account .account-menu small {
  color: #a9c2ca;
}
.sidebar-account .account-avatar {
  flex-shrink: 0;
  background: #315967;
  color: #c4efde;
}
.sidebar-account .account-menu-items {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
}
.top-right .account-menu {
  display: none;
}
@media (max-width: 740px) {
  .sidebar-account {
    display: none;
  }
  .top-right .account-menu {
    display: block;
  }
}
@media print {
  .sidebar-account {
    display: none;
  }
}
