/* PTJ Travel Centre — design system */
:root {
  --navy: #001871;
  --navy-700: #0a2590;
  --navy-600: #1c38a8;
  --navy-50: #eef1fb;
  --navy-25: #f6f8fd;
  --yellow: #ffe000;
  --yellow-600: #f2c800;
  --yellow-50: #fff9d6;
  --ink: #0b1437;
  --text: #2a3352;
  --muted: #6b7493;
  --line: #e4e8f3;
  --bg: #f5f7fc;
  --card: #ffffff;
  --red: #d42a4c;
  --red-50: #fdecef;
  --green: #128a47;
  --green-50: #e3f6ec;
  --blue: #1d5bd8;
  --blue-50: #e6eefd;
  --wa: #1fae58;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 24, 113, .06);
  --shadow: 0 1px 2px rgba(0, 24, 113, .05), 0 8px 24px -8px rgba(0, 24, 113, .12);
  --shadow-lg: 0 24px 60px -12px rgba(0, 24, 113, .28);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Cpath d='M0 40a20 20 0 0 1 40 0M8 40a12 12 0 0 1 24 0M16 40a4 4 0 0 1 8 0M40 40a20 20 0 0 1 40 0M48 40a12 12 0 0 1 24 0M56 40a4 4 0 0 1 8 0M-20 20a20 20 0 0 1 40 0M-12 20a12 12 0 0 1 24 0M-4 20a4 4 0 0 1 8 0M20 20a20 20 0 0 1 40 0M28 20a12 12 0 0 1 24 0M36 20a4 4 0 0 1 8 0M60 20a20 20 0 0 1 40 0M68 20a12 12 0 0 1 24 0M76 20a4 4 0 0 1 8 0'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h2, .h2 { font-size: 22px; font-weight: 700; }
.h3, h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 12px; }
.ic { flex-shrink: 0; }
:focus-visible { outline: 3px solid rgba(29, 91, 216, .45); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.main { min-height: calc(100vh - 140px); padding-bottom: 48px; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-600); margin-bottom: 10px; }
.eyebrow.light { color: var(--yellow); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 600 14px/1.2 var(--font);
  cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
}
.btn:hover { border-color: #c9d1e6; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-600); border-color: var(--yellow-600); color: var(--navy); box-shadow: 0 6px 16px -6px rgba(242, 200, 0, .7); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #179a4c; border-color: #179a4c; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--navy-50); border-color: transparent; color: var(--navy); box-shadow: none; }
.btn-ghost.danger:hover { background: var(--red-50); color: var(--red); }
.btn-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.block { width: 100%; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #a3aac2; }
input:hover, select:hover, textarea:hover { border-color: #ccd3e6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(28, 56, 168, .12); }
select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7493' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { resize: vertical; min-height: 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--navy-25); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid rgba(29, 91, 216, .45); }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert-err { background: var(--red-50); color: #9b1532; }

/* ---------------------------------------------------------------- language switch */
.lang { display: inline-flex; background: var(--navy-50); border-radius: 999px; padding: 3px; }
.lang a { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.lang a.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.lang a:not(.on):hover { color: var(--navy); }

/* ---------------------------------------------------------------- auth */
.auth-grid { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr); min-height: 100vh; }
.auth-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 24, 113, .55) 0%, rgba(0, 24, 113, .92) 70%), url("img/osaka.jpg") center/cover;
}
.auth-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: var(--wave); opacity: .9; }
.auth-hero-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; gap: 40px; }
.auth-logo { width: 160px; height: auto; }
.auth-hero h1 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); max-width: 520px; }
.auth-hero p { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 460px; margin-top: 14px; }
.auth-feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-feats li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.auth-feats .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 224, 0, .16); color: var(--yellow); }
.auth-foot { font-size: 13px; color: rgba(255, 255, 255, .6); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; position: relative; background: #fff; }
.auth-top { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: flex-end; align-items: center; }
.auth-logo-mobile { display: none; height: auto; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 28px; font-weight: 800; }
.auth-card > .muted { margin: 8px 0 24px; }
.auth-card .alert { margin-bottom: 16px; }
.auth-card .form { gap: 16px; }
.auth-card .btn { margin-top: 6px; }
.auth-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow-50); color: var(--navy); margin-bottom: 18px; }
.auth-private { position: absolute; bottom: 24px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- top bar */
.topbar, .pub-top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 108px; height: auto; }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.topnav { display: flex; align-items: center; gap: 14px; }

.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--navy-25); }
.menu-name { font-weight: 600; font-size: 14px; color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu-head b { color: var(--ink); }
.menu-head span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text); font: 500 14px var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--navy-25); color: var(--navy); }
.menu-pop form { margin: 0; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 14px; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; z-index: 60; top: 84px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toast-in .3s ease, toast-out .4s ease 4.6s forwards; max-width: calc(100vw - 32px);
}
.toast .ic { color: #6ee7a0; }
.toast-err .ic { color: #ff8fa6; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; } }

/* ---------------------------------------------------------------- dashboard hero */
.hero { background: var(--wave) repeat-x bottom / 80px 40px, radial-gradient(1200px 400px at 85% -50%, #1c38a8 0%, transparent 60%), var(--navy); color: #fff; padding: 44px 0 92px; }
.hero-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .78); margin-top: 10px; max-width: 520px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -56px; position: relative; }
.stat { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(228, 232, 243, .7); }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.stat-ic.ic-yellow { background: var(--yellow-50); color: #8a6d00; }
.stat-ic.ic-blue { background: var(--blue-50); color: var(--blue); }
.stat-ic.ic-green { background: var(--green-50); color: var(--green); }

.toolbar { display: flex; gap: 14px; align-items: center; margin: 28px 0 20px; flex-wrap: wrap; }
.search { flex: 1; min-width: 260px; position: relative; display: block; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 42px; border-radius: 14px; height: 46px; box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.chip:hover { color: var(--navy); border-color: #c9d1e6; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.pad-lg { padding: 26px; }
.empty { text-align: center; padding: 64px 24px; display: grid; justify-items: center; gap: 10px; }
.empty .muted { max-width: 420px; margin-bottom: 10px; }
.empty-art { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-50), var(--yellow-50)); color: var(--navy); margin-bottom: 8px; }
.empty-sm { text-align: center; padding: 40px 20px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty-sm .ic { color: #b4bbd3; }

.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; background: var(--navy-50); color: var(--navy); }
.st-prep { background: var(--yellow-50); color: #7a5f00; }
.st-ok { background: var(--green-50); color: var(--green); }
.st-live { background: var(--blue-50); color: var(--blue); }
.st-done { background: #eceef4; color: #5b6380; }

.cd { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cd-soon { color: #9a7600; }
.cd-live { color: var(--blue); }
.cd-done { color: #8a91aa; }
.cd-none { color: #a3aac2; }

/* trip cards */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.trip-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.trip-cover { position: relative; aspect-ratio: 16 / 8; background: var(--navy); overflow: hidden; }
.trip-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.trip-card:hover .trip-cover img { transform: scale(1.05); }
.trip-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 24, 113, .05) 40%, rgba(0, 24, 113, .45)); }
.pattern { background: var(--wave) 0 0 / 80px 40px, radial-gradient(500px 200px at 80% 0%, #1c38a8, transparent 70%), var(--navy); }
.trip-cover .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.trip-cover .days { position: absolute; right: 12px; bottom: 12px; z-index: 1; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.trip-body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.trip-body h3 { font-size: 17px; margin-bottom: 4px; }
.meta-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.trip-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.counts { display: flex; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.counts span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- trip hero */
.trip-hero { position: relative; color: #fff; padding: 28px 0 34px; overflow: hidden; background: var(--navy); }
.trip-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 24, 113, .94) 0%, rgba(0, 24, 113, .78) 50%, rgba(0, 24, 113, .45) 100%); }
.trip-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; z-index: 1; background: var(--wave) repeat-x bottom / 80px 40px; }
.trip-hero-in { position: relative; z-index: 2; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 22px 0 14px; }
.back.light { color: rgba(255, 255, 255, .8); margin-top: 0; margin-bottom: 28px; }
.back.light:hover { color: #fff; }
.welcome { color: var(--yellow); font-weight: 700; margin-bottom: 12px; }
.trip-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero-badges { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.trip-hero .cd { color: #fff; background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; }
.trip-hero .cd-soon::before { background: var(--yellow); }
.trip-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; color: rgba(255, 255, 255, .86); font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions form { margin: 0; }
.hero-notes { margin-top: 20px; max-width: 760px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 12px 16px; color: rgba(255, 255, 255, .9); font-size: 14px; }
.hero-notes b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 14px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a.on { color: var(--navy); border-color: var(--yellow); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-size: 11.5px; font-weight: 700; }
.tabs a.on .count { background: var(--navy); color: #fff; }

.split { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.split > * { min-width: 0; }
.side-form .grid-2 { grid-template-columns: 1fr; }
.public .split-share { margin-top: 28px; }
.split-share { grid-template-columns: 1fr 320px; }
.side-form { position: sticky; top: 90px; }
.side-form h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.side-form .muted { margin: -8px 0 14px; }

/* timeline */
.cat-card { margin-bottom: 16px; padding: 20px 22px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cat-head .count { margin-left: auto; }
.cat-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.cat-penerbangan { background: var(--blue-50); color: var(--blue); }
.cat-hotel { background: #f3ebfe; color: #7a3ad6; }
.cat-transport { background: var(--green-50); color: var(--green); }
.cat-itinerari { background: var(--yellow-50); color: #8a6d00; }
.cat-tiket { background: #fdeee6; color: #c2531a; }
.cat-kontak { background: var(--red-50); color: var(--red); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 17px; border-left: 2px dashed var(--line); margin-left: 17px; }
.tl-item { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 12px 20px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--navy); }
.tl-item + .tl-item { border-top: 1px solid var(--navy-25); }
.tl-body b { color: var(--ink); font-size: 15px; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.tl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--navy-50); color: var(--navy); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.tl-details { margin-top: 6px; font-size: 14px; color: var(--text); }
.tl-item form { margin: 0; }

/* documents */
.drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 2px dashed #cdd4e8; border-radius: 14px; background: var(--navy-25); color: var(--navy); cursor: pointer; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--navy-600); background: var(--navy-50); }
.drop b { font-size: 14px; }
.drop small { color: var(--muted); font-size: 12px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.doc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.doc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--navy-25); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-ext { display: grid; justify-items: center; gap: 4px; color: var(--navy); }
.doc-ext b { font-size: 12px; letter-spacing: .08em; }
.ext-pdf { color: var(--red); }
.ext-doc, .ext-docx { color: var(--blue); }
.ext-xls, .ext-xlsx { color: var(--green); }
.doc-meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.doc-meta b { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta span { font-size: 12px; color: var(--muted); }
.doc-del { position: absolute; top: 8px; right: 8px; margin: 0; }
.doc-del .btn { background: rgba(255, 255, 255, .92); }

/* members */
.member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 4px; }
.member + .member { border-top: 1px solid var(--line); }
.member-main { min-width: 0; display: grid; gap: 3px; }
.member-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-top b { color: var(--ink); }
.copy { width: 100%; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 6px; margin-top: 6px; max-width: 100%; padding: 6px 10px; border: 1px dashed #cdd4e8; border-radius: 9px; background: var(--navy-25); color: var(--muted); font: 500 12px var(--font); cursor: copy; text-align: left; }
.copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy:hover { border-color: var(--navy-600); color: var(--navy); }
.copy.done { border-color: var(--green); color: var(--green); background: var(--green-50); }
.member-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.member-actions form { margin: 0; }
.sent-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--green); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; margin: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.access .check { margin-top: 12px; }

/* share page */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 4px 0 14px; }
.section-title:not(:first-child) { margin-top: 30px; }
.contact-card { position: sticky; top: 90px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.contact-card img { border-radius: 14px; }
.contact-card .btn { margin-top: 6px; }
.private-note { display: flex; gap: 6px; align-items: flex-start; text-align: left; font-size: 12px; color: var(--muted); margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.public .trip-hero { padding-top: 34px; }

/* account */
.acct-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- dialog */
.dlg { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.dlg[open] { animation: dlg-in .22s ease; }
.dlg::backdrop { background: rgba(0, 16, 77, .45); backdrop-filter: blur(3px); }
.dlg .form { padding: 26px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font-size: 22px; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.access { border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.access[open] { padding-bottom: 14px; }
.access summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; list-style: none; }
.access summary::-webkit-details-marker { display: none; }
.access summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); }
.access[open] summary::after { content: "–"; }
.access .muted { margin-bottom: 10px; }
.mrow { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .member { grid-template-columns: auto minmax(0, 1fr); }
  .member-actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 1000px) {
  .split, .split-share { grid-template-columns: 1fr; }
  .side-form, .contact-card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-main { justify-content: flex-start; padding-top: 110px; }
  .auth-top { justify-content: space-between; }
  .auth-logo-mobile { display: block; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-in { height: 62px; }
  .brand img { width: 92px; }
  .brand-tag, .menu-name { display: none; }
  .menu summary { padding: 3px; }
  .hero { padding: 30px 0 84px; }
  .hero-in .btn { width: 100%; }
  .stats { gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat b { font-size: 22px; }
  .stat-ic { width: 38px; height: 38px; }
  .toolbar { margin-top: 22px; }
  .search { min-width: 100%; }
  .trip-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { width: 100%; }
  .hero-actions .btn-wa { flex: 1; }
  .member { grid-template-columns: auto minmax(0, 1fr); }
  .member-actions { grid-column: 2; justify-content: flex-start; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { justify-content: center; text-align: center; }
  .dlg .form { padding: 20px; }
  .mrow { grid-template-columns: 1fr auto; }
  .mrow select { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
