/* cookconv 固有スタイル */
.tool-main { max-width: 760px; }
[hidden] { display: none !important; }

.cc-in { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.cc-amt { display: flex; gap: 0.5rem; align-items: stretch; }
.cc-amt input { flex: 1 1 6rem; min-width: 0; }
.cc-amt select { flex: 0 0 8rem; }
.cc-fr { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.cc-fr .btn { width: auto; margin: 0; }

.cc-sum { font-weight: 700; margin: 1.1rem 0 0.6rem; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (max-width: 520px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
.cc-tile { border: 1px solid var(--border); border-radius: var(--pt-r); padding: 0.6rem 0.75rem; background: var(--surface); }
.cc-tile.is-src { background: var(--pt-accent-soft); border-color: var(--pt-accent); }
.cc-tile-l { font-size: 0.78rem; color: var(--text-sub); }
.cc-tile-v { font-size: 1.5rem; font-weight: 700; line-height: 1.35; word-break: break-all; }
.cc-tile-v small { font-size: 0.8rem; font-weight: 400; color: var(--text-sub); margin-left: 0.2rem; }

.cc-basis { margin-top: 0.8rem; }

.cc-tablewrap { overflow-x: auto; margin-top: 0.75rem; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cc-table th, .cc-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.cc-table thead th { font-size: 0.78rem; color: var(--text-sub); font-weight: 600; }
.cc-table tbody th { text-align: left; font-weight: 500; white-space: normal; }
.cc-table tr.is-cur { background: var(--pt-accent-soft); }
.cc-name { border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.cc-name:hover { color: var(--pt-accent); text-decoration: underline; }
.cc-name:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }

.cc-ref { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem 1.5rem; font-size: 0.9rem; margin-top: 0.4rem; }
@media (max-width: 520px) { .cc-ref { grid-template-columns: 1fr; } }
.cc-ref div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--border); padding: 0.25rem 0; }
