/* 色のツールの各ページで共通の配置（色や見た目はサイト共通の base.css に合わせる） */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.subnav a { text-decoration: none; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text); background: var(--surface); }
.subnav a[aria-current=page] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.out { font-weight: 400; color: var(--muted); margin-left: 6px; }
.chip { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); vertical-align: -0.15em; }
.colorrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.colorrow input[type=color] { width: 52px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; flex: 0 0 auto; }
.colorrow input[type=text] { flex: 1 1 160px; width: auto; }
.fmt-table td:first-child { color: var(--muted); white-space: nowrap; width: 7em; }
.fmt-table td.v { font-family: var(--mono); word-break: break-all; }
.fmt-table td:last-child { width: 1%; white-space: nowrap; }
.swrow { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 92px; font-size: 12px; cursor: pointer; background: var(--surface); padding: 0; text-align: left; color: var(--text); }
.sw .c { height: 44px; }
.sw .t { padding: 4px 6px; font-family: var(--mono); }
.checker { background: repeating-conic-gradient(#d8d8d8 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 6px; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0; cursor: pointer; font-size: 14px; }
.seg input:checked + span { font-weight: 700; color: var(--accent); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.drop.over { border-color: var(--accent); background: var(--accent-weak); }
.drop input[type=file] { max-width: 100%; }
