:root {
  color-scheme: light dark;
  --paper: #f6f5f0;
  --ink: #292d28;
  --muted: #5e645b;
  --line: #b9bdb2;
  --field: #fffefa;
  --accent: #315f42;
  --on-accent: #ffffff;
  --selected: #e3ebe1;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.page-header, main, noscript { max-width: 1200px; margin-inline: auto; padding: 20px 28px; }
.page-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
h1 { font-size: 1.45rem; margin: 0 0 8px; letter-spacing: .03em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 20px 0 8px; }
p { margin: 8px 0 16px; }
.connection { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: .875rem; color: var(--muted); }
.release-note { margin: 10px 0 0; font-size: .925rem; }
.release-note span { margin-left: 1em; color: var(--muted); }
.notice { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice:not(:empty) { border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 20px; }
#pairing { max-width: 460px; padding-block: 12px; }
form { display: flex; flex-direction: column; gap: 8px; }
label { display: block; font-weight: 600; }
label .muted { font-weight: 400; font-size: .875rem; }
input, textarea, select, button { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 3px; }
input, textarea, select { background: var(--field); min-height: 44px; width: 100%; padding: 9px 12px; }
textarea { font-size: 16px; resize: vertical; min-height: 170px; }
input[readonly], textarea[readonly] { background: var(--paper); }
button { min-height: 44px; padding: 8px 14px; background: var(--field); cursor: pointer; }
button.primary { align-self: flex-start; background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.muted, time { color: var(--muted); font-size: .875rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
#device-label { margin-right: auto; color: var(--muted); overflow-wrap: anywhere; }
.console-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 28px; }
.job-nav { border-right: 1px solid var(--line); padding-right: 24px; }
.section-heading { display: flex; gap: 8px 16px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.section-heading h2 { margin: 0; overflow-wrap: anywhere; }
.job-list { padding: 0; margin: 12px 0 0; list-style: none; }
.job-list li { border-top: 1px solid var(--line); }
.job-list button { display: block; width: 100%; border: 0; border-radius: 0; text-align: left; padding: 12px 8px; background: transparent; overflow-wrap: anywhere; }
.job-list button[aria-current="true"] { background: var(--selected); }
.job-list .job-title { display: block; font-weight: 600; }
.job-list .job-meta { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.work-area { min-width: 0; }
.notifications-section { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
#notification-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; max-height: 240px; overflow: auto; }
#notification-list button { text-align: left; overflow-wrap: anywhere; max-width: 100%; }
#latest-reply-section { padding-block: 16px; border-block: 2px solid var(--accent); margin-block: 16px; }
#latest-reply { white-space: pre-wrap; overflow-wrap: anywhere; }
#job-id, #workspace-paths, #file-list { overflow-wrap: anywhere; }
#file-list { padding: 0; list-style: none; }
#file-list li { padding-block: 12px; border-top: 1px solid var(--line); }
.file-meta { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
#file-list a { display: inline-block; padding: 10px 0; min-height: 44px; margin-right: 16px; }
#file-upload { margin-top: 8px; }
a { color: var(--accent); }
#job-session { overflow-wrap: anywhere; }
#model-panel { border-block: 1px solid var(--line); padding-block: 12px; margin-bottom: 16px; }
#model-panel select { margin-bottom: 12px; }
#job-detail { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
#job-state { color: var(--accent); font-weight: 600; }
.submission, .history-message { border-top: 1px solid var(--line); padding-block: 12px; }
.submission p, .history-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.submission h3 { margin: 0; font-size: .9rem; color: var(--muted); }
details { margin-top: 16px; }
summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
#draft-note, #pending-note { margin: 0 0 8px; }
#pending-note { font-weight: 600; }
#title-field { margin-bottom: 8px; }
#title-field label { margin-bottom: 8px; }
@media (hover: hover) and (pointer: fine) { button:not(:disabled):hover { filter: brightness(.94); } }
@media (max-width: 700px) {
  .page-header, main, noscript { padding: 16px; }
  .console-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .job-nav { border-right: 0; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .job-list { max-height: 270px; overflow-y: auto; }
  .release-note span { display: block; margin-left: 0; }
  .toolbar { gap: 8px; }
  #device-label { flex-basis: 100%; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #20231f; --ink: #ebece5; --muted: #b9c0b3; --line: #636b5e; --field: #292d27; --accent: #aad0ac; --on-accent: #1d3020; --selected: #364333; }
}
