/* Administrator shell and table controls only; public styles remain unchanged. */
.admin-ui { color: #172f32; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { display: flex; flex-direction: column; width: 256px; flex: 0 0 256px; }
.admin-sidebar nav a { min-height: 44px; }
.admin-sidebar a[aria-current="page"] { background: #374151; font-weight: 700; box-shadow: inset 3px 0 #71dbca; }
.admin-workspace { flex: 1; min-width: 0; }
.admin-content { padding: 24px; overflow-wrap: anywhere; }
.admin-content > .flex { flex-wrap: wrap; gap: 16px; }
.admin-content .grid > * { min-width: 0; }
.admin-menu-toggle, .admin-menu-close { display: none; }
.admin-ui :focus-visible { outline: 3px solid #087d83; outline-offset: 4px; }
.admin-sidebar :focus-visible { outline-color: #9bf3e3; }
.admin-skip { position: absolute; left: 16px; top: -100px; padding: 12px; background: white; z-index: 10; }
.admin-skip:focus { top: 12px; }
.admin-filters > div, .admin-filters > div > div { flex-wrap: wrap; }
.admin-filters a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 8px; }
.admin-filters a[aria-current="true"] { background: #075f64; color: white; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.admin-filters a[aria-current="true"]::after { content: " · 선택됨"; margin-left: 4px; }
.admin-table-panel { background: white; border: 1px solid #d4dedc; border-radius: 12px; }
.admin-table-hint { padding: 12px 16px; font-size: 14px; color: #475e5d; }
.admin-table-scroll { overflow-x: auto; border-radius: 0 0 12px 12px; }
.admin-table-scroll table { width: 100%; min-width: 880px; }
.admin-table-scroll th { white-space: nowrap; }
.admin-table-scroll td { overflow-wrap: anywhere; }
.admin-inquiry-summary { min-width: 160px; max-width: 300px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.admin-row-actions { white-space: nowrap; }
.admin-row-actions a, .admin-row-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 36px; padding: 8px 10px; border-radius: 8px; }
.admin-row-actions a:hover { background: #eef5f4; }
.admin-row-actions form { display: inline-block; margin-left: 12px; padding-left: 12px; border-left: 1px solid #d4dedc; }
.admin-danger { color: #a32121; border: 1px solid #dfaaaa; background: white; cursor: pointer; }
.admin-danger:hover { background: #fff0f0; }
@media (max-width: 1023px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: auto; }
  .admin-sidebar[hidden] { display: none; }
  .admin-menu-toggle, .admin-menu-close { align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #708682; border-radius: 8px; cursor: pointer; }
  .admin-shell[data-navigation-ready] .admin-menu-toggle { display: inline-flex; margin: 16px 16px 0; background: white; }
  .admin-shell[data-navigation-ready] .admin-menu-close { display: inline-flex; margin: 16px 16px 0; align-self: flex-end; }
  .admin-content { padding: 20px 16px; }
  .admin-filters a, .admin-row-actions a, .admin-row-actions button { min-height: 44px; min-width: 44px; }
  .admin-content h1 { overflow-wrap: anywhere; }
}

/* C: scoped form and gallery rhythm; the image picker's dashed states remain intact. */
.admin-ui .space-story-form { max-width: 800px; }
.admin-ui .space-story-field { margin-block: 24px; }
.admin-ui .space-story-field label { margin-bottom: 8px; }
.admin-ui .space-story-field input:not([type=file]), .admin-ui .space-story-field textarea { min-height: 44px; font-size: 16px; padding: 10px 12px; }
.admin-ui .space-story-field textarea { height: 112px; resize: vertical; }
.admin-ui .space-story-dropzone { padding: 16px; min-height: 170px; }
.admin-ui .space-story-dropzone p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.admin-ui .space-story-dropzone [role=status]:empty { display: none; }
.admin-ui .space-story-field input[type=file] { border: 0; box-shadow: none; padding: 4px 0; font-size: 14px; }
.admin-ui .space-story-field input[type=file]::file-selector-button { border-width: 1px; }
.admin-ui .space-story-card-selection { border-radius: 12px 12px 0 0; padding: 0 12px; min-height: 48px; border-bottom: 1px solid #d4dedc; }
.admin-ui .space-story-card-selection label { min-height: 44px; }
.admin-ui .space-story-admin-card-link, .admin-ui .space-story-admin-card-link img { border-radius: 0; }
.admin-ui .space-story-admin-card h2 { word-break: keep-all; overflow-wrap: anywhere; }
.admin-ui .space-story-toolbar, .admin-ui .space-story-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 20px; }
.admin-ui .space-story-toolbar .button, .admin-ui .space-story-form-actions .button { margin: 0; }
.admin-ui .space-story-form-actions { border-top: 1px solid #d4dedc; padding-top: 20px; }
.admin-ui .space-story-bulk-actions { padding: 12px 0; border-block: 1px solid #d4dedc; margin-block: 20px; }
.admin-ui .space-story-error-summary { padding: 16px; border: 1px solid #b42318; border-radius: 8px; background: #fff3f0; color: #8c2016; }
.admin-ui .space-story-error-summary a { display: inline-block; text-decoration: underline; padding-block: 8px; }
.admin-auth { background: #f6f8f8; }
.admin-auth main > .min-h-screen { min-height: auto; background: none; }
.admin-auth main { min-height: calc(100vh - 64px); }
.admin-auth footer { padding: 20px; text-align: center; color: #526866; font-size: 14px; }
.admin-auth .shadow-xl { box-shadow: none; border-radius: 12px; }
.admin-auth input:not([type=checkbox]) { min-height: 44px; font-size: 16px; border-radius: 8px; }
.admin-auth-alert { margin: 16px auto; max-width: 448px; padding: 16px; border: 1px solid #b42318; border-radius: 8px; }

/* Legacy menu entries remain readable and announce their inactive workflow. */
.admin-sidebar nav a.admin-menu-inactive { background: #26313e; color: #b8c2cf; box-shadow: inset 0 0 0 1px #45505e; }
.admin-sidebar nav a.admin-menu-inactive:hover { background: #354150; color: #fff; }
