.manage-page { min-height: 100vh; background: var(--surface); }
.manage-header { width: min(1120px, calc(100% - 64px)); height: 86px; margin: auto; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.manage-header-actions { display: flex; align-items: center; gap: 18px; }
.manage-back { color: var(--muted); font-size: 13px; }
.manage-back:hover, .plain-button:hover { color: var(--coral); }
.manage-main { width: min(960px, calc(100% - 64px)); margin: 0 auto; padding: 74px 0 110px; }
.login-panel { max-width: 530px; margin: 8vh auto 0; padding: 44px 0; }
.manage-main h1 { font-size: 56px; line-height: 1; margin: 0 0 22px; }
.login-description { color: var(--muted); margin: 0 0 28px; }
.login-description strong { color: var(--ink); font-weight: 500; }
.google-sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; min-width: 270px; margin-top: 7px; padding: 0 16px; border: 1px solid #dadce0; border-radius: 3px; background: #fff; color: #3c4043; font: 500 14px Arial, sans-serif; cursor: pointer; }
.google-sign-in:hover:not(:disabled) { background: #f8faff; border-color: #c6dafc; }
.google-sign-in:disabled { cursor: wait; opacity: .78; }
.google-mark { color: #4285f4; font: 700 19px Arial, sans-serif; }
.form-hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 14px; max-width: 460px; }
.form-hint.is-error { color: var(--coral); }
.form-hint a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.login-help { display: inline-block; margin-top: 5px; color: var(--ink); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.editor-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.editor-heading .eyebrow { margin-bottom: 15px; }
.editor-heading h1 { margin-bottom: 0; }
.signed-in { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 12px; }
.plain-button { padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; }
.editor-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 30px 0 20px; border-bottom: 1px solid var(--line); }
.editor-toolbar .button { cursor: pointer; }
.toolbar-secondary { display: flex; gap: 8px; }
.secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 12px; }
.secondary-button:hover { border-color: var(--ink); }
.save-status { min-height: 20px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.manage-project-list { border-top: 1px solid var(--line); }
.manage-project-row { min-height: 88px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 110px auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.manage-project-row img { width: 58px; height: 58px; object-fit: cover; background: var(--surface-2); }
.manage-project-copy { min-width: 0; }
.manage-project-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; }
.manage-project-copy span, .manage-project-category { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .05em; }
.manage-project-category { text-transform: uppercase; }
.row-actions { display: flex; gap: 8px; }
.row-action { border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); padding: 4px 0; cursor: pointer; font-size: 12px; }
.row-action:hover { color: var(--coral); border-color: var(--coral); }
.storage-note { margin-top: 20px; color: var(--dim); font-size: 11px; }
.project-dialog { width: min(620px, calc(100% - 28px)); max-height: min(90vh, 860px); overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--ink); }
.project-dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.dialog-heading .eyebrow { margin-bottom: 7px; }
.dialog-heading h2 { margin: 0; font-size: 29px; }
.field-label { display: block; margin: 17px 0 7px; color: var(--muted); font-size: 12px; }
.field-label span { color: var(--coral); }
.project-dialog input:not([type="checkbox"]), .project-dialog select, .project-dialog textarea { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; outline: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.project-dialog textarea { resize: vertical; line-height: 1.6; }
.project-dialog input:focus, .project-dialog select:focus, .project-dialog textarea:focus { border-color: var(--coral); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .field-label { margin-top: 17px; }
.featured-toggle { display: flex; align-items: center; gap: 9px; margin-top: 19px; color: var(--muted); font-size: 12px; }
.featured-toggle input { width: 16px; height: 16px; accent-color: var(--coral); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions .button { cursor: pointer; }
[hidden] { display: none !important; }

@media (max-width: 620px) {
  .manage-header { width: calc(100% - 32px); height: 72px; }
  .manage-header-actions { gap: 10px; }
  .manage-main { width: calc(100% - 32px); padding: 55px 0 80px; }
  .manage-main h1 { font-size: 43px; }
  .editor-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .editor-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-secondary { width: 100%; }
  .toolbar-secondary button { flex: 1; }
  .manage-project-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 11px; padding: 12px 0; }
  .manage-project-row img { width: 48px; height: 48px; }
  .manage-project-category { display: none; }
  .row-actions { gap: 9px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .project-dialog { padding: 22px 18px; }
}
