/* 新 CMS の編集アプリ。角丸と影は使わない（四角い面と罫線・上辺のアクセント線で区切る）。色は BRAVEMEDICA #2AA1C2 */
:root {
  --accent: #2AA1C2;
  --accent-dark: #1d7f9a;
  --ink: #1f2933;
  --muted: #5b6770;
  --line: #d5dde2;
  --bg: #f4f7f9;
  --paper: #ffffff;
  --danger: #c0392b;
  --ok: #1e7b45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; }
a { color: var(--accent-dark); }
header.bar { background: var(--paper); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
header.bar .in { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
header.bar h1 { font-size: 17px; margin: 0; flex: 1 1 auto; }
header.bar h1 small { color: var(--muted); font-weight: normal; margin-left: .5em; }
header.bar .who { color: var(--muted); font-size: 13px; }
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
section.panel { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 16px; margin-bottom: 20px; }
h2 { font-size: 18px; margin: 0 0 12px; }
button, .button { font: inherit; font-size: 15px; padding: 8px 16px; border: 1px solid var(--accent-dark); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.4; }
button.plain, .button.plain { background: var(--paper); color: var(--accent-dark); }
button.danger { background: var(--paper); color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { border-left: 4px solid var(--ok); background: #eef8f2; padding: 8px 12px; margin-bottom: 16px; }
.error { border-left: 4px solid var(--danger); background: #fdf0ee; padding: 8px 12px; margin-bottom: 16px; white-space: pre-line; }
.hidden { display: none !important; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.list th { font-size: 13px; color: var(--muted); font-weight: normal; }
table.list td.date { white-space: nowrap; width: 8em; }
table.list td.state { white-space: nowrap; width: 5em; }
.state-off { color: var(--muted); }
.state-off::before { content: "■ "; }
.state-on::before { content: "■ "; color: var(--ok); }
table.list td.ops { width: 1%; white-space: nowrap; }
table.list td.ops button { font-size: 13px; padding: 4px 10px; }
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=date], input[type=text]:focus, select, input[type=password] { font: inherit; width: 100%; max-width: 640px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; }
input[type=date] { max-width: 220px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
fieldset legend { font-size: 14px; color: var(--muted); margin-bottom: 4px; padding: 0; }
fieldset label { margin-right: 16px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .1em; background: var(--bg); border: 1px solid var(--line); padding: 8px 12px; display: inline-block; word-break: break-all; }
.muted { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  table.list thead { display: none; }
  table.list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.list td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  table.list td.ops { padding-top: 6px; }
}
/* 編集部品（TinyMCE）も角丸と影を消す */
.tox.tox-tinymce, .tox .tox-tbtn, .tox .tox-split-button, .tox .tox-dialog, .tox .tox-menu, .tox .tox-collection, .tox .tox-textfield, .tox .tox-button { border-radius: 0 !important; }
.tox .tox-editor-header, .tox .tox-menu, .tox .tox-dialog, .tox .tox-collection, .tox .tox-pop__dialog { box-shadow: none !important; }
.tox .tox-editor-header { border-bottom: 1px solid var(--line) !important; }
.tox.tox-tinymce { border: 1px solid var(--line) !important; }
/* サイトを選ぶ画面 */
ul.site-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ul.site-list li { border-bottom: 1px solid var(--line); }
ul.site-list a { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 10px 8px; text-decoration: none; color: var(--ink); }
ul.site-list a:hover, ul.site-list a:focus { background: var(--bg); border-left: 3px solid var(--accent); padding-left: 5px; }
ul.site-list .repo { color: var(--muted); font-size: 13px; }
h2 small { font-weight: normal; }
