* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #f6f6f6;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f6f6f6;
}

a {
    color: #111;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body.admin-layout {
    background: #fff;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    padding: 16px;
    overflow-y: auto;
    background: #eaeaea;
    color: #000;
    border-right: 1px solid #d0d0d0;
}

.sidebar-logo {
    display: block;
    color: #000;
    margin-bottom: 22px;
    text-decoration: none;
}

.sidebar-logo-mark {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 0;
    margin-bottom: 8px;
    overflow: hidden;
}

.sidebar-logo-mark img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar-brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.sidebar-user {
    padding: 14px 0 12px;
    margin-top: 14px;
    border-top: 1px solid #d0d0d0;
    font-size: 0.9rem;
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
    overflow-wrap: anywhere;
}

.sidebar-user span {
    color: #555;
    margin-top: 4px;
}

.sidebar-language {
    margin: 0 0 10px;
}

.sidebar-language label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.76rem;
    font-weight: 700;
}

.sidebar-language select {
    width: 100%;
    min-height: 34px;
    padding: 5px 28px 5px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 7px;
    background: #f7f7f7;
    color: #111;
    font: inherit;
    font-size: 0.88rem;
}

.sidebar-language select:focus {
    border-color: #777;
    outline: 2px solid rgba(0, 0, 0, 0.12);
    outline-offset: 1px;
}

.sidebar-section-title {
    margin: 34px 0 8px;
    color: #555;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.module-nav a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #000;
    padding: 7px 0;
    text-decoration: none;
}

.module-nav a:hover {
    text-decoration: underline;
}

.module-nav a.active {
    font-weight: 700;
}

.module-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #111;
    flex: 0 0 auto;
}

.sidebar-spacer {
    flex: 1 1 auto;
    min-height: 18px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #000;
    padding: 7px 0;
    text-decoration: none;
}

.sidebar-logout:hover {
    text-decoration: underline;
}

.page-shell {
    padding: 2rem;
}

body.admin-layout .page-shell {
    margin-left: 250px;
    width: auto;
}

.site-header,
.site-footer,
body.public-layout .page-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-weight: 700;
}

.top-nav {
    display: flex;
    gap: 0.8rem;
}

.site-footer {
    padding: 2rem 0;
    color: #666;
    font-size: 0.9rem;
}

body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f6f6f6;
}

body.login .page-shell {
    width: 100%;
    max-width: 390px;
    padding: 0 20px;
}

body.home-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: #f6f6f6;
}

body.home-layout .page-shell {
    width: 100%;
    max-width: 350px;
    padding: 0 20px;
}

body.home-layout .site-footer {
    display: none;
}

.auth-panel,
.login-box,
.home-box {
    width: 100%;
    padding: 40px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-panel h1,
.home-box h1 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.home-box h2 {
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 700;
}

.home-login-button {
    width: 100%;
}

.auth-panel p {
    margin: 0 0 20px;
    color: #555;
}

.form-stack {
    display: grid;
    gap: 10px;
    text-align: left;
}

[hidden] {
    display: none !important;
}

.checkbox-label {
    align-content: center;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
}

.hero {
    min-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 2rem;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 0.95;
}

.hero-copy p {
    max-width: 650px;
    color: #444;
    font-size: 1.15rem;
    line-height: 1.6;
}

.hero-actions,
.button-row,
.sticky-actions,
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hero-panel {
    position: relative;
    min-height: 360px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-thread {
    position: absolute;
    inset: 46px;
    border: 1px solid #bbb;
    border-radius: 48% 52% 44% 56%;
    transform: rotate(-18deg);
}

.map-thread::before,
.map-thread::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1d1f27;
}

.map-thread::before {
    top: 18%;
    left: 16%;
}

.map-thread::after {
    right: 20%;
    bottom: 22%;
}

.signal-card {
    position: absolute;
    display: grid;
    gap: 4px;
    width: 150px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f7f7f7;
}

.signal-card span {
    color: #666;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.signal-card-one {
    top: 50px;
    left: 34px;
}

.signal-card-two {
    right: 26px;
    top: 156px;
}

.signal-card-three {
    left: 56px;
    bottom: 52px;
}

.content-band,
.panel,
.stat-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.narrow-copy {
    max-width: 760px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-heading h1,
.page-heading h2,
.panel h2,
.narrow-copy h2 {
    margin: 0;
}

.page-heading p {
    margin: 0.35rem 0 0;
    color: #555;
}

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

.stat-panel span,
.stat-panel strong {
    display: block;
}

.stat-panel span {
    color: #555;
    font-size: 0.9rem;
}

.stat-panel strong {
    margin-top: 0.3rem;
    font-size: 1.6rem;
    overflow-wrap: anywhere;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

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

.meta-list {
    display: grid;
    grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
    gap: 0.45rem 1rem;
    margin: 0;
}

.meta-list dt {
    text-align: right;
    font-weight: 700;
}

.meta-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

form {
    margin: 0;
}

label {
    display: grid;
    gap: 0.3rem;
    font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="email"],
input[type="search"],
input[type="password"],
input:not([type]),
textarea,
select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font: inherit;
}

textarea {
    min-height: 72px;
    resize: vertical;
}

button,
.button,
.button-primary,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #eee;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    line-height: 1.2;
}

.inline-form {
    display: inline;
}

.link-button {
    display: inline;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font: inherit;
    text-decoration: none;
}

.link-button:hover {
    background: transparent;
    text-decoration: underline;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

button:hover,
.button:hover,
.button-primary:hover,
.button-secondary:hover,
.button-danger:hover {
    background: #ddd;
    text-decoration: none;
}

.button-danger {
    border-color: #f0c2c2;
    background: #fff5f5;
    color: #9b1c1c;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #004466;
    outline-offset: 1px;
}

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

.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.search-bar input[type="search"] {
    min-width: 220px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    margin-bottom: 1rem;
    border-spacing: 6px;
}

th,
td {
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.compact-table,
.panel table,
.form-table,
.detail-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.compact-table th,
.compact-table td,
.panel table th,
.panel table td,
.form-table th,
.form-table td,
.detail-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
}

.compact-table th,
.panel table th,
.form-table th {
    background: #f0f0f0;
    font-weight: 700;
}

.form-table input,
.form-table select,
.form-table textarea {
    min-width: 120px;
}

.form-table textarea {
    min-width: 220px;
}

.action-links,
.pagination,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-chip,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f0f0f0;
    color: #111;
    font-size: 0.9rem;
}

.pagination {
    margin-top: 1rem;
}

.pagination a {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f0f0f0;
}

.pagination a.active {
    background: #1d1f27;
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.places-library {
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.places-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 92px;
    padding: 18px 22px;
    border-bottom: 1px solid #dedede;
    background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.places-library-title h1 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.1;
}

.places-library-title p {
    margin: 0.25rem 0 0;
    color: #8a8a8a;
    font-size: 0.98rem;
    font-weight: 700;
}

.places-library-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: min(680px, 100%);
}

.places-library-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(540px, 100%);
    padding: 7px 8px 7px 16px;
    border: 1px solid #efefef;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.places-library-search input[type="search"] {
    min-width: 0;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #111;
    font-weight: 700;
}

.places-library-search input[type="search"]:focus {
    outline: 0;
}

.places-library-search button {
    flex: 0 0 auto;
    border-radius: 999px;
}

.places-search-icon {
    position: relative;
    width: 17px;
    height: 17px;
    border: 2px solid #8d8d8d;
    border-radius: 50%;
    flex: 0 0 auto;
}

.places-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #8d8d8d;
    transform: rotate(45deg);
}

.places-filter-browser {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    min-height: 330px;
    border-bottom: 1px solid #dedede;
    background: #fff;
}

.places-filter-column {
    min-width: 0;
    border-right: 1px solid #dedede;
}

.places-filter-column:last-child {
    border-right: 0;
}

.places-filter-column h2 {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #d7d7d7;
    background: linear-gradient(180deg, #f7f7f7 0%, #e7e7e7 100%);
    color: #333;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
}

.places-filter-list {
    height: 292px;
    overflow: auto;
    padding: 0 0 6px;
    font-size: 0.95rem;
    scrollbar-color: #878787 #ededed;
}

.places-filter-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    color: #111;
    text-decoration: none;
}

.places-filter-list a:hover {
    background: #ececec;
    text-decoration: none;
}

.places-filter-list a.active {
    background: #d9d9d9;
}

.places-filter-list a span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.places-filter-list a span:last-child {
    color: #707070;
    font-variant-numeric: tabular-nums;
}

.places-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 8px 12px;
    border-bottom: 1px solid #dedede;
    background: #fafafa;
    color: #555;
    font-size: 0.9rem;
}

.places-list-toolbar a {
    color: #333;
    font-weight: 700;
}

.places-list-toolbar-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.places-pill-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.36rem;
}

.places-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #687386;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.places-filter-pill:hover {
    border-color: #c9d7ea;
    background: #ecf5ff;
    color: #1d4f91;
    text-decoration: none;
}

.places-filter-pill.active {
    border-color: #c9d7ea;
    background: #ecf5ff;
    color: #1d4f91;
}

.places-list-toolbar .places-reset-button {
    flex: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #e9e9e9 100%);
    color: #222;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.places-list-toolbar .places-reset-button:hover {
    background: linear-gradient(180deg, #f8f8f8 0%, #dedede 100%);
    text-decoration: none;
}

.places-table-wrap {
    background: #fff;
}

.places-itunes-table {
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.92rem;
}

.places-itunes-table th,
.places-itunes-table td {
    padding: 5px 8px;
    border: 0;
    border-right: 1px solid #eeeeee;
    vertical-align: middle;
    white-space: nowrap;
}

.places-itunes-table th:last-child,
.places-itunes-table td:last-child {
    border-right: 0;
}

.places-itunes-table th {
    border-bottom: 1px solid #dedede;
    background: #fafafa;
    color: #111;
    font-weight: 700;
}

.places-itunes-table th.places-sortable-heading {
    padding: 0;
}

.places-itunes-table th.places-sortable-heading a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 28px;
    padding: 5px 8px;
    color: inherit;
    text-decoration: none;
}

.places-itunes-table th.places-sortable-heading a:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.places-itunes-table th.places-sortable-heading.active a {
    background: #ececec;
}

.places-sort-indicator {
    min-width: 0.75rem;
    color: #666;
    font-size: 0.78rem;
    line-height: 1;
    text-align: right;
}

.places-itunes-table tbody tr:nth-child(even) td {
    background: #f5f5f5;
}

.places-itunes-table tbody tr:hover td {
    background: #e8edf7;
}

.places-clickable-row {
    cursor: pointer;
}

.places-clickable-row:focus {
    outline: 2px solid #6a8fc7;
    outline-offset: -2px;
}

.places-clickable-row:focus td {
    background: #e8edf7;
}

.places-name-cell a {
    color: #000;
    font-weight: 700;
}

.places-itunes-table .status-chip {
    min-height: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.structure-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
    padding: 1.15rem;
    border: 1px solid #d9dde4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.structure-profile-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 1rem;
}

.structure-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border: 1px solid #d8dde5;
    border-radius: 21px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #415066;
    font-size: 1.85rem;
    font-weight: 700;
}

.structure-profile-title {
    min-width: 0;
}

.structure-profile-title h1 {
    margin: 0;
    color: #111827;
    font-size: 1.9rem;
    line-height: 1.12;
    font-weight: 700;
}

.structure-profile-title p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.98rem;
}

.structure-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.structure-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
    font-size: 0.85rem;
    font-weight: 600;
}

.structure-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.structure-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.structure-tree-panel,
.structure-detail-panel > .panel {
    border: 1px solid #d9dde4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.structure-tree-panel {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.structure-tree-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 16px 11px;
    border-bottom: 1px solid #e8ecf2;
}

.structure-tree-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
}

.structure-tree-header span {
    color: #64748b;
    font-size: 0.82rem;
}

.structure-tree {
    padding: 10px;
}

.structure-tree-branch {
    margin: 2px 0;
}

.structure-tree-branch summary {
    display: flex;
    align-items: flex-start;
    list-style: none;
}

.structure-tree-branch summary::-webkit-details-marker {
    display: none;
}

.structure-tree-branch summary::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 0;
    height: 0;
    margin: 15px 2px 0 2px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #8a94a5;
    transition: transform 0.15s ease;
}

.structure-tree-branch[open] > summary::before {
    transform: rotate(90deg);
}

.structure-tree-children {
    margin-left: 16px;
    padding: 3px 0 4px 10px;
    border-left: 1px solid #e8ecf2;
}

.structure-node,
.structure-create-node {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    align-items: center;
    min-height: 38px;
    padding: 6px 9px;
    border-radius: 10px;
    color: #17202c;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.structure-node:hover,
.structure-create-node:hover {
    background: #f3f8ff;
    text-decoration: none;
}

.structure-tree-branch summary > .structure-node {
    flex: 1 1 auto;
}

.structure-node.is-selected {
    background: #eaf3ff;
    color: #0f3263;
    box-shadow: inset 0 0 0 1px #c9ddf6;
}

.structure-node span,
.structure-node small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.structure-node small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.78rem;
}

.structure-node-key {
    min-height: 30px;
    font-size: 0.92rem;
}

.structure-create-node {
    color: #0f3263;
    font-size: 0.86rem;
    font-weight: 700;
}

.structure-tree-extra {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

.structure-badge {
    justify-self: end;
    padding: 2px 7px;
    border: 1px solid #c9d4e7;
    border-radius: 999px;
    background: #edf3ff;
    color: #24456f;
    font-size: 0.72rem;
    font-weight: 700;
}

.structure-badge-muted {
    border-color: #d7d7d7;
    background: #f4f4f4;
    color: #666;
}

.structure-detail-panel > .panel {
    margin-bottom: 0;
}

.structure-detail-panel .panel-header {
    align-items: flex-start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8ecf2;
}

.structure-detail-panel .panel-header p {
    margin: 0.3rem 0 0;
}

.structure-form {
    margin-top: 1rem;
}

.structure-context-note {
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    line-height: 1.45;
}

.structure-context-note strong {
    display: block;
    margin-top: 0.35rem;
    color: #111;
}

.structure-context-panel {
    margin-top: 1rem;
}

.structure-category-overview {
    display: grid;
    gap: 1rem;
}

.structure-category-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.structure-category-summary h2 {
    margin: 0.15rem 0 0.1rem;
    color: #111827;
    font-size: 1.55rem;
    line-height: 1.15;
}

.structure-category-summary span {
    color: #667085;
    font-size: 0.9rem;
    font-weight: 600;
}

.structure-category-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.structure-type-overview .structure-category-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.structure-category-stats > div {
    padding: 0.85rem;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fbfcfe;
}

.structure-category-stats strong,
.structure-category-stats span {
    display: block;
}

.structure-category-stats strong {
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.1;
}

.structure-category-stats span {
    margin-top: 0.18rem;
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
}

.structure-category-actions {
    gap: 0.6rem;
}

.structure-category-actions .inline-form {
    display: inline-flex;
}

.structure-flag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.structure-flag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #bfd4ee;
    border-radius: 999px;
    background: #eff6ff;
    color: #174a80;
    font-size: 0.8rem;
    font-weight: 700;
}

.structure-flag-row .structure-flag-muted {
    border-color: #e3e7ee;
    background: #f8fafc;
    color: #98a2b3;
}

.structure-add-type-wide {
    width: 100%;
    min-height: 42px;
}

.structure-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.structure-detail-list {
    display: grid;
    margin-top: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.structure-group-card {
    display: grid;
    gap: 0;
    border-bottom: 1px solid #e8ecf2;
}

.structure-group-card:last-child {
    border-bottom: 0;
}

.structure-editor-card {
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}

.structure-editor-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: 0.5rem 0.72rem;
    cursor: pointer;
    list-style: none;
    background: #fff;
    transition: background 0.15s ease;
}

.structure-editor-card > summary:hover,
.structure-editor-card > summary:focus {
    background: #f3f8ff;
    outline: none;
}

.structure-editor-card > summary::-webkit-details-marker {
    display: none;
}

.structure-editor-card > summary::before {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #9aa2af;
    transition: transform 0.15s ease;
}

.structure-editor-card[open] > summary::before {
    transform: rotate(90deg);
}

.structure-editor-card > summary > span:first-of-type {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.structure-editor-card summary strong,
.structure-editor-card summary small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.structure-editor-card summary strong {
    color: #111827;
    font-size: 0.94rem;
    font-weight: 650;
}

.structure-editor-card summary small {
    color: #667085;
    font-size: 0.8rem;
}

.structure-summary-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #667085;
    font-size: 0.78rem;
}

.structure-editor-body {
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid #edf0f5;
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.structure-editor-form {
    margin-top: 0;
}

.structure-editor-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.structure-editor-form label {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.structure-editor-form input:not([type="checkbox"]),
.structure-editor-form textarea,
.structure-editor-form select {
    min-height: 34px;
    padding: 7px 9px;
    border-color: #d8dde5;
    border-radius: 9px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.structure-editor-save-row {
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.structure-field-list {
    display: grid;
    gap: 0;
    margin-left: 0;
    border-top: 1px solid #eef2f7;
    background: #fbfcfe;
}

.structure-field-editor > summary {
    min-height: 42px;
    padding-left: 2.05rem;
    background: #fbfcfe;
}

.structure-field-editor + .structure-field-editor,
.structure-field-empty-row + .structure-field-editor,
.structure-field-editor + .structure-field-empty-row {
    border-top: 1px solid #eef2f7;
}

.structure-create-editor {
    margin-top: 0.85rem;
    border: 1px solid #cdd8ea;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.structure-inline-actions {
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.structure-empty-inline {
    padding: 1.2rem;
    border: 1px dashed #d3dae6;
    border-radius: 12px;
    background: #f8fafc;
    color: #667085;
}

.structure-empty-inline h3 {
    margin: 0 0 0.35rem;
    color: #111827;
    font-size: 1rem;
}

.structure-empty-inline p {
    margin: 0;
}

.structure-field-empty-row {
    padding: 0.58rem 0.72rem 0.58rem 2.05rem;
    color: #98a2b3;
    font-size: 0.86rem;
}

.structure-danger-form {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #ececec;
}

.structure-danger-form + .structure-danger-form {
    margin-top: 0.45rem;
    padding-top: 0;
    border-top: 0;
}

.structure-danger-form .link-button {
    color: #9f1d1d;
    font-weight: 700;
}

.structure-empty-detail {
    min-height: 260px;
}

.flash {
    margin-bottom: 1rem;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.flash-success {
    border-color: #76a876;
    background: #eef8ee;
}

.flash-error {
    border-color: #c66;
    background: #fff0f0;
}

.empty-state,
.muted {
    color: #666;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 1rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 25%);
}

.place-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
    padding: 1.15rem;
    border: 1px solid #d9dde4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.place-profile-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 1rem;
}

.place-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
    border: 1px solid #d8dde5;
    border-radius: 22px;
    background: #f3f5f8;
    color: #415066;
    overflow: hidden;
    font-size: 2.1rem;
    font-weight: 700;
}

.place-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-profile-title {
    min-width: 0;
}

.place-profile-title h1 {
    margin: 0;
    color: #111827;
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 700;
}

.place-profile-title p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.98rem;
}

.place-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.place-chip,
.place-workspace .tag-list span,
.place-workspace .status-chip,
.place-profile-header .status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
    font-size: 0.85rem;
    font-weight: 600;
}

.place-profile-header .status-chip,
.place-workspace .status-chip {
    background: #ecf5ff;
    border-color: #bfdbfe;
    color: #1d4f91;
}

.place-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: -0.35rem 0 1rem;
    padding: 0 0.25rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.place-breadcrumb a,
.place-breadcrumb span[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 8px;
}

.place-breadcrumb a {
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.place-breadcrumb a:hover {
    color: #0f3263;
    text-decoration: underline;
}

.place-breadcrumb span[aria-current="page"] {
    color: #111827;
    font-weight: 700;
}

.place-breadcrumb-separator {
    color: #94a3b8;
}

.place-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.place-workspace {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
    padding: 0.35rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7f8fb 0%, #f2f4f7 100%);
}

.place-section-sidebar {
    position: sticky;
    top: 1rem;
    padding: 0.75rem;
    border: 1px solid #d9dde4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.place-section-sidebar-title {
    margin: 0.15rem 0.35rem 0.55rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.place-section-nav {
    display: grid;
    gap: 0.2rem;
}

.place-section-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: #334155;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.place-section-nav a:hover {
    background: #f4f6f9;
    text-decoration: none;
}

.place-section-nav a.active {
    background: #e8f1ff;
    color: #0f4c9a;
}

.place-section-content {
    min-width: 0;
}

.workspace-section.panel {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border-color: #d9dde4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.place-workspace.is-enhanced .workspace-section {
    display: none;
}

.place-workspace.is-enhanced .workspace-section.is-active {
    display: block;
}

.workspace-section .panel-header {
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edf0f4;
}

.workspace-section .panel-header h2 {
    color: #111827;
    font-size: 1.2rem;
    line-height: 1.2;
}

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

.general-card-grid {
    grid-template-columns: minmax(0, 1fr);
}

.field-card {
    padding: 1rem;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    background: #f9fafc;
}

.detail-group-card {
    margin-bottom: 1rem;
}

.detail-group-card:last-child {
    margin-bottom: 0;
}

.detail-group-card .detail-table {
    margin-bottom: 0;
}

.detail-group-card .muted {
    display: block;
    margin-top: 0.15rem;
}

.child-place-workspace {
    display: grid;
    gap: 0.8rem;
}

.child-place-list {
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.child-place-row {
    display: grid;
    grid-template-columns: 36px minmax(180px, 1.25fr) minmax(150px, 0.85fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 56px;
    padding: 0.5rem 0.72rem;
    border-bottom: 1px solid #e8ecf2;
    color: inherit;
    text-decoration: none;
}

.child-place-row:last-child {
    border-bottom: 0;
}

.child-place-row:hover,
.child-place-row:focus {
    background: #f3f8ff;
    outline: 0;
    text-decoration: none;
}

.child-place-row-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #d8dde5;
    border-radius: 9px;
    background: #eef3f9;
    color: #415066;
    font-size: 0.8rem;
    font-weight: 800;
}

.child-place-row-main {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.child-place-row-main strong {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-place-row-main span,
.child-place-row-meta {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-place-empty {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.child-place-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.child-place-form {
    margin-top: 0;
    padding: 1rem;
    border: 1px solid #e2e7ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

.child-place-action-form {
    display: none;
}

.child-place-action-form.is-active {
    display: grid;
}

.child-place-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.child-place-card-header h3 {
    margin: 0 0 0.2rem;
    color: #111827;
    font-size: 1rem;
}

.child-place-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

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

.child-place-create-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
}

.child-place-create-grid .edit-field-card {
    padding: 1rem 1.05rem;
}

.child-place-create-grid .edit-form-grid {
    align-items: start;
}

.child-place-link-form {
    background: #fff;
}

.child-place-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: end;
}

.child-place-link-row label {
    margin-bottom: 0;
}

.child-place-link-row select {
    width: 100%;
}

.child-place-search {
    display: grid;
    gap: 0.75rem;
}

.child-place-search-results {
    display: grid;
    gap: 0.45rem;
}

.child-place-search-results .muted {
    margin: 0;
}

.child-place-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background: #f8fafc;
}

.child-place-search-result-button {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
    padding: 0.35rem 0.45rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #111827;
    text-align: left;
    cursor: pointer;
}

.child-place-search-result-button:hover,
.child-place-search-result-button:focus-visible {
    background: #eef3f9;
    outline: none;
}

.child-place-search-result strong,
.child-place-selected strong {
    color: #111827;
    font-size: 0.94rem;
}

.child-place-search-result small,
.child-place-selected small {
    color: #64748b;
    font-size: 0.82rem;
}

.child-place-search-result a {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.child-place-search-result a:hover {
    color: #0f3263;
    text-decoration: underline;
}

.child-place-selected {
    display: grid;
    gap: 0.18rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #ecf5ff;
}

.relation-workspace {
    gap: 0.9rem;
}

.relation-actions {
    display: grid;
    gap: 0.55rem;
    padding-bottom: 0.15rem;
}

.relation-link-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.relation-link-current {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 0.48rem;
}

.relation-link-label {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.relation-link-current a,
.relation-link-value {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 700;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.relation-link-current a:hover {
    color: #0f4c9a;
    text-decoration: underline;
}

.relation-add-button {
    justify-self: start;
}

.relations-child-places {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e5eaf2;
}

.relations-child-places .panel-header {
    margin-bottom: 0;
}

.travel-region-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.travel-region-list-header h3 {
    margin: 0;
    color: #111827;
    font-size: 0.96rem;
}

.travel-region-list-header span {
    display: inline-flex;
    min-width: 28px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef3f9;
    color: #415066;
    font-size: 0.8rem;
    font-weight: 800;
}

.relation-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.35fr);
    gap: 0.75rem;
}

.relation-form-grid label,
.relation-target-editor {
    display: grid;
    gap: 0.32rem;
}

.relation-target-editor .child-place-search {
    gap: 0.42rem;
}

.relation-search-control input[type="search"] {
    width: 100%;
}

.relation-editor-list {
    margin-top: 0.1rem;
}

.relation-list-details {
    border-bottom: 1px solid #e8ecf2;
}

.relation-list-details:last-child {
    border-bottom: 0;
}

.relation-list-details > summary {
    cursor: pointer;
    list-style: none;
}

.relation-list-details > summary::-webkit-details-marker {
    display: none;
}

.relation-list-details > summary::marker {
    content: "";
}

.relation-list-details > .child-place-row {
    border-bottom: 0;
}

.relation-list-details[open] > .child-place-row,
.relation-list-details > .child-place-row:hover,
.relation-list-details > .child-place-row:focus-visible {
    background: #f3f8ff;
}

.relation-edit-chip {
    justify-self: end;
}

.relation-list-form {
    display: grid;
    gap: 0.75rem;
    padding: 0.82rem 0.85rem 0.9rem 3.85rem;
    border-top: 1px solid #e8ecf2;
    background: #fbfcfe;
}

.relation-list-form-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.25fr) minmax(130px, 0.45fr);
    gap: 0.75rem;
    align-items: start;
}

.relation-list-form-grid label {
    display: grid;
    gap: 0.32rem;
    margin-bottom: 0;
}

.relation-list-form-grid input,
.relation-list-form-grid select {
    width: 100%;
}

.relation-list-form-actions {
    justify-content: flex-end;
}

.duplicate-workspace {
    display: grid;
    gap: 0.9rem;
}

.duplicate-panel,
.duplicate-notice-card {
    padding: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.duplicate-panel-header,
.duplicate-notice-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.duplicate-panel h3,
.duplicate-notice-card h3 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.25;
}

.duplicate-panel p,
.duplicate-notice-card p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.duplicate-notice-card a {
    display: inline-flex;
    margin-top: 0.3rem;
    color: #0f4c9a;
    font-weight: 700;
    text-decoration: none;
}

.duplicate-notice-card a:hover {
    text-decoration: underline;
}

.duplicate-candidate-list {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.8rem;
}

.duplicate-candidate-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(140px, 0.7fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

.duplicate-candidate-row:hover,
.duplicate-candidate-row:focus {
    border-color: #b8c8dc;
    background: #f3f8ff;
    outline: 0;
}

.duplicate-candidate-main {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.duplicate-candidate-main strong {
    overflow: hidden;
    color: #111827;
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.duplicate-candidate-main small,
.duplicate-candidate-reason {
    overflow: hidden;
    color: #64748b;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.duplicate-confidence {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.duplicate-confidence-high {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.duplicate-confidence-medium {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.duplicate-confidence-review {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.duplicate-candidate-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.duplicate-candidate-actions .inline-form {
    margin: 0;
}

.duplicate-candidate-actions .button {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 0.84rem;
}

.merge-place-form {
    margin-top: 0;
}

.advisory-form-list,
.advisory-editor-list,
.advisory-read-list {
    display: grid;
    gap: 0.9rem;
}

.advisory-form-card,
.advisory-read-card {
    padding: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.advisory-editor-card {
    display: grid;
    gap: 0;
}

.advisory-view-card {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.advisory-view-card:hover,
.advisory-view-card:focus {
    border-color: #b8c8dc;
    background: #fbfdff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.advisory-view-title {
    display: block;
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.advisory-edit-fields {
    display: none;
}

.advisory-editor-card.is-editing .advisory-edit-fields {
    display: block;
    padding: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.advisory-editor-card.is-editing .advisory-view-card {
    display: none;
}

.advisory-add-card[hidden] {
    display: none;
}

.advisory-add-button {
    justify-self: start;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
}

.advisory-form-card-new {
    border-style: dashed;
    background: #fbfcfe;
}

.advisory-form-card-title {
    margin-bottom: 0.85rem;
}

.advisory-form-card-title h3,
.advisory-read-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.25;
}

.advisory-form-card-title p {
    margin: 0.25rem 0 0;
}

.advisory-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 1fr));
    gap: 0.65rem;
    align-items: end;
}

.advisory-form-title {
    grid-column: 1 / -1;
}

.advisory-form-card label,
.advisory-editor-card label,
.advisory-description-field {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    color: #647084;
    font-size: 0.76rem;
    font-weight: 700;
}

.advisory-form-card label span,
.advisory-editor-card label span,
.advisory-description-field span {
    color: #647084;
}

.advisory-description-field {
    margin-top: 0.75rem;
}

.place-workspace .advisory-form-card textarea,
.place-workspace .advisory-editor-card textarea {
    min-height: 150px;
    line-height: 1.45;
}

.advisory-form-actions {
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.advisory-read-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.advisory-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.5rem;
}

.advisory-pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
    font-size: 0.8rem;
    font-weight: 600;
}

.advisory-date-range {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.advisory-read-description {
    display: block;
    margin-top: 0.85rem;
    color: #1f2937;
    font-size: 0.93rem;
    line-height: 1.55;
}

.feedback-editor-list,
.feedback-read-list {
    display: grid;
    gap: 0.9rem;
}

.feedback-editor-card {
    display: grid;
    gap: 0;
}

.feedback-view-card,
.feedback-read-card {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.feedback-view-card {
    cursor: pointer;
}

.feedback-view-card:hover,
.feedback-view-card:focus {
    border-color: #b8c8dc;
    background: #fbfdff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.feedback-read-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.feedback-read-header h3,
.feedback-view-title,
.feedback-form-card-title h3 {
    display: block;
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.feedback-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.5rem;
}

.feedback-pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
    font-size: 0.8rem;
    font-weight: 600;
}

.feedback-read-description {
    display: block;
    margin-top: 0.85rem;
    color: #1f2937;
    font-size: 0.93rem;
    line-height: 1.55;
}

.feedback-suggested-value {
    display: block;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #fbfcfe;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feedback-suggested-value span {
    display: block;
    margin-bottom: 0.25rem;
    color: #647084;
    font-size: 0.76rem;
    font-weight: 700;
}

.feedback-edit-fields {
    display: none;
}

.feedback-editor-card.is-editing .feedback-edit-fields {
    display: block;
    padding: 1rem;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.feedback-editor-card.is-editing .feedback-view-card {
    display: none;
}

.feedback-add-card[hidden] {
    display: none;
}

.feedback-add-button {
    justify-self: start;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
}

.feedback-form-card-title {
    margin-bottom: 0.85rem;
}

.feedback-form-card-title p {
    margin: 0.25rem 0 0;
}

.feedback-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr);
    gap: 0.65rem;
    align-items: end;
}

.feedback-editor-card label,
.feedback-description-field {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    color: #647084;
    font-size: 0.76rem;
    font-weight: 700;
}

.feedback-editor-card label span,
.feedback-description-field span {
    color: #647084;
}

.feedback-description-field {
    margin-top: 0.75rem;
}

.place-workspace .feedback-editor-card textarea {
    min-height: 130px;
    line-height: 1.45;
}

.feedback-form-actions {
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.inline-crud-list {
    display: grid;
    gap: 0.75rem;
}

.inline-crud-list-compact {
    max-width: 760px;
}

.contact-edit-list {
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.contact-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 0.2rem 0.58rem;
    border-bottom: 1px solid #e8ecf2;
    background: #fff;
}

.contact-edit-row:last-child {
    border-bottom: 0;
}

.contact-edit-row:hover {
    background: #fbfdff;
}

.name-edit-row {
    min-height: 42px;
}

.name-edit-row-add {
    border-top: 1px solid #eef2f7;
    background: #fbfcfe;
}

.contact-view-line {
    display: grid;
    grid-template-columns: minmax(96px, 0.36fr) minmax(180px, 1fr) minmax(120px, 0.48fr);
    align-items: baseline;
    width: 100%;
    min-height: 36px;
    gap: 0.85rem;
    padding: 0.18rem 0.28rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.contact-view-line:hover,
.contact-view-line:focus {
    background: #f3f8ff;
    outline: 0;
}

.contact-view-label {
    color: #007aff;
    font-size: 0.91rem;
    font-weight: 600;
    text-align: right;
}

.contact-view-value {
    min-width: 0;
    color: #20242a;
    font-size: 0.93rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-view-meta {
    color: #9aa2af;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: left;
}

.contact-view-primary {
    margin-left: 0.48rem;
    color: #4d5969;
    font-weight: 700;
}

.contact-edit-fields {
    display: none;
    grid-column: 1;
    grid-template-columns: minmax(118px, 0.7fr) minmax(220px, 1.55fr) minmax(128px, 0.8fr) auto auto;
    align-items: end;
    width: 100%;
    gap: 0.46rem;
    padding: 0.28rem;
}

.contact-edit-row.is-editing {
    align-items: end;
    min-height: 0;
    background: #f8fbff;
}

.contact-edit-row.is-editing .contact-view-line {
    display: none;
}

.contact-edit-row.is-editing .contact-edit-fields {
    display: grid;
}

.url-edit-list,
.url-display-list {
    width: 100%;
    max-width: none;
}

.url-edit-row {
    padding: 0.36rem 0.62rem;
}

.url-view-line {
    display: grid;
    grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr) auto;
    align-items: start;
    width: 100%;
    gap: 0.85rem;
    padding: 0.48rem 0.36rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.url-edit-row:hover .url-view-line {
    background: #f3f8ff;
}

.url-row-actions {
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: flex-end;
    gap: 0.34rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.url-row-actions .button {
    align-self: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.url-edit-row:hover .url-row-actions,
.url-edit-row:focus-within .url-row-actions {
    opacity: 1;
}

.url-view-type,
.url-display-type {
    color: #007aff;
    font-size: 0.91rem;
    font-weight: 700;
    text-align: right;
}

.url-view-content,
.url-display-body {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.url-view-content strong,
.url-display-body strong {
    color: #20242a;
    font-size: 0.95rem;
    font-weight: 650;
}

.url-view-content span,
.url-display-body p {
    margin: 0;
    color: #5f6c7d;
    font-size: 0.88rem;
    line-height: 1.35;
}

.url-view-content a,
.url-display-body a {
    color: #333;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.url-translation-flags {
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    align-items: center;
    gap: 0.24rem;
    margin-top: 0.08rem;
}

.url-translation-flag {
    display: inline-flex;
    min-width: auto;
    min-height: auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.url-edit-fields {
    display: none;
    grid-column: 1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    width: 100%;
    gap: 0.48rem;
    padding: 0.4rem 0.28rem 0.5rem;
}

.url-edit-field-type {
    grid-column: span 4;
}

.url-edit-field-title {
    grid-column: span 8;
}

.url-edit-field-description,
.url-edit-field-url {
    grid-column: 1 / -1;
}

.url-edit-field-language,
.url-edit-field-source,
.url-edit-field-sort {
    grid-column: span 4;
}

.url-edit-field-description textarea {
    min-height: 72px;
    resize: vertical;
}

.url-edit-row.is-editing .url-view-line {
    display: none;
}

.url-edit-row.is-editing .url-edit-fields {
    display: grid;
}

.contact-edit-field-wide {
    grid-column: span 2;
}

.url-edit-fields .contact-edit-actions {
    grid-column: 1 / -1;
}

.url-translation-panel {
    display: grid;
    gap: 0.72rem;
    margin: 0.1rem 0.36rem 0.58rem;
    padding: 0.82rem;
    border: 1px solid #dbe6f3;
    border-radius: 10px;
    background: #f8fbff;
}

.url-translation-panel[hidden] {
    display: none;
}

.url-translation-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.18rem;
}

.url-translation-panel-header strong {
    color: #222936;
    font-size: 0.9rem;
    font-weight: 700;
}

.url-translation-panel-header span {
    color: #7b8797;
    font-size: 0.78rem;
}

.url-translation-list {
    display: grid;
    gap: 0.52rem;
}

.url-translation-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.5fr) minmax(170px, 0.75fr) minmax(260px, 1.35fr);
    align-items: start;
    gap: 0.48rem;
}

.url-translation-language {
    display: grid;
    justify-items: end;
    gap: 0.08rem;
    padding-top: 1.38rem;
    color: #647084;
    text-align: right;
}

.url-translation-language strong {
    color: #007aff;
    font-size: 0.88rem;
    font-weight: 700;
}

.url-translation-language span {
    color: #9aa2af;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.url-translation-description {
    grid-column: 2 / -1;
}

.url-translation-url {
    grid-column: 3;
}

.url-translation-description textarea {
    min-height: 58px;
    resize: vertical;
}

.url-translation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.url-display-list {
    display: grid;
    gap: 0.3rem;
}

.url-display-item {
    display: grid;
    grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.46rem 0.36rem;
    border-bottom: 1px solid #edf1f6;
}

.url-display-item:last-child {
    border-bottom: 0;
}

body.has-content-overlay {
    overflow: hidden;
}

.content-list-row {
    align-items: stretch;
}

.content-view-content .content-row-meta {
    color: #8a95a6;
    font-size: 0.78rem;
    font-weight: 650;
}

.media-view-line {
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.media-preview-panel {
    display: flex;
    width: 100%;
    max-height: 240px;
    min-height: 104px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #7a8797;
    cursor: pointer;
    text-decoration: none;
}

.media-preview-panel:disabled {
    cursor: default;
}

.media-preview-panel img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 240px;
    border-radius: inherit;
    object-fit: cover;
}

.media-preview-placeholder {
    display: inline-flex;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    color: #7a8797;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: grid;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: rgba(21, 27, 38, 0.78);
    backdrop-filter: blur(14px);
}

.media-lightbox-shell {
    position: relative;
    display: grid;
    width: min(1180px, 100%);
    max-height: calc(100vh - clamp(2rem, 6vw, 5rem));
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: #101722;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.media-lightbox-stage {
    display: grid;
    min-height: 240px;
    align-items: center;
    justify-items: center;
    overflow: auto;
    padding: clamp(0.8rem, 2vw, 1.35rem);
}

.media-lightbox-stage img,
.media-lightbox-stage video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    border-radius: 10px;
    object-fit: contain;
}

.media-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.media-lightbox-footer strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-lightbox-footer a {
    flex: 0 0 auto;
    color: #8cc8ff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.media-lightbox-close {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    right: 0.8rem;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.media-lightbox-close:hover,
.media-lightbox-close:focus {
    background: rgba(255, 255, 255, 0.16);
}

.content-overlay[hidden] {
    display: none;
}

.content-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    overflow: auto;
    padding: clamp(1rem, 3vw, 2.4rem);
    background: rgba(239, 243, 249, 0.92);
    backdrop-filter: blur(16px);
}

.content-overlay-shell {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-height: calc(100vh - clamp(2rem, 6vw, 4.8rem));
    margin: auto;
    overflow: hidden;
    border: 1px solid #d8e2ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(40, 57, 82, 0.22);
}

.content-overlay-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.25rem 0.95rem;
    border-bottom: 1px solid #edf1f6;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.content-overlay-header span {
    display: block;
    margin-bottom: 0.18rem;
    color: #7a8797;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.content-overlay-header h3 {
    margin: 0;
    color: #17202c;
    font-size: 1.26rem;
    line-height: 1.18;
}

.content-overlay-close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4ef;
    border-radius: 999px;
    background: #fff;
    color: #556275;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.content-overlay-close:hover,
.content-overlay-close:focus {
    background: #f3f7fc;
    color: #1e2a3a;
}

.content-overlay-body,
.content-read-view {
    overflow: auto;
    padding: 1.15rem 1.25rem;
}

.content-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.68rem;
    align-items: start;
}

.content-field-type,
.content-field-language,
.content-field-status,
.content-field-source {
    grid-column: span 3;
}

.content-field-title,
.content-field-subline,
.content-field-shorttext,
.content-field-content {
    grid-column: 1 / -1;
}

.content-field-valid-from,
.content-field-valid-until {
    grid-column: span 3;
}

.content-field-shorttext textarea {
    min-height: 92px;
    resize: vertical;
}

.content-field-content textarea {
    min-height: 310px;
    resize: vertical;
    line-height: 1.55;
}

.content-overlay-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem 1.15rem;
    border-top: 1px solid #edf1f6;
    background: #fbfcfe;
}

.content-language-toolbar {
    padding: 0.95rem 1.25rem 0;
}

.content-language-toolbar label {
    display: grid;
    max-width: 320px;
    gap: 0.28rem;
    color: #4f5c70;
    font-size: 0.78rem;
    font-weight: 750;
}

.content-translation-shell {
    width: min(1360px, 100%);
}

.content-translation-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1rem;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem 1.25rem;
}

.content-original-preview,
.content-translation-forms {
    min-height: 0;
    overflow: auto;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #fff;
}

.content-original-preview {
    padding: 1rem;
    color: #283241;
}

.content-original-preview > span {
    display: block;
    margin-bottom: 0.4rem;
    color: #8b96a7;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.content-original-preview h4 {
    margin: 0 0 0.55rem;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.22;
}

.content-original-subline {
    margin: 0 0 0.72rem;
    color: #566173;
    font-size: 0.96rem;
    font-weight: 650;
}

.content-original-shorttext {
    margin: 0 0 0.9rem;
    color: #3d4858;
    font-size: 0.92rem;
    line-height: 1.5;
}

.content-original-body {
    color: #2d3748;
    font-size: 0.92rem;
    line-height: 1.62;
}

.content-translation-forms {
    padding: 1rem;
    background: #f9fbfe;
}

.content-language-form[hidden] {
    display: none;
}

.content-translation-form-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.content-translation-form-header strong {
    color: #17202c;
    font-size: 0.96rem;
}

.content-translation-form-header span {
    color: #98a2b3;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.content-form-grid-translation .content-field-status,
.content-form-grid-translation .content-field-source,
.content-form-grid-translation .content-field-valid-from,
.content-form-grid-translation .content-field-valid-until {
    grid-column: span 3;
}

.content-language-actions {
    margin: 0.9rem -1rem -1rem;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
}

.contact-add-button {
    margin: 0.52rem 0.58rem 0.62rem;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
}

.media-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.46rem;
    padding: 0.52rem 0.58rem 0.62rem;
}

.media-action-row .contact-add-button {
    margin: 0;
}

.contact-edit-field {
    display: grid;
    gap: 0.14rem;
    margin: 0;
}

.contact-edit-field span {
    color: #647084;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

.contact-edit-field input,
.contact-edit-field select {
    width: 100%;
    min-height: 27px;
    padding: 3px 7px;
    border: 1px solid #ccd4df;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
    color: #17202c;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.contact-edit-field input:focus,
.contact-edit-field select:focus {
    border-color: #6aa3dc;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.14);
}

.contact-edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 27px;
    margin: 0;
    color: #4c596b;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.contact-edit-toggle input {
    width: auto;
}

.contact-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.38rem;
}

.contact-edit-actions .button,
.contact-edit-actions button {
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.inline-crud-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0.8rem;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
    background: #fff;
}

.inline-crud-add {
    border-style: dashed;
    background: #fbfcfe;
}

.inline-crud-row-2 {
    grid-template-columns: minmax(0, 1fr) auto;
}

.inline-crud-row-5 {
    grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.4fr) minmax(120px, 0.9fr) minmax(90px, 0.6fr) auto;
}

.inline-crud-row-7 {
    grid-template-columns: minmax(110px, 0.8fr) repeat(2, minmax(90px, 0.65fr)) repeat(2, minmax(120px, 0.8fr)) minmax(160px, 1.2fr) auto;
}

.inline-crud-row-detail,
.inline-crud-row-advisory,
.inline-crud-row-url,
.inline-crud-row-media,
.inline-crud-row-contact,
.inline-crud-row-feedback {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.inline-crud-row-relation {
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) minmax(140px, 0.75fr) auto;
}

.inline-crud-row label {
    margin-bottom: 0;
}

.inline-crud-row input,
.inline-crud-row select,
.inline-crud-row textarea {
    width: 100%;
}

.inline-crud-row textarea {
    min-height: 58px;
}

.inline-crud-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.inline-crud-actions .button,
.inline-crud-actions button {
    min-height: 34px;
}

.inline-crud-meta {
    align-self: center;
    color: #64748b;
}

.inline-crud-list.is-linked-editor {
    gap: 0;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.inline-crud-list.is-linked-editor .inline-crud-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    padding: 0.2rem 0.58rem;
    border: 0;
    border-bottom: 1px solid #e8ecf2;
    border-radius: 0;
    background: #fff;
}

.inline-crud-list.is-linked-editor .inline-crud-row:last-child {
    border-bottom: 0;
}

.inline-crud-list.is-linked-editor .inline-crud-row:hover {
    background: #fbfdff;
}

.inline-crud-list.is-linked-editor .inline-crud-row:not(.is-editing) > label,
.inline-crud-list.is-linked-editor .inline-crud-row:not(.is-editing) > .inline-crud-actions,
.inline-crud-list.is-linked-editor .inline-crud-row:not(.is-editing) > .inline-crud-meta {
    display: none;
}

.linked-view-line {
    display: flex;
    align-items: baseline;
    width: 100%;
    min-height: 36px;
    gap: 1rem;
    padding: 0.18rem 0.28rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.linked-view-line:hover,
.linked-view-line:focus {
    background: #f3f8ff;
    outline: 0;
}

.linked-view-cell {
    display: inline-flex;
    min-width: 0;
    gap: 0.36rem;
    align-items: baseline;
    color: #20242a;
    font-size: 0.9rem;
    font-weight: 500;
}

.linked-view-cell:first-child {
    flex: 1 1 230px;
}

.linked-view-label {
    flex: 0 0 auto;
    color: #007aff;
    font-weight: 600;
}

.linked-view-cell:not(:first-child) .linked-view-label {
    color: #8b95a4;
}

.linked-view-value {
    min-width: 0;
    overflow: hidden;
    color: #20242a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linked-view-cell-muted {
    color: #8b95a4;
    font-size: 0.82rem;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.46rem;
    align-items: end;
    min-height: 0;
    padding: 0.46rem 0.86rem;
    background: #f8fbff;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .linked-view-line {
    display: none;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing label {
    display: grid;
    gap: 0.14rem;
    margin: 0;
    color: #647084;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing input,
.inline-crud-list.is-linked-editor .inline-crud-row.is-editing select,
.inline-crud-list.is-linked-editor .inline-crud-row.is-editing textarea {
    width: 100%;
    min-height: 27px;
    padding: 3px 7px;
    border: 1px solid #ccd4df;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
    color: #17202c;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing textarea {
    min-height: 44px;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing input:focus,
.inline-crud-list.is-linked-editor .inline-crud-row.is-editing select:focus,
.inline-crud-list.is-linked-editor .inline-crud-row.is-editing textarea:focus {
    border-color: #6aa3dc;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.14);
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .checkbox-field {
    display: inline-flex;
    gap: 0.42rem;
    align-items: center;
    min-height: 27px;
    color: #4c596b;
    font-size: 0.82rem;
    white-space: nowrap;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .checkbox-field input {
    width: auto;
    min-height: 0;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .inline-crud-actions {
    align-self: end;
    justify-content: flex-end;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .inline-crud-actions .button,
.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .inline-crud-actions button {
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.inline-crud-list.is-linked-editor .inline-crud-row.is-editing .inline-crud-meta {
    color: #8b95a4;
    font-size: 0.78rem;
}

.linked-add-button {
    margin: 0.52rem 0.58rem 0.62rem;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    color: #334155;
    font-weight: 700;
}

.checkbox-field input {
    width: auto;
}

.relationship-picker {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.relationship-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid #d8dde5;
    border-radius: 12px;
    background: #eef3f9;
    color: #415066;
    font-weight: 700;
}

.relationship-body {
    display: grid;
    min-width: 0;
    gap: 0.4rem;
}

.relationship-link {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.relationship-body small {
    color: #64748b;
    line-height: 1.4;
}

.field-card h3 {
    margin: 0 0 0.8rem;
    color: #111827;
    font-size: 0.98rem;
}

.field-list {
    display: grid;
    grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
    gap: 0.55rem 1rem;
    margin: 0;
}

.field-list dt {
    color: #64748b;
    font-weight: 700;
    text-align: right;
}

.field-list dd {
    margin: 0;
    color: #111827;
    overflow-wrap: anywhere;
}

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

.edit-field-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e2e7ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.edit-field-card-wide {
    grid-column: 1 / -1;
}

.edit-field-card h3 {
    margin: 0 0 0.9rem;
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.2;
}

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

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

.metadata-preview {
    padding: 0.15rem 0;
}

.metadata-preview dd {
    color: #334155;
}

.place-workspace table {
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
    border-collapse: separate;
    border-spacing: 0;
}

.place-workspace .panel table th,
.place-workspace .panel table td,
.place-workspace .form-table th,
.place-workspace .form-table td,
.place-workspace .detail-table td {
    border: 0;
    border-bottom: 1px solid #e6e9ef;
    padding: 0.65rem 0.75rem;
}

.place-workspace .panel table th,
.place-workspace .form-table th {
    background: #f7f8fb;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.place-workspace .panel table td,
.place-workspace .form-table td {
    background: #fff;
}

.place-workspace .panel table tbody tr:hover td,
.place-workspace .form-table tbody tr:hover td {
    background: #fbfcfe;
}

.place-workspace tbody tr:last-child td {
    border-bottom: 0;
}

.place-workspace label {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
}

.place-workspace input[type="text"],
.place-workspace input[type="number"],
.place-workspace input[type="datetime-local"],
.place-workspace input[type="date"],
.place-workspace input[type="email"],
.place-workspace input[type="search"],
.place-workspace input[type="password"],
.place-workspace input:not([type]),
.place-workspace textarea,
.place-workspace select {
    min-height: 38px;
    padding: 8px 10px;
    border-color: #d8dde5;
    border-radius: 10px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.place-workspace input:focus,
.place-workspace select:focus,
.place-workspace textarea:focus {
    border-color: #7eb3ff;
    background: #fff;
    outline: 3px solid rgba(0, 102, 204, 0.14);
    outline-offset: 0;
}

.place-workspace textarea {
    min-height: 92px;
}

.general-name-view-trigger,
.address-view-trigger,
.status-view-trigger {
    display: block;
    margin: -0.25rem;
    padding: 0.25rem;
    border-radius: 10px;
    cursor: pointer;
}

.general-name-view-trigger:hover,
.general-name-view-trigger:focus,
.address-view-trigger:hover,
.address-view-trigger:focus,
.status-view-trigger:hover,
.status-view-trigger:focus {
    background: #f3f8ff;
    outline: 0;
}

.general-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 0.9rem;
}

.general-name-bubble {
    min-height: 100%;
}

.general-name-form {
    display: block;
}

.general-name-translations {
    margin-top: 0.78rem;
    padding-top: 0.72rem;
    border-top: 1px solid #e8edf3;
}

.general-name-translations h3 {
    margin: 0 0 0.45rem;
    color: #556070;
    font-size: 0.78rem;
}

.translated-name-inline-list {
    max-height: 430px;
    overflow-y: auto;
    scrollbar-color: #878787 #ededed;
}

.translated-name-inline-list .contact-edit-row {
    padding: 0.08rem 0.44rem;
}

.translated-name-inline-list .name-edit-row {
    min-height: 38px;
}

.translated-name-inline-list .contact-view-line {
    min-height: 32px;
    grid-template-columns: minmax(84px, 0.34fr) minmax(150px, 1fr) minmax(104px, 0.45fr);
    gap: 0.65rem;
    padding: 0.14rem 0.18rem;
}

.translated-name-inline-list .contact-view-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.translated-name-inline-list .contact-edit-fields {
    grid-template-columns: minmax(112px, 0.75fr) minmax(118px, 0.75fr) auto;
    gap: 0.38rem 0.5rem;
    padding: 0.38rem 0.3rem;
}

.translated-name-inline-list .contact-edit-field-main {
    grid-column: 1 / 3;
}

.translated-name-inline-list .contact-edit-actions {
    grid-column: 3;
    justify-content: flex-end;
}

.translated-name-inline-list .contact-edit-toggle {
    align-self: end;
    min-height: 28px;
}

.translated-name-inline-list .contact-edit-actions .button,
.translated-name-inline-list .contact-edit-actions button {
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.translated-name-inline-list .contact-add-button {
    position: sticky;
    bottom: 0;
    width: calc(100% - 1rem);
    margin: 0.42rem 0.5rem 0.5rem;
    background: linear-gradient(180deg, #fff 0%, #f2f4f7 100%);
}

.translated-name-view-line {
    cursor: default;
}

.translated-name-empty {
    padding: 0.68rem 0.8rem;
    color: #8b95a4;
    font-size: 0.86rem;
}

.general-state-column {
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

.general-state-card {
    padding: 0.25rem 0.2rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.general-state-card + .general-state-card {
    padding-top: 0.65rem;
    border-top: 1px solid #e8edf3;
}

.general-state-card h3 {
    margin-bottom: 0.38rem;
    color: #556070;
    font-size: 0.78rem;
}

.general-name-display,
.address-display {
    display: grid;
    gap: 0.18rem;
    color: #111827;
    font-size: 0.94rem;
    line-height: 1.45;
}

.general-name-display {
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.general-name-primary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.general-name-main {
    min-width: 0;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.general-name-language {
    flex: 0 0 auto;
    max-width: 46%;
    padding: 4px 9px;
    border: 1px solid #d4dce7;
    border-radius: 999px;
    background: #fff;
    color: #526071;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.general-international-line {
    display: grid;
    gap: 0.18rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e8edf3;
    color: #243044;
    font-size: 0.92rem;
}

.general-name-label {
    color: #6d7786;
    font-size: 0.76rem;
    font-weight: 700;
}

.place-map-panel {
    width: 950px;
    max-width: 100%;
}

.place-map {
    display: grid;
    width: 950px;
    max-width: 100%;
    height: 550px;
    min-height: 550px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dde3ec;
    border-radius: 12px;
    background: #eef3f8;
    color: #64748b;
    font-size: 0.88rem;
}

.place-map.leaflet-container {
    display: block;
}

.place-map .leaflet-control-attribution {
    font-size: 0.68rem;
}

.place-map-status,
.place-map-empty span {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
}

.place-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.55rem;
    color: #64748b;
    font-size: 0.8rem;
}

.place-map-footer span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-map-footer a {
    flex: 0 0 auto;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.place-map-footer a:hover {
    color: #0f3263;
    text-decoration: underline;
}

.general-name-edit-fields,
.address-edit-fields,
.destination-edit-fields,
.status-edit-fields {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem;
    margin-top: 0.65rem;
}

.general-name-card.is-editing .general-name-view-trigger,
.address-edit-card.is-editing .address-view-trigger,
.destination-edit-card.is-editing .destination-view-trigger,
.status-edit-card.is-editing .status-view-trigger {
    display: none;
}

.general-name-card.is-editing .general-name-edit-fields,
.address-edit-card.is-editing .address-edit-fields,
.destination-edit-card.is-editing .destination-edit-fields,
.status-edit-card.is-editing .status-edit-fields {
    display: grid;
}

.place-workspace .general-name-card label,
.place-workspace .address-edit-card label,
.place-workspace .destination-edit-card label,
.place-workspace .status-edit-card label {
    display: grid;
    gap: 0.14rem;
    margin: 0;
    color: #647084;
    font-size: 0.72rem;
    font-weight: 700;
}

.place-workspace .general-name-card input,
.place-workspace .general-name-card select,
.place-workspace .address-edit-card input,
.place-workspace .status-edit-card select {
    min-height: 27px;
    padding: 3px 7px;
    border: 1px solid #ccd4df;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
    color: #17202c;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.general-name-edit-wide,
.general-name-edit-actions {
    grid-column: 1 / -1;
}

.destination-display {
    color: #20242a;
    font-size: 0.98rem;
    font-weight: 650;
}

.availability-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
}

.classification-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
}

.status-bubble {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #c9d7ea;
    border-radius: 999px;
    background: #ecf5ff;
    color: #1d4f91;
    font-size: 0.84rem;
    font-weight: 700;
}

.publication-status-bubble {
    border-color: #bddfc9;
    background: #eef9f1;
    color: #216b39;
}

.classification-type-bubble {
    border-color: #d8dde5;
    background: #f7f8fb;
    color: #445064;
}

.availability-bubble {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #c9d7ea;
    border-radius: 999px;
    background: #ecf5ff;
    color: #1d4f91;
    font-size: 0.84rem;
    font-weight: 700;
}

.availability-toggle-button {
    appearance: none;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.availability-toggle-button:hover {
    border-color: #8fb7e8;
    box-shadow: 0 2px 8px rgba(37, 99, 168, 0.14);
    transform: translateY(-1px);
}

.availability-toggle-button:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.16);
    outline-offset: 2px;
}

.availability-toggle-button:disabled {
    cursor: default;
    opacity: 0.72;
    transform: none;
}

.availability-bubble.is-off {
    border-color: #e2e6ec;
    background: #f7f8fb;
    color: #96a0ad;
    font-weight: 600;
}

.availability-save-state {
    min-height: 16px;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 650;
}

.availability-save-state.is-saved {
    color: #247a45;
}

.availability-save-state.is-error {
    color: #a73737;
}

.destination-edit-fields {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.status-edit-fields {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.classification-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.classification-edit-fields .status-edit-actions {
    grid-column: 1 / -1;
}

.destination-edit-fields.availability-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.destination-edit-card.is-editing .destination-edit-fields.availability-edit-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
}

.availability-edit-option {
    display: inline-flex !important;
    align-items: center;
    width: auto;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
}

.availability-readonly {
    opacity: 0.7;
}

.availability-readonly input {
    pointer-events: none;
}

.availability-edit-fields .destination-edit-actions {
    grid-column: 1 / -1;
    flex-basis: 100%;
}

.general-name-edit-actions,
.address-edit-actions,
.destination-edit-actions,
.status-edit-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 0.38rem;
}

.general-name-edit-actions .button,
.general-name-edit-actions button,
.address-edit-actions .button,
.address-edit-actions button,
.destination-edit-actions .button,
.destination-edit-actions button {
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.status-edit-actions .button,
.status-edit-actions button {
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.place-workspace .form-table input,
.place-workspace .form-table select,
.place-workspace .form-table textarea {
    min-width: 0;
}

.place-workspace .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.2rem 0;
}

.place-workspace .tag-list {
    gap: 0.55rem;
}

.place-tag-editor {
    display: grid;
    gap: 1rem;
}

.place-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.place-tag-item,
.place-tag-item-static {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 30px;
    padding: 0.32rem 0.5rem 0.32rem 0.72rem;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f7f8fb;
    color: #243044;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.place-tag-item {
    margin: 0;
}

.place-tag-delete {
    display: inline-grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.place-tag-delete:hover,
.place-tag-delete:focus-visible {
    background: #fee2e2;
    color: #991b1b;
    outline: none;
}

.place-tag-empty {
    width: 100%;
    margin: 0;
}

.place-tag-add-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 360px) auto;
    align-items: start;
    gap: 0.6rem;
    max-width: 520px;
}

.place-tag-add-form label,
.place-tag-add-form input {
    width: 100%;
}

.place-tag-suggestions {
    position: absolute;
    z-index: 15;
    top: calc(100% + 0.35rem);
    left: 0;
    display: grid;
    width: min(360px, 100%);
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.place-tag-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0.72rem;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    color: #243044;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.place-tag-suggestion:last-child {
    border-bottom: 0;
}

.place-tag-suggestion:hover,
.place-tag-suggestion:focus-visible {
    background: #f3f8ff;
    outline: none;
}

.place-tag-suggestion small {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
}

.place-workspace-form .sticky-actions {
    justify-content: flex-end;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d9dde4;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.05);
}

@media (max-width: 900px) {
    .app-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #d0d0d0;
    }

    .sidebar-logo-mark {
        width: 100%;
        min-height: 0;
    }

    body.admin-layout .page-shell {
        margin-left: 0;
    }

    .places-library-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .places-library-search {
        width: 100%;
    }

    .places-library-actions {
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }

    .structure-workspace {
        grid-template-columns: 1fr;
    }

    .structure-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .structure-profile-identity {
        align-items: flex-start;
    }

    .structure-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .structure-category-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .structure-category-stats,
    .structure-type-overview .structure-category-stats {
        grid-template-columns: 1fr;
    }

    .structure-tree-panel {
        position: static;
        max-height: none;
    }

    .structure-editor-actions,
    .structure-editor-card > summary,
    .structure-summary-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .structure-field-list {
        margin-left: 0;
    }

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

    .places-filter-browser {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .general-summary-grid {
        grid-template-columns: 1fr;
    }

    .general-name-primary-line {
        flex-direction: column;
        gap: 0.45rem;
    }

    .general-name-language {
        max-width: 100%;
        text-align: left;
    }

    .places-filter-column {
        border-bottom: 1px solid #dedede;
    }

    .places-filter-column:nth-child(3n) {
        border-right: 0;
    }

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

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

    .advisory-read-header {
        flex-direction: column;
    }

    .feedback-read-header {
        flex-direction: column;
    }

    .relation-link-action {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .relation-link-action .button {
        justify-self: start;
    }

    .relation-link-current {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.18rem;
    }

    .relation-list-form {
        padding-left: 0.85rem;
    }

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

    .relation-list-form-actions {
        justify-content: flex-start;
    }

    .place-tag-add-form {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .place-tag-suggestions {
        width: 100%;
    }

    .advisory-date-range {
        flex: 1 1 auto;
    }

    .hero,
    .detail-grid,
    .stats-grid,
    .form-grid,
    .place-workspace,
    .contact-card-grid,
    .child-place-card-grid,
    .child-place-link-row,
    .child-place-search-result,
    .relation-form-grid,
    .duplicate-candidate-row,
    .edit-card-grid,
    .edit-form-grid,
    .name-edit-row,
    .inline-crud-row,
    .inline-crud-row-2,
    .inline-crud-row-5,
    .inline-crud-row-7,
    .inline-crud-row-detail,
    .inline-crud-row-advisory,
    .inline-crud-row-url,
    .inline-crud-row-media,
    .inline-crud-row-contact,
    .inline-crud-row-feedback,
    .inline-crud-row-relation,
    .place-workspace .form-grid {
        grid-template-columns: 1fr;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .name-edit-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-view-line,
    .contact-edit-fields {
        grid-template-columns: 1fr;
        gap: 0.34rem;
    }

    .contact-view-label {
        text-align: left;
    }

    .contact-edit-actions {
        justify-content: flex-start;
    }

    .child-place-row {
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: start;
    }

    .child-place-row-meta,
    .child-place-row .status-chip {
        grid-column: 2;
    }

    .child-place-row-main strong,
    .child-place-row-main span,
    .child-place-row-meta,
    .duplicate-candidate-main strong,
    .duplicate-candidate-main small,
    .duplicate-candidate-reason {
        white-space: normal;
    }

    .duplicate-candidate-actions {
        justify-content: flex-start;
    }

    .linked-view-line {
        flex-wrap: wrap;
        gap: 0.34rem 0.78rem;
    }

    .linked-view-cell,
    .linked-view-cell:first-child {
        flex: 1 1 100%;
    }

    .inline-crud-list.is-linked-editor .inline-crud-row.is-editing {
        grid-template-columns: 1fr;
    }

    .inline-crud-list.is-linked-editor .inline-crud-row.is-editing .inline-crud-actions {
        justify-content: flex-start;
    }

    .general-name-edit-fields,
    .address-edit-fields,
    .destination-edit-fields,
    .status-edit-fields {
        grid-template-columns: 1fr;
    }

    .url-view-line,
    .url-display-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .media-view-line {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .media-preview-panel {
        max-height: 240px;
    }

    .media-lightbox {
        padding: 0;
    }

    .media-lightbox-shell {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .media-lightbox-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .url-row-actions {
        justify-content: flex-start;
        justify-self: start;
        opacity: 1;
    }

    .url-view-type,
    .url-display-type {
        text-align: left;
    }

    .url-edit-fields {
        grid-template-columns: 1fr;
    }

    .content-overlay {
        padding: 0;
    }

    .content-overlay-shell {
        width: 100%;
        max-height: none;
        min-height: 100vh;
        border-radius: 0;
    }

    .content-overlay-header,
    .content-overlay-actions,
    .content-language-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

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

    .content-field-type,
    .content-field-language,
    .content-field-status,
    .content-field-source,
    .content-field-title,
    .content-field-subline,
    .content-field-shorttext,
    .content-field-content,
    .content-field-valid-from,
    .content-field-valid-until,
    .content-form-grid-translation .content-field-status,
    .content-form-grid-translation .content-field-source,
    .content-form-grid-translation .content-field-valid-from,
    .content-form-grid-translation .content-field-valid-until {
        grid-column: auto;
    }

    .content-translation-layout {
        grid-template-columns: 1fr;
    }

    .url-translation-panel-header,
    .url-translation-actions {
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .url-translation-row {
        grid-template-columns: 1fr;
    }

    .url-translation-language {
        justify-items: start;
        padding-top: 0;
        text-align: left;
    }

    .url-translation-url,
    .url-translation-description {
        grid-column: 1;
    }

    .contact-edit-field-wide,
    .url-edit-field-type,
    .url-edit-field-title,
    .url-edit-field-description,
    .url-edit-field-url,
    .url-edit-field-language,
    .url-edit-field-source,
    .url-edit-field-sort,
    .url-edit-fields .contact-edit-actions {
        grid-column: auto;
    }

    .general-name-edit-actions,
    .address-edit-actions,
    .destination-edit-actions,
    .status-edit-actions {
        justify-content: flex-start;
    }

    .place-map-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .place-map-footer span {
        white-space: normal;
    }

    .place-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .place-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .place-section-sidebar {
        position: static;
    }

    .place-section-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .place-section-nav a {
        flex: 0 0 auto;
        min-height: 34px;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 1rem;
    }

    .auth-panel {
        padding: 28px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 1rem;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }

    .meta-list dt,
    .field-list dt {
        text-align: left;
    }

    .place-profile-identity {
        align-items: flex-start;
    }

    .place-avatar {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 1.7rem;
    }

    .place-profile-title h1 {
        font-size: 1.45rem;
    }

    .field-list {
        grid-template-columns: 1fr;
    }

    .workspace-section.panel {
        padding: 1rem;
        border-radius: 14px;
    }

    .places-filter-browser {
        grid-template-columns: 1fr;
    }

    .places-filter-column {
        border-right: 0;
    }

    .places-filter-list {
        height: 180px;
    }

    .places-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .places-list-toolbar-actions,
    .places-pill-filters {
        justify-content: flex-start;
    }

    .places-list-toolbar .places-reset-button {
        align-self: flex-start;
    }
}
