.access-shell { max-width: 1232px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); padding: 0 24px; }
.access-sidebar { padding: 32px 24px 32px 0; border-right: 1px solid var(--line); }
.apartment-identity { display: flex; align-items: center; gap: 10px; padding-bottom: 28px; }
.apartment-identity strong { display: block; font-size: 14px; }
.apartment-symbol { background: #eaf2ed; width: 40px; height: 44px; display: grid; place-items: center; flex: 0 0 40px; border-radius: 6px; }
.access-menu { display: grid; gap: 6px; }
.access-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; color: #53615a; text-decoration: none; font-size: 14px; border-radius: 6px; }
.access-menu a.selected { background: #eaf2ed; color: var(--green); font-weight: 600; }
.access-menu a:hover { background: var(--surface); }
.access-menu img, .apartment-chip img, .linked-apartments img { width: 19px; height: 19px; opacity: .75; }
.access-menu a > span { margin-left: auto; font-size: 12px; color: var(--muted); }
.sidebar-owner { display: grid; gap: 4px; margin-top: 42px; padding: 20px 10px; border-top: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.sidebar-owner strong { font-size: 13px; font-weight: 500; }
.sidebar-owner a { margin-top: 8px; }
.access-main { min-width: 0; padding: 32px 0 48px 32px; }
.access-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.apartment-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-decoration: none; color: var(--muted); max-width: 45%; overflow-wrap: anywhere; }
.quota-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 30px; padding: 22px 0; border-block: 1px solid var(--line); }
.quota-item { display: grid; align-content: start; gap: 8px; padding: 0 24px; border-left: 1px solid var(--line); }
.quota-item:first-child { padding-left: 0; border: 0; }
.quota-item > span { font-size: 12px; color: var(--muted); }
.quota-item strong { font-size: 27px; font-weight: 600; line-height: 1.3; }
.quota-item small { font-size: 17px; font-weight: 400; color: #8a948d; }
.quota-item meter { display: block; height: 5px; width: 100%; max-width: 160px; border: 0; background: #e7ece8; border-radius: 2px; }
.quota-item meter::-webkit-meter-bar { border: 0; background: #e7ece8; height: 5px; }
.quota-item meter::-webkit-meter-optimum-value { background: #43846a; }
.quota-item meter::-moz-meter-bar { background: #43846a; }
.quota-item > .quota-date { font-size: 11px; }
.guest-quota strong { color: #986217; }
.section-heading { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2 { font-size: 19px; }
.section-heading p, .section-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.compact-button { width: auto; min-height: 40px; padding: 9px 13px; gap: 7px; flex: 0 0 auto; font-size: 13px; }
.primary-button img, .review-actions img { width: 17px; height: 17px; flex: 0 0 17px; }
.primary-button img, .review-approve img { filter: brightness(0) invert(1); }
.primary-button:disabled { color: #7c8980; background: #e7ece8; border-color: #dce3de; cursor: not-allowed; }
.primary-button:disabled img { filter: none; opacity: .4; }
.list-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.list-tabs a { padding: 10px 0 13px; text-decoration: none; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.list-tabs .active { color: var(--green); font-weight: 600; border-bottom-color: var(--green); }
.access-empty { display: grid; justify-items: center; text-align: center; padding: 50px 16px; }
.access-empty > img { width: 34px; height: 34px; opacity: .3; margin-bottom: 10px; }
.access-empty h3 { font-size: 16px; font-weight: 500; margin: 8px 0 0; }
.access-empty p { color: var(--muted); font-size: 13px; margin: 8px 0; }
.resource-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1fr) minmax(135px, .8fr) 32px; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.resource-row > div { min-width: 0; overflow-wrap: anywhere; }
.resource-object, .resource-owner, .resource-state { display: grid; justify-items: start; gap: 6px; font-size: 13px; }
.resource-object > span:not(.vehicle-plate), .resource-owner small, .resource-state small { color: var(--muted); font-size: 12px; }
.resource-owner .visit-period { font-size: 11px; color: var(--muted); }
.vehicle-plate { display: inline-grid; grid-template-columns: 1fr 42px; width: 173px; height: 38px; border: 1.5px solid #27382e; border-radius: 5px; align-items: center; background: #fff; color: #1b2820; font: 600 21px/1 "Segoe UI", Arial, sans-serif; text-align: center; white-space: nowrap; }
.vehicle-region { border-left: 1px solid #27382e; align-self: stretch; padding-top: 3px; font-size: 17px; display: grid; place-items: center; }
.vehicle-region small { display: block; font-size: 7px; line-height: 1; padding-bottom: 3px; }
.phone-number { font-size: 17px; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; gap: 6px; padding: 4px 8px; border-radius: 4px; background: #f0f2f1; color: #66716a; font-size: 11px; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.pending { background: #fff5df; color: #976b1d; }
.status-badge.approved { background: #e9f4ed; color: #2e6a45; }
.status-badge.rejected { background: #fbeeed; color: #a54138; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 5px; background: transparent; flex: 0 0 32px; }
.icon-button:hover { background: var(--surface); border-color: var(--line); }
.icon-button img { width: 18px; height: 18px; opacity: .65; }
.access-notice, .access-error { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 12px 14px; background: #eef6f0; color: #26623e; border-left: 3px solid #519371; margin: 18px 0; overflow-wrap: anywhere; }
.access-notice img { width: 17px; height: 17px; }
.access-error { background: #fff1ef; color: #9a3029; border-color: #b44a3e; }
.period-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.period-filter label { display: grid; gap: 5px; font-size: 12px; min-width: 0; }
.period-filter input { width: 155px; max-width: 100%; height: 38px; padding: 7px 10px; border: 1px solid #ccd7ce; border-radius: 5px; background: white; color: var(--ink); }
.secondary-button { border: 1px solid #ccd7ce; border-radius: 5px; min-height: 38px; background: white; color: var(--ink); padding: 7px 12px; font-size: 13px; }
.secondary-button:hover { background: var(--surface); }
.request-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); padding: 26px; border-radius: 8px; color: var(--ink); box-shadow: 0 20px 70px #182c2433; }
.request-dialog::backdrop { background: #17271f66; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 20px; }
.form-business-note { color: var(--muted); font-size: 12px; margin: 0; }
.plate-input { text-transform: uppercase; }
.linked-apartments { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 22px 0; border-top: 1px solid var(--line); }
.linked-apartments > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 10px 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.linked-apartments strong { font-weight: 500; }
.linked-apartments span { font-size: 11px; color: var(--muted); }
.group-totals { display: flex; flex-wrap: wrap; gap: 12px 20px; color: var(--muted); font-size: 12px; margin: 18px 0 26px; }
.group-totals strong { color: var(--ink); }
.list-limit { font-size: 12px; color: var(--muted); }
.admin-navigation { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 18px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-navigation a { text-decoration: none; }
.state-filter { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0; font-size: 12px; }
.state-filter a { text-decoration: none; color: var(--muted); }
.state-filter a[aria-current="page"] { color: var(--green); font-weight: 600; }
.review-actions button { display: inline-flex; align-items: center; gap: 6px; }
.group-management { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; margin-top: 28px; }
.group-management .account-form { margin-top: 24px; }
.group-management .primary-button { justify-content: center; gap: 10px; }
.group-management .checkbox-label { align-items: flex-start; }
.checkbox-label input { flex: 0 0 16px; margin-top: 2px; }
.field textarea { font: inherit; display: block; width: 100%; padding: 10px 12px; border: 1px solid #ccd7ce; border-radius: 6px; resize: vertical; }
.field textarea:focus { outline: 2px solid #77bda1; outline-offset: 1px; }
.history-heading { margin-top: 40px; }
.merge-history-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; gap: 20px; font-size: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.merge-history-row time { color: var(--muted); font-size: 12px; }
@media (max-width: 1050px) {
  .access-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .access-sidebar { padding-right: 16px; }
  .access-main { padding-left: 24px; }
  .resource-row { grid-template-columns: minmax(180px, 1fr) minmax(0, 1fr) 32px; }
  .resource-object { grid-column: 1; grid-row: 1 / span 2; }
  .resource-state { grid-column: 2; grid-row: 2; }
  .resource-owner { grid-column: 2; grid-row: 1; align-self: start; }
  .resource-action { grid-column: 3; grid-row: 1 / span 2; }
  .section-heading { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 800px) {
  .access-shell { display: block; }
  .access-sidebar { padding: 18px 0 0; border-right: 0; }
  .apartment-identity, .sidebar-owner { display: none; }
  .access-menu { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .access-menu a { flex: 1 0 auto; justify-content: center; gap: 7px; padding: 10px; font-size: 12px; }
  .access-menu a > span { display: none; }
  .access-menu img { width: 16px; height: 16px; }
  .access-main { padding: 24px 0 40px; }
  .quota-item { padding: 0 14px; }
  .quota-item > span { font-size: 11px; }
  .group-management { gap: 24px; grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .access-shell { padding: 0 20px; }
  .access-heading { align-items: flex-start; gap: 12px; }
  .access-heading h1 { font-size: 25px; }
  .apartment-chip { margin-top: 24px; font-size: 11px; }
  .quota-band { margin-top: 22px; padding: 18px 0; }
  .quota-item { padding: 0 10px; gap: 7px; }
  .quota-item > span:first-child { min-height: 34px; }
  .quota-item strong { font-size: 24px; }
  .quota-item small { font-size: 14px; }
  .quota-item > .quota-date { font-size: 10px; }
  .access-menu a { padding: 9px; }
  .access-menu img { display: none; }
  .resource-row { grid-template-columns: minmax(0, 1fr) 32px; gap: 14px; padding: 20px 0; }
  .resource-object { grid-column: 1; grid-row: 1; }
  .resource-owner { grid-column: 1; grid-row: 2; }
  .resource-state { grid-column: 1; grid-row: 3; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .resource-action { grid-column: 2; grid-row: 1; }
  .period-filter { gap: 10px; }
  .period-filter label { flex: 1 1 125px; }
  .period-filter input { width: 100%; }
  .request-dialog { padding: 22px; }
  .merge-history-row { grid-template-columns: 1fr; gap: 6px; }
}
