@import "/static/public.css";
body.admin {
  background: #faf7f3;
  font-size: 14px;
  line-height: 1.8;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #f4e5e7;
  border-right: 1px solid #dec9cf;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  z-index: 20;
  overflow-y: auto;
}
.admin-brand {
  display: flex;
  justify-content: center;
}
.admin-brand .logo {
  width: 124px;
  height: 78px;
}
.sidebar-caption {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.admin-sidebar nav {
  display: grid;
  gap: 3px;
}
.admin-sidebar nav > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  min-height: 44px;
  text-decoration: none;
  border-radius: 11px;
  font-size: 12px;
}
.admin-sidebar nav > a span {
  font-size: 20px;
  width: 24px;
  text-align: center;
}
.admin-sidebar nav > a:hover,
.admin-sidebar nav > a[aria-current] {
  background: var(--paper);
  box-shadow: 0 3px 15px #57334604;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 13px 0;
  font-size: 11px;
}
.sidebar-bottom > a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.sidebar-bottom p {
  margin-bottom: 0;
  margin-top: 12px;
}
.sidebar-bottom .text-button {
  font-size: 12px;
}
.admin-workspace {
  margin-left: 248px;
  min-width: 0;
}
.admin-topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid #e8dddb;
  background: #fffdf9;
  font-size: 12px;
  gap: 20px;
}
.admin-topbar a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.topbar-separator {
  padding: 0 13px;
  color: #765a64;
}
.mobile-nav {
  display: none;
}
.admin-main {
  padding: 42px;
  max-width: 1440px;
  margin: auto;
}
.admin h1 {
  font-size: 30px;
  line-height: 1.65;
  margin: 6px 0 8px;
}
.admin h2 {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.admin h3 {
  font-size: 17px;
  line-height: 1.8;
}
.admin .eyebrow {
  font-size: 11px;
  margin-bottom: 5px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}
.page-heading p {
  margin-bottom: 0;
}
.page-heading > .button {
  flex-shrink: 0;
}
.admin .button {
  font-size: 12px;
  min-height: 46px;
  padding: 11px 20px;
  gap: 16px;
  border-radius: 12px;
}
.admin .quiet-link {
  font-size: 12px;
  min-height: 44px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: var(--paper);
  border: 1px solid #e7dcda;
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.7;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.stat:nth-child(3) {
  background: var(--yellow);
  border-color: #e6dcae;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}
.panel {
  padding: 26px;
  background: var(--paper);
  border: 1px solid #e7dcda;
  border-radius: 16px;
  margin-bottom: 24px;
  min-width: 0;
  box-shadow: 0 3px 25px #57334602;
}
.panel-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin-bottom: 0;
}
.panel-heading > a {
  font-size: 11px;
  display: flex;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
}
.panel-heading > span {
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 24px 0 28px;
}
.empty > span {
  font-size: 48px;
  color: #806246;
  line-height: 1.2;
  display: block;
  margin-bottom: 20px;
}
.empty h2,
.empty h3 {
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 22px;
}
.rose-panel {
  background: var(--pink);
  overflow: hidden;
  position: relative;
  min-height: 320px;
}
.rose-panel h2 {
  font-size: 25px;
  max-width: 250px;
  margin-top: 14px;
}
.rose-panel > p:not(.eyebrow) {
  font-size: 12px;
  max-width: 290px;
  position: relative;
  z-index: 1;
}
.rose-panel .quiet-link {
  position: relative;
  z-index: 1;
}
.decorative-flower {
  position: absolute;
  font-size: 165px;
  color: #c99d9670;
  right: -20px;
  bottom: -100px;
  line-height: 1;
}
.empty-line {
  padding: 20px 0;
  margin: 0;
  font-size: 12px;
}
.admin table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.admin th,
.admin td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.admin th {
  font-weight: 500;
  background: #faf5ef;
}
.record-list {
  display: grid;
}
.record-list > a {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #ede2df;
  text-decoration: none;
  min-width: 0;
}
.record-list > a:last-child {
  border: 0;
}
.record-list > a:hover strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.record-list > a > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.record-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.record-list small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: var(--yellow);
  padding: 5px 11px;
  font-size: 10px;
  white-space: nowrap;
  color: #453b25;
  align-self: start;
}
.badge.published {
  background: #e4ecdb;
  color: #33432c;
}
.notice {
  padding: 16px 20px;
  background: var(--yellow);
  border: 1px solid #ded1a2;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fbe5e5;
  border-color: #c89090;
  color: #621c2a;
}
.notice.success {
  background: #eaf0df;
  border-color: #c4d3b5;
  color: #34432b;
}
.search-field {
  display: block;
  max-width: 550px;
  margin-bottom: 24px;
}
.admin label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
}
.admin input:not([type=checkbox]),
.admin select,
.admin textarea {
  display: block;
  width: 100%;
  background: #fffefa;
  border: 1px solid #bfaab2;
  border-radius: 10px;
  min-height: 46px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin-top: 8px;
}
.admin input:focus,
.admin select:focus,
.admin textarea:focus {
  border-color: var(--plum);
}
.admin textarea {
  resize: vertical;
  min-height: 100px;
}
.admin input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  vertical-align: middle;
}
.field {
  margin-bottom: 24px;
  min-width: 0;
}
.field:last-child {
  margin-bottom: 0;
}
.field > label {
  min-height: 24px;
}
.field > label:has(input[type=checkbox]) {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.form-panel {
  max-width: 950px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-bottom: 20px;
}
.form-grid label {
  margin: 0;
}
.form-grid .checkbox-label {
  display: flex;
  align-items: center;
  padding-top: 28px;
}
.form-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid #d1bbc4;
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 950px;
  background: #fffdf7f5;
  box-shadow: 0 6px 40px #57334615;
  z-index: 10;
  flex-wrap: wrap;
}
.dirty-state {
  font-size: 11px;
  color: var(--muted);
}
.dirty-state.is-dirty {
  color: #70344b;
  font-weight: 600;
}
.field-error {
  color: #621c2a;
  font-size: 12px;
  margin: 8px 0;
}
.danger-zone {
  margin-top: 32px;
  border: 1px solid #d7b9bb;
  border-radius: 12px;
  padding: 16px 22px;
  max-width: 950px;
}
.danger-zone summary {
  min-height: 44px;
  padding: 8px 0;
  color: #621c2a;
}
.danger-zone form {
  padding-top: 16px;
}
.danger-zone .danger {
  background: #742a3d;
  border-color: #742a3d;
}
.danger-zone label {
  margin-bottom: 20px;
}
.admin summary {
  min-height: 44px;
  padding: 8px 0;
}
.upload-panel > p {
  font-size: 12px;
}
.upload-panel .form-grid {
  grid-template-columns: 1fr 2fr;
}
.upload-panel input[type=file] {
  font-size: 12px;
  padding: 8px;
  line-height: 2;
}
.upload-panel input::file-selector-button {
  background: var(--pink);
  border: 0;
  border-radius: 6px;
  padding: 8px;
  color: var(--ink);
  margin-right: 10px;
  cursor: pointer;
}
.upload-panel progress {
  max-width: 200px;
}
.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.media-grid > a {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 0;
  justify-content: start;
  align-items: start;
}
.media-grid > a img,
.media-placeholder {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--pink);
}
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-grid > a > div {
  flex-basis: 100%;
}
.media-grid > a > span:last-child {
  margin-left: auto;
}
.media-detail img,
.media-detail video {
  max-height: 450px;
  width: auto;
  border-radius: 12px;
  margin-bottom: 24px;
}
.media-detail .badge {
  margin-bottom: 20px;
}
.account-form .button {
  margin-top: 10px;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.connection-row p {
  font-size: 11px;
  margin-bottom: 0;
}
.connection-row h2 {
  margin-bottom: 5px;
}
.connection-row:last-child {
  border: 0;
}
.oauth-consent {
  max-width: 700px;
  margin: 35px auto;
}
.oauth-consent h1 {
  font-size: 26px;
}
.oauth-consent p {
  overflow-wrap: anywhere;
}
.admin.login-page {
  background:
    radial-gradient(
      ellipse at 10% 20%,
      #f4dce1,
      transparent 60%),
    radial-gradient(
      ellipse at 100% 80%,
      #f4e9cc,
      transparent 60%),
    #fcf8f1;
  min-height: 100dvh;
}
.login-page .admin-workspace {
  margin-left: 0;
}
.login-page .admin-main {
  max-width: 600px;
  padding: 7vh 24px 40px;
}
.login-card {
  background: #fffdf8dd;
  border: 1px solid #e7d9d5;
  border-radius: 24px;
  padding: 35px 44px;
  box-shadow: 0 20px 80px #5733460c;
}
.login-card > a {
  display: flex;
  justify-content: center;
}
.login-card .logo {
  width: 145px;
  height: 95px;
  margin-bottom: 24px;
}
.login-card .eyebrow {
  justify-content: center;
}
.login-card h1 {
  text-align: center;
  font-size: 27px;
}
.login-card > p:not(.eyebrow) {
  text-align: center;
  font-size: 12px;
  margin-bottom: 30px;
}
.login-card label {
  margin-bottom: 20px;
}
.login-card .button {
  width: 100%;
  margin-top: 8px;
}
.login-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}
.editor-controls {
  border: 1px solid #bfaab2;
  border-radius: 10px 10px 0 0;
  background: #fbf5f2;
  padding: 8px;
}
.editor-toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.editor-toolbar button,
.editor-secondary button {
  font-size: 11px;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--paper);
  border-color: #dbc6cf;
}
.editor-toolbar button:hover,
.editor-toolbar button[aria-pressed=true] {
  background: var(--pink);
}
.editor-secondary {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 8px;
}
.editor-secondary label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.editor-secondary select {
  width: auto;
  min-height: 44px;
  padding: 6px 10px;
  margin: 0;
  font-size: 11px;
}
.editor-secondary summary {
  font-size: 11px;
  padding: 10px;
}
.editor-secondary details[open] {
  flex-basis: 100%;
}
.editor-insert-panel {
  background: var(--paper);
  padding: 18px;
  margin-top: 12px;
  border-radius: 8px;
}
.editor-insert-panel select {
  min-height: 130px;
}
.editor-controls > p {
  margin: 0;
  font-size: 11px;
}
.rich-text-editor {
  border: 1px solid #bfaab2;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: #fffefa;
}
.ql-editor {
  min-height: 260px;
  padding: 20px;
  outline: none;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
}
.ql-editor p {
  margin: 0;
}
.ql-editor.ql-blank:before {
  content: none;
}
.ql-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  table-layout: fixed;
}
.ql-editor td {
  border: 1px solid #bfaab2;
  min-width: 70px;
  padding: 8px;
}
.ql-editor ol {
  padding-left: 28px;
}
.ql-editor li[data-list=bullet] {
  list-style-type: disc;
}
.ql-editor li[data-list=ordered] {
  list-style-type: decimal;
}
.ql-ui {
  display: none;
}
.ql-editor h2 {
  font-size: 25px;
  margin: 15px 0;
}
.ql-editor h3 {
  font-size: 21px;
}
.ql-editor blockquote {
  border-left: 3px solid var(--plum);
  padding-left: 20px;
  margin: 15px 0;
}
.ql-editor .divara-block {
  border: 1px dashed #a77e91;
  padding: 16px;
  background: #f7eeeb;
  margin: 18px 0;
  white-space: normal;
}
.divara-block img {
  max-height: 250px;
  margin: auto;
}
.divara-block .block-label {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ql-clipboard {
  position: fixed;
  left: -100000px;
  top: 50%;
  height: 1px;
  overflow-y: hidden;
}
.collection-item {
  padding: 16px;
  background: #faf3f1;
  border: 1px solid #e2d1d4;
  border-radius: 10px;
  margin: 12px 0;
}
.collection-item .actions button {
  font-size: 11px;
  padding: 6px 12px;
}
.collection-item label {
  margin-bottom: 12px;
}
.form-panel:has([data-collection]) {
  overflow-wrap: anywhere;
}
.source-mode {
  font-family: monospace !important;
  font-size: 13px !important;
  min-height: 300px !important;
}
.admin code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 1200px) {
  .admin-sidebar {
    width: 220px;
    padding-inline: 12px;
  }
  .admin-workspace {
    margin-left: 220px;
  }
  .admin-main {
    padding: 30px;
  }
  .admin-topbar {
    padding-inline: 30px;
  }
  .stat-grid {
    gap: 12px;
  }
  .stat {
    padding: 20px 16px;
  }
  .stat > span {
    font-size: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .panel {
    padding: 22px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .rose-panel {
    min-height: 230px;
  }
  .rose-panel h2 {
    max-width: none;
  }
  .rose-panel > p:not(.eyebrow) {
    max-width: 75%;
  }
  .decorative-flower {
    bottom: -50px;
    right: 15px;
  }
  .admin h1 {
    font-size: 27px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .checkbox-label {
    padding-top: 0;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading > .button {
    margin-top: 12px;
  }
  .upload-panel .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .admin-sidebar {
    display: none;
  }
  .admin-workspace {
    margin-left: 0;
  }
  .admin-topbar {
    height: 70px;
    padding: 0 20px;
    font-size: 10px;
    gap: 12px;
  }
  .admin-topbar > span {
    display: none;
  }
  .mobile-nav {
    display: block;
    position: relative;
  }
  .mobile-nav summary {
    font-size: 13px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    list-style: none;
  }
  .mobile-nav summary:before {
    content: "\2630";
    margin-right: 12px;
  }
  .mobile-nav nav {
    position: absolute;
    z-index: 40;
    top: 54px;
    left: 0;
    width: 260px;
    max-width: 85vw;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .mobile-nav nav a {
    font-size: 13px;
    padding: 10px 16px;
    display: flex;
    min-height: 44px;
  }
  .admin-main {
    padding: 26px 20px;
  }
  .admin .page-heading {
    gap: 15px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .page-heading > .button {
    margin-top: 0;
  }
  .admin h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .stat-grid {
    gap: 12px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 20px 17px;
  }
  .stat strong {
    font-size: 36px;
  }
  .stat > span {
    font-size: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
    margin-bottom: 20px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .panel-heading h2 {
    font-size: 17px;
  }
  .record-list > a {
    gap: 12px;
  }
  .record-list strong {
    font-size: 13px;
  }
  .record-list small {
    font-size: 10px;
  }
  .form-actions {
    padding: 14px;
    bottom: 8px;
    gap: 8px;
  }
  .form-actions > .actions {
    width: 100%;
    gap: 8px;
  }
  .form-actions .button {
    flex: 1;
    padding-inline: 13px;
    font-size: 11px;
  }
  .dirty-state {
    font-size: 10px;
  }
  .media-grid {
    gap: 16px;
  }
  .media-grid > a img,
  .media-placeholder {
    height: 140px;
  }
  .media-grid strong {
    font-size: 12px;
  }
  .editor-toolbar {
    max-height: 190px;
    overflow-y: auto;
  }
  .editor-toolbar button {
    font-size: 10px;
  }
  .editor-secondary {
    gap: 8px;
  }
  .editor-secondary label {
    font-size: 10px;
  }
  .editor-secondary select {
    font-size: 10px;
  }
  .ql-editor {
    padding: 16px;
    min-height: 240px;
    font-size: 15px;
  }
  .login-page .admin-main {
    padding-top: 6vh;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 25px;
  }
  .account-form .form-grid {
    gap: 14px;
  }
  .connection-row {
    flex-wrap: wrap;
  }
  .oauth-consent {
    margin-top: 0;
  }
  .admin-topbar > a {
    font-size: 12px;
  }
  .collection-item .actions {
    gap: 5px;
  }
}
@media (max-width: 375px) {
  .admin-main {
    padding: 22px 16px;
  }
  .panel {
    padding: 17px;
  }
  .stat {
    padding: 17px 12px;
  }
  .stat > span {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat strong {
    font-size: 32px;
  }
  .admin h1 {
    font-size: 24px;
  }
  .page-heading > .button {
    font-size: 11px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-grid > a img {
    height: 200px;
  }
  .form-actions .button {
    font-size: 10px;
    padding-inline: 10px;
  }
  .editor-secondary label {
    flex: 1;
  }
  .editor-secondary select {
    width: 100%;
  }
  .login-card {
    padding: 22px;
  }
  .login-card h1 {
    font-size: 23px;
  }
}
.admin label:has(input[type=checkbox]) {
  min-height: 44px;
}
.record-meta {
  display: flex;
  gap: 15px 30px;
  flex-wrap: wrap;
  margin: 0 0 25px;
  font-size: 11px;
}
.record-meta div {
  display: grid;
  gap: 3px;
}
.record-meta dt {
  color: var(--muted);
}
.record-meta dd {
  margin: 0;
}
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 8px;
  background: #fffefa;
  border: 1px solid #bfaab2;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
}
.file-picker-action {
  padding: 5px 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
  background: var(--pink);
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 11px;
}
.file-picker [data-selected-file] {
  font-size: 11px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.admin .native-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.file-picker:focus-within {
  outline: 3px solid var(--plum);
  outline-offset: 4px;
}
.admin [data-dirty-form] :is(input, textarea, select, .ql-editor) {
  scroll-margin-bottom: 190px;
}
