@charset "UTF-8";

/* One mobile-sized canvas at every viewport width. */
:root {
  color-scheme: light;
  --app-width: 440px;
  --ink: #28302f;
  --muted: #6c7471;
  --line: #e4e7e1;
  --surface: #ffffff;
  --canvas: #f3f4f0;
  --soft: #f7f8f5;
  --accent: #a33e2c;
  --accent-hover: #873022;
  --accent-soft: #fcf0e9;
  --danger: #b82e40;
  --radius: 12px;
}

html { background: var(--canvas); }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 12px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: calc(14px * var(--admin-font-scale, 1));
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body > header, body > main, body > footer {
  width: min(100%, var(--app-width));
  margin-inline: auto;
  padding-inline: 24px;
  background: var(--surface);
  border-inline: 1px solid var(--line);
}
body > header {
  padding-top: 24px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
}
body > main { min-height: 28vh; padding-top: 8px; padding-bottom: 32px; }
body > footer {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
}
.header_section { display: flex; flex-direction: column-reverse; gap: 18px; }
.header_section > img { width: 140px; max-height: 72px; object-fit: contain; object-position: left center; }
.header_section > p { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); overflow-wrap: anywhere; }
.header_section a { color: var(--ink); text-underline-offset: 3px; }

h1, h2, h3 { color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
h1 { margin-bottom: 24px; font-size: calc(23px * var(--admin-font-scale, 1)); font-weight: 700; letter-spacing: -.025em; }
h2 { margin-bottom: 20px; font-size: calc(19px * var(--admin-font-scale, 1)); font-weight: 700; letter-spacing: -.015em; }
h3 { margin: 24px 0 12px; font-size: calc(16px * var(--admin-font-scale, 1)); }
p { overflow-wrap: anywhere; }
p + p { margin-top: 10px; }
a { color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid #a33e2c; outline-offset: 4px; }
.models-table, .infoformWrap, .model-section, form, dl, dd { min-width: 0; }
.models-table:not(:last-child), .infoformWrap:not(:last-child), .model-section:not(:last-child) { margin-bottom: 32px; }
.models-table .models-table { margin-bottom: 0; }

/* Navigation remains available on mobile. */
.breadcrumb ul { display: flex; flex-wrap: wrap; gap: 4px 7px; margin-bottom: 24px; color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); line-height: 1.8; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #b4b9b1; }
.breadcrumb a { color: var(--muted); }
.hm, .index_menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.hm li, .index_menu li { min-width: 0; }
.hm a, .index_menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--soft);
  font-size: calc(12px * var(--admin-font-scale, 1));
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hm a:hover, .index_menu a:hover { border-color: #d7bcb0; background: var(--accent-soft); }
.hm li:only-child { grid-column: 1 / -1; }
.hm.last { margin-bottom: 28px; }
.fm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.fm a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); text-decoration: none; }
.copyright { display: block; margin-top: 24px; color: var(--muted); font-size: calc(10px * var(--admin-font-scale, 1)); letter-spacing: .08em; }

/* Stacked form labels, identical on desktop and phone. */
.infoform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.infoform dt { margin-bottom: 8px; color: var(--ink); font-size: calc(13px * var(--admin-font-scale, 1)); font-weight: 650; }
.infoform dd { margin: 0 0 24px; overflow-wrap: anywhere; }
.infoform dd:last-child { margin-bottom: 0; }
.infoform dd.roma { text-transform: capitalize; }
.infoform dd > label { display: flex; align-items: flex-start; gap: 9px; width: fit-content; max-width: 100%; min-height: 44px; padding-block: 8px; line-height: 1.65; }
input, select, textarea { max-width: 100%; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #d8ddd5;
  border-radius: 10px;
  background: var(--surface);
  font-size: calc(16px * var(--admin-font-scale, 1));
  line-height: 1.45;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #858d88; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #a33e2c14; }
input[type="checkbox"], input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
label:has(> input:disabled) { color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); }
input[type="file"] { padding: 8px; font-size: calc(12px * var(--admin-font-scale, 1)); }
input[type="file"]::file-selector-button { min-height: 32px; margin-right: 8px; padding: 6px 10px; border: 0; border-radius: 6px; background: var(--soft); color: var(--ink); font: inherit; }
select { cursor: pointer; }
select[name="year"], select[name="month"], select[name="day"] { display: inline-block; width: auto; min-width: 66px; margin-bottom: 6px; padding-inline: 7px; }
textarea { min-height: 160px; resize: vertical; }
.infoform dd textarea { min-height: 180px; }
.infoform2 { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.asta, .error, .check_alart, .p_attention { display: block; margin-top: 8px; color: var(--danger); font-size: calc(12px * var(--admin-font-scale, 1)); line-height: 1.7; }
.error:empty { display: none; }
.asta::before { content: "※ "; }
.p_attention { margin: -8px 0 20px; }

/* Actions have full-width 48px touch targets. */
.parent { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; text-align: center; }
.parent > span { display: block; }
button, .button { -webkit-tap-highlight-color: transparent; }
.parent button, .parent .button, .login_button, button.normal, button.reset, button.alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: calc(14px * var(--admin-font-scale, 1));
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.parent button:hover, .parent .button:hover, .login_button:hover { background: var(--accent-hover); color: #fff; }
.parent button:active, .login_button:active { transform: translateY(1px); }
.parent .reset { order: 2; border-color: var(--line); background: #fff; color: var(--muted); }
.parent .reset:hover { background: var(--soft); color: var(--ink); }
.parent .alert { background: #fff; border-color: #e9c4c8; color: var(--danger); }
.parent .alert:hover { background: #fff0f2; color: var(--danger); }
.parent .add-button { border-color: #d7bcb0; color: var(--accent); background: var(--accent-soft); }
button:disabled { cursor: not-allowed; opacity: .5; }
.sns-container { display: flex; flex-direction: column; gap: 10px; }
.sns-group { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.sns-group input[type="url"] { flex: 1 1 0; width: 0; min-width: 0; }
.sns-group .remove-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  min-height: 48px;
  padding: 0 8px;
  border: 1px solid #e6d7d4;
  border-radius: 10px;
  background: #faf6f4;
  color: #89564d;
  font-size: calc(12px * var(--admin-font-scale, 1));
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.sns-group .remove-sns:hover {
  border-color: #dca99f;
  background: #fff0ec;
  color: #a33e2c;
}
.sns-group .remove-sns:active { background: #f7e2dc; }
.sns-container .add-sns { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px dashed #cbd1c7; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: calc(12px * var(--admin-font-scale, 1)); text-align: left; }

/* Information cards. Long titles and URLs wrap instead of widening the app. */
.information_list { display: grid; gap: 12px; }
.information_list > li { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-wrap: anywhere; }
.info-item .info-flex { display: flex; flex-direction: column; gap: 16px; }
.info-left, .info-right { min-width: 0; width: 100%; }
.info-dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.info-dl dt { padding-top: 2px; color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); line-height: 1.7; }
.info-dl dd { min-width: 0; margin: 0; color: var(--ink); font-size: calc(13px * var(--admin-font-scale, 1)); overflow-wrap: anywhere; }
.info-right a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--soft); font-size: calc(13px * var(--admin-font-scale, 1)); font-weight: 600; text-decoration: none; }
.info-right a:hover { background: var(--accent-soft); border-color: #d7bcb0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination .current-page { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: calc(12px * var(--admin-font-scale, 1)); }
.pagination .current-page { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-count { flex-basis: 100%; margin-top: 8px; color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); text-align: center; }

/* Models and their account links. */
.tm, .models-delete, .image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tm > li, .models-delete > li { min-width: 0; overflow-wrap: anywhere; }
.tm > li > a { display: block; text-decoration: none; color: var(--ink); }
.tm img, .models-delete img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft); }
.m_name { margin-top: 8px; font-size: calc(13px * var(--admin-font-scale, 1)); }
.m_n { display: block; }
.m_n + .m_n { color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); }
.sns-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
/* Five icons per row; shrink within each model card on narrow screens. */
.sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.sns-link svg { display: block; flex: 0 1 auto; width: 100%; max-width: 20px; height: auto; aspect-ratio: 1; }
.sns-link.x { color: #252525; }
.sns-link.instagram { color: #b72b68; }
.sns-link.tiktok { color: #24494c; }
.sns-link.youtube { color: #c83232; }
.sns-link.twitch { color: #7841b7; }
.sns-link.note { color: #28302f; }
.sns-link:hover { background: var(--soft); border-color: #cbd1c7; }

.model-count { color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); font-weight: 400; }
.table-wrapper { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrapper table { width: 100%; table-layout: fixed; }
.table-wrapper td { padding: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.table-wrapper tr:last-child td { border-bottom: 0; }
.table-wrapper td.icon-cell { width: 76px; padding-right: 0; }
.table-wrapper a { display: flex; align-items: center; min-height: 48px; font-size: calc(13px * var(--admin-font-scale, 1)); font-weight: 600; text-decoration: none; }
.model-icon { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; background: var(--soft); }
.empty { color: var(--muted); font-size: calc(13px * var(--admin-font-scale, 1)); }
.models-order { display: grid; gap: 8px; }
.models-order > li { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; }
.models-order > li:active { cursor: grabbing; }
.models-order .order-number { flex: 0 0 24px; color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); text-align: center; }
.models-order img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border-radius: 7px; }
.models-order .m_name { flex: 1; min-width: 0; margin: 0; }
.model_publish { font-size: calc(10px * var(--admin-font-scale, 1)); }
.model_publish.yes { color: var(--accent); }
.model_publish.no { color: var(--muted); }
.ui-sortable-helper { box-shadow: 0 8px 24px #28302f18; }
.image-item { min-width: 0; position: relative; }
.image-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.image-item span { display: block; margin-top: 6px; font-size: calc(11px * var(--admin-font-scale, 1)); }
.image-item input { position: absolute; top: 8px; left: 8px; }
.model-status-group { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.model-status-group h3, .model-gyo-group h4 { margin: 8px 0; font-size: calc(12px * var(--admin-font-scale, 1)); }
.model-checkbox-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.model-checkbox-item { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 0; font-size: calc(13px * var(--admin-font-scale, 1)); }

/* Settings tables remain within the same narrow canvas. */
.meta_table { width: 100%; table-layout: fixed; margin-bottom: 24px; }
.meta_table td { padding: 14px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.meta_table tr:nth-child(odd) { background: var(--soft); }
.meta_table strong { font-size: calc(13px * var(--admin-font-scale, 1)); }
.meta_table pre { color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); }
.meta_table textarea.tdm { min-height: 160px; font-size: calc(16px * var(--admin-font-scale, 1)); }
.badge { display: inline-block; padding: 2px 7px; margin-left: 6px; border-radius: 5px; font-size: calc(10px * var(--admin-font-scale, 1)); background: var(--soft); color: var(--muted); }
.badge.ok { background: #eaf3e9; color: #386441; }
.badge.ng { background: #f1f1ee; color: var(--muted); }
.snippet-select { margin-top: 10px; }

/* Login uses the same 440px canvas, with a little room to breathe. */
body.login-page { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-section { width: min(100%, var(--app-width)); padding: 32px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 60px #28302f07; }
.login-section > header { padding: 0; margin-bottom: 36px; background: transparent; }
.login-section > main { padding: 0; margin: 0; background: transparent; }
.login-section .header_section > img { width: 150px; }
.login-eyebrow { margin-bottom: 10px; color: var(--accent); font-size: calc(10px * var(--admin-font-scale, 1)); font-weight: 700; letter-spacing: .16em; }
.login-section h1 { margin-bottom: 8px; font-size: calc(24px * var(--admin-font-scale, 1)); }
.login-description { margin-bottom: 28px; color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); }
.login-section .infoform dt { font-size: calc(12px * var(--admin-font-scale, 1)); }
.login-section .infoform dd { margin-bottom: 20px; }
.login-section .remember-label { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding-top: 6px; color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); }
.login-section .parent { margin-top: 16px; }
.login-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: calc(10px * var(--admin-font-scale, 1)); letter-spacing: .06em; }

@media (max-width: 359px) {
  body { padding-inline: 8px; }
  body > header, body > main, body > footer { padding-inline: 18px; }
  .login-section { padding: 28px 20px; }
  .hm, .index_menu { grid-template-columns: minmax(0, 1fr); }
  .info-dl { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.brand-name { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: calc(36px * var(--admin-font-scale, 1)); font-weight: 700; line-height: 1.15; letter-spacing: -.06em; }
.brand-name > span { color: var(--accent); }
.brand-caption { margin-top: 5px; color: var(--muted); font-size: calc(8px * var(--admin-font-scale, 1)); font-weight: 600; letter-spacing: .19em; }

/* Social post management uses the same mobile-sized canvas. */
.social-intro { margin-bottom: 24px; color: var(--muted); font-size: calc(12px * var(--admin-font-scale, 1)); }
.social-help { margin-top: 8px; color: var(--muted); font-size: calc(11px * var(--admin-font-scale, 1)); }
.social-notice { padding: 14px; margin-bottom: 24px; border: 1px solid #e9d2c6; border-radius: 10px; background: var(--accent-soft); font-size: calc(13px * var(--admin-font-scale, 1)); }
.social-add { margin: 0 0 24px; }
.social-post-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.social-post-actions a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); text-decoration: none; font-size: calc(12px * var(--admin-font-scale, 1)); }
.social-post-actions .social-delete-link { color: var(--danger); background: #fff; }
.social-status { display: inline-block; padding: 1px 5px; border-radius: 4px; background: var(--soft); color: var(--muted); font-size: calc(10px * var(--admin-font-scale, 1)); }
.social-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; min-height: 44px; font-size: calc(13px * var(--admin-font-scale, 1)); }

.social-image-previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.social-image-previews a { display: block; min-width: 0; border-radius: 8px; overflow: hidden; background: var(--soft); }
.social-image-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Image availability in Instagram and X post lists. */
.social-image-state { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 8px; border: 1px solid; border-radius: 6px; font-size: calc(11px * var(--admin-font-scale, 1)); font-weight: 600; line-height: 1.6; }
.social-image-state.ready { color: #2e6448; background: #edf5ef; border-color: #cfe1d3; }
.social-image-state.missing { color: #885a12; background: #fff5df; border-color: #e9d49e; }
.social-image-warning { margin-top: 14px; padding: 12px; border-left: 3px solid #d4a346; border-radius: 6px; color: #79551d; background: #fff8eb; font-size: calc(12px * var(--admin-font-scale, 1)); line-height: 1.75; }


/* Information list labels: retain text so color is never the only cue. */
.info-label {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  border: 1px solid var(--label-border, #d4d8dd);
  border-radius: 999px;
  background: var(--label-bg, #f1f3f5);
  color: var(--label-ink, #475467);
  font-size: calc(11px * var(--admin-font-scale, 1));
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.info-status-published { --label-bg: #e8f5eb; --label-ink: #24633b; --label-border: #b8ddc1; }
.info-status-unpublished { --label-bg: #fff0ed; --label-ink: #943c2d; --label-border: #efc5bc; }
.info-category[data-category="news"] { --label-bg: #eaf2ff; --label-ink: #285593; --label-border: #bfd2ef; }
.info-category[data-category="event"] { --label-bg: #fff3df; --label-ink: #85500f; --label-border: #e9cfa3; }
.info-category[data-category="photo"] { --label-bg: #fcecf3; --label-ink: #91375d; --label-border: #edc1d4; }
.info-category[data-category="book"] { --label-bg: #f1ecff; --label-ink: #634292; --label-border: #d6c8ef; }
.info-category[data-category="adult"] { --label-bg: #ffeded; --label-ink: #963c44; --label-border: #efc2c7; }
.info-category[data-category="music"] { --label-bg: #e5f5f5; --label-ink: #24666c; --label-border: #b6dcdf; }
.info-category[data-category="goods"] { --label-bg: #eff4df; --label-ink: #52652a; --label-border: #cedca9; }


/* Album list: equal-sized edit and delete controls. */
.album-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.album-actions form { display: flex; min-width: 0; margin: 0; }
.album-actions > a,
.album-actions button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: calc(12px * var(--admin-font-scale, 1));
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.album-actions .album-action-delete {
  border-color: #e9c4c8;
  background: #fff4f4;
  color: #9b3845;
}
@media (hover: hover) {
  .album-actions > a:hover { background: #e8edf1; border-color: #bcc9d3; }
  .album-actions .album-action-delete:hover { background: #ffe7e9; border-color: #dba4ad; }
}
.album-actions > a:focus-visible,
.album-actions button:focus-visible {
  outline: 2px solid #326c99;
  outline-offset: 3px;
}


/* Album list empty state. */
.album-empty,
.information_list > li.album-empty {
  padding: 32px 20px;
  border: 1px dashed #c5d3de;
  border-radius: 12px;
  background: #f5f8fb;
  color: #586b7b;
  font-size: calc(13px * var(--admin-font-scale, 1));
  line-height: 1.9;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Album images left, metadata right; action buttons remain below both columns. */
.admin-album-list .admin-album-row { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-album-list .admin-album-thumbnail { min-width: 0; max-height: 220px; overflow: hidden; border-radius: 8px; }
.admin-album-list .admin-album-thumbnail img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; border-radius: 8px; }
.admin-album-list .admin-album-thumbnail .social-image-warning { margin: 0; font-size: calc(11px * var(--admin-font-scale, 1)); overflow-wrap: anywhere; }
.admin-album-list .admin-album-row .info-dl { min-width: 0; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
.admin-album-list .admin-album-row .info-dl dd { font-size: calc(12px * var(--admin-font-scale, 1)); }
@media (max-width: 767px) {
  .admin-album-list .admin-album-row { display: block; }
  .admin-album-list .admin-album-thumbnail { margin-bottom: 16px; }
  .admin-album-list .admin-album-thumbnail img { width: 100%; max-width: 100%; height: auto; max-height: none; }
  .admin-album-list .admin-album-row .info-dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .admin-album-list .admin-album-row .info-dl dd { font-size: calc(13px * var(--admin-font-scale, 1)); }
}

/* Increase typography on wide desktop viewports; preserve the compact layout. */
:root { --admin-font-scale: 1; }
@media (min-width: 1600px) {
  :root { --admin-font-scale: 1.14; }
}
@media (min-width: 1920px) {
  :root { --admin-font-scale: 1.2; }
}
