:root {
  font:
    14px/1.65 "Malgun Gothic",
    sans-serif;
  color: #263c30;
  background: #f3f5f1;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #c6d5c8;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.5;
  text-decoration: none;
}
button:hover,
.file-button:hover {
  background: #eef4ed;
}
button.primary {
  background: #236443;
  color: #fff;
  border-color: #236443;
}
button.primary:hover {
  background: #1b5336;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #c8d6ca;
  border-radius: 8px;
  background: #fff;
}
textarea {
  resize: vertical;
}
button:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #5c9870;
  outline-offset: 2px;
}
label {
  display: block;
  font-weight: 700;
  margin: 16px 0 6px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #e6efe4;
  border-bottom: 1px solid #cddccc;
  padding: 20px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #236443;
  color: #fff;
  border-radius: 11px;
  font-weight: 700;
  font-size: 22px;
}
h1 {
  font-size: 19px;
  letter-spacing: -0.7px;
  margin: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.6px;
  margin: 0 0 5px;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  color: #607263;
  margin: 3px 0 12px;
}
header p {
  font-size: 12px;
  margin: 2px 0 0;
}
.badge {
  display: inline-block;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #c8d8c9;
  color: #356b48;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
}
.badge.confirmed {
  background: #d5ead7;
}
main {
  max-width: 1250px;
  margin: auto;
  padding: 20px 24px;
}
.server-settings {
  border: 1px solid #c8d6ca;
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.server-settings summary {
  cursor: pointer;
  font-weight: 700;
}
.server-settings .actions {
  margin-top: 12px;
}
.project-bar,
.actions,
.label-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.project-bar select {
  flex: 1;
  min-width: 130px;
}
.project-bar button {
  flex-shrink: 0;
}
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 20px;
  min-height: 30px;
  color: #577260;
  font-size: 12px;
}
.status-bar .error {
  color: #a23131;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.steps button {
  display: flex;
  gap: 8px;
  padding: 11px 8px;
  white-space: normal;
}
.steps button span {
  font-size: 11px;
  color: #6a7d6b;
}
.steps button[aria-current="step"] {
  background: #dfeade;
  border-color: #80a887;
  font-weight: 700;
}
.step-panel {
  background: #fff;
  border: 1px solid #dae3d8;
  border-radius: 13px;
  padding: 22px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 12px;
  margin: 0;
}
.actions {
  margin: 12px 0;
}
.actions label {
  margin: 0;
  font-weight: 400;
}
.small {
  font-size: 12px;
  color: #6b7c6c;
}
.notice {
  background: #eef4ed;
  border-left: 3px solid #84a58b;
  padding: 10px 13px;
  white-space: pre-wrap;
  color: #526e59;
  font-size: 12px;
}
.empty {
  padding: 30px;
  text-align: center;
}
.next {
  margin-top: 16px;
}
.photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.photo-card {
  padding: 13px;
  border: 1px solid #dce5dc;
  border-radius: 10px;
  background: #fcfdfb;
  min-width: 0;
}
.photo-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.photo-top img {
  width: 84px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #eaf0e7;
}
.photo-name {
  font-size: 11px;
  color: #6b7c6c;
  overflow-wrap: anywhere;
}
.photo-card label {
  font-size: 12px;
  margin: 9px 0 4px;
}
.photo-card textarea {
  font-size: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
}
.check input {
  width: auto;
}
.label-row label {
  margin-right: auto;
}
.label-row button {
  font-size: 12px;
}
.label-row select {
  width: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 14px 0;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #e1e8df;
  padding: 8px 5px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  color: #5b705f;
  font-weight: 400;
}
td.select-col {
  min-width: 75px;
}
td select {
  padding: 5px;
  font-size: 12px;
}
.keyword-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
a {
  color: #286c46;
}
.recommendation {
  padding: 10px 0;
  border-bottom: 1px solid #e1e8df;
}
.recommendation p {
  font-size: 12px;
  margin: 4px 0;
}
.draft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.draft-layout > div {
  min-width: 0;
}
.preview-title {
  margin: 18px 0 6px;
}
.preview {
  border: 1px solid #dce5dc;
  border-radius: 8px;
  min-height: 200px;
  padding: 20px;
}
.preview img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
}
.preview h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
.preview p {
  white-space: pre-wrap;
  color: #314335;
}
.preview .preview-text {
  padding-bottom: 12px;
  border-bottom: 1px dashed #e5eae1;
  margin: 12px 0;
}
.preview button {
  font-size: 11px;
  padding: 4px 8px;
}
.history {
  font-size: 12px;
}
.history p {
  padding: 10px;
  background: #f2f5ef;
}
.audit-use {
  font-size: 12px;
  padding: 8px;
  border-left: 2px solid #c5d7c8;
  white-space: pre-wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #58725f;
}
#candidate-reasons details {
  margin: 6px 0;
}
#candidate-reasons p {
  font-size: 12px;
}
#questions {
  margin: 15px 0;
}
#save-state {
  white-space: nowrap;
}
@media (max-width: 640px) {
  header {
    padding: 16px 14px;
  }
  .mark {
    display: none;
  }
  main {
    padding: 12px;
  }
  .step-panel {
    padding: 15px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .steps button {
    padding: 8px 5px;
  }
  .draft-layout {
    grid-template-columns: 1fr;
  }
  .photo-list {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 17px;
  }
  th,
  td {
    padding: 6px 3px;
    font-size: 11px;
  }
  td select {
    max-width: 72px;
  }
  .project-bar #save-state {
    width: 100%;
  }
}
@media (pointer: coarse) {
  button,
  .file-button {
    min-height: 44px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

/* Folder-first workspace, shared by the wide tab and Chrome side panel. */
:root { color: #26372e; background: #f6f7f4; }
header { background: #fff; padding: 16px 22px; }
header .actions { margin: 0; }
main { max-width: 1440px; }
.server-settings { max-width: 580px; margin: 28px auto; padding: 24px; }
.server-settings h2 { font-size: 23px; }
.server-settings .section-head { flex-wrap: wrap; }
#connection-error { color: #a23131; white-space: pre-wrap; }
.workbench { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; align-items: start; }
#workspace { min-width: 0; }
.assistant { background: #fff; border: 1px solid #dae3d8; border-radius: 12px; padding: 18px; position: sticky; top: 12px; min-width: 0; }
.assistant h2 { font-size: 16px; }
.assistant textarea { min-height: 82px; }
.assistant .notice { margin-bottom: 10px; }
.workspace-messages { max-height: 270px; overflow-y: auto; overflow-wrap: anywhere; font-size: 13px; }
.workspace-messages p { white-space: pre-wrap; padding: 10px; background: #f4f6f1; border-radius: 7px; }
.workspace-messages .user-message { margin-left: 20px; background: #eaf3eb; }
#selection-context { overflow-wrap: anywhere; }
.photo-toolbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:16px; }
.photo-toolbar label { margin:0; font-size:12px; font-weight:400; }
.photo-toolbar select { width:auto; max-width:100%; font-size:12px; padding:7px; }
.photo-toolbar #photo-count { flex:1 1 150px; }
.photo-toolbar button { font-size:12px; padding:6px 8px; }
.photo-list { grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:10px; }
.photo-card { display:block; text-align:left; padding:0; overflow:hidden; border-radius:8px; background:#fff; min-width:0; }
.photo-card img { width:100%; height:125px; object-fit:cover; display:block; background:#edf1e9; }
.photo-card > span { display:block; padding:9px; }
.photo-card strong { display:block; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.photo-card small { display:block; font-size:11px; color:#557361; }
.photo-card .photo-name { display:block; font-size:11px; margin-top:4px; overflow-wrap:anywhere; }
.photo-card[aria-pressed="true"] { border:2px solid #32734d; background:#edf6ed; }
.photo-card.excluded img { opacity:.4; }
.photo-batch { padding:10px 0; border-bottom:1px solid #dce5dc; position:sticky; bottom:0; background:#fff; z-index:1; }
.photo-batch button { font-size:12px; padding:6px 8px; }
#photo-details img { display:block; max-width:100%; max-height:400px; object-fit:contain; margin:12px auto; }
#photo-details section { border-top:1px solid #dce5dc; padding:14px 0; }
#photo-details h3 { overflow-wrap:anywhere; font-size:13px; }
.photo-order { display:flex; flex-wrap:wrap; gap:6px; padding:10px 0; }
.photo-order span { background:#eef4ed; border-radius:5px; padding:4px 7px; font-size:12px; }
.folder-list { display:grid; gap:6px; max-height:250px; overflow-y:auto; margin:10px 0; }
.folder-list button { justify-content:flex-start; text-align:left; overflow-wrap:anywhere; }
#folder-picker { background:#f6f8f3; padding:12px; border-radius:8px; margin:0 0 15px; }
#folder-summary,#folder-plan-preview { overflow-wrap:anywhere; }
#title-section { margin-top:25px; padding-top:18px; border-top:1px solid #dce5dc; }
#title-section h3 { margin-bottom:12px; }
#title-candidates button { display:block; width:100%; text-align:left; justify-content:flex-start; margin:8px 0; }
#title-candidates button[aria-pressed="true"] { background:#e6f1e6; border-color:#32734d; }
.draft-layout { display:flex; flex-direction:column; gap:10px; }
.raw-draft { width:100%; }
.preview { max-width:780px; margin:auto; padding:22px; }
.preview .preview-text { border-bottom:1px solid #e5eae1; }
.preview .preview-text:has(button[aria-pressed="true"]) { background:#edf6ed; border-radius:6px; padding:10px; }
.preview button { margin-right:6px; }
.preview img { max-height:570px; object-fit:contain; }
blockquote { white-space:pre-wrap; overflow-wrap:anywhere; margin:10px 0; padding:10px; background:#f2f5ef; border-left:3px solid #92ae92; }
#revision-proposal { margin-top:18px; padding-top:15px; border-top:1px solid #dce5dc; }
.table-scroll { overflow-x:auto; }
.status-bar { position:sticky; top:0; z-index:2; background:#f6f7f4; padding:10px 0; margin:0 0 14px; }
.steps button[data-state="done"]::after { content:"✓"; color:#236443; }
.steps button[data-state="locked"] { opacity:.45; }
.process-guide { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 18px; margin:0 0 18px; border-left:4px solid #32734d; border-radius:8px; background:#eaf3eb; }
.process-guide h2 { margin:2px 0 5px; }
.process-guide p { margin:0; font-size:13px; }
#review-checks,#preparation-state { white-space:pre-wrap; }
#publish-title { margin:18px 0; font-size:19px; }
#step-publish ol { padding-left:22px; color:#526e59; }
#step-publish li { margin:10px 0; }
#assistant-mode { margin-bottom:10px; font-size:12px; }
#process-guide button { flex-shrink:0; }
.workbench.delivery-mode { grid-template-columns:minmax(0,1fr); }
#step-publish { max-width:950px; width:100%; margin:auto; }
#revision-before,#revision-after { max-height:240px; overflow:auto; }
@media(max-width:480px) { .process-guide { align-items:flex-start; flex-direction:column; } .steps button { gap:4px; font-size:12px; } }
@media(max-width:800px) {
  .workbench { grid-template-columns:1fr; }
  .assistant { position:static; }
  .photo-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .photo-card img { height:95px; }
}
@media(max-width:480px) {
  header { padding:12px; gap:8px; }
  header .actions { gap:6px; }
  header button { font-size:12px; padding:6px 8px; }
  .photo-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .photo-card img { height:115px; }
  .section-head { flex-wrap:wrap; }
  .project-bar { gap:6px; }
  .project-bar button { padding:7px 9px; }
  .preview { padding:12px; }
}
