.entry-dialog { width: min(700px, calc(100% - 20px)); }
.entry-shell { padding: 24px; }
.entry-shell .entry-date { display: block; margin: 18px 0; }
.entry-shell .entry-date input { color: #202522; background: #fff; border-color: #dfe2dd; }
.entry-groups section { margin: 20px 0; }
.entry-progress { padding: 12px 14px; border-radius: 10px; color: #185f60; background: #e9f5ef; line-height: 1.5; }
.entry-optional { margin: 12px 0; padding: 12px 0; border-top: 1px solid #e7eae7; }
.entry-optional summary { padding: 8px 0; color: #30584d; font-weight: 700; cursor: pointer; }
.entry-optional .entry-tiles { margin-top: 10px; }
.entry-groups h4, .entry-history h4 { margin: 0 0 10px; font-size: 15px; }
.entry-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.entry-tile { min-height: 68px; padding: 10px; border: 1px solid #dfe2dd; border-radius: 12px; color: #202522; background: #f7f9f7; text-align: left; cursor: pointer; }
.entry-tile.selected { border-color: #247f7d; background: #e9f5ef; }
.entry-tile strong, .entry-tile small { display: block; color: inherit; }
.entry-tile small { margin-top: 4px; color: #5f706a; }
.entry-shell form { margin: 18px 0; padding: 16px; border: 1px solid #dfe2dd; border-radius: 14px; scroll-margin-top: 104px; }
.entry-form-switch { position: sticky; top: 0; z-index: 5; margin: -16px -16px 16px; padding: 14px 16px; border-bottom: 1px solid #dfe2dd; border-radius: 14px 14px 0 0; background: #fff; }
.entry-form-switch h4 { margin: 0 0 10px; }
.entry-form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.entry-form-heading h4 { flex: 1; min-width: 0; margin: 0; }
.entry-form-heading small { color: #697974; white-space: nowrap; }
#entryBackToTypes { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 0; border: 0; color: #3c6f64; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; }
#entryBackToTypes span { display: grid; place-items: center; width: 26px; height: 32px; color: #3c6f64; font-size: 29px; font-weight: 300; line-height: 1; }
#entryBackToTypes:hover { color: #177d6b; }
#entryBackToTypes:focus-visible { outline: 2px solid #247f7d; outline-offset: 3px; border-radius: 6px; }
#entryContinue { margin-top: 10px; }
.entry-quick-switch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.entry-quick-item { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 42px; padding: 5px 3px; box-sizing: border-box; border: 1px solid #dfe2dd; border-radius: 9px; color: #4e6259; background: #f7f9f7; font: inherit; font-size: 12px; line-height: 1.2; text-align: center; cursor: pointer; }
.entry-quick-item.selected { border-color: #247f7d; color: #185f60; background: #e9f5ef; font-weight: 700; }
.entry-shell form label { display: block; margin: 10px 0; }
.entry-shell form [hidden] { display: none; }
.entry-shell form .entry-error { color: #a32e27; font-weight: 700; }
.entry-shell form input, .entry-shell form select, .entry-shell form textarea { box-sizing: border-box; width: 100%; color: #202522; background: #fff; border-color: #dfe2dd; }
.entry-shell form fieldset { border-color: #dfe2dd; }
.entry-shell form fieldset legend { color: #52645c; }
.entry-shell form fieldset label { display: flex; align-items: center; gap: 8px; }
.entry-shell form fieldset input[type="checkbox"] { width: 18px; height: 18px; accent-color: #247f7d; }
.entry-history { margin: 20px 0; }
.entry-history-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid #e7eae7; }
.entry-history-row .entry-photo-preview { flex: 1 0 100%; }
.entry-photo-preview img { display: block; max-width: min(100%, 420px); max-height: 320px; border-radius: 10px; object-fit: contain; }
.entry-history-row b { min-width: 64px; }
.entry-history-row span { flex: 1; overflow-wrap: anywhere; }
.entry-history-row time { white-space: nowrap; color: #6e7771; }
.entry-history-row button { border: 0; color: #185f60; background: transparent; cursor: pointer; }
.entry-tile:focus-visible, .entry-shell button:focus-visible { outline: 2px solid #247f7d; outline-offset: 2px; }
@media (max-width: 540px) { .entry-dialog { inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; box-sizing: border-box; } .entry-shell { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); } .entry-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .entry-history-row { font-size: 13px; } }
