:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #182723; background: #f4f6f4; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(640px, 100%); min-height: 100vh; margin: 0 auto; padding: 24px 18px 56px; background: #fff; }
.head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #dce3df; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.tag { padding: 5px 9px; border: 1px solid #dce3df; border-radius: 99px; font-size: 11px; font-weight: 700; }
.intro { padding: 28px 0 12px; }
.eyebrow { margin: 0 0 8px; color: #0b7568; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
h1 { margin: 0 0 10px; font-size: 27px; }
.intro p:last-child, .reply-box p, .footnote, .timezone { color: #586862; font-size: 14px; line-height: 1.6; }
.details { padding: 14px; border: 1px solid #dce3df; border-radius: 12px; margin-bottom: 16px; }
.details p { margin: 4px 0; overflow-wrap: anywhere; }
.details strong { color: #586862; font-size: 12px; margin-right: 8px; }
.timezone { margin: 0 0 14px; }
.candidates { display: grid; gap: 12px; }
.candidate { padding: 16px; border: 1px solid #dce3df; border-radius: 14px; }
.candidate h2 { margin: 0 0 4px; font-size: 18px; }
.candidate .number { color: #0b7568; font-size: 12px; font-weight: 800; }
.candidate .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
button, .action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 13px; border: 1px solid #c7d5ce; border-radius: 9px; background: #fff; color: #123d35; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
button.primary { background: #087e70; color: #fff; border-color: #087e70; }
button:disabled { opacity: .5; cursor: default; }
.reply-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid #dce3df; }
.reply-box h2 { margin: 0; font-size: 18px; }
textarea { width: 100%; padding: 12px; border: 1px solid #c7d5ce; border-radius: 9px; background: #fff; color: #182723; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
#copyReply { margin-top: 10px; }
#copyStatus { min-height: 1.4em; }
.footnote { margin-top: 24px; }
.notice { padding: 16px; border: 1px solid #dce3df; border-radius: 12px; line-height: 1.6; }
[hidden] { display: none !important; }
.candidate-field { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.candidate-field legend { font-weight: 700; margin-bottom: 12px; }
.candidate-choice { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.candidate-choice input { flex: 0 0 auto; width: 21px; height: 21px; margin: 2px 0; accent-color: #182723; }
.candidate-heading { font-size: 16px; font-weight: 700; line-height: 1.6; }
.candidate:has(input:checked) { border-color: #182723; }
.candidate:has(input:disabled) .candidate-heading { color: #586862; }
.availability { margin: 4px 0 0 33px; font-size: 13px; line-height: 1.6; }
.availability.busy,.availability.unknown { font-weight: 700; }
.candidate details { margin: 12px 0 0 33px; }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 14px; line-height: 1.6; }
.timeline { border-left: 2px solid #dce3df; padding-left: 12px; overflow-wrap: anywhere; }
.timeline p { font-size: 13px; padding: 8px; background: #f4f6f4; line-height: 1.6; }
.timeline .candidate-time { border: 1px solid #182723; background: white; }
.calendar-tools { padding: 16px 0; border-top: 1px solid #dce3df; border-bottom: 1px solid #dce3df; }
.calendar-tools p,.privacy p { font-size: 13px; line-height: 1.7; color: #586862; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#copyReply { width: 100%; min-height: 48px; }
.privacy { margin-top: 24px; }
.privacy a { font-size: 13px; color: inherit; }
dialog { color: inherit; border: 1px solid #dce3df; border-radius: 12px; width: min(540px,calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 22px; overflow-y: auto; }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h2 { font-size: 20px; margin: 0 0 14px; }
dialog p { line-height: 1.7; font-size: 14px; }
#calendarList { max-height: 40dvh; overflow-y: auto; margin: 14px 0; }
#calendarList label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #dce3df; font-size: 14px; overflow-wrap: anywhere; cursor: pointer; }
#calendarList input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #182723; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible { outline: 2px solid #182723; outline-offset: 3px; }
@media(max-width:360px) { .page { padding: 18px 12px 32px; } .candidate { padding: 12px; } .candidate-heading { font-size: 15px; } }
.counter-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.counter-head h2 { margin:0; }
.counter-head button { flex-shrink:0; }
.counter-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0; }
.counter-fields label,.counter-label { display:grid;gap:8px;min-width:0;font-size:14px; }
.counter-label { margin:16px 0; }
#counterDialog input[type=date],#counterDialog input[type=time],#counterDialog select { width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #c7d5ce;border-radius:8px;color:inherit;background:white;font:inherit;font-size:16px; }
.counter-weekends { display:flex;align-items:center;gap:10px;margin:16px 0;font-size:14px; }
.counter-weekends input { width:20px;height:20px; }
#counterSearch,#counterConnect,#counterUse { width:100%;min-height:48px;margin-top:12px; }
#counterResults .actions { margin-top:16px; }
#counterChoices { max-height:40dvh;overflow-y:auto; }
