:root {
	--ttm-bg: #f5f7fb;
	--ttm-surface: #ffffff;
	--ttm-surface-muted: #f8fafc;
	--ttm-border: #e5e9f0;
	--ttm-text: #172033;
	--ttm-muted: #667085;
	--ttm-accent: #2563eb;
	--ttm-accent-dark: #1d4ed8;
	--ttm-danger: #dc2626;
	--ttm-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
	--ttm-radius: 18px;
}

.ttm-app,
.ttm-app * {
	box-sizing: border-box;
}

.ttm-app {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	min-height: 760px;
	background: var(--ttm-bg);
	color: var(--ttm-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.ttm-app--theme-nav {
	display: block;
	min-height: 0;
	background: transparent;
}

.ttm-app-nav {
	padding: 28px 18px;
	border-right: 1px solid var(--ttm-border);
	background: var(--ttm-surface);
}

.ttm-app-nav__brand {
	margin: 0 12px 26px;
	font-size: 1.15rem;
	font-weight: 800;
}

.ttm-app-nav nav {
	display: grid;
	gap: 5px;
}

.ttm-app-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--ttm-text);
	font-weight: 400;
	text-decoration: none;
}

.ttm-app-nav a:hover,
.ttm-app-nav a.is-active {
	background: #eef4ff;
	color: var(--ttm-accent);
}

.ttm-app-nav a.is-active {
	font-weight: 800;
}

.ttm-nav-count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ttm-accent);
	color: #fff;
	font-size: 0.75rem;
}

.ttm-app-main {
	position: relative;
	min-width: 0;
	padding: clamp(24px, 4vw, 48px);
}

.ttm-app-loading {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	padding: 10px 15px;
	border: 1px solid var(--ttm-border);
	border-radius: 999px;
	background: var(--ttm-surface);
	box-shadow: var(--ttm-shadow);
	color: var(--ttm-muted);
	font-size: 0.86rem;
}

.ttm-app-alert {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 1100;
	max-width: min(420px, calc(100vw - 40px));
	padding: 13px 16px;
	border-radius: 12px;
	box-shadow: var(--ttm-shadow);
	font-weight: 700;
}

.ttm-app-alert.is-success {
	background: #ecfdf3;
	color: #166534;
}

.ttm-app-alert.is-error {
	background: #fef2f2;
	color: #991b1b;
}

.ttm-view[hidden] {
	display: none !important;
}

.ttm-view {
	display: grid;
	gap: 24px;
	animation: ttm-fade 0.2s ease;
}

@keyframes ttm-fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.ttm-page-actions {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
}

.ttm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid var(--ttm-accent);
	border-radius: 12px;
	background: var(--ttm-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.ttm-button:hover,
.ttm-button:focus {
	border-color: var(--ttm-accent-dark);
	background: var(--ttm-accent-dark);
	color: #fff;
}

.ttm-button--secondary {
	border-color: var(--ttm-border);
	background: var(--ttm-surface);
	color: var(--ttm-text);
}

.ttm-button--secondary:hover,
.ttm-button--secondary:focus {
	border-color: #cbd5e1;
	background: var(--ttm-surface-muted);
	color: var(--ttm-text);
}

.ttm-button--small {
	min-height: 34px;
	padding: 7px 12px;
	font-size: 0.82rem;
}

.ttm-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ttm-metric {
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--ttm-border);
	border-radius: var(--ttm-radius);
	background: var(--ttm-surface);
	box-shadow: var(--ttm-shadow);
}

.ttm-metric__icon {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: #eef4ff;
	color: var(--ttm-accent);
	font-size: 1.05rem;
	font-weight: 900;
}

.ttm-metric div {
	display: grid;
	gap: 2px;
}

.ttm-metric strong {
	font-size: 1.65rem;
	line-height: 1;
}

.ttm-metric span:last-child {
	color: var(--ttm-muted);
	font-size: 0.85rem;
}

.ttm-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ttm-card,
.ttm-table-card,
.ttm-project-card,
.ttm-file-group {
	border: 1px solid var(--ttm-border);
	border-radius: var(--ttm-radius);
	background: var(--ttm-surface);
	box-shadow: var(--ttm-shadow);
}

.ttm-card {
	padding: 20px;
}

.ttm-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.ttm-card-head h2,
.ttm-project-card h2,
.ttm-file-group h2,
.ttm-kanban-column h2 {
	margin: 0;
	color: var(--ttm-text);
	font-size: 1rem;
}

.ttm-list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	padding: 10px 2px;
	border: 0;
	border-bottom: 1px solid var(--ttm-border);
	background: transparent;
	color: var(--ttm-text);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ttm-list-item:last-child {
	border-bottom: 0;
}

.ttm-list-item__main {
	display: grid;
	flex: 1;
	min-width: 0;
	gap: 3px;
}

.ttm-list-item__main strong,
.ttm-list-item__main small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ttm-list-item__main small,
.ttm-project-card__meta,
.ttm-file-version small,
.ttm-notification small,
.ttm-comment small,
.ttm-activity-item small {
	color: var(--ttm-muted);
	font-size: 0.78rem;
}

.ttm-status-dot {
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #94a3b8;
}

.ttm-status-dot.is-in_progress { background: #2563eb; }
.ttm-status-dot.is-review { background: #f59e0b; }
.ttm-status-dot.is-done { background: #16a34a; }

.ttm-file-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.68rem;
	font-weight: 900;
}

.ttm-badge,
.ttm-priority {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.ttm-badge.is-in_progress { background: #dbeafe; color: #1d4ed8; }
.ttm-badge.is-review { background: #fef3c7; color: #92400e; }
.ttm-badge.is-done { background: #dcfce7; color: #166534; }
.ttm-badge.is-project-active { background: #dbeafe; color: #1d4ed8; }
.ttm-badge.is-project-hold { background: #fef3c7; color: #92400e; }
.ttm-badge.is-project-completed { background: #dcfce7; color: #166534; }
.ttm-badge.is-file-release { background: #dcfce7; color: #166534; }
.ttm-badge.is-file-review,
.ttm-badge.is-file-fixed { background: #fef3c7; color: #92400e; }

.ttm-priority.is-high { background: #ffedd5; color: #9a3412; }
.ttm-priority.is-urgent { background: #fee2e2; color: #991b1b; }
.ttm-priority.is-low { background: #f1f5f9; color: #64748b; }

.ttm-project-progress-list {
	display: grid;
	gap: 16px;
}

.ttm-progress-row {
	display: grid;
	grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 3fr) 52px;
	align-items: center;
	gap: 16px;
}

.ttm-progress-row > div:first-child {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.ttm-progress-row span,
.ttm-progress-row b {
	color: var(--ttm-muted);
	font-size: 0.8rem;
}

.ttm-progress {
	overflow: hidden;
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: #e9eef6;
}

.ttm-progress > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--ttm-accent);
}

.ttm-project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ttm-project-card {
	display: grid;
	gap: 16px;
	padding: 20px;
}

.ttm-project-card__top,
.ttm-project-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ttm-project-card p,
.ttm-file-version p {
	margin: 0;
	color: var(--ttm-muted);
	font-size: 0.9rem;
	line-height: 1.7;
}

.ttm-card-menu,
.ttm-table-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ttm-card-menu button,
.ttm-table-actions button,
.ttm-link-button,
.ttm-task-title-button,
.ttm-kanban-card button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ttm-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ttm-card-menu button:last-child,
.ttm-table-actions button:last-child,
.ttm-link-button {
	color: var(--ttm-muted);
}

.ttm-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ttm-filter-bar input,
.ttm-filter-bar select,
.ttm-form input,
.ttm-form select,
.ttm-form textarea,
.ttm-task-detail textarea {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d7dde7;
	border-radius: 11px;
	background: #fff;
	color: var(--ttm-text);
	font: inherit;
	outline: none;
}

.ttm-filter-bar input:focus,
.ttm-filter-bar select:focus,
.ttm-form input:focus,
.ttm-form select:focus,
.ttm-form textarea:focus,
.ttm-task-detail textarea:focus {
	border-color: var(--ttm-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ttm-filter-bar input {
	flex: 1 1 260px;
}

.ttm-filter-bar select {
	flex: 0 1 210px;
}

.ttm-table-card {
	overflow: hidden;
}

.ttm-table-wrap {
	overflow-x: auto;
}

.ttm-table {
	width: 100%;
	min-width: 840px;
	border-collapse: collapse;
}

.ttm-table th,
.ttm-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ttm-border);
	text-align: left;
	vertical-align: middle;
}

.ttm-table th {
	background: var(--ttm-surface-muted);
	color: var(--ttm-muted);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.ttm-table tr:last-child td {
	border-bottom: 0;
}

.ttm-task-title-button {
	color: var(--ttm-text);
	text-align: left;
}

.ttm-kanban {
	display: grid;
	grid-template-columns: repeat(4, minmax(250px, 1fr));
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 10px;
}

.ttm-kanban-column {
	min-height: 560px;
	padding: 14px;
	border: 1px solid var(--ttm-border);
	border-radius: var(--ttm-radius);
	background: #eef2f7;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ttm-kanban-column.is-drag-over {
	border-color: var(--ttm-accent);
	background: #e8f0ff;
}

.ttm-kanban-column__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 2px 4px;
}

.ttm-kanban-column__head span {
	display: inline-grid;
	place-items: center;
	min-width: 25px;
	height: 25px;
	border-radius: 999px;
	background: #fff;
	color: var(--ttm-muted);
	font-size: 0.75rem;
	font-weight: 800;
}

.ttm-kanban-items {
	display: grid;
	gap: 10px;
}

.ttm-kanban-card {
	display: grid;
	gap: 14px;
	padding: 15px;
	border: 1px solid var(--ttm-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
	cursor: grab;
}

.ttm-kanban-card.is-dragging {
	opacity: 0.45;
}

.ttm-kanban-card button {
	color: var(--ttm-text);
	text-align: left;
}

.ttm-kanban-card > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ttm-kanban-card small {
	color: var(--ttm-muted);
	font-size: 0.75rem;
}

.ttm-file-groups {
	display: grid;
	gap: 16px;
}

.ttm-file-group {
	overflow: hidden;
}

.ttm-file-group__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--ttm-border);
	background: var(--ttm-surface-muted);
}

.ttm-file-group__head > div {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ttm-file-group__head > span {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	border-radius: 999px;
	background: #fff;
	color: var(--ttm-muted);
	font-size: 0.76rem;
	font-weight: 800;
}

.ttm-file-versions {
	display: grid;
}

.ttm-file-version {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 18px;
	padding: 17px 18px;
	border-bottom: 1px solid var(--ttm-border);
}

.ttm-file-version:last-child {
	border-bottom: 0;
}

.ttm-file-version__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.ttm-file-version__main > span:not(.ttm-badge) {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ttm-file-version__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ttm-file-version > p,
.ttm-file-inspection {
	grid-column: 1 / -1;
}

.ttm-file-inspection {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ttm-surface-muted);
}

.ttm-file-inspection summary {
	color: var(--ttm-text);
	font-weight: 700;
	cursor: pointer;
}

.ttm-file-inspection dl {
	display: grid;
	gap: 6px;
	margin: 12px 0 0;
}

.ttm-file-inspection dl > div {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 10px;
}

.ttm-file-inspection dt {
	color: var(--ttm-muted);
	font-size: 0.8rem;
}

.ttm-file-inspection dd {
	margin: 0;
	word-break: break-all;
	font-size: 0.82rem;
}

.ttm-file-warning {
	margin-top: 8px !important;
	color: #92400e !important;
}

.ttm-notification {
	display: flex;
	align-items: start;
	gap: 13px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--ttm-border);
}

.ttm-notification:last-child {
	border-bottom: 0;
}

.ttm-notification__dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-top: 7px;
	border-radius: 999px;
	background: #cbd5e1;
}

.ttm-notification.is-unread .ttm-notification__dot {
	background: var(--ttm-accent);
	box-shadow: 0 0 0 4px #dbeafe;
}

.ttm-notification > div {
	display: grid;
	gap: 4px;
}

.ttm-dialog {
	width: min(620px, calc(100vw - 32px));
	max-height: calc(100vh - 40px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
	color: var(--ttm-text);
}

.ttm-dialog--wide {
	width: min(940px, calc(100vw - 32px));
}

.ttm-dialog::backdrop {
	background: rgba(15, 23, 42, 0.48);
	backdrop-filter: blur(3px);
}

.ttm-form {
	display: grid;
	gap: 16px;
	padding: 24px;
}

.ttm-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ttm-dialog-head h2 {
	margin: 0;
	font-size: 1.2rem;
}

.ttm-icon-button {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ttm-muted);
	font-size: 1.5rem;
	cursor: pointer;
}

.ttm-form label {
	display: grid;
	gap: 7px;
	color: var(--ttm-text);
	font-size: 0.84rem;
	font-weight: 700;
}

.ttm-form textarea {
	resize: vertical;
}

.ttm-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ttm-form-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ttm-check-label {
	display: flex !important;
	align-items: center;
	align-self: end;
	min-height: 44px;
	grid-auto-flow: column;
	justify-content: start;
}

.ttm-check-label input {
	width: 18px;
	min-height: 18px;
}

.ttm-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 4px;
}

.ttm-task-detail {
	padding: 0 24px 24px;
}

.ttm-detail-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--ttm-border);
}

.ttm-detail-columns section {
	min-width: 0;
}

.ttm-detail-columns h3 {
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.ttm-comment {
	display: flex;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ttm-border);
}

.ttm-comment img {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
}

.ttm-comment > div {
	min-width: 0;
}

.ttm-comment > div > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ttm-comment p {
	margin: 6px 0 0;
	font-size: 0.88rem;
	line-height: 1.65;
}

.ttm-task-detail form {
	display: grid;
	gap: 9px;
	margin-top: 13px;
}

.ttm-task-detail textarea {
	width: 100%;
	resize: vertical;
}

.ttm-task-detail form .ttm-button {
	justify-self: end;
}

.ttm-activity-item {
	display: flex;
	gap: 10px;
	padding: 10px 0;
}

.ttm-activity-item > span {
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	margin-top: 5px;
	border-radius: 999px;
	background: var(--ttm-accent);
}

.ttm-activity-item > div {
	display: grid;
	gap: 3px;
}

.ttm-settings-card {
	max-width: 620px;
}

.ttm-setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
}

.ttm-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 48px;
	height: 27px;
}

.ttm-switch input {
	position: absolute;
	opacity: 0;
}

.ttm-switch span {
	width: 48px;
	height: 27px;
	border-radius: 999px;
	background: #cbd5e1;
	cursor: pointer;
	transition: 0.2s ease;
}

.ttm-switch span::after {
	content: "";
	display: block;
	width: 21px;
	height: 21px;
	margin: 3px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
	transition: 0.2s ease;
}

.ttm-switch input:checked + span {
	background: var(--ttm-accent);
}

.ttm-switch input:checked + span::after {
	transform: translateX(21px);
}

.ttm-access-message {
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	color: #334155;
}


.ttm-login-form {
	width: min(100%, 460px);
	margin: 40px auto;
	padding: 28px;
	border: 1px solid var(--ttm-border);
	border-radius: var(--ttm-radius);
	background: var(--ttm-surface);
	box-shadow: var(--ttm-shadow);
}

.ttm-login-form form {
	display: grid;
	gap: 15px;
}

.ttm-login-form form p {
	display: grid;
	gap: 7px;
	margin: 0;
}

.ttm-login-form label {
	font-size: 0.85rem;
	font-weight: 700;
}

.ttm-login-form input[type="text"],
.ttm-login-form input[type="password"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d7dde7;
	border-radius: 11px;
	font: inherit;
}

.ttm-login-form .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.ttm-login-form input[type="submit"] {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 11px;
	background: var(--ttm-accent);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}


.ttm-ios-apps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ttm-ios-card {
	display: grid;
	gap: 14px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--ttm-border);
	border-radius: var(--ttm-radius);
	background: var(--ttm-surface);
	box-shadow: var(--ttm-shadow);
}

.ttm-ios-card__head {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 16px;
}

.ttm-ios-card__head > div {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.ttm-ios-card__head h2 {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 1.08rem;
}

.ttm-ios-card__head > strong {
	flex: 0 0 auto;
	color: var(--ttm-accent);
	font-size: 0.9rem;
}

.ttm-ios-bundle,
.ttm-ios-note {
	margin: 0;
	overflow-wrap: anywhere;
}

.ttm-ios-bundle {
	color: var(--ttm-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8rem;
}

.ttm-ios-meta {
	color: var(--ttm-muted);
	line-height: 1.6;
}

.ttm-ios-note {
	padding-top: 12px;
	border-top: 1px solid var(--ttm-border);
	font-size: 0.88rem;
	line-height: 1.7;
}

.ttm-ios-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ttm-ios-email-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--ttm-border);
}

.ttm-ios-email-form input {
	min-width: 0;
}



.ttm-list-avatar {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	object-fit: cover;
}

.ttm-chat-time {
	flex: 0 0 auto;
	color: var(--ttm-muted);
	font-size: 0.72rem;
}

.ttm-chat-layout {
	display: grid;
	grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	gap: 18px;
	min-height: 610px;
}

.ttm-chat-threads,
.ttm-chat-panel {
	overflow: hidden;
	border: 1px solid var(--ttm-border);
	border-radius: var(--ttm-radius);
	background: var(--ttm-surface);
	box-shadow: var(--ttm-shadow);
}

.ttm-chat-threads {
	align-self: start;
	max-height: 680px;
	overflow-y: auto;
}

.ttm-chat-thread {
	display: grid;
	gap: 6px;
	width: 100%;
	padding: 16px;
	border: 0;
	border-bottom: 1px solid var(--ttm-border);
	background: transparent;
	color: var(--ttm-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ttm-chat-thread:last-child {
	border-bottom: 0;
}

.ttm-chat-thread:hover,
.ttm-chat-thread:focus,
.ttm-chat-thread.is-active {
	background: var(--ttm-surface-muted);
	outline: none;
}

.ttm-chat-thread.is-active {
	box-shadow: inset 3px 0 0 var(--ttm-accent);
}

.ttm-chat-thread__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ttm-chat-thread__top strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ttm-chat-thread__target,
.ttm-chat-thread__message,
.ttm-chat-thread small {
	overflow: hidden;
	color: var(--ttm-muted);
	font-size: 0.78rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ttm-chat-thread__target {
	color: var(--ttm-accent);
	font-weight: 700;
}

.ttm-chat-panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	min-height: 610px;
}

.ttm-chat-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--ttm-border);
}

.ttm-chat-panel__head > div {
	display: grid;
	min-width: 0;
	gap: 4px;
}

.ttm-chat-panel__head h2 {
	margin: 0;
	overflow: hidden;
	font-size: 1.05rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ttm-chat-panel__head span {
	color: var(--ttm-muted);
	font-size: 0.78rem;
}

.ttm-chat-messages {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	max-height: 520px;
	padding: 20px;
	overflow-y: auto;
	background: #f8fafc;
}

.ttm-chat-message {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 82%;
}

.ttm-chat-message.is-own {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.ttm-chat-message img {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	object-fit: cover;
}

.ttm-chat-message > div {
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--ttm-border);
	border-radius: 4px 14px 14px;
	background: #fff;
}

.ttm-chat-message.is-own > div {
	border-color: #bfd3ff;
	border-radius: 14px 4px 14px 14px;
	background: #eaf1ff;
}

.ttm-chat-message__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 5px;
}

.ttm-chat-message__meta strong {
	font-size: 0.78rem;
}

.ttm-chat-message__meta small {
	color: var(--ttm-muted);
	font-size: 0.68rem;
	white-space: nowrap;
}

.ttm-chat-message p {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 0.9rem;
	line-height: 1.65;
}

.ttm-chat-message-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
	padding: 16px;
	border-top: 1px solid var(--ttm-border);
}

.ttm-chat-message-form textarea {
	width: 100%;
	min-height: 76px;
	padding: 10px 12px;
	border: 1px solid #d7dde7;
	border-radius: 11px;
	background: #fff;
	color: var(--ttm-text);
	font: inherit;
	resize: vertical;
}

.ttm-chat-message-form textarea:focus {
	border-color: var(--ttm-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: none;
}

.ttm-related-chat {
	grid-column: 1 / -1;
	padding-top: 18px;
	border-top: 1px solid var(--ttm-border);
}

.ttm-related-chat .ttm-card-head {
	margin-bottom: 4px;
}

@media (max-width: 1120px) {
	.ttm-ios-apps {
		grid-template-columns: 1fr;
	}

	.ttm-dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ttm-chat-layout {
		grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
	}

	.ttm-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ttm-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ttm-form-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.ttm-app {
		display: block;
	}

	.ttm-app-nav {
		display: none;
	}

	.ttm-app-main {
		padding: 22px 16px 40px;
	}

	.ttm-dashboard-grid,
	.ttm-detail-columns {
		grid-template-columns: 1fr;
	}

	.ttm-chat-layout {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ttm-chat-threads {
		max-height: 360px;
	}

	.ttm-chat-panel {
		min-height: 540px;
	}

	.ttm-project-grid {
		grid-template-columns: 1fr;
	}

	.ttm-progress-row {
		grid-template-columns: 1fr 52px;
	}

	.ttm-progress-row > div:first-child {
		grid-column: 1 / -1;
	}

	.ttm-file-version {
		grid-template-columns: 1fr;
	}

	.ttm-file-version__actions {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.ttm-ios-email-form,
	.ttm-chat-message-form {
		grid-template-columns: 1fr;
	}

	.ttm-ios-email-form .ttm-button {
		justify-self: stretch;
	}

	.ttm-metrics {
		grid-template-columns: 1fr;
	}

	.ttm-page-actions .ttm-button {
		width: 100%;
	}

	.ttm-form-grid,
	.ttm-form-grid--three {
		grid-template-columns: 1fr;
	}

	.ttm-form,
	.ttm-task-detail {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ttm-file-inspection dl > div {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}
