/* EventCreationView: plain native form, top camera/save and bottom voice/cancel. */
.ai-creation { --ac-blue: #007aff; --ac-line: #d1d1d6; position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; height: 566px; border: .5px solid var(--ac-line); border-radius: 14px; overflow: hidden; color: #000; background: #fff; color-scheme: light; box-shadow: 0 6px 28px #0000000d; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Segoe UI', sans-serif; line-height: 1.4; container-type: inline-size; }
.ai-creation svg { display: block; flex: none; width: 20px; height: 20px; }
.ai-creation [hidden] { display: none !important; }
.ac-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; flex: 0 0 52px; padding: 0 10px; border-bottom: .5px solid var(--ac-line); background: #fff; }
.ac-navigation strong { font-size: 17px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.ac-control { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ac-blue); pointer-events: none; transition: transform .18s, background .18s, color .18s; }
.ac-navigation .ac-control svg { width: 23px; height: 23px; }
.ac-control.is-pressing { transform: scale(.87); background: #007aff1a; }
.ac-control.is-active { background: #007aff; color: #fff; box-shadow: 0 0 0 5px #007aff17; }
.ac-form { flex: 1; min-height: 0; padding: 8px 16px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ac-form::-webkit-scrollbar { display: none; }
.ac-row { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: .5px solid #d1d1d699; }
.ac-row > svg, .ac-time-row > svg { width: 17px; height: 17px; color: #8e8e93; }
.ac-title-row { min-height: 58px; }
.ac-emoji { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px dotted #c7c7cc; border-radius: 50%; color: #aeaeb2; font-size: 12px; font-weight: 700; }
.ac-value { flex: 1; min-width: 0; padding: 8px 0; overflow-wrap: anywhere; }
.ac-title { font-size: 20px; font-weight: 700; }
.ac-location { font-size: 16px; }
.ac-value.is-placeholder { color: #b2b2b7; }
.ac-accessory { display: flex; align-items: center; flex: none; gap: 12px; color: #8e8e93; }
.ac-accessory svg { width: 17px; height: 17px; }
.ac-calendar-row { min-height: 44px; color: #8e8e93; font-size: 14px; }
.ac-calendar-name, .ac-color { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ac-calendar-name i, .ac-color i { display: block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: #4f88b9; }
.ac-color i { background: #e0a45a; }
.ac-time-row { display: grid; grid-template-columns: 17px minmax(0, 1fr) minmax(0, 1fr) 62px; align-items: start; gap: 9px; min-height: 95px; padding: 12px 0 8px; border-bottom: .5px solid #d1d1d699; }
.ac-time-row > svg { margin-top: 4px; }
.ac-date { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ac-date small { font-size: 10px; color: #8e8e93; }
.ac-date > span { color: #8e8e93; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ac-date strong { color: #111; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-time-options { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 0; }
.ac-toggle { position: relative; display: block; width: 39px; height: 23px; border-radius: 20px; background: #e5e5ea; }
.ac-toggle::before { content: ''; position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; }
.ac-duration { padding: 3px 6px; border-radius: 6px; background: #f2f2f7; color: #8e8e93; font-size: 11px; overflow-wrap: anywhere; text-align: right; }
.ac-option { color: #8e8e93; font-size: 14px; }
.ac-option > span { flex: 1; text-align: right; }
.ac-option > svg:last-child { width: 17px; height: 17px; }
.ac-notes-row { align-items: flex-start; border-bottom: 0; min-height: 78px; padding-top: 14px; }
.ac-notes { min-width: 0; font-size: 15px; color: #b2b2b7; overflow-wrap: anywhere; }
.ac-bottom { display: grid; grid-template-columns: repeat(2, 44px); justify-content: space-evenly; align-items: center; flex: 0 0 50px; border-top: .5px solid var(--ac-line); background: #fff; }
.ac-bottom svg { width: 22px; height: 22px; }
.ac-row, .ac-time-row { transition: background .4s; }
.ac-row.is-filled, .ac-time-row.is-filled { background: #007aff08; }
.ac-attachment-row { display: flex; padding: 8px 0; min-height: 86px; }
.ac-ticket { position: relative; width: min(252px, calc(100% - 48px)); overflow: hidden; border: 1px solid #ddcdb9; border-radius: 10px; background: #fff9ed; color: #282638; box-shadow: 0 6px 26px #0002; }
.ac-ticket-main { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 23px 20px 19px; background: radial-gradient(ellipse at 100% 0, #e8d3b5 0, transparent 63%), #fff9ed; }
.ac-ticket-main > small { position: relative; max-width: calc(100% - 27px); color: #996b43; font-size: 10px; letter-spacing: .1em; font-weight: 600; overflow-wrap: anywhere; }
.ac-ticket-main > strong { position: relative; margin: 6px 0 12px; font-size: 23px; line-height: 1.25; font-weight: 750; overflow-wrap: anywhere; }
.ac-ticket-main > span { font-size: 12px; overflow-wrap: anywhere; }
.ac-ticket-main > b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ac-ticket-main > span:last-child { margin-top: 4px; color: #796c62; }
.ac-ticket-music { position: absolute; top: 18px; right: 15px; color: #a87d50; transform: rotate(-12deg); }
.ac-ticket-music svg { width: 25px; height: 25px; }
.ac-ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 62px; padding: 10px 24px; border-top: 1px dashed #c3a37c; background: #fbf1df; }
.ac-ticket-stub > small { color: #8e7a64; font-size: 9px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.ac-ticket-barcode { display: flex; width: 100%; height: 22px; }
.ac-ticket-barcode i { display: block; min-width: 0; background: #3d3740; }
.ac-ticket::before, .ac-ticket::after { content: ''; position: absolute; z-index: 1; bottom: 55px; width: 14px; height: 14px; border-radius: 50%; background: #ebebeb; border: 1px solid #ddcdb9; }
.ac-ticket::before { left: -8px; }
.ac-ticket::after { right: -8px; }
.ac-ticket.ac-thumbnail { width: 70px; height: 70px; min-height: 70px; border-radius: 4px; box-shadow: none; }
.ac-thumbnail .ac-ticket-main { height: 51px; padding: 5px 6px 3px; gap: 1px; }
.ac-thumbnail .ac-ticket-main > small { font-size: 3px; max-width: calc(100% - 8px); }
.ac-thumbnail .ac-ticket-main > strong { margin: 1px 0 2px; font-size: 6px; line-height: 1.15; }
.ac-thumbnail .ac-ticket-main > span { font-size: 3px; }
.ac-thumbnail .ac-ticket-main > b { font-size: 5px; }
.ac-thumbnail .ac-ticket-main > span:last-child { margin-top: 0; }
.ac-thumbnail .ac-ticket-music { top: 5px; right: 5px; }
.ac-thumbnail .ac-ticket-music svg { width: 8px; height: 8px; }
.ac-thumbnail .ac-ticket-stub { height: 17px; gap: 1px; padding: 2px 8px; border-top-width: .5px; }
.ac-thumbnail .ac-ticket-barcode { height: 6px; }
.ac-thumbnail .ac-ticket-barcode i { margin-right: .4px !important; }
.ac-thumbnail .ac-ticket-stub > small { font-size: 2.5px; }
.ac-thumbnail::before, .ac-thumbnail::after { bottom: 14px; width: 6px; height: 6px; background: #fff; border-width: .5px; }
.ac-thumbnail::before { left: -3px; }
.ac-thumbnail::after { right: -3px; }
.ac-overlay { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; background: #00000014; pointer-events: none; }
.ac-status-panel { width: min(270px, calc(100% - 60px)); padding: 20px 18px; border-radius: 16px; color: #fff; background: #000b; text-align: center; }
.ac-status-panel > small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 9px 0; font-size: 13px; color: #ffffffd1; }
.ac-status-panel p { margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.ac-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 30px; margin: 4px auto 0; }
.ac-wave i { display: block; width: 3px; height: var(--height); border-radius: 3px; background: #fff; }
.ai-creation[data-animation-phase="capture"] .ac-wave i { animation: ac-wave .6s var(--delay) ease-in-out infinite alternate; }
@keyframes ac-wave { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.ac-spinner { width: 25px; height: 25px; margin: 0 auto; border: 2px solid #ffffff33; border-top-color: #fff; border-radius: 50%; }
.ai-creation[data-animation-phase="analyzing"] .ac-spinner { animation: ac-spin .8s linear infinite; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-toast { position: absolute; z-index: 4; left: 50%; bottom: 63px; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 9px 14px; border-radius: 20px; color: #fff; background: #323235ed; font-size: 12px; line-height: 1.4; text-align: center; pointer-events: none; }
.ai-creation[data-gesture-phase="hold"] .ac-mic { position: relative; z-index: 6; }
.ac-gesture { position: absolute; z-index: 8; width: 0; height: 0; pointer-events: none; }
.ai-creation .ac-touch-ring { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; overflow: visible; opacity: 0; transition: opacity .15s; }
.ac-touch-ring circle { fill: none; stroke-width: 3; }
.ac-touch-track { stroke: #ffffff88; }
.ac-touch-progress { stroke: #ffd27d; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; }
.ac-gesture[data-state="hold"] .ac-touch-ring { opacity: 1; }
.ac-gesture[data-state="hold"] .ac-touch-progress { animation: ac-hold-progress var(--hold-duration) linear forwards; }
@keyframes ac-hold-progress { to { stroke-dashoffset: 0; } }
.ac-touch-hand { position: absolute; left: -18px; top: -3px; width: 44px; height: 48px; filter: drop-shadow(0 2px 2px #162d4b35); }
.ai-creation .ac-touch-hand svg { width: 44px; height: 48px; overflow: visible; }
.ac-touch-hand path { fill: #fff; stroke: #263d56; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ac-gesture[data-kind="voice"] .ac-touch-hand { top: -45px; }
.ac-gesture[data-kind="voice"] .ac-touch-hand svg { transform: scaleY(-1); }
.ac-gesture[data-state="hold"] .ac-touch-hand svg, .ac-gesture[data-state="tap"] .ac-touch-hand svg { filter: drop-shadow(0 0 2px #007aff55); }
.ac-touch-ripple { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 2px solid #007aff; border-radius: 50%; opacity: 0; }
.ac-gesture[data-state="tap"] .ac-touch-ripple { animation: ac-tap-ripple .32s ease-out forwards; }
@keyframes ac-tap-ripple { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.ac-gesture-label { position: absolute; left: -64px; bottom: 63px; width: 128px; padding: 5px 8px; border: .5px solid #d4e3f4; border-radius: 13px; background: #fffffff2; color: #2465a6; box-shadow: 0 2px 8px #163c6010; font-size: 11px; font-weight: 500; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.ac-gesture[data-state="release"] .ac-gesture-label { opacity: 0; }
@container (max-width: 300px) { .ac-form { padding-inline: 12px; } .ac-row { gap: 9px; } .ac-accessory { gap: 7px; } .ac-accessory svg { width: 15px; height: 15px; } .ac-title { font-size: 17px; } .ac-location { font-size: 14px; } .ac-calendar-row { font-size: 12px; } .ac-time-row { grid-template-columns: 15px minmax(0, 1fr) minmax(0, 1fr) 43px; gap: 5px; } .ac-date > span { font-size: 10px; } .ac-date strong { font-size: 18px; } .ac-duration { padding-inline: 3px; font-size: 10px; } .ac-status-panel { padding: 18px 14px; width: calc(100% - 40px); } .ac-status-panel p { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ai-creation *, .ai-creation *::before { animation: none !important; transition: none !important; } }
