:root {
  --ink: #17352e;
  --soft: #536b64;
  --forest: #17644f;
  --forest-deep: #0d493c;
  --mint: #dcefe7;
  --cream: #f5f3ea;
  --paper: #fffdf8;
  --line: #d8ddd6;
  --danger: #8a342d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}
a { color: var(--forest); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(224, 154, 79, .72);
  outline-offset: 3px;
}
.manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(23, 53, 46, .16);
  background: rgba(255, 253, 248, .96);
}
.manage-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.manage-brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}
.manage-brand span { display: flex; flex-direction: column; }
.manage-brand small, .eyebrow {
  color: var(--forest);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.manage-header nav { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.manage-header nav form { margin: 0; }
.manage-header nav button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--forest);
  cursor: pointer;
  text-decoration: underline;
}
.manage-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 90px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
h1, h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: 25px; }
p { color: var(--soft); }
.eyebrow { margin: 0 0 8px; }
.manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.panel, .auth-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(25, 61, 51, .08);
}
.panel { margin-bottom: 20px; }
.manage-grid .panel { margin-bottom: 0; }
.auth-card { width: min(520px, 100%); margin: 8vh auto 0; }
.stack-form { display: grid; gap: 18px; margin-top: 24px; }
.stack-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; }
.stack-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.stack-form input[type="file"] { padding: 8px; }
.stack-form small { color: var(--soft); font-weight: 400; }
.stack-form em, .form-errors { color: var(--danger); font-style: normal; }
.primary, .secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary { border: 1px solid var(--forest); background: var(--forest); color: white; }
.primary:hover { background: var(--forest-deep); }
.secondary { border: 1px solid rgba(23, 53, 46, .3); background: transparent; color: var(--ink); }
.approve { min-width: 240px; }
.security-note { margin-top: 22px; font-size: 11px; }
.current-data dl, .date-diff { display: grid; gap: 0; margin: 20px 0 0; }
.current-data dl div, .date-diff div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
dt { color: var(--soft); font-size: 12px; font-weight: 800; }
dd { margin: 0; overflow-wrap: anywhere; }
.table-panel { overflow-x: auto; }
table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--soft); font-size: 11px; letter-spacing: .04em; }
code { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.positive { color: #17644f; font-weight: 800; }
.negative { color: var(--danger); font-weight: 800; }
.warning-panel { border-color: #d8a554; background: #fff8e8; }
.error-panel { border-color: #d9a39e; background: #fff8f6; }
.error-panel li { margin: 7px 0; }
.compact-list { max-height: 280px; overflow: auto; padding-left: 20px; font-size: 12px; }
.approval-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 28px; }
.approval-actions form { margin: 0; }
.messages p { padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.messages .success { background: #dff2e8; color: #145640; }
.messages .error { background: #f9e4df; color: #873b32; }
.manage-footer { padding: 26px; background: #123d33; color: rgba(255,255,255,.72); text-align: center; font-size: 11px; }

@media (max-width: 760px) {
  .manage-header { align-items: flex-start; }
  .manage-header nav { flex-wrap: wrap; justify-content: flex-end; }
  .manage-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .current-data dl div, .date-diff div { grid-template-columns: 1fr; gap: 2px; }
  .approval-actions { align-items: stretch; flex-direction: column; }
  .approval-actions > * { width: 100%; }
}
