:root { color-scheme: light; --blue: #0060ad; --ink: #203449; --muted: #566a7c; --line: #dce5ed; --bg: #f3f7fa; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, sans-serif; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, select, input[type=search] { min-height: 48px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ef9f32; outline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.topbar { padding: 14px max(20px, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.topbar a { font-weight: 800; text-decoration: none; }
.topbar span, .eyebrow { color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .13em; }
main { max-width: 1180px; margin: auto; padding: 28px 20px max(60px, env(safe-area-inset-bottom)); }
.intro { max-width: 760px; margin-bottom: 28px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.05em; line-height: 1.1; margin: 12px 0 20px; }
h2 { font-size: 2rem; letter-spacing: -.04em; margin: 0; }
h3 { margin: 16px 0 4px; }
p { margin: 8px 0 16px; }
.notice { padding: 12px 16px; background: #fff4dc; border-radius: 12px; font-size: .85rem; color: #775015; }
.workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; min-width: 0; }
label { font-size: .85rem; font-weight: 700; }
input[type=search], select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); margin: 8px 0; }
.search-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 16px; font-size: .8rem; color: var(--muted); }
.favorite-filter { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.favorite-filter input { width: 20px; height: 20px; }
.results { display: grid; gap: 8px; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.result { text-align: left; border: 1px solid transparent; border-radius: 14px; padding: 12px 16px; background: var(--bg); color: var(--ink); }
.result strong, .result small { display: block; }
.result small { color: var(--muted); }
.result[aria-pressed=true] { border-color: var(--blue); background: #eaf4ff; }
.subtle { font-size: .8rem; color: var(--muted); margin-top: 20px; }
.verb-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.icon-button { border: 1px solid var(--line); background: white; color: var(--blue); border-radius: 50%; min-width: 48px; }
.meaning { color: var(--muted); margin: 0 0 20px; }
.example { background: #eaf4ff; border-left: 3px solid var(--blue); padding: 16px; border-radius: 0 12px 12px 0; }
.example p { margin: 0; }
.example small { color: var(--muted); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px; margin-top: 12px; }
.tabs button { flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 8px 16px; color: var(--muted); }
.tabs button[aria-pressed=true] { background: var(--blue); color: white; border-color: var(--blue); }
.explanation { font-size: .9rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin: 16px 0; }
caption { text-align: left; font-size: .8rem; color: var(--muted); padding-bottom: 8px; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; }
td.form { font-size: 1.1rem; font-weight: 750; color: var(--blue); overflow-wrap: anywhere; }
td:last-child { width: 48px; }
.import-area { background: var(--bg); border-radius: 16px; padding: 16px; margin-top: 24px; }
.primary { width: 100%; padding: 12px; margin-top: 12px; background: var(--blue); color: white; font-weight: 700; border: 0; border-radius: 12px; }
details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; font-size: .85rem; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.status { position: sticky; bottom: 12px; background: var(--ink); color: white; border-radius: 12px; padding: 12px 20px; box-shadow: 0 6px 24px #20344922; }
.status:empty { display: none; }
@media (max-width: 760px) { .workspace { grid-template-columns: 1fr; gap: 16px; } .panel { padding: 20px; border-radius: 20px; } .results { grid-template-columns: 1fr 1fr; max-height: 260px; } main { padding: 20px 14px 60px; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } }
