html[data-night="true"] .native-expense-icon{color:#fff}
html[data-night="true"] .native-expense-icon svg{color:#fff}
.plancountdown strong:has(.native-countdown-word){letter-spacing:.04em}
.plancountdown strong .native-countdown-word{display:inline;font:inherit;font-size:.72em;letter-spacing:inherit;font-weight:inherit}
.ticketdeadlines{margin:16px 0;width:100%;box-sizing:border-box;overflow:hidden}
.ticketdeadlinesbody{padding:0 14px 14px}.ticketdeadlines>summary{padding:14px}
.native-deadline-inputs{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;margin-top:12px}.native-deadline-inputs[hidden]{display:none}
.native-deadline-inputs label{display:flex;flex-direction:column;gap:6px;font-size:11px!important;color:var(--sub);min-width:0}
.native-deadline-inputs input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:9px 8px;font-size:14px;background:var(--paper);color:var(--ink);border:1px solid var(--rule);border-radius:9px}
.ticketdeadlineenable{margin:0!important}.ticketdeadlinerow:last-of-type{border-bottom:0}
.native-ticket-deadline-summary{padding:13px 16px;border-top:1px solid var(--ticket-ink);display:grid;gap:7px;font-size:11px}
.native-ticket-deadline-summary>div{display:flex;gap:10px;justify-content:space-between;align-items:baseline}.native-ticket-deadline-summary b{font-size:11px;font-weight:600;text-align:right}
html[data-night="true"] .native-expense-icon svg{fill:#fff}

.native-details-bell{width:18px;height:18px;flex:none;vertical-align:middle;margin-right:7px}
.native-deadline-inputs input{appearance:none;-webkit-appearance:none;display:block;min-inline-size:0;inline-size:100%;max-inline-size:100%}
.native-deadline-inputs input::-webkit-date-and-time-value{min-width:0;text-align:left}
.native-deadline-inputs input::-webkit-datetime-edit{padding:0;min-width:0}
.planbody>.native-ticket-deadline-summary:first-child{border-top:0}

.native-deadline-inputs .native-deadline-done{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:8px;margin:4px 0 0;color:var(--ink)}
.native-deadline-inputs .native-deadline-done input{appearance:auto;-webkit-appearance:checkbox;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;accent-color:var(--accent)}

.native-application-method{grid-column:1/-1}.native-application-method select{width:100%;min-width:0;min-height:42px;border:1px solid var(--rule);border-radius:9px;background:var(--paper);color:var(--ink);padding:8px;font:inherit;font-size:14px}
.native-application-completed,.native-ticket-application-check{display:flex!important;align-items:center;gap:8px;min-height:44px;font-size:12px!important;margin:8px 0 0!important;cursor:pointer}
.native-application-completed input,.native-ticket-application-check input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:var(--ink)}

.planhead .ticketbell{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:4px;border:0;background:transparent;color:var(--ticket-ink);cursor:pointer}.ticketbell svg{display:block;width:21px;height:21px}

.native-ticket-dates-heading{display:flex;align-items:center;gap:12px;margin:0 0 20px}.native-ticket-dates-heading svg{width:28px;height:28px;flex:none}.native-ticket-dates-heading b{font-size:15px;overflow-wrap:anywhere}.native-ticket-dates-heading p{font-size:11px;color:var(--sub);margin:5px 0 0}
.native-ticket-dates-screen .ticketdeadlinesbody{padding:0;display:grid;gap:12px}
.native-ticket-dates-screen .ticketdeadlinerow{padding:15px;border:1px solid var(--rule)!important;border-radius:12px;background:var(--card);margin:0}
.native-ticket-dates-screen .ticketdeadlineenable{min-height:24px;font-size:14px}
.native-ticket-dates-screen .native-application-completed{padding:0;border:0;background:transparent}
.native-notification-guide{display:block;line-height:1.8;margin-top:16px;color:var(--sub)}

.ticketdeadlines>summary>svg{width:18px;height:18px;flex:none;vertical-align:middle;margin-right:7px}

.ticketdeadlinerow .native-application-completed,.ticketdeadlinerow .native-deadline-done{font-size:12px!important;font-weight:400!important;color:var(--ink)!important;line-height:1.5}

.logticketcosttotal{border:0;background:none;padding:0;text-align:left;color:inherit;cursor:pointer}
.logticketbudgetbtn svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#logTicketCostPopup .ticketlinkpanel{background:#f5f1e9;color:#34302b;border:0;border-radius:3px;box-shadow:0 14px 45px #0003;padding:24px 18px 28px;position:relative;overflow:visible}
#logTicketCostPopup .ticketlinkpanel::after{content:"";position:absolute;left:0;right:0;bottom:-9px;height:10px;background:linear-gradient(135deg,#f5f1e9 25%,transparent 25%) -10px 0/20px 20px,linear-gradient(225deg,#f5f1e9 25%,transparent 25%) -10px 0/20px 20px;pointer-events:none}
#logTicketCostPopup .ticketlinkhead{border-bottom:1px dashed #b7afa2;padding-bottom:15px;margin-bottom:12px}
#logTicketCostPopup .ticketlinkhead h2{font-size:14px;letter-spacing:.06em}
#logTicketCostPopup .ticketlinkclose{color:#655d52;background:transparent;border:0}
#logTicketCostPopup .logcostscrollwrap{padding-right:12px}
#logTicketCostPopup .logcostscrolltrack{width:4px;background:#e2dbce}
#logTicketCostPopup .logcostscrollthumb{width:4px;background:#b6ac9d}
.native-receipt{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}
.native-receipt-brand{text-align:center;font:800 18px/1.5 -apple-system,sans-serif;letter-spacing:.08em;margin:8px 0 4px}
.native-receipt-label{text-align:center;font-size:10px;letter-spacing:.2em;color:#746b5e;margin:0 0 22px}
#logTicketCostPopup .logticketcostevent{padding:14px 0;background:none;border:0;border-bottom:1px dashed #c4bbad;border-radius:0}
#logTicketCostPopup .logticketcosteventhead{grid-template-columns:40px minmax(0,1fr) auto;gap:6px;color:#34302b}
#logTicketCostPopup .logticketcosteventhead time{color:#756b5c}
#logTicketCostPopup .logticketcostbreakdown{margin-top:10px}
#logTicketCostPopup .logticketcostline{font-size:11px;line-height:1.8;color:#62594d}
.native-receipt-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:18px 0 12px;border-top:3px double #857b6b;margin-top:16px;font-size:13px;font-weight:700}
.native-receipt-total strong{font-size:23px;white-space:nowrap}
.native-receipt-end{text-align:center;margin:12px 0 4px;font-size:10px;color:#857b6b;letter-spacing:.08em}
/* 用紙全体を外側のスクロール領域で動かす。 */
#logTicketCostPopup{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;display:block;overflow-y:auto;overscroll-behavior:contain;padding:calc(env(safe-area-inset-top,0px) + 24px) 16px calc(env(safe-area-inset-bottom,0px) + 110px)}
#logTicketCostPopup .ticketlinkpanel{max-height:none!important;overflow:visible;width:100%;max-width:420px;margin:0 auto;background:#fff;display:block;box-sizing:border-box}
#logTicketCostPopup .ticketlinkpanel::after{background:linear-gradient(135deg,#fff 25%,transparent 25%) -10px 0/20px 20px,linear-gradient(225deg,#fff 25%,transparent 25%) -10px 0/20px 20px}
#logTicketCostPopup .logcostscrollwrap{display:block;overflow:visible;padding:0}
#logTicketCostPopup #logTicketCostPopupList{display:block;max-height:none;overflow:visible;height:auto;background:#fff;border:0}
#logTicketCostPopup .logcostscrolltrack{display:none!important}
.native-receipt-logo{display:block;width:180px;max-width:80%;height:auto;margin:16px auto}
.native-receipt-save{display:block;width:100%;min-height:44px;margin:24px 0 0;border:1px solid #dedede;border-radius:8px;background:white;color:#34302b;font:600 13px -apple-system,sans-serif}
.native-receipt-save:disabled{opacity:.5}
#logTicketCostPopup[hidden]{display:none!important}
#logTicketCostPopup .ticketlinkhead{position:static;background:#fff}
#logTicketCostPopup .ticketlinkclose{min-width:44px;min-height:44px}

#logTicketCostPopup .ticketlinkhead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.native-receipt-actions{position:fixed;left:0;right:0;bottom:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 20px calc(env(safe-area-inset-bottom,0px) + 14px);background:transparent;border:0}
.native-receipt-actions .native-receipt-save{flex:1;max-width:356px;min-height:48px;margin:0;background:#292929;color:#fff;border:0;border-radius:12px}
#logTicketCostPopup .native-receipt-actions .ticketlinkclose{flex:0 0 48px;width:48px;height:48px;background:#fff;color:#292929;border:0;border-radius:12px;display:grid;place-items:center;padding:0;line-height:1}


/* ぼかしは別レイヤーに置き、固定ボタンの基準を変えない。 */
#logTicketCostPopup::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(30,34,42,.38);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);pointer-events:none}

.web-date-error{color:var(--aka);font-size:12px}.mypage .mypagefavorites>summary{font-weight:600}

body:has(.native-ticket-dates-screen) #entryFab{display:none!important}

/* Header logo follows authentication and appearance, using existing artwork. */
html #app>header .logo img{content:url('/hakomikke-horizontal.svg')}
html[data-web-signed-in="true"] #app>header .logo img{content:url('/native-receipt-logo.svg')}
html[data-web-signed-in="true"][data-night="true"] #app>header .logo img{content:url('/hakomikke-horizontal-white.svg')}

.planhead .ticketbell{position:relative;overflow:visible}
.web-ticket-pending-lamp{position:absolute;top:0;right:0;width:8px;height:8px;border-radius:50%;background:#e53935;box-shadow:0 0 0 2px var(--ticket-bg,var(--card));pointer-events:none}
.web-ticket-pending-lamp[hidden]{display:none!important}

/* Match the app ticket venue action. */
.planvenue::after{border-radius:5px}
